Merge branch 'release/2026.01.08' into feature/CASH-1953-prelim
This commit is contained in:
commit
a42f20f53e
11 changed files with 144 additions and 37 deletions
|
|
@ -545,7 +545,6 @@
|
||||||
{ path: '/parts/parts-or-questions', method: 'POST', body: {"carId":"CR00046193","glassPieces":[{"location":"Windshield","name":"Single"}],"zip":"43015","vin":null,"serviceType":null,"referralSeqNumber":environmentContext.referralNumber,"AppName":"FixMyGlass"} },
|
{ path: '/parts/parts-or-questions', method: 'POST', body: {"carId":"CR00046193","glassPieces":[{"location":"Windshield","name":"Single"}],"zip":"43015","vin":null,"serviceType":null,"referralSeqNumber":environmentContext.referralNumber,"AppName":"FixMyGlass"} },
|
||||||
{ path: '/parts/wipers/CR00046193/43015', method: 'GET' },
|
{ path: '/parts/wipers/CR00046193/43015', method: 'GET' },
|
||||||
{ path: '/parts/mobile-premium-fee/Cash/Replace', method: 'GET' },
|
{ path: '/parts/mobile-premium-fee/Cash/Replace', method: 'GET' },
|
||||||
{ path: '/parts/service-package-discount', method: 'POST', body: {"glassPieces":[{"location":"Windshield","name":"Single"}],"damageType":"Replace","AppName":"FixMyGlass"} },
|
|
||||||
{ path: '/parts/mobile-fee/?serviceType=Install&facilityType=Mobile&parentAccountNumber=167132&billToAccountNumber=87291&providerNumber=03357&isItacOptimized=false&zipCode=43015', method: 'GET' },
|
{ path: '/parts/mobile-fee/?serviceType=Install&facilityType=Mobile&parentAccountNumber=167132&billToAccountNumber=87291&providerNumber=03357&isItacOptimized=false&zipCode=43015', method: 'GET' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,6 @@ const endpoints = {
|
||||||
url: "/parts/api/v1/parts/pricing-by-day-part-number",
|
url: "/parts/api/v1/parts/pricing-by-day-part-number",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
},
|
},
|
||||||
GetServicePackageDiscountPart: {
|
|
||||||
url: "/parts/api/v1/parts/service-package-discount",
|
|
||||||
method: "POST",
|
|
||||||
},
|
|
||||||
GetServiceabilityDetails: {
|
GetServiceabilityDetails: {
|
||||||
url: "/location/api/v1/location/serviceability-details",
|
url: "/location/api/v1/location/serviceability-details",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
|
@ -216,6 +212,10 @@ const endpoints = {
|
||||||
url: "/order/api/v1/order/add-donation-part",
|
url: "/order/api/v1/order/add-donation-part",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
},
|
},
|
||||||
|
GetOemAfterMarketParts: {
|
||||||
|
url: "/parts/api/v1/parts/oem-after-market-parts",
|
||||||
|
method: "POST",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export { endpoints };
|
export { endpoints };
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ const experimentSettings = {
|
||||||
SHOW_PM_MOBILE_DAYS: "Show_PMmobileDays",
|
SHOW_PM_MOBILE_DAYS: "Show_PMmobileDays",
|
||||||
SHOW_NO_PM_MOBILE_DAYS: "Show_NoPMmobileDays",
|
SHOW_NO_PM_MOBILE_DAYS: "Show_NoPMmobileDays",
|
||||||
SHOW_NO_MOBILE_AVAILABLE_DAYS: "Show_NoMobileAvailableDays",
|
SHOW_NO_MOBILE_AVAILABLE_DAYS: "Show_NoMobileAvailableDays",
|
||||||
|
OFFER_OEM: "OfferOem",
|
||||||
};
|
};
|
||||||
|
|
||||||
const experimentTriggers = {
|
const experimentTriggers = {
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ const storeActions = {
|
||||||
GET_ALERT_REASONS_BY_CTU: "getAlertReasonsByCtu",
|
GET_ALERT_REASONS_BY_CTU: "getAlertReasonsByCtu",
|
||||||
GET_PARTS_OR_QUESTIONS: "getPartsOrQuestions",
|
GET_PARTS_OR_QUESTIONS: "getPartsOrQuestions",
|
||||||
GET_PARTS: "getParts",
|
GET_PARTS: "getParts",
|
||||||
|
GET_OEM_AFTERMARKET_PARTS: "getOemAfterMarketParts",
|
||||||
GET_WIPERS: "getWipers",
|
GET_WIPERS: "getWipers",
|
||||||
GET_RAIN_REPEL: "getRainRepel",
|
GET_RAIN_REPEL: "getRainRepel",
|
||||||
GET_SUPPORTING_ITEMS: "getSupportingItems",
|
GET_SUPPORTING_ITEMS: "getSupportingItems",
|
||||||
|
|
@ -32,7 +33,6 @@ const storeActions = {
|
||||||
GET_MOLDING_QUESTIONS: "getMoldingQuestions",
|
GET_MOLDING_QUESTIONS: "getMoldingQuestions",
|
||||||
GET_MOBILE_FEE_PART: "getMobileFeePart",
|
GET_MOBILE_FEE_PART: "getMobileFeePart",
|
||||||
GET_PRICING_BY_DAY_PART: "getPricingByDayPart",
|
GET_PRICING_BY_DAY_PART: "getPricingByDayPart",
|
||||||
GET_SERVICE_PACKAGE_DISCOUNT_PART: "getServicePackageDiscountPart",
|
|
||||||
GET_SERVICEABILITY_DETAILS: "getServiceabilityDetails",
|
GET_SERVICEABILITY_DETAILS: "getServiceabilityDetails",
|
||||||
GET_SHOP_TIME_SLOTS: "getShopTimeSlots",
|
GET_SHOP_TIME_SLOTS: "getShopTimeSlots",
|
||||||
GET_MOBILE_TIME_SLOTS: "getMobileTimeSlots",
|
GET_MOBILE_TIME_SLOTS: "getMobileTimeSlots",
|
||||||
|
|
|
||||||
|
|
@ -254,6 +254,19 @@ export function getDiscountedPackageName(discountPackage) {
|
||||||
return package_names[discountPackage] || null;
|
return package_names[discountPackage] || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getPackageLabel(packageName) {
|
||||||
|
switch (packageName) {
|
||||||
|
case packageNames.TIER_ONE:
|
||||||
|
return externalParamPackageLabels.GLASS_ONLY;
|
||||||
|
case packageNames.TIER_TWO:
|
||||||
|
return externalParamPackageLabels.STANDARD;
|
||||||
|
case packageNames.TIER_THREE:
|
||||||
|
return externalParamPackageLabels.PREMIUM;
|
||||||
|
default:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function maxTier(tierA, tierB) {
|
function maxTier(tierA, tierB) {
|
||||||
if (tierA === packageNames.TIER_THREE || tierB === packageNames.TIER_THREE) {
|
if (tierA === packageNames.TIER_THREE || tierB === packageNames.TIER_THREE) {
|
||||||
return packageNames.TIER_THREE;
|
return packageNames.TIER_THREE;
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
@vapsItemsSelected="vapsItemsSelectedAction"
|
@vapsItemsSelected="vapsItemsSelectedAction"
|
||||||
@quotePageDiscountSelected="quotePageDiscountSelectedAction"
|
@quotePageDiscountSelected="quotePageDiscountSelectedAction"
|
||||||
@currentNumberOfPackages="currentNumberOfPackagesAction"
|
@currentNumberOfPackages="currentNumberOfPackagesAction"
|
||||||
|
@servicePackageSelected="servicePackageSelectedAction"
|
||||||
:servicePackage="servicePackage"
|
:servicePackage="servicePackage"
|
||||||
:activePromos="lineItems.promos"
|
:activePromos="lineItems.promos"
|
||||||
:availableQuotePageDiscounts="quoteDiscountPartsInfo"
|
:availableQuotePageDiscounts="quoteDiscountPartsInfo"
|
||||||
|
|
@ -218,6 +219,19 @@ export default {
|
||||||
"quote"
|
"quote"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// call API oem-after-market-parts method
|
||||||
|
const offerOem = experimentMixin.methods.hasSettingEqualTo(
|
||||||
|
experimentSettings.OFFER_OEM,
|
||||||
|
"true"
|
||||||
|
);
|
||||||
|
if (offerOem) {
|
||||||
|
const oemAfterMarketParts = baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
|
storeActions.GET_OEM_AFTERMARKET_PARTS,
|
||||||
|
null,
|
||||||
|
"quote"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const shouldExposeSkipQuote = store.getters.isRecalibrationOnOrder;
|
const shouldExposeSkipQuote = store.getters.isRecalibrationOnOrder;
|
||||||
const skipQuoteExperiment = store.getters.applicationUser.experiments.find(
|
const skipQuoteExperiment = store.getters.applicationUser.experiments.find(
|
||||||
(e) => e.universeName === experimentUniverses.IGQ_SkipQuote
|
(e) => e.universeName === experimentUniverses.IGQ_SkipQuote
|
||||||
|
|
@ -564,6 +578,7 @@ export default {
|
||||||
isSaveProgressComplete: null,
|
isSaveProgressComplete: null,
|
||||||
packageNumber: null,
|
packageNumber: null,
|
||||||
skipToInsurance: null,
|
skipToInsurance: null,
|
||||||
|
servicePackageSelected: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
|
@ -670,6 +685,9 @@ export default {
|
||||||
vapsItemsSelectedAction(vapsItemsSelected) {
|
vapsItemsSelectedAction(vapsItemsSelected) {
|
||||||
this.lineItems.vaps = vapsItemsSelected;
|
this.lineItems.vaps = vapsItemsSelected;
|
||||||
},
|
},
|
||||||
|
servicePackageSelectedAction(newValue) {
|
||||||
|
this.servicePackageSelected = newValue;
|
||||||
|
},
|
||||||
quotePageDiscountSelectedAction(supportingItemsSelected) {
|
quotePageDiscountSelectedAction(supportingItemsSelected) {
|
||||||
this.lineItems.supportingItems = supportingItemsSelected;
|
this.lineItems.supportingItems = supportingItemsSelected;
|
||||||
},
|
},
|
||||||
|
|
@ -758,7 +776,14 @@ export default {
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
await savePageData(this.pageName, { saveProgressPopupSkipped: true }, true);
|
await savePageData(
|
||||||
|
this.pageName,
|
||||||
|
{
|
||||||
|
saveProgressPopupSkipped: true,
|
||||||
|
servicePackageSelected: this.servicePackageSelected,
|
||||||
|
},
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
const payment = this.$store.getters.payment;
|
const payment = this.$store.getters.payment;
|
||||||
if (payment.isInsurance) {
|
if (payment.isInsurance) {
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ import {
|
||||||
findLineItemsWithPartType,
|
findLineItemsWithPartType,
|
||||||
getPackageNameByType,
|
getPackageNameByType,
|
||||||
getDiscountedPackageName,
|
getDiscountedPackageName,
|
||||||
|
getPackageLabel,
|
||||||
} from "@/helpers/service-package-helper";
|
} from "@/helpers/service-package-helper";
|
||||||
import {
|
import {
|
||||||
getPromosThatMatchLineItemsOnOrder,
|
getPromosThatMatchLineItemsOnOrder,
|
||||||
|
|
@ -45,6 +46,7 @@ import { containsRecalParts, getItemsWithoutRecalParts } from "@/helpers/recal-h
|
||||||
import experimentMixin from "@/mixins/experiment-mixin.js";
|
import experimentMixin from "@/mixins/experiment-mixin.js";
|
||||||
import { experimentSettings } from "@/constants/experiments";
|
import { experimentSettings } from "@/constants/experiments";
|
||||||
import { savePageData } from "@/router/methods/helpers/save-page-data";
|
import { savePageData } from "@/router/methods/helpers/save-page-data";
|
||||||
|
import { debugLog } from "@/helpers/debug-log-helper";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "servicePackageQuestion",
|
name: "servicePackageQuestion",
|
||||||
|
|
@ -84,6 +86,12 @@ export default {
|
||||||
if (this.activePromos?.length) this.selectDefaultPackage();
|
if (this.activePromos?.length) this.selectDefaultPackage();
|
||||||
},
|
},
|
||||||
selectedPackageName(newValue) {
|
selectedPackageName(newValue) {
|
||||||
|
debugLog("selectedPackageName:", newValue);
|
||||||
|
const packageLabel = getPackageLabel(newValue);
|
||||||
|
|
||||||
|
debugLog("getPackageLabel:", packageLabel);
|
||||||
|
this.$emit("servicePackageSelected", `ServicePackage-${packageLabel}`);
|
||||||
|
|
||||||
const VapsProductsInSelectedPackage = this.getVapsLineItemsForSelectedPackage(newValue);
|
const VapsProductsInSelectedPackage = this.getVapsLineItemsForSelectedPackage(newValue);
|
||||||
this.$emit("vapsItemsSelected", VapsProductsInSelectedPackage);
|
this.$emit("vapsItemsSelected", VapsProductsInSelectedPackage);
|
||||||
const discountPartInSelectedPackage = this.getDiscountPartForSelectedPackage(newValue);
|
const discountPartInSelectedPackage = this.getDiscountPartForSelectedPackage(newValue);
|
||||||
|
|
|
||||||
|
|
@ -1653,6 +1653,8 @@ export default {
|
||||||
this.updateSelectedProvider();
|
this.updateSelectedProvider();
|
||||||
},
|
},
|
||||||
updateSelectedProvider(newShopProvider) {
|
updateSelectedProvider(newShopProvider) {
|
||||||
|
if (!this.appointmentTypeStrings) return;
|
||||||
|
|
||||||
if (newShopProvider) {
|
if (newShopProvider) {
|
||||||
this.selectedProvider = newShopProvider;
|
this.selectedProvider = newShopProvider;
|
||||||
} else if (this.appointmentType === this.appointmentTypeStrings.MOBILE) {
|
} else if (this.appointmentType === this.appointmentTypeStrings.MOBILE) {
|
||||||
|
|
@ -1729,7 +1731,9 @@ export default {
|
||||||
this.appointmentType = AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF;
|
this.appointmentType = AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF;
|
||||||
}
|
}
|
||||||
// make sure a selectedProvider exists
|
// make sure a selectedProvider exists
|
||||||
this.updateSelectedProvider(this.lastSelectedInshopOrDropoffProvider);
|
if (this.lastSelectedInshopOrDropoffProvider) {
|
||||||
|
this.updateSelectedProvider(this.lastSelectedInshopOrDropoffProvider);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.appointmentType = null;
|
this.appointmentType = null;
|
||||||
}
|
}
|
||||||
|
|
@ -1796,23 +1800,34 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isShowMobileFirstAppt) {
|
if (this.isShowMobileFirstAppt) {
|
||||||
if (firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= pmMobileDays) {
|
if (pmMobileDays == 0) {
|
||||||
|
// Selects the first available time slot
|
||||||
|
preSelectedMobileAppointment =
|
||||||
|
numberOfDaysToFirstMobileAMDate <= numberOfDaysToFirstMobilePMDate
|
||||||
|
? firstMobileAMAppt
|
||||||
|
: firstMobilePMAppt;
|
||||||
|
} else if (
|
||||||
|
firstMobilePMDate &&
|
||||||
|
numberOfDaysToFirstMobilePMDate <= pmMobileDays
|
||||||
|
) {
|
||||||
|
// Selects the first available PM time slot
|
||||||
preSelectedMobileAppointment = firstMobilePMAppt;
|
preSelectedMobileAppointment = firstMobilePMAppt;
|
||||||
} else if (
|
} else if (
|
||||||
firstMobilePMDate &&
|
firstMobilePMDate &&
|
||||||
numberOfDaysToFirstMobilePMDate >= noPMMobileDays
|
numberOfDaysToFirstMobilePMDate >= noPMMobileDays
|
||||||
) {
|
) {
|
||||||
|
// Selects the first available AM time slot. If none, selects the first available PM time slot
|
||||||
preSelectedMobileAppointment = firstMobileAMAppt
|
preSelectedMobileAppointment = firstMobileAMAppt
|
||||||
? firstMobileAMAppt
|
? firstMobileAMAppt
|
||||||
: null;
|
: firstMobilePMAppt;
|
||||||
!preSelectedMobileAppointment &&
|
|
||||||
(preSelectedMobileAppointment = firstMobilePMAppt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$refs.mobileFirstModal.setSelectedAppointment(
|
if (preSelectedMobileAppointment) {
|
||||||
preSelectedMobileAppointment
|
this.$refs.mobileFirstModal.setSelectedAppointment(
|
||||||
);
|
preSelectedMobileAppointment
|
||||||
this.$refs.mobileFirstModal.openModal();
|
);
|
||||||
|
this.$refs.mobileFirstModal.openModal();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ export default {
|
||||||
},
|
},
|
||||||
set: function (newValue) {
|
set: function (newValue) {
|
||||||
this.$emit("update:modelValue", newValue);
|
this.$emit("update:modelValue", newValue);
|
||||||
|
this.$emit("handle-appointment-type-change", newValue);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
isMobileOnly() {
|
isMobileOnly() {
|
||||||
|
|
|
||||||
|
|
@ -232,6 +232,21 @@ export default {
|
||||||
(part) => `${part.glassLocation}-${part.glassName}`
|
(part) => `${part.glassLocation}-${part.glassName}`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const format = (part) => `${part?.partNumber}-${part?.partType ? part.partType : ""}`;
|
||||||
|
const mapParts = (arr) => (arr ?? []).map(format);
|
||||||
|
|
||||||
|
const glassParts = mapParts(order?.lineItems?.glassParts);
|
||||||
|
const supportingItems = mapParts(order?.lineItems?.supportingItems);
|
||||||
|
const vaps = mapParts(order?.lineItems?.vaps);
|
||||||
|
const childParts = [].concat(
|
||||||
|
...(order?.lineItems?.glassParts ?? []).map((gp) => mapParts(gp?.childParts))
|
||||||
|
);
|
||||||
|
const allParts = [...glassParts, ...supportingItems, ...vaps, ...childParts];
|
||||||
|
|
||||||
|
if (applicationUser?.pageData?.quote?.servicePackageSelected) {
|
||||||
|
allParts.push(applicationUser.pageData.quote.servicePackageSelected);
|
||||||
|
}
|
||||||
|
|
||||||
var appointment = `${order?.schedule?.date ?? ""} ${order?.schedule?.startTime ?? ""}`;
|
var appointment = `${order?.schedule?.date ?? ""} ${order?.schedule?.startTime ?? ""}`;
|
||||||
|
|
||||||
var sessionData = {};
|
var sessionData = {};
|
||||||
|
|
@ -251,7 +266,7 @@ export default {
|
||||||
? "Insurance"
|
? "Insurance"
|
||||||
: "Cash";
|
: "Cash";
|
||||||
sessionData.damageType = order?.damage?.isRepair ? "Repair" : "Replace";
|
sessionData.damageType = order?.damage?.isRepair ? "Repair" : "Replace";
|
||||||
sessionData.productType = glassProducts;
|
sessionData.productType = allParts;
|
||||||
sessionData.eon = order?.eon;
|
sessionData.eon = order?.eon;
|
||||||
sessionData.referralNumber = order?.referralNumber;
|
sessionData.referralNumber = order?.referralNumber;
|
||||||
sessionData.referralSequenceNumber = order?.referralSequenceNumber;
|
sessionData.referralSequenceNumber = order?.referralSequenceNumber;
|
||||||
|
|
|
||||||
|
|
@ -1836,6 +1836,56 @@ export const actions = {
|
||||||
return response;
|
return response;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Parts API Actions
|
||||||
|
async getOemAfterMarketParts(context, { pageNameToLog }) {
|
||||||
|
const vehicle = context.getters.vehicle;
|
||||||
|
const damage = context.getters.damage;
|
||||||
|
const order = context.state.order;
|
||||||
|
|
||||||
|
const carId = vehicle.carId;
|
||||||
|
const glassArray = damage.glassToReplace;
|
||||||
|
const resultsArray = damage.partQuestionAnswers;
|
||||||
|
const zipCode = order.serviceLocation.zipCode;
|
||||||
|
const vin = vehicle.vin;
|
||||||
|
const make = vehicle.make;
|
||||||
|
const serviceType = order.serviceLocation?.appointmentType;
|
||||||
|
const referralSeqNumber = order.referralSequenceNumber;
|
||||||
|
const parentAccountNumber = applicationConfig.CASH_PARENT_ACCOUNT_NUMBER;
|
||||||
|
const oemEndorsementFlag = false; // Need to update from the store when available
|
||||||
|
|
||||||
|
// create a new array to avoid mutating state
|
||||||
|
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
||||||
|
const resultsArrayForPayload = convertResultsForApi(resultsArray);
|
||||||
|
|
||||||
|
const response = await globalMethods.callHttpClient({
|
||||||
|
method: endpoints.GetOemAfterMarketParts.method,
|
||||||
|
endpoint: endpoints.GetOemAfterMarketParts.url,
|
||||||
|
payload: {
|
||||||
|
carId: carId,
|
||||||
|
glassPieces: glassArrayForPayload,
|
||||||
|
answerResults: resultsArrayForPayload,
|
||||||
|
zip: zipCode,
|
||||||
|
vin: vin,
|
||||||
|
serviceType: serviceType,
|
||||||
|
referralSeqNumber: referralSeqNumber,
|
||||||
|
make: make,
|
||||||
|
parentAccountNumber: parentAccountNumber.toString(),
|
||||||
|
oemEndorsementFlag: oemEndorsementFlag,
|
||||||
|
},
|
||||||
|
logApiCall: true,
|
||||||
|
pageNameToLog: pageNameToLog,
|
||||||
|
});
|
||||||
|
|
||||||
|
// Flatten location and name properties
|
||||||
|
if (response?.data?.glassPieceParts) {
|
||||||
|
response.data.glassPieceParts = convertGlassPieceNamingFromApi(
|
||||||
|
response.data.glassPieceParts
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return response;
|
||||||
|
},
|
||||||
|
|
||||||
async getWipers(context, { payload, pageNameToLog }) {
|
async getWipers(context, { payload, pageNameToLog }) {
|
||||||
const carId = payload.carId;
|
const carId = payload.carId;
|
||||||
const serviceZipCode = payload.serviceZipCode;
|
const serviceZipCode = payload.serviceZipCode;
|
||||||
|
|
@ -1936,26 +1986,6 @@ export const actions = {
|
||||||
return response;
|
return response;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getServicePackageDiscountPart(context, { pageNameToLog }) {
|
|
||||||
const damage = context.getters.damage;
|
|
||||||
const damageType = damage.isRepair ? "Repair" : "Replace";
|
|
||||||
const glassPieces = convertGlassPieceNamingForApi(damage.glassToReplace);
|
|
||||||
|
|
||||||
return globalMethods
|
|
||||||
.callHttpClient({
|
|
||||||
method: endpoints.GetServicePackageDiscountPart.method,
|
|
||||||
endpoint: endpoints.GetServicePackageDiscountPart.url,
|
|
||||||
payload: {
|
|
||||||
glassPieces: glassPieces,
|
|
||||||
damageType: damageType,
|
|
||||||
},
|
|
||||||
logApiCall: true,
|
|
||||||
pageNameToLog: pageNameToLog,
|
|
||||||
})
|
|
||||||
.then((response) => {
|
|
||||||
return response;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
getServiceabilityDetails(context, { payload: { serviceZipCode }, pageNameToLog }) {
|
getServiceabilityDetails(context, { payload: { serviceZipCode }, pageNameToLog }) {
|
||||||
const escapeRecalibrationType = (rt) => rt.split("&").join("%26");
|
const escapeRecalibrationType = (rt) => rt.split("&").join("%26");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue