""" Options: Date: 2024-12-23 13:06:21 Version: 8.0 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://consumer-api.brovs.com #GlobalNamespace: ConsumerApi #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: UserCreateRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum # module ConsumerApi @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class DateOfBirth: year: int = 0 month: int = 0 day_of_month: int = 0 class Sex(str, Enum): MALE = 'Male' FEMALE = 'Female' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UserAddress: street_name: Optional[str] = None street_number: Optional[str] = None postal_code: Optional[str] = None region: Optional[str] = None country_code: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class HomeLocation: address: Optional[UserAddress] = None latitude: float = 0.0 longitude: float = 0.0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UserCreateResponse: sent_verification_email_with_request_id: Optional[str] = None password_score: Optional[int] = None user_guid: Optional[str] = None refer_friend_awarded: bool = False # @Route("/signup/create_user", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class UserCreateRequest(IReturn[UserCreateResponse], IPost): token: Optional[str] = None first_name: Optional[str] = None last_name: Optional[str] = None sex: Optional[Sex] = None date_of_birth: Optional[DateOfBirth] = None email: Optional[str] = None password: Optional[str] = None password_confirmation: Optional[str] = None home: Optional[HomeLocation] = None accept_terms_of_service: bool = False refer_friend_token: Optional[str] = None