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

View file

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