add plan name filter for discount

This commit is contained in:
Bilal Catic
2019-08-14 12:02:04 +02:00
parent 3403b8e9c4
commit dd4d909b5d
4 changed files with 26 additions and 11 deletions

View File

@@ -117,6 +117,7 @@ const discounts = {
percentage: parseInt(process.env.DISCOUNT_LEVEL_2_PERCENTAGE) || 10,
}
};
const DISCOUNT_PLANS = process.env.DISCOUNT_PLANS.split(',').map(planName => planName.trim()) || [];
module.exports = {
VALID_CSV_HEADERS,
@@ -139,4 +140,5 @@ module.exports = {
CHARGE_BOOKING_CHANGE_UNDER_TIME,
ALLOWED_BOOKING_CANCELLATION_TIME,
discounts,
DISCOUNT_PLANS,
};