Merge pull request #837 from Safelite/feature/digital/SSR-1463
SSR-1463 Initial work on new ITAC endpoint
This commit is contained in:
commit
a1bc6de50c
1 changed files with 14 additions and 8 deletions
|
|
@ -1088,18 +1088,17 @@ export const useMainStore = defineStore({
|
||||||
method: endpoints.GetITACPriceOrderItems.method,
|
method: endpoints.GetITACPriceOrderItems.method,
|
||||||
endpoint: endpoints.GetITACPriceOrderItems.url,
|
endpoint: endpoints.GetITACPriceOrderItems.url,
|
||||||
payload: {
|
payload: {
|
||||||
Eon: this.order.eon,
|
|
||||||
ReferralNumber: this.order.referralNumber,
|
|
||||||
ReferralSequenceNumber: this.order.referralSequenceNumber,
|
|
||||||
ReferralDate: `${this.order.referralDate}Z`,
|
|
||||||
lineItems: getLineItemsFlattened(lineItemsUsingSafelitePartNumber),
|
lineItems: getLineItemsFlattened(lineItemsUsingSafelitePartNumber),
|
||||||
ServerData: this.order.lineItems.serverData,
|
ServerData: this.order.lineItems.serverData,
|
||||||
ServiceZipCode: serviceLocation.zipCode,
|
|
||||||
Customer: {
|
Customer: {
|
||||||
PhoneNumber: contactInfo.servicePhone,
|
PhoneNumber: contactInfo.servicePhone,
|
||||||
State: policy.damageState,
|
State: policy.damageState,
|
||||||
ZipCode: policy.policyZipCode
|
ZipCode: policy.policyZipCode
|
||||||
},
|
},
|
||||||
|
Account: {
|
||||||
|
ParentAccountNumber: this.order.parentAccountNumber,
|
||||||
|
LineOfBusiness: 'PERSONAL'
|
||||||
|
},
|
||||||
Provider: {
|
Provider: {
|
||||||
ProviderNumber: this.providerNumber,
|
ProviderNumber: this.providerNumber,
|
||||||
ProviderCtuNumber: serviceLocation.zipCodeCtu
|
ProviderCtuNumber: serviceLocation.zipCodeCtu
|
||||||
|
|
@ -1111,12 +1110,19 @@ export const useMainStore = defineStore({
|
||||||
Model: vehicle.model
|
Model: vehicle.model
|
||||||
},
|
},
|
||||||
Insurance: {
|
Insurance: {
|
||||||
AccountNumber: this.order.parentAccountNumber,
|
|
||||||
Deductible: this.order.currentDeductible ?? 0,
|
Deductible: this.order.currentDeductible ?? 0,
|
||||||
LineOfBusiness: 'PERSONAL',
|
|
||||||
PolicyNumber: policy.policyNumber,
|
PolicyNumber: policy.policyNumber,
|
||||||
CoverageStatus: insuranceCoverage.coverageStatus,
|
CoverageStatus: insuranceCoverage.coverageStatus,
|
||||||
IsNoComp: this.isNoComp
|
CoverageType: insuranceCoverage.coverageType
|
||||||
|
},
|
||||||
|
Order: {
|
||||||
|
Eon: this.order.eon,
|
||||||
|
ReferralNumber: this.order.referralNumber,
|
||||||
|
ReferralSequenceNumber: this.order.referralSequenceNumber,
|
||||||
|
ReferralDate: `${this.order.referralDate}Z`,
|
||||||
|
ServiceZipCode: serviceLocation.zipCode,
|
||||||
|
IsReplacement: !this.isRepair,
|
||||||
|
IsOEMRequest: this.hasOemEndorsement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue