Add endpoint to get the email reply to addresses for a service

- Changed the dao_get_reply_to_by_service_id method to return a list of
results.
- Added a GET /service/<service_id>/email-reply-to endpoint
This commit is contained in:
Katie Smith
2017-09-13 15:27:00 +01:00
parent 63b62e74bb
commit 72760550bd
6 changed files with 84 additions and 12 deletions

View File

@@ -333,11 +333,13 @@ def create_monthly_billing_entry(
def create_reply_to_email(
service,
email_address
email_address,
is_default=True
):
data = {
'service': service,
'email_address': email_address,
'is_default': is_default,
}
reply_to = ServiceEmailReplyTo(**data)