Temporary endpoint to test the new usage page updates.

This code will go away once we are happy the results match.
This commit is contained in:
Rebecca Law
2018-05-16 12:26:11 +01:00
parent 5910f127d3
commit d8c8b6a454
2 changed files with 45 additions and 0 deletions

View File

@@ -19,6 +19,20 @@ class BillingAPIClient(NotifyAdminAPIClient):
params=dict(year=year)
)
# Temporary methods to compare the usage before and after using ft_billing
def get_billable_units_ft(self, service_id, year):
return self.get(
'/service/{0}/billing/ft-monthly-usage'.format(service_id),
params=dict(year=year)
)
# Temporary methods to compare the usage before and after using ft_billing
def get_service_usage_ft(self, service_id, year=None):
return self.get(
'/service/{0}/billing/ft-yearly-usage-summary'.format(service_id),
params=dict(year=year)
)
def get_free_sms_fragment_limit_for_year(self, service_id, year=None):
result = self.get(
'/service/{0}/billing/free-sms-fragment-limit'.format(service_id),