""" Options: Date: 2024-12-23 11:36:34 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: ReferFriendLinkUsedRequest.* #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 ReferFriendUser: first_name: Optional[str] = None last_name: Optional[str] = None profile_photo_url: Optional[str] = None class ReferFriendState(str, Enum): AVAILABLE = 'Available' AWARDED = 'Awarded' CAN_NOT_REFER_YOURSELF = 'CanNotReferYourself' YOU_WERE_ALREADY_SIGNED_UP = 'YouWereAlreadySignedUp' EXPIRED = 'Expired' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ReferFriendLinkUsedResponse: referring_user: Optional[ReferFriendUser] = None expires_at: Optional[datetime.datetime] = None state: Optional[ReferFriendState] = None # @Route("/share/refer-friend-link-used", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ReferFriendLinkUsedRequest(IReturn[ReferFriendLinkUsedResponse], IPost): refer_friend_token: Optional[str] = None