CASH-152: refactor/improve service-package-helper
This commit is contained in:
parent
d74c50c53e
commit
58f2efcedb
3 changed files with 4 additions and 4 deletions
|
|
@ -169,7 +169,7 @@ import { deepClone } from "@/helpers/object-helper";
|
||||||
import {
|
import {
|
||||||
getHighestFullySatisfiedTier,
|
getHighestFullySatisfiedTier,
|
||||||
getPackageContents,
|
getPackageContents,
|
||||||
getDiscountPackageName,
|
getDiscountedPackageName,
|
||||||
} from "@/helpers/service-package-helper";
|
} from "@/helpers/service-package-helper";
|
||||||
import { getPromoCodeWithoutBundleIdentifier } from "@/helpers/promotions-helper";
|
import { getPromoCodeWithoutBundleIdentifier } from "@/helpers/promotions-helper";
|
||||||
import { storeActions } from "@/constants/store-actions";
|
import { storeActions } from "@/constants/store-actions";
|
||||||
|
|
@ -473,7 +473,7 @@ export default {
|
||||||
const discountServicePackage = experimentMixin.methods.getSettingValue(
|
const discountServicePackage = experimentMixin.methods.getSettingValue(
|
||||||
experimentSettings.PROMO_ON_PACKAGE
|
experimentSettings.PROMO_ON_PACKAGE
|
||||||
);
|
);
|
||||||
return getDiscountPackageName(discountServicePackage);
|
return getDiscountedPackageName(discountServicePackage);
|
||||||
},
|
},
|
||||||
servicePackageTitleWidget() {
|
servicePackageTitleWidget() {
|
||||||
const servicePackageNames = this.getCmsContent(
|
const servicePackageNames = this.getCmsContent(
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,7 @@ export function getPackageNameByType(packageType) {
|
||||||
return package_names[packageType] || null;
|
return package_names[packageType] || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDiscountPackageName(discountPackage) {
|
export function getDiscountedPackageName(discountPackage) {
|
||||||
const package_names = {
|
const package_names = {
|
||||||
ECON: packageNames.TIER_ONE,
|
ECON: packageNames.TIER_ONE,
|
||||||
STANDARD: packageNames.TIER_TWO,
|
STANDARD: packageNames.TIER_TWO,
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ import {
|
||||||
containsLineItemWithPartType,
|
containsLineItemWithPartType,
|
||||||
findLineItemsWithPartType,
|
findLineItemsWithPartType,
|
||||||
getPackageNameByType,
|
getPackageNameByType,
|
||||||
getDiscountPackageName,
|
getDiscountedPackageName,
|
||||||
} from "@/helpers/service-package-helper";
|
} from "@/helpers/service-package-helper";
|
||||||
import {
|
import {
|
||||||
getPromosThatMatchLineItemsOnOrder,
|
getPromosThatMatchLineItemsOnOrder,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue