From 3a440d20bc36ed5fdd21018fab78b9b09a5b7065 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 30 Mar 2020 00:05:26 -0500 Subject: [PATCH] Add enum for product price method --- corepos/enum.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/corepos/enum.py b/corepos/enum.py index 62c16ac..f0860ea 100644 --- a/corepos/enum.py +++ b/corepos/enum.py @@ -92,3 +92,14 @@ MEMBER_CONTACT_PREFERENCE = OrderedDict([ (MEMBER_CONTACT_PREFERENCE_EMAIL_ONLY, "email only"), (MEMBER_CONTACT_PREFERENCE_BOTH, "both (postal mail and email)"), ]) + + +PRODUCT_PRICE_METHOD_DISABLED = 0 +PRODUCT_PRICE_METHOD_ALWAYS = 1 +PRODUCT_PRICE_METHOD_FULL_SETS = 2 + +PRODUCT_PRICE_METHOD = OrderedDict([ + (PRODUCT_PRICE_METHOD_DISABLED, "Disabled"), + (PRODUCT_PRICE_METHOD_ALWAYS, "Always use this price"), + (PRODUCT_PRICE_METHOD_FULL_SETS, "Use this price for full sets"), +])