mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 00:11:16 -05:00
add new notification status 'sent'
for international text messages, when we may not ever receive callback info, so we need a separate status that doesn't get timed out etc
This commit is contained in:
@@ -572,6 +572,7 @@ class VerifyCode(db.Model):
|
||||
|
||||
NOTIFICATION_CREATED = 'created'
|
||||
NOTIFICATION_SENDING = 'sending'
|
||||
NOTIFICATION_SENT = 'sent'
|
||||
NOTIFICATION_DELIVERED = 'delivered'
|
||||
NOTIFICATION_PENDING = 'pending'
|
||||
NOTIFICATION_FAILED = 'failed'
|
||||
@@ -586,6 +587,7 @@ NOTIFICATION_STATUS_TYPES_FAILED = [
|
||||
]
|
||||
|
||||
NOTIFICATION_STATUS_TYPES_COMPLETED = [
|
||||
NOTIFICATION_SENT,
|
||||
NOTIFICATION_DELIVERED,
|
||||
NOTIFICATION_FAILED,
|
||||
NOTIFICATION_TECHNICAL_FAILURE,
|
||||
@@ -595,6 +597,7 @@ NOTIFICATION_STATUS_TYPES_COMPLETED = [
|
||||
|
||||
NOTIFICATION_STATUS_TYPES_BILLABLE = [
|
||||
NOTIFICATION_SENDING,
|
||||
NOTIFICATION_SENT,
|
||||
NOTIFICATION_DELIVERED,
|
||||
NOTIFICATION_FAILED,
|
||||
NOTIFICATION_TECHNICAL_FAILURE,
|
||||
@@ -605,6 +608,7 @@ NOTIFICATION_STATUS_TYPES_BILLABLE = [
|
||||
NOTIFICATION_STATUS_TYPES = [
|
||||
NOTIFICATION_CREATED,
|
||||
NOTIFICATION_SENDING,
|
||||
NOTIFICATION_SENT,
|
||||
NOTIFICATION_DELIVERED,
|
||||
NOTIFICATION_PENDING,
|
||||
NOTIFICATION_FAILED,
|
||||
|
||||
Reference in New Issue
Block a user