mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
- moved get_current_financial_year_start_year from service.utils to dao.date_utils - Moved logic for data persistence from rest to dao when updating records in db
15 lines
480 B
Python
15 lines
480 B
Python
from app.schema_validation.definitions import uuid, https_url
|
|
|
|
|
|
create_or_update_free_sms_fragment_limit_schema = {
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"description": "POST annual billing schema",
|
|
"type": "object",
|
|
"title": "Create",
|
|
"properties": {
|
|
"free_sms_fragment_limit": {"type": "integer", "minimum": 1},
|
|
"financial_year_start": {"type": "integer", "minimum": 2016}
|
|
},
|
|
"required": ["free_sms_fragment_limit"]
|
|
}
|