Rename API client methods to remove term ‘whitelist’

See c31264d4c for rationale. To avoid confusion the codebase should use
the same terminology as the UI.
This commit is contained in:
Chris Hill-Scott
2020-06-12 09:05:26 +01:00
parent 23f9728108
commit 16cc640822
5 changed files with 15 additions and 15 deletions

View File

@@ -326,11 +326,11 @@ class ServiceAPIClient(NotifyAdminAPIClient):
def get_monthly_notification_stats(self, service_id, year):
return self.get(url='/service/{}/notifications/monthly?year={}'.format(service_id, year))
def get_whitelist(self, service_id):
def get_guest_list(self, service_id):
return self.get(url='/service/{}/whitelist'.format(service_id))
@cache.delete('service-{service_id}')
def update_whitelist(self, service_id, data):
def update_guest_list(self, service_id, data):
return self.put(url='/service/{}/whitelist'.format(service_id), data=data)
def get_inbound_sms(self, service_id, user_number=''):