CASH-2510 - pointed get-supporting items endpoint to v2 parts api and passed in providernumber and facilitytype as they are mandatory

This commit is contained in:
Minojhini Valaiyapathi 2026-04-15 09:46:01 -04:00
parent 5814e588d2
commit b5e5e92af2
2 changed files with 5 additions and 1 deletions

View file

@ -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: {

View file

@ -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,