diff --git a/src/layouts/entry-page/entry-page.vue b/src/layouts/entry-page/entry-page.vue index ec3ecbfb..c72d2d1e 100644 --- a/src/layouts/entry-page/entry-page.vue +++ b/src/layouts/entry-page/entry-page.vue @@ -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 diff --git a/src/store/index.js b/src/store/index.js index fbd2c784..7b7d4dd0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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; },