Skip to content

Commit

Permalink
feat: add required fields for member creation
Browse files Browse the repository at this point in the history
  • Loading branch information
waza-ari committed Jan 8, 2024
1 parent a7e954f commit b9292c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easyverein/models/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ class MemberUpdate(Member):
isApplication: bool | None = Field(
default=None, serialization_alias="_isApplication"
)
paymentStartDate: DateTime | None = Field(
default=None, serialization_alias="_paymentStartDate"
)

pass

Expand All @@ -114,6 +117,8 @@ class MemberCreate(MemberUpdate, required_mixin(["contactDetails"])):
Pydantic model for creating a new member
"""

emailOrUserName: str


from .contact_details import ContactDetails # noqa: E402
from .member_custom_field import MemberCustomField # noqa: E402

0 comments on commit b9292c9

Please sign in to comment.