import { storeActions } from "@/constants/store-actions"; import baseMixin from "@/mixins/base-mixin.js"; export async function getPricedMobileFeePart(serviceZipCode) { if (!serviceZipCode) { return Promise.resolve(null); } const zipCodeData = await baseMixin.methods.getZipCodeData(serviceZipCode); // Get the Mobile Fee Part const mobileFeePart = await baseMixin.methods.dispatchStoreAction( storeActions.GET_MOBILE_FEE_PART, null, false ); // Get the Mobile Fee Part Price const pricingResults = await baseMixin.methods.dispatchStoreAction( storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA, { availableLineItems: [mobileFeePart.data], serviceZipCode: serviceZipCode, ctu: zipCodeData.zipCodeCtu, }, false ); return Promise.resolve(pricingResults[0]); }