Merge pull request #250 from Safelite/feature/Digital/SSR-259

SSR-259
This commit is contained in:
Jeremy-Z 2023-04-19 16:06:46 -04:00 committed by GitHub
commit f7d4115da7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -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
{ {

View file

@ -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;