diff --git a/src/store/index.js b/src/store/index.js index c4c43aab4..9458b993d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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}`, }); },