Initial commit
This commit is contained in:
commit
376a7a9fe5
71 changed files with 2326 additions and 0 deletions
44
src/organisation/constants.py
Normal file
44
src/organisation/constants.py
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
"""
|
||||
Constants and error codes for organisation module
|
||||
|
||||
Classes:
|
||||
- Status(StrEnum): PARTIAL, SUBMITTED, REMEDIATION, APPROVED, REJECTED, REMOVED
|
||||
- ContactType(StrEnum): BILLING, SECURITY, OWNER
|
||||
"""
|
||||
from enum import StrEnum, auto
|
||||
|
||||
|
||||
class Status(StrEnum):
|
||||
"""
|
||||
Enumeration of organisation statuses.
|
||||
|
||||
Attributes:
|
||||
PARTIAL(str): Organisation has been created but questionnaire hasn't been submitted.
|
||||
SUBMITTED (str): Questionnaire submitted but not approved.
|
||||
REMEDIATION (str): Questionnaire submitted but requires revisions.
|
||||
APPROVED (str): Questionnaire has been approved by an admin.
|
||||
REJECTED (str): Questionnaire has been rejected by an admin.
|
||||
REMOVED (str): Organisation has been removed.
|
||||
"""
|
||||
|
||||
PARTIAL = auto()
|
||||
SUBMITTED = auto()
|
||||
REMEDIATION = auto()
|
||||
APPROVED = auto()
|
||||
REJECTED = auto()
|
||||
REMOVED = auto()
|
||||
|
||||
|
||||
class ContactType(StrEnum):
|
||||
"""
|
||||
Enumeration of organisation contact types.
|
||||
|
||||
Attributes:
|
||||
BILLING(str): Billing contact.
|
||||
SECURITY (str): Security contact.
|
||||
OWNER (str): Owner contact.
|
||||
"""
|
||||
|
||||
BILLING = auto()
|
||||
SECURITY = auto()
|
||||
OWNER = auto()
|
||||
Loading…
Add table
Add a link
Reference in a new issue