CASH-2856 - Pointed to v3 of Parts Service for parts-or-question endpoint for SL vehicles
This commit is contained in:
parent
f3b9c34656
commit
653045bcd5
2 changed files with 6 additions and 3 deletions
|
|
@ -56,8 +56,8 @@ const endpoints = {
|
||||||
url: "/parts/api/v1/parts/parts-or-questions",
|
url: "/parts/api/v1/parts/parts-or-questions",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
},
|
},
|
||||||
GetPartsOrQuestionsV2: {
|
GetPartsOrQuestionsV3: {
|
||||||
url: "/parts/api/v2/parts/parts-or-questions",
|
url: "/parts/api/v3/parts/parts-or-questions",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
},
|
},
|
||||||
GetParts: {
|
GetParts: {
|
||||||
|
|
|
||||||
|
|
@ -1971,7 +1971,7 @@ export const actions = {
|
||||||
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
||||||
|
|
||||||
const partsOrQuestionsEndpoint = vehicle.vinRequired
|
const partsOrQuestionsEndpoint = vehicle.vinRequired
|
||||||
? endpoints.GetPartsOrQuestionsV2
|
? endpoints.GetPartsOrQuestionsV3
|
||||||
: endpoints.GetPartsOrQuestions;
|
: endpoints.GetPartsOrQuestions;
|
||||||
|
|
||||||
const response = await globalMethods
|
const response = await globalMethods
|
||||||
|
|
@ -2020,6 +2020,7 @@ export const actions = {
|
||||||
const vehicle = context.getters.vehicle;
|
const vehicle = context.getters.vehicle;
|
||||||
const damage = context.getters.damage;
|
const damage = context.getters.damage;
|
||||||
const order = context.state.order;
|
const order = context.state.order;
|
||||||
|
const payment = context.getters.payment;
|
||||||
|
|
||||||
const carId = vehicle.carId;
|
const carId = vehicle.carId;
|
||||||
const glassArray = damage.glassToReplace;
|
const glassArray = damage.glassToReplace;
|
||||||
|
|
@ -2028,6 +2029,7 @@ export const actions = {
|
||||||
const vin = vehicle.vin;
|
const vin = vehicle.vin;
|
||||||
const serviceType = order.serviceLocation?.appointmentType;
|
const serviceType = order.serviceLocation?.appointmentType;
|
||||||
const referralSeqNumber = order.referralSequenceNumber;
|
const referralSeqNumber = order.referralSequenceNumber;
|
||||||
|
const parentAccountNumber = payment.parentAccountNumber;
|
||||||
|
|
||||||
// create a new array to avoid mutating state
|
// create a new array to avoid mutating state
|
||||||
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
const glassArrayForPayload = convertGlassPieceNamingForApi(glassArray);
|
||||||
|
|
@ -2044,6 +2046,7 @@ export const actions = {
|
||||||
vin: vin,
|
vin: vin,
|
||||||
serviceType: serviceType,
|
serviceType: serviceType,
|
||||||
referralSeqNumber: referralSeqNumber,
|
referralSeqNumber: referralSeqNumber,
|
||||||
|
parentAccountNumber: parentAccountNumber,
|
||||||
},
|
},
|
||||||
logApiCall: true,
|
logApiCall: true,
|
||||||
pageNameToLog: pageNameToLog,
|
pageNameToLog: pageNameToLog,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue