From c29c18ec5c647497b292bf6a4928ccb4e296763f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 28 Oct 2019 01:26:10 -0500 Subject: [PATCH] Add enum for "member contact preference" --- corepos/enum.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/corepos/enum.py b/corepos/enum.py index fd3b238..62c16ac 100644 --- a/corepos/enum.py +++ b/corepos/enum.py @@ -79,3 +79,16 @@ HOUSE_COUPON_MINIMUM_TYPE = OrderedDict([ (HOUSE_COUPON_MINIMUM_TYPE_QTY_MORE_THAN, "Quantity (more than)"), (HOUSE_COUPON_MINIMUM_TYPE_QTY_AT_LEAST, "Quantity (at least)"), ]) + + +MEMBER_CONTACT_PREFERENCE_NO_CONTACT = 0 +MEMBER_CONTACT_PREFERENCE_POSTAL_MAIL_ONLY = 1 +MEMBER_CONTACT_PREFERENCE_EMAIL_ONLY = 2 +MEMBER_CONTACT_PREFERENCE_BOTH = 3 + +MEMBER_CONTACT_PREFERENCE = OrderedDict([ + (MEMBER_CONTACT_PREFERENCE_NO_CONTACT, "no contact"), + (MEMBER_CONTACT_PREFERENCE_POSTAL_MAIL_ONLY, "postal mail only"), + (MEMBER_CONTACT_PREFERENCE_EMAIL_ONLY, "email only"), + (MEMBER_CONTACT_PREFERENCE_BOTH, "both (postal mail and email)"), +])