feat(multi-tenant): define the send status and bounce type
This commit is contained in:
parent
b6f8b70f69
commit
cc90c862d7
15
apps/notification/common/constants/email.py
Normal file
15
apps/notification/common/constants/email.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
from enum import Enum
|
||||||
|
|
||||||
|
class EmailSendStatus(Enum):
|
||||||
|
PENDING = "pending"
|
||||||
|
SENDING = "sending"
|
||||||
|
SENT = "sent"
|
||||||
|
FAILED = "failed"
|
||||||
|
BOUNCED = "bounced"
|
||||||
|
|
||||||
|
class BounceType(Enum):
|
||||||
|
HARD_BOUNCE = "hard_bounce"
|
||||||
|
SOFT_BOUNCE = "soft_bounce"
|
||||||
|
SPAM_REPORT = "spam_report"
|
||||||
|
UNSUBSCRIBE = "unsubscribe"
|
||||||
|
BLOCKED = "blocked"
|
||||||
Loading…
Reference in New Issue
Block a user