From 1613e192e3bbba49e7b127a1dad92b935c247800 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Tue, 14 Mar 2023 13:27:12 -0400 Subject: [PATCH] Replaced GetMobileFeePart Mocky with real call --- src/store/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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}`, }); },