Merge pull request #2192 from alphagov/exclude-failed-letters-from-billing

Update billing to ignore failed letters.
This commit is contained in:
Rebecca Law
2018-10-30 09:44:57 +00:00
committed by GitHub
3 changed files with 86 additions and 46 deletions

View File

@@ -1113,6 +1113,12 @@ NOTIFICATION_STATUS_SUCCESS = [
NOTIFICATION_DELIVERED
]
NOTIFICATION_STATUS_TYPES_BILLABLE_FOR_LETTERS = [
NOTIFICATION_SENDING,
NOTIFICATION_DELIVERED,
NOTIFICATION_RETURNED_LETTER,
]
NOTIFICATION_STATUS_TYPES_BILLABLE = [
NOTIFICATION_SENDING,
NOTIFICATION_SENT,