mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Added a comment to explain how the delivery receipt will affect the notification status.
This commit is contained in:
@@ -10,6 +10,11 @@ from app.clients import STATISTICS_DELIVERED, STATISTICS_FAILURE
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
# Firetext will send a delivery receipt with three different status codes.
|
||||||
|
# The `firetext_response` maps these codes to the notification statistics status and notification status.
|
||||||
|
# If we get a pending (status = 2) delivery receipt followed by a declined (status = 1) delivery receipt we will set
|
||||||
|
# the notification status to temporary-failure rather than permanent failure.
|
||||||
|
# See the code in the notification_dao.update_notifications_status_by_id
|
||||||
firetext_responses = {
|
firetext_responses = {
|
||||||
'0': {
|
'0': {
|
||||||
"message": 'Delivered',
|
"message": 'Delivered',
|
||||||
|
|||||||
Reference in New Issue
Block a user