Merge pull request #3065 from alphagov/rename-endpoint

Remove ft from method and url, it doesn't add any meaning.
This commit is contained in:
Katie Smith
2019-07-29 10:07:31 +01:00
committed by GitHub
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)
)