mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Update mmg responses so that 3 is success.
Status codes from mmg are: 2: UNDELIVERABLE Message is undeliverable. 3: DELIVERED Message is delivered. 4: EXPIRED Message is expired. 5: REJECTED Message is rejected.
This commit is contained in:
@@ -6,13 +6,7 @@ from app.clients import (STATISTICS_DELIVERED, STATISTICS_FAILURE)
|
||||
from app.clients.sms import (SmsClient, SmsClientException)
|
||||
|
||||
mmg_response_map = {
|
||||
'00': {
|
||||
"message": 'Delivered',
|
||||
"notification_statistics_status": STATISTICS_DELIVERED,
|
||||
"success": True,
|
||||
"notification_status": 'delivered'
|
||||
},
|
||||
'0': {
|
||||
'3': {
|
||||
"message": 'Delivered',
|
||||
"notification_statistics_status": STATISTICS_DELIVERED,
|
||||
"success": True,
|
||||
|
||||
Reference in New Issue
Block a user