Added some new flags for coverage and authentication.

This commit is contained in:
Jeremy Zimmerman 2023-04-19 16:02:08 -04:00
parent c50727ef77
commit 2438ca1f72
2 changed files with 10 additions and 1 deletions

View file

@ -76,6 +76,11 @@
this.mainStore.issConfig.clientName = data.accountName;
this.mainStore.issConfig.accountNumber = data.accountNumber;
this.mainStore.issConfig.styleSheet = data.styleSheet;
this.mainStore.issConfig.isCoverageEnabled = data.coverageEnabled;
// NOTE: This is only here for testing purposes. Will be removed and replaced by actual token/signature validation when work is completed.
if ( data.authentication == "RSAToken")
this.mainStore.issConfig.isAuthenticated = true;
try
{

View file

@ -102,7 +102,9 @@ const getDefaultState = () => {
clientDisplayName: "Generic Insurance",
styleSheet: "",
accountNumber: 0,
enableTPAFlow: false,
isCoverageEnabled: false, // Indicates if we should be calling coverage on this flow.
isAuthenticated: false, // Indicates if user is authenticated or not.
enableTPAFlow: false, // Indicates if the TPA flow is supported for this client.
returnURL: null,
returnURL2: null,
}
@ -610,6 +612,8 @@ export const useMainStore = defineStore({
this.issConfig.clientDisplayName = "Generic Insurance";
this.issConfig.accountNumber = 0;
this.issConfig.styleSheet = "";
this.issConfig.isCoverageEnabled = false;
this.issConfig.isAuthenticated = false;
this.issConfig.enableTPAFlow = false;
this.issConfig.returnURL = null;
this.issConfig.returnURL2 = null;