Merge pull request #3140 from Safelite/feature/CASH-2510
CASH-2510 - pointed get-supporting items endpoint to v2 parts api and…
This commit is contained in:
commit
5d03c3ab5d
2 changed files with 5 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ const endpoints = {
|
|||
method: "GET",
|
||||
},
|
||||
GetSupportingItems: {
|
||||
url: "/parts/api/v1/parts/supporting-items",
|
||||
url: "/parts/api/v2/parts/supporting-items",
|
||||
method: "POST",
|
||||
},
|
||||
GetRecalPart: {
|
||||
|
|
|
|||
|
|
@ -2124,6 +2124,7 @@ export const actions = {
|
|||
const carId = context.getters.vehicle.carId;
|
||||
const isRepair = context.getters.damage.isRepair;
|
||||
const numberOfChips = context.getters.damage.numberOfChips;
|
||||
const apptType = context.getters.order?.serviceLocation?.appointmentType;
|
||||
|
||||
return globalMethods.callHttpClient({
|
||||
method: endpoints.GetSupportingItems.method,
|
||||
|
|
@ -2134,6 +2135,9 @@ export const actions = {
|
|||
parentAccountNumber: applicationConfig.CASH_PARENT_ACCOUNT_NUMBER,
|
||||
parts: glassPartsArray,
|
||||
numberOfRepairChips: isRepair ? numberOfChips : 0,
|
||||
providerNumber: context.getters.order.serviceLocation.zipCodeCtu,
|
||||
facilityType:
|
||||
apptType && apptType.trim() !== "" ? apptType : AppointmentTypeStrings.IN_SHOP,
|
||||
},
|
||||
logApiCall: true,
|
||||
pageNameToLog: pageNameToLog,
|
||||
|
|
|
|||
Loading…
Reference in a new issue