Implemented Front End changes as per the card#1204

This commit is contained in:
Sravan Gopathi 2023-04-10 08:44:39 -04:00
parent a3aaf1283e
commit b1e160310d
3 changed files with 16 additions and 1 deletions

View file

@ -35,7 +35,7 @@ export async function getServiceabilityDetails(serviceZipCode, lineItems) {
storeActions.GET_SERVICEABILITY_DETAILS,
{
serviceZipCode: serviceZipCode,
lineItems: lineItems,
lineItems: lineItems
},
false
);

View file

@ -39,6 +39,7 @@ const mockGetServiceabilityDetails = (mockServiceZipCode) => {
isRecalibrationServiceableInshop: true,
isGlassServiceableMobile: true,
isRecalibrationServiceableMobile: true,
IsServiceability:true,
};
return Promise.resolve(serviceabilityDetails);

View file

@ -941,6 +941,20 @@ export const actions = {
// const lineItems = context.getters.order.lineItems;
// const lineItemsToSend = [...lineItems.supportingItems];
// const encodedLineItems = encodeURIComponent(JSON.stringify(lineItemsToSend));
//TODO: Restore this when CSR-1204 is 100% complete. Line# 958 to 961 should be removed Begin
// 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({
// method: endpoints.GetServiceabilityDetails.method,
// endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&lineItems=${encodedLineItems}&carId=${carId}&glassPieces=${glassArrayForPayload}`,
// });
//TODO: Restore this when CSR-1204 is 100% complete End
// return globalMethods.callHttpClient({
// method: endpoints.GetServiceabilityDetails.method,
// endpoint: `${endpoints.GetServiceabilityDetails.url}?zip=${serviceZipCode}&lineItems=${encodedLineItems}`,