Return postage from the monthly-usage endpoint

We were already returning the month, notification_type, billing_units
and rate from the /monthly-usage billing endpoint. This adds in the
postage too so that we can display postage details on the usage page of
admin.
This commit is contained in:
Katie Smith
2018-09-27 13:58:01 +01:00
parent 0843503b7a
commit 236bbc5f28
4 changed files with 21 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ def serialize_ft_billing_remove_emails(data):
"notification_type": notification.notification_type,
"billing_units": notification.billable_units,
"rate": float(notification.rate),
"postage": notification.postage,
}
results.append(json_result)
return results