Merge pull request #1056 from Safelite/feature/CSR-1204

Implemented Front End changes as per the card#1204
This commit is contained in:
SravanGopathi 2023-05-10 11:33:01 -04:00 committed by GitHub
commit 5a544d95fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -974,9 +974,20 @@ export const actions = {
lineItemsWithOnlyPartNumbers,
"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({
method: endpoints.GetServiceabilityDetails.method,
endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&${lineItemsToSend}`,
endpoint: endpoints.GetServiceabilityDetails.url,
payload: {
zip: serviceZipCode,
lineItems: lineItemsToSend,
carId: carId,
glassPieces: glassArrayForPayload,
},
});
},