From 1a41824623ad83d0a10d251fa785e310dd587be0 Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Thu, 30 Apr 2026 13:18:10 -0400 Subject: [PATCH 1/2] Updated final-deductible and register-claim calls to pass additional params. --- src/store/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 72b44782..e93e62b7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -637,6 +637,7 @@ export const useMainStore = defineStore({ referralCorrelationId: this.order.referralCorrelationId, accountNumber: this.order.parentAccountNumber?.toString() ?? '', policyData: this.order.policy.policyData, + isRepair: this.order.damage.isRepair, isItac: isITAC, insured: { firstName: this.order.customer.firstName, @@ -665,7 +666,9 @@ export const useMainStore = defineStore({ safelitePolicy: { policies: [] }, - actualDeductible: this.currentDeductible.toString() ?? '' + actualDeductible: this.currentDeductible.toString() ?? '', + currentRepairDeductible: this.order.currentDeductible.repair, + currentReplaceDeductible: this.order.currentDeductible.replace, }, lossInfo: { dateOfLoss: this.order.policy.dateOfLoss, @@ -728,6 +731,8 @@ export const useMainStore = defineStore({ status: this.order.policy.status, originalDeductible: this.originalDeductible, currentDeductible: this.currentDeductible, + currentRepairDeductible: this.order.currentDeductible.repair, + currentReplaceDeductible: this.order.currentDeductible.replace, noCoverage: false, isRepair: this.order.damage.isRepair, policyNumber: this.order.policy.policyNumber, From 500540b7a8d3c205138cf759ecfd68b3284458a0 Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Thu, 30 Apr 2026 14:13:06 -0400 Subject: [PATCH 2/2] Updated unit tests for final-deductible call. --- src/store/store.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/store.spec.js b/src/store/store.spec.js index d6a29e43..157c34ec 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -1798,6 +1798,8 @@ describe('Store', () => { status, currentDeductible, originalDeductible, + currentRepairDeductible: store.order.currentDeductible.repair, + currentReplaceDeductible: store.order.currentDeductible.replace, noCoverage: store.isNoComp, isRepair, policyNumber, @@ -1904,6 +1906,8 @@ describe('Store', () => { status, currentDeductible, originalDeductible, + currentRepairDeductible: store.order.currentDeductible.repair, + currentReplaceDeductible: store.order.currentDeductible.replace, noCoverage: store.isNoComp, isRepair, policyNumber,