Skip to content

Commit

Permalink
Add organisation member invite schemas.
Browse files Browse the repository at this point in the history
Towards NA-419.
  • Loading branch information
alexpearce committed Feb 23, 2022
1 parent 96a9722 commit 7354e41
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pipeline/schemas/organisation_member_invite.py
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

0 comments on commit 7354e41

Please sign in to comment.