Merge pull request #1056 from Safelite/feature/CSR-1204
Implemented Front End changes as per the card#1204
This commit is contained in:
commit
5a544d95fc
1 changed files with 12 additions and 1 deletions
|
|
@ -974,9 +974,20 @@ export const actions = {
|
||||||
lineItemsWithOnlyPartNumbers,
|
lineItemsWithOnlyPartNumbers,
|
||||||
"lineItems"
|
"lineItems"
|
||||||
);
|
);
|
||||||
|
const vehicle = context.getters.vehicle;
|
||||||
|
const carId = vehicle.carId;
|
||||||
|
const damage = context.getters.damage;
|
||||||
|
const glassArray = damage.glassToReplace;
|
||||||
|
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
method: endpoints.GetServiceabilityDetails.method,
|
method: endpoints.GetServiceabilityDetails.method,
|
||||||
endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&${lineItemsToSend}`,
|
endpoint: endpoints.GetServiceabilityDetails.url,
|
||||||
|
payload: {
|
||||||
|
zip: serviceZipCode,
|
||||||
|
lineItems: lineItemsToSend,
|
||||||
|
carId: carId,
|
||||||
|
glassPieces: glassArrayForPayload,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue