Merge pull request #1205 from Safelite/feature/jzimmerman/INSR-9443

INSR-9443: Adding future support for policy data validation of separate repair + replacement deductibles.
This commit is contained in:
Jeremy-Z 2026-04-30 14:39:53 -04:00 committed by GitHub
commit 3d72aa36c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -637,6 +637,7 @@ export const useMainStore = defineStore({
referralCorrelationId: this.order.referralCorrelationId, referralCorrelationId: this.order.referralCorrelationId,
accountNumber: this.order.parentAccountNumber?.toString() ?? '', accountNumber: this.order.parentAccountNumber?.toString() ?? '',
policyData: this.order.policy.policyData, policyData: this.order.policy.policyData,
isRepair: this.order.damage.isRepair,
isItac: isITAC, isItac: isITAC,
insured: { insured: {
firstName: this.order.customer.firstName, firstName: this.order.customer.firstName,
@ -665,7 +666,9 @@ export const useMainStore = defineStore({
safelitePolicy: { safelitePolicy: {
policies: [] policies: []
}, },
actualDeductible: this.currentDeductible.toString() ?? '' actualDeductible: this.currentDeductible.toString() ?? '',
currentRepairDeductible: this.order.currentDeductible.repair,
currentReplaceDeductible: this.order.currentDeductible.replace,
}, },
lossInfo: { lossInfo: {
dateOfLoss: this.order.policy.dateOfLoss, dateOfLoss: this.order.policy.dateOfLoss,
@ -728,6 +731,8 @@ export const useMainStore = defineStore({
status: this.order.policy.status, status: this.order.policy.status,
originalDeductible: this.originalDeductible, originalDeductible: this.originalDeductible,
currentDeductible: this.currentDeductible, currentDeductible: this.currentDeductible,
currentRepairDeductible: this.order.currentDeductible.repair,
currentReplaceDeductible: this.order.currentDeductible.replace,
noCoverage: false, noCoverage: false,
isRepair: this.order.damage.isRepair, isRepair: this.order.damage.isRepair,
policyNumber: this.order.policy.policyNumber, policyNumber: this.order.policy.policyNumber,

View file

@ -1798,6 +1798,8 @@ describe('Store', () => {
status, status,
currentDeductible, currentDeductible,
originalDeductible, originalDeductible,
currentRepairDeductible: store.order.currentDeductible.repair,
currentReplaceDeductible: store.order.currentDeductible.replace,
noCoverage: store.isNoComp, noCoverage: store.isNoComp,
isRepair, isRepair,
policyNumber, policyNumber,
@ -1904,6 +1906,8 @@ describe('Store', () => {
status, status,
currentDeductible, currentDeductible,
originalDeductible, originalDeductible,
currentRepairDeductible: store.order.currentDeductible.repair,
currentReplaceDeductible: store.order.currentDeductible.replace,
noCoverage: store.isNoComp, noCoverage: store.isNoComp,
isRepair, isRepair,
policyNumber, policyNumber,