CASH-2496 - Added Account Number to be passed in to Wipers Endpoint

This commit is contained in:
Minojhini Valaiyapathi 2026-03-31 07:25:29 -04:00
parent 3fe0ab8755
commit a016cee0de
6 changed files with 10 additions and 7 deletions

View file

@ -543,7 +543,7 @@
{ path: '/parts/damage-options/CR00046193', method: 'GET' }, { path: '/parts/damage-options/CR00046193', method: 'GET' },
{ path: '/parts/rain-repel', method: 'GET' }, { path: '/parts/rain-repel', method: 'GET' },
{ 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/167132', method: 'GET' },
{ path: '/parts/mobile-premium-fee/Cash/Replace', method: 'GET' }, { path: '/parts/mobile-premium-fee/Cash/Replace', method: 'GET' },
{ 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' },
] ]

View file

@ -167,8 +167,9 @@ export default {
const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging( const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.GET_WIPERS, storeActions.GET_WIPERS,
{ {
serviceZipCode: submittedOrder.serviceLocation.zipCode, // serviceZipCode: submittedOrder.serviceLocation.zipCode,
carId: submittedOrder.vehicle.carId, carId: submittedOrder.vehicle.carId,
accountNumber: submittedOrder.payment.parentAccountNumber,
}, },
"confirmation" "confirmation"
); );

View file

@ -222,8 +222,9 @@ export default {
const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging( const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.GET_WIPERS, storeActions.GET_WIPERS,
{ {
serviceZipCode: store.getters.order.serviceLocation.zipCode, // serviceZipCode: store.getters.order.serviceLocation.zipCode,
carId: store.getters.vehicle.carId, carId: store.getters.vehicle.carId,
accountNumber: store.getters.payment.parentAccountNumber,
}, },
"payment-method" "payment-method"
); );

View file

@ -35,8 +35,8 @@ export default {
const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging( const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.GET_WIPERS, storeActions.GET_WIPERS,
{ {
serviceZipCode: store.getters.order.serviceLocation.zipCode,
carId: store.getters.vehicle.carId, carId: store.getters.vehicle.carId,
accountNumber: store.getters.payment.parentAccountNumber,
}, },
"review" "review"
); );

View file

@ -217,8 +217,8 @@ export default {
const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging( const wipersPromise = baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.GET_WIPERS, storeActions.GET_WIPERS,
{ {
serviceZipCode: store.getters.order.serviceLocation.zipCode,
carId: store.getters.vehicle.carId, carId: store.getters.vehicle.carId,
accountNumber: store.getters.payment.parentAccountNumber,
}, },
"quote" "quote"
); );

View file

@ -1958,12 +1958,13 @@ export const actions = {
async getWipers(context, { payload, pageNameToLog }) { async getWipers(context, { payload, pageNameToLog }) {
const carId = payload.carId; const carId = payload.carId;
const serviceZipCode = payload.serviceZipCode; // const serviceZipCode = payload.serviceZipCode;
const accountNumber = context.getters.payment.parentAccountNumber;
const response = await globalMethods const response = await globalMethods
.callHttpClient({ .callHttpClient({
method: endpoints.GetWipers.method, method: endpoints.GetWipers.method,
endpoint: `${endpoints.GetWipers.url}/${carId}/${serviceZipCode}`, endpoint: `${endpoints.GetWipers.url}/${carId}/${accountNumber}`,
logApiCall: true, logApiCall: true,
pageNameToLog: pageNameToLog, pageNameToLog: pageNameToLog,
}) })