INSR-9937: Add source system and company code to register claim request

This commit is contained in:
Alex Humphries 2026-06-17 15:44:48 -04:00
parent 1fc93cb733
commit 6f51031ece

View file

@ -165,7 +165,8 @@ export const getDefaultState = () => ({
coverageStatus: coverageStatuses.PENDING,
coverageType: coverageType.NONE,
isItacOptimized: false,
claimNumber: null
claimNumber: null,
companyCode: null
},
payment: {
parentAccountNumber: 0,
@ -596,6 +597,7 @@ export const useMainStore = defineStore({
order.customer.address.zipCode = insured?.zipCode?.toString();
order.customer.firstName = insured?.firstName;
order.customer.lastName = insured?.lastName;
order.insuranceCoverage.companyCode = insured?.companyCode;
// populate additional fields
order.policy.policyData = responsePolicy.policyData;
@ -646,6 +648,7 @@ export const useMainStore = defineStore({
// This is here in case we have to deploy site for other fixes before coverage service gets updated.
isRepair: this.order.damage.isRepair,
isItac: isITAC,
sourceSystem: applicationConfig.APPLICATION_NAME,
insured: {
firstName: this.order.customer.firstName,
lastName: this.order.customer.lastName,
@ -676,6 +679,7 @@ export const useMainStore = defineStore({
actualDeductible: this.currentDeductible.toString() ?? '',
currentRepairDeductible: this.order.currentDeductible.repair,
currentReplaceDeductible: this.order.currentDeductible.replace,
company: this.order.insuranceCoverage.companyCode
},
lossInfo: {
dateOfLoss: this.order.policy.dateOfLoss,
@ -1943,6 +1947,7 @@ export const useMainStore = defineStore({
this.order.insuranceCoverage.coverageType = coverageType.NONE;
this.order.insuranceCoverage.isItacOptimized = false;
this.order.insuranceCoverage.claimNumber = null;
this.order.insuranceCoverage.companyCode = null;
},
updateGlassFees(feeData) {
if (feeData == null) {