Replaced GetMobileFeePart Mocky with real call

This commit is contained in:
Leah Schumann 2023-03-14 13:27:12 -04:00
parent bcee963f9a
commit 1613e192e3

View file

@ -916,9 +916,13 @@ export const actions = {
},
getMobileFeePart(context) {
return globalMethods.callMockHttpClient({
const serviceType = context.getters.damage.isRepair ? "Repair" : "Replace";
const parentAccountNumber = context.getters.payment.parentAccountNumber;
const billToAccountNumber = 87291; // TODO: MAKE THIS REAL
return globalMethods.callHttpClient({
method: endpoints.GetMobileFeePart.method,
endpoint: "https://run.mocky.io/v3/795de4cb-d014-48b4-9338-dab33261adce?mocky-delay=3000ms", //TODO: Remove Mocky Endpoint
endpoint: `${endpoints.GetMobileFeePart.url}/${serviceType}/${parentAccountNumber}/${billToAccountNumber}`,
});
},