Merge pull request #2983 from Safelite/feature/CASH-1762
Feature/CASH-1762
This commit is contained in:
commit
e4c1be91dd
4 changed files with 0 additions and 26 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",
|
||||||
|
|
|
||||||
|
|
@ -33,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",
|
||||||
|
|
|
||||||
|
|
@ -1984,26 +1984,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