From cc90c862d779ccf54636f4b1e8036efeb8ae2e73 Mon Sep 17 00:00:00 2001 From: YuehuCao Date: Sat, 9 Aug 2025 11:57:37 +0800 Subject: [PATCH] feat(multi-tenant): define the send status and bounce type --- apps/notification/common/constants/email.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apps/notification/common/constants/email.py diff --git a/apps/notification/common/constants/email.py b/apps/notification/common/constants/email.py new file mode 100644 index 0000000..7f03fca --- /dev/null +++ b/apps/notification/common/constants/email.py @@ -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" \ No newline at end of file