mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Updates to fire text integration:
- client updated to raise errors with fire text error codes/messages New endpoint - /notifications/sms/firetext For delivery notifications to be sent to.
This commit is contained in:
@@ -9,6 +9,24 @@ from requests import request, RequestException, HTTPError
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
firetext_response_status = {
|
||||
'0': {
|
||||
"firetext_message": 'delivered',
|
||||
"success": True,
|
||||
"notify_status": 'delivered'
|
||||
},
|
||||
'1': {
|
||||
"firetext_message": 'declined',
|
||||
"success": False,
|
||||
"notify_status": 'failed'
|
||||
},
|
||||
'2': {
|
||||
"firetext_message": 'Undelivered (Pending with Network)',
|
||||
"success": False,
|
||||
"notify_status": 'sent'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class FiretextClientException(SmsClientException):
|
||||
def __init__(self, response):
|
||||
|
||||
Reference in New Issue
Block a user