Replaced GetMobileFeePart Mocky with real call
This commit is contained in:
parent
bcee963f9a
commit
1613e192e3
1 changed files with 6 additions and 2 deletions
|
|
@ -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}`,
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue