Rename billing API methods to be recognisable

I struggled to distinguish which was which as neither mentioned if
the data they returned was monthly or annual.
This commit is contained in:
Ben Thorner
2022-04-29 16:25:58 +01:00
parent 3a1ac189ff
commit 4ab7e3ceec
7 changed files with 78 additions and 78 deletions

View File

@@ -134,8 +134,8 @@ def usage(service_id):
year, current_financial_year = requested_and_current_financial_year(request)
free_sms_allowance = billing_api_client.get_free_sms_fragment_limit_for_year(service_id, year)
units = billing_api_client.get_billable_units(service_id, year)
yearly_usage = billing_api_client.get_service_usage(service_id, year)
units = billing_api_client.get_monthly_usage_for_service(service_id, year)
yearly_usage = billing_api_client.get_annual_usage_for_service(service_id, year)
return render_template(
'views/usage.html',
@@ -289,7 +289,7 @@ def get_dashboard_partials(service_id):
current_service.id,
get_current_financial_year(),
)
yearly_usage = billing_api_client.get_service_usage(
yearly_usage = billing_api_client.get_annual_usage_for_service(
service_id,
get_current_financial_year(),
)