Fixing issues with register claim for liberty mutual
This commit is contained in:
parent
97d703803d
commit
18c161ef96
1 changed files with 43 additions and 43 deletions
|
|
@ -377,49 +377,49 @@ export const useMainStore = defineStore({
|
||||||
method: endpoints.RegisterClaim.method,
|
method: endpoints.RegisterClaim.method,
|
||||||
endpoint: endpoints.RegisterClaim.url,
|
endpoint: endpoints.RegisterClaim.url,
|
||||||
payload:
|
payload:
|
||||||
{
|
{
|
||||||
correlationId: placeHolderCorrelationId,
|
correlationId: placeHolderCorrelationId,
|
||||||
accountNumber: this.issConfig.accountNumber?.toString() ?? '',
|
accountNumber: this.issConfig.accountNumber?.toString() ?? '',
|
||||||
insured: {
|
insured: {
|
||||||
firstName: this.order.customer.firstName,
|
firstName: this.order.customer.firstName,
|
||||||
lastName: this.order.customer.lastName,
|
lastName: this.order.customer.lastName,
|
||||||
address: {
|
address: {
|
||||||
addressLine1: this.order.customer.address.streetAddress,
|
addressLine1: this.order.customer.address.streetAddress,
|
||||||
addressLine2: this.order.customer.address.streetAddress2,
|
addressLine2: this.order.customer.address.streetAddress2,
|
||||||
city: this.order.customer.address.city,
|
city: this.order.customer.address.city,
|
||||||
state: this.order.customer.address.state,
|
state: this.order.customer.address.state,
|
||||||
zipCode: this.order.customer.address.zipCode,
|
zipCode: this.order.customer.address.zipCode,
|
||||||
country: 'US' // TODO set from store
|
country: 'US' // TODO set from store
|
||||||
},
|
},
|
||||||
homePhone: {
|
homePhone: {
|
||||||
number: this.order.customer.phoneNumber.replaceAll('-', '')
|
number: this.order.customer.phoneNumber.replaceAll('-', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
caller: {
|
caller: {
|
||||||
homePhone: {}
|
homePhone: {}
|
||||||
},
|
},
|
||||||
policyInfo: {
|
policyInfo: {
|
||||||
policyNumber: this.order.policy.policyNumber,
|
policyNumber: this.order.policy.policyNumber,
|
||||||
safelitePolicy: {
|
safelitePolicy: {
|
||||||
policies: []
|
policies: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lossInfo: {
|
lossInfo: {
|
||||||
dateOfLoss: this.order.policy.dateOfLoss,
|
dateOfLoss: this.order.policy.dateOfLoss,
|
||||||
location: {
|
location: {
|
||||||
city: this.order.policy.damageCity,
|
city: this.order.policy.damageCity,
|
||||||
state: this.order.policy.damageState,
|
state: this.order.policy.damageState,
|
||||||
country: 'US' // TODO set from store
|
country: 'US' // TODO set from store
|
||||||
},
|
},
|
||||||
vehicle: {
|
vehicle: {
|
||||||
year: this.order.vehicle.year?.toString() ?? '',
|
year: this.order.vehicle.year?.toString() ?? '',
|
||||||
make: this.order.vehicle.make,
|
make: this.order.vehicle.make,
|
||||||
model: this.order.vehicle.model,
|
model: this.order.vehicle.model,
|
||||||
vin: this.order.vehicle.vin
|
vin: this.order.vehicle.vin
|
||||||
}
|
},
|
||||||
},
|
damageDescription: this.order.policy.damageCause
|
||||||
damageDescription: this.order.policy.damageCause
|
}
|
||||||
}
|
}
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
const registerClaimFailed = response.data.isError;
|
const registerClaimFailed = response.data.isError;
|
||||||
this.order.payment.insuranceCoverage.isVerified = !registerClaimFailed;
|
this.order.payment.insuranceCoverage.isVerified = !registerClaimFailed;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue