CSR-1137 | Change index.js to get-mobile-premium-fee

This commit is contained in:
Scott Kiener 2023-05-31 10:06:20 -04:00
parent 752de5f0eb
commit 24a2b0719f

View file

@ -1243,13 +1243,13 @@ export const actions = {
});
},
getMobileEarlyBirdFee(context) {
getMobilePremiumFee(context) {
const damageType = context.getters.damage.isRepair ? "Repair" : "Replace";
const paymentType = context.getters.order.payment.isInsurance ? "Insurance" : "Cash";
return globalMethods.callHttpClient({
method: endpoints.GetMobileEarlyBirdFee.method,
endpoint: `${endpoints.GetMobileEarlyBirdFee.url}/${paymentType}/${damageType}`,
method: endpoints.GetMobilePremiumFee.method,
endpoint: `${endpoints.GetMobilePremiumFee.url}/${paymentType}/${damageType}`,
});
},