""" Options: Date: 2024-12-23 11:58:17 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: ProfileUpdatePersonalInformationRequest.* #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' class DistanceUnit(str, Enum): KILOMETER = 'Kilometer' MILE = 'Mile' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ProfileUpdatePersonalInformationResponse: first_name: Optional[str] = None last_name: Optional[str] = None date_of_birth: Optional[DateOfBirth] = None sex: Optional[Sex] = None show_distances_in: Optional[DistanceUnit] = None # @Route("/profile/personal-information", "PUT") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ProfileUpdatePersonalInformationRequest(IReturn[ProfileUpdatePersonalInformationResponse], IPut): first_name: Optional[str] = None last_name: Optional[str] = None date_of_birth: Optional[DateOfBirth] = None sex: Optional[Sex] = None show_distances_in: Optional[DistanceUnit] = None