This commit is contained in:
Beverly Nguyen
2025-10-20 12:26:07 -07:00
parent afef4978f9
commit 3127de7711
4 changed files with 8 additions and 13 deletions

View File

@@ -78,5 +78,10 @@ class OrganizationsClient(NotifyAdminAPIClient):
params={"year": str(year)},
)
def get_organization_message_usage(self, org_id):
return self.get(
url="/organizations/{}/message-allowance".format(org_id),
)
organizations_client = OrganizationsClient()

View File

@@ -561,11 +561,6 @@ class ServiceAPIClient(NotifyAdminAPIClient):
url="service/get-service-message-ratio?service_id={0}".format(service_id),
)
def get_organization_message_usage(self, org_id):
return self.get(
url="/organizations/{0}/message-allowance".format(org_id),
)
service_api_client = ServiceAPIClient()