From 2438ca1f7219a7ed6a88b396ee3d1fb75f0d178d Mon Sep 17 00:00:00 2001 From: Jeremy Zimmerman Date: Wed, 19 Apr 2023 16:02:08 -0400 Subject: [PATCH] Added some new flags for coverage and authentication. --- src/layouts/entry-page/entry-page.vue | 5 +++++ src/store/index.js | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/layouts/entry-page/entry-page.vue b/src/layouts/entry-page/entry-page.vue index 198cc3bc..c1a2d011 100644 --- a/src/layouts/entry-page/entry-page.vue +++ b/src/layouts/entry-page/entry-page.vue @@ -76,6 +76,11 @@ this.mainStore.issConfig.clientName = data.accountName; this.mainStore.issConfig.accountNumber = data.accountNumber; 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 { diff --git a/src/store/index.js b/src/store/index.js index 4b6ac5b6..1e7a483c 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -102,7 +102,9 @@ const getDefaultState = () => { clientDisplayName: "Generic Insurance", styleSheet: "", 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, returnURL2: null, } @@ -610,6 +612,8 @@ export const useMainStore = defineStore({ this.issConfig.clientDisplayName = "Generic Insurance"; this.issConfig.accountNumber = 0; this.issConfig.styleSheet = ""; + this.issConfig.isCoverageEnabled = false; + this.issConfig.isAuthenticated = false; this.issConfig.enableTPAFlow = false; this.issConfig.returnURL = null; this.issConfig.returnURL2 = null;