From 475b49c3caad559a8cf85c84fffa676de42d899f Mon Sep 17 00:00:00 2001 From: Juliana Kang Date: Fri, 19 Jul 2024 08:59:55 -0400 Subject: [PATCH] feat: Add waffle flag for First Purchase Discount override (#35133) REV-4097 --- openedx/features/discounts/applicability.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openedx/features/discounts/applicability.py b/openedx/features/discounts/applicability.py index 1bb895f7f90f..b158a5f45a42 100644 --- a/openedx/features/discounts/applicability.py +++ b/openedx/features/discounts/applicability.py @@ -28,6 +28,18 @@ from common.djangoapps.track import segment +# .. toggle_name: discounts.enable_first_purchase_discount_override +# .. toggle_implementation: WaffleFlag +# .. toggle_default: False +# .. toggle_description: Waffle flag to enable the First Purchase Discount to be overriden from +# EDXWELCOME/BIENVENIDOAEDX 15% discount to a new code. +# .. toggle_use_cases: opt_in +# .. toggle_creation_date: 2024-07-18 +# .. toggle_target_removal_date: None +# .. toggle_tickets: REV-4097 +# .. toggle_warning: This feature toggle does not have a target removal date. +FIRST_PURCHASE_DISCOUNT_OVERRIDE_FLAG = WaffleFlag('discounts.enable_first_purchase_discount_override', __name__) + # .. toggle_name: discounts.enable_discounting # .. toggle_implementation: WaffleFlag # .. toggle_default: False