Added some new flags for coverage and authentication.
This commit is contained in:
parent
c50727ef77
commit
2438ca1f72
2 changed files with 10 additions and 1 deletions
|
|
@ -76,6 +76,11 @@
|
||||||
this.mainStore.issConfig.clientName = data.accountName;
|
this.mainStore.issConfig.clientName = data.accountName;
|
||||||
this.mainStore.issConfig.accountNumber = data.accountNumber;
|
this.mainStore.issConfig.accountNumber = data.accountNumber;
|
||||||
this.mainStore.issConfig.styleSheet = data.styleSheet;
|
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
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,9 @@ const getDefaultState = () => {
|
||||||
clientDisplayName: "Generic Insurance",
|
clientDisplayName: "Generic Insurance",
|
||||||
styleSheet: "",
|
styleSheet: "",
|
||||||
accountNumber: 0,
|
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,
|
returnURL: null,
|
||||||
returnURL2: null,
|
returnURL2: null,
|
||||||
}
|
}
|
||||||
|
|
@ -610,6 +612,8 @@ export const useMainStore = defineStore({
|
||||||
this.issConfig.clientDisplayName = "Generic Insurance";
|
this.issConfig.clientDisplayName = "Generic Insurance";
|
||||||
this.issConfig.accountNumber = 0;
|
this.issConfig.accountNumber = 0;
|
||||||
this.issConfig.styleSheet = "";
|
this.issConfig.styleSheet = "";
|
||||||
|
this.issConfig.isCoverageEnabled = false;
|
||||||
|
this.issConfig.isAuthenticated = false;
|
||||||
this.issConfig.enableTPAFlow = false;
|
this.issConfig.enableTPAFlow = false;
|
||||||
this.issConfig.returnURL = null;
|
this.issConfig.returnURL = null;
|
||||||
this.issConfig.returnURL2 = null;
|
this.issConfig.returnURL2 = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue