1204: Front End changes. Added CarId and Glass Pieces to endpoint
This commit is contained in:
parent
28585e8cfc
commit
1f2ead4579
1 changed files with 7 additions and 1 deletions
|
|
@ -974,9 +974,15 @@ 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;
|
||||||
|
// create a new array to avoid mutating state
|
||||||
|
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}?zip=${serviceZipCode}&lineItems=${encodedLineItems}&carId=${carId}&glassPieces=${glassArrayForPayload}`,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue