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)"), +])