-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.py
30 lines (26 loc) · 1.11 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Constants for the mail app"""
EMAIL_VERIFICATION = "verification"
EMAIL_PW_RESET = "password_reset"
EMAIL_BULK_ENROLL = "bulk_enroll"
EMAIL_COURSE_RUN_ENROLLMENT = "course_run_enrollment"
EMAIL_COURSE_RUN_UNENROLLMENT = "course_run_unenrollment"
EMAIL_B2B_RECEIPT = "b2b_receipt"
EMAIL_PRODUCT_ORDER_RECEIPT = "product_order_receipt"
EMAIL_CHANGE_EMAIL = "change_email"
EMAIL_WELCOME_COURSE_RUN_ENROLLMENT = "welcome_course_run_enrollment"
EMAIL_TYPE_DESCRIPTIONS = {
EMAIL_VERIFICATION: "Verify Email",
EMAIL_PW_RESET: "Password Reset",
EMAIL_BULK_ENROLL: "Bulk Enrollment",
EMAIL_COURSE_RUN_ENROLLMENT: "Course Run Enrollment",
EMAIL_B2B_RECEIPT: "Enrollment Code Purchase Receipt",
EMAIL_CHANGE_EMAIL: "Change Email",
EMAIL_WELCOME_COURSE_RUN_ENROLLMENT: "Welcome Course Run Enrollment",
}
MAILGUN_API_DOMAIN = "api.mailgun.net"
MAILGUN_DELIVERED = "delivered"
MAILGUN_FAILED = "failed"
MAILGUN_OPENED = "opened"
MAILGUN_CLICKED = "clicked"
MAILGUN_EVENTS = [MAILGUN_DELIVERED, MAILGUN_FAILED, MAILGUN_OPENED, MAILGUN_CLICKED]
MAILGUN_EVENT_CHOICES = [(event, event) for event in MAILGUN_EVENTS]