Merge pull request #322 from Safelite/feature/Digital/SSR-486

SSR-486
This commit is contained in:
Jeremy-Z 2023-05-23 15:18:27 -04:00 committed by GitHub
commit 3ef14e944f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 11 deletions

View file

@ -101,6 +101,11 @@
{
this.mainStore.issConfig.clientDisplayName = clientFlags.ClientDisplayName;
}
if ( clientFlags.ClaimRegistrationRequired )
{
this.mainStore.issConfig.isClaimRegistrationRequired = true;
}
}
}
catch ( e )
@ -163,12 +168,12 @@
this.mainStore.order.policy.dateOfLoss = value;
break;
case "returnurl":
this.mainStore.issConfig.returnURL = value;
case "successreturnurl":
this.mainStore.issConfig.successReturnURL = value;
break;
case "returnurl2":
this.mainStore.issConfig.returnURL2 = value;
case "failurereturnurl":
this.mainStore.issConfig.failureReturnURL = value;
break;
// Not stored

View file

@ -99,14 +99,15 @@ const getDefaultState = () => {
issConfig: {
clientName: 'Generic Insurance', // this is the default and will be overriden by the client's name
clientDisplayName: 'Generic Insurance', // this is the default and will be overridden by the client's name or client display name.
styleSheet: '',
accountNumber: 0,
styleSheet: '', // Stylesheet used by the client.
accountNumber: 0, // Account number used by the client.
isCoverageEnabled: false, // Indicates if we should be calling coverage on this flow.
isClaimRegistrationRequired: false, // Indicates if the claim registration call needs to be made for a client to complete coverage verification.
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,
disabledFields: {
successReturnURL: null, // Client URL to retrurn the user to upon a successfull flow completetion (order submission).
failureReturnURL: null, // Client URL to retrurn the user to when they encounter an error or bailout and are unable to complete the flow.
disabledFields: { // Fields that are disabled and read only if sent over from a client.
policyNumber: null,
policyZipCode: null
}
@ -742,8 +743,9 @@ export const useMainStore = defineStore({
this.issConfig.isCoverageEnabled = false;
this.issConfig.isAuthenticated = false;
this.issConfig.enableTPAFlow = false;
this.issConfig.returnURL = null;
this.issConfig.returnURL2 = null;
this.issConfig.isClaimRegistrationRequired = false;
this.issConfig.successReturnURL = null;
this.issConfig.failureReturnURL = null;
this.issConfig.disabledFields.policyNumber = false;
this.issConfig.disabledFields.policyZipCode = false;
},