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:
mvalaiyapathi 2026-04-15 12:28:43 -04:00 committed by GitHub
commit 5d03c3ab5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,