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