-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add organisation member invite schemas.
Towards NA-419.
- Loading branch information
1 parent
ef45bf2
commit 64dd2be
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from .base import BaseModel | ||
|
||
|
||
class OrganisationMemberInviteBase(BaseModel): | ||
#: The ID of the Organisation the invite relates to | ||
organisation_id: str | ||
#: The email the invite is to be sent to | ||
email: str | ||
|
||
|
||
class OrganisationMemberInviteCreate(OrganisationMemberInviteBase): | ||
"""Create an invitation to join an Organisation.""" | ||
|
||
pass | ||
|
||
|
||
class OrganisationMemberInviteGet(OrganisationMemberInviteBase): | ||
"""View of an invitation to join an Organisation.""" | ||
|
||
#: The ID of this invite | ||
id: str | ||
#: If True this invite has been accepted (emailed link has been visited) | ||
accepted: bool | ||
#: If True the invitation has been linked with an existing User | ||
has_user: bool |