Remove ft from method name and url, it doesn't add any meaning.

This commit is contained in:
Rebecca Law
2019-07-22 14:34:15 +01:00
parent 82d3bfcc85
commit e0bcad77f5
4 changed files with 11 additions and 11 deletions

View File

@@ -3,15 +3,15 @@ from app.notify_client import NotifyAdminAPIClient
class BillingAPIClient(NotifyAdminAPIClient):
def get_billable_units_ft(self, service_id, year):
def get_billable_units(self, service_id, year):
return self.get(
'/service/{0}/billing/ft-monthly-usage'.format(service_id),
'/service/{0}/billing/monthly-usage'.format(service_id),
params=dict(year=year)
)
def get_service_usage_ft(self, service_id, year=None):
def get_service_usage(self, service_id, year=None):
return self.get(
'/service/{0}/billing/ft-yearly-usage-summary'.format(service_id),
'/service/{0}/billing/yearly-usage-summary'.format(service_id),
params=dict(year=year)
)