mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-28 11:49:42 -04:00
The free sms allowances are changing for the financial year starting
April 1 2021. In this PR there is a command to set annual_billing for all active services with the the new defaults. The new method `set_default_free_allowance_for_service` will also be called in a PR to follow that will set a services free allowance to the default if the organisation for the service is changed.
This commit is contained in:
@@ -199,6 +199,14 @@ def create_service_with_defined_sms_sender(
|
||||
return service
|
||||
|
||||
|
||||
def create_service_with_organisation(org_type):
|
||||
service = create_service(service_name=f'{org_type} service')
|
||||
org = create_organisation(name=f'{org_type} org', organisation_type=org_type)
|
||||
dao_add_service_to_organisation(service=service, organisation_id=org.id)
|
||||
|
||||
return service
|
||||
|
||||
|
||||
def create_template(
|
||||
service,
|
||||
template_type=SMS_TYPE,
|
||||
|
||||
Reference in New Issue
Block a user