mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
When setting the permisssion to allow inbound numbers the client will call an api endpoint that will set the next avaiable inbound number for the service.
As before the service manager will not be able to change the Text message sender once they have the inbound sms permission. If the inbound sms permission is turned off the Text message sender setting is once more configurable by the service manager. The inbound number remains bound to the service, but has "inactive", so that the number can not be used again.
This commit is contained in:
@@ -12,7 +12,6 @@ class InboundNumberClient(NotifyAdminAPIClient):
|
||||
self.api_key = app.config['ADMIN_CLIENT_SECRET']
|
||||
|
||||
def get_all_inbound_sms_number_service(self):
|
||||
|
||||
return self.get('/inbound_number')
|
||||
|
||||
def get_inbound_sms_number_for_service(self, service_id):
|
||||
@@ -21,11 +20,5 @@ class InboundNumberClient(NotifyAdminAPIClient):
|
||||
def activate_inbound_sms_service(self, service_id):
|
||||
return self.post(url='/inbound-number/service/{}'.format(service_id), data={})
|
||||
|
||||
def reactivate_inbound_sms_service(self, inbound_number_id):
|
||||
return self.post(url='/inbound_number/{}/on'.format(inbound_number_id), data={})
|
||||
|
||||
def deactivate_inbound_sms_permission(self, service_id):
|
||||
return self.post(url='/inbound-number/service/{}/off'.format(service_id), data={})
|
||||
|
||||
def get_available_inbound_number(self):
|
||||
return self.get(url='/inbound_number/available'.format())
|
||||
|
||||
Reference in New Issue
Block a user