""" Options: Date: 2024-12-23 11:36:25 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: ShareAdMessageLinkUsedRequest.* #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 class Locale(str, Enum): EN_US = 'EnUs' NB_NO = 'NbNo' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SharingUser: first_name: Optional[str] = None last_name: Optional[str] = None profile_photo_url: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OpeningHour: open_at_hour: int = 0 open_at_minute: int = 0 close_at_hour: int = 0 close_at_minute: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class WeeklyOpeningHours: monday: Optional[OpeningHour] = None tuesday: Optional[OpeningHour] = None wednesday: Optional[OpeningHour] = None thursday: Optional[OpeningHour] = None friday: Optional[OpeningHour] = None saturday: Optional[OpeningHour] = None sunday: Optional[OpeningHour] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OpeningHours: weekly: Optional[WeeklyOpeningHours] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TimeZoneDto: base_utc_offset: datetime.timedelta = datetime.timedelta() daylight_name: Optional[str] = None display_name: Optional[str] = None id: Optional[str] = None standard_name: Optional[str] = None supports_daylight_saving_time: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SharedRootCategory: name: Optional[str] = None absolute_slug: Optional[str] = None class PriceMainDish(str, Enum): VALUE = 'Value' MEDIUM = 'Medium' HIGH = 'High' FINE_DINING = 'FineDining' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SharePriceMainDish: label: Optional[str] = None slug: Optional[PriceMainDish] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ShareWearPriceProfile: label: Optional[str] = None slug: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SharedPlace: id: int = 0 guid: Optional[str] = None name: Optional[str] = None logo_url: Optional[str] = None image_url: Optional[str] = None opening_hours: Optional[OpeningHours] = None time_zone_dto: Optional[TimeZoneDto] = None root_categories: Optional[List[SharedRootCategory]] = None price_main_dish: Optional[SharePriceMainDish] = None wear_price_profiles: Optional[List[ShareWearPriceProfile]] = None class SharingState(str, Enum): TEASER = 'Teaser' AWARDED = 'Awarded' SELF_SHARE = 'SelfShare' EXPIRED = 'Expired' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SharedAdMessage: id: int = 0 guid: Optional[str] = None title: Optional[str] = None image_url: Optional[str] = None start_at: datetime.datetime = datetime.datetime(1, 1, 1) stop_at: datetime.datetime = datetime.datetime(1, 1, 1) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ShareAdMessageLinkUsedResponse: user: Optional[SharingUser] = None ad_message: Optional[SharedAdMessage] = None place: Optional[SharedPlace] = None expires_at: Optional[datetime.datetime] = None state: Optional[SharingState] = None # @Route("/share/share-ad-message-link-used", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ShareAdMessageLinkUsedRequest(IReturn[ShareAdMessageLinkUsedResponse], IPost): share_ad_message_token: Optional[str] = None locale: Optional[Locale] = None