feat(multi-tenant): define the send status and bounce type

This commit is contained in:
YuehuCao 2025-08-09 11:57:37 +08:00
parent b6f8b70f69
commit cc90c862d7

View 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"