mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 00:11:16 -05:00
Endpoint to allow SES updates to occur
- update notification with delivery state
This commit is contained in:
@@ -3,6 +3,21 @@ from flask import current_app
|
||||
from monotonic import monotonic
|
||||
from app.clients.email import (EmailClientException, EmailClient)
|
||||
|
||||
ses_response_status = {
|
||||
'Bounce': {
|
||||
"success": False,
|
||||
"notify_status": 'bounce'
|
||||
},
|
||||
'Delivery': {
|
||||
"success": True,
|
||||
"notify_status": 'delivered'
|
||||
},
|
||||
'Complaint': {
|
||||
"success": False,
|
||||
"notify_status": 'complaint'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class AwsSesClientException(EmailClientException):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user