""" Options: Date: 2024-12-23 11:22:10 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: GetSavedSearchesRequest.* #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 Parking(str, Enum): STREET_PARKING = 'StreetParking' PARKING_GARAGE_NEARBY = 'ParkingGarageNearby' class PaymentOption(str, Enum): VISA = 'Visa' MASTER_CARD = 'MasterCard' AMERICAN_EXPRESS = 'AmericanExpress' DINERS = 'Diners' VIPPS = 'Vipps' class PriceMainDish(str, Enum): VALUE = 'Value' MEDIUM = 'Medium' HIGH = 'High' FINE_DINING = 'FineDining' class DayOfWeek(str, Enum): SUNDAY = 'Sunday' MONDAY = 'Monday' TUESDAY = 'Tuesday' WEDNESDAY = 'Wednesday' THURSDAY = 'Thursday' FRIDAY = 'Friday' SATURDAY = 'Saturday' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class OpenAtTimeDto: week_day: Optional[DayOfWeek] = None hour: int = 0 minute: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class QueryFilterDto: term: Optional[str] = None place_guid: Optional[str] = None ad_message_guid: Optional[str] = None category_absolute_slugs: Optional[List[str]] = None bar_speciality_slugs: Optional[List[str]] = None bar_type_slugs: Optional[List[str]] = None brand_names: Optional[List[str]] = None cuisine_slugs: Optional[List[str]] = None meal_type_slugs: Optional[List[str]] = None parking: Optional[List[Parking]] = None payment_options: Optional[List[PaymentOption]] = None price_main_dishes: Optional[List[PriceMainDish]] = None eating_suitability_slugs: Optional[List[str]] = None take_away_slugs: Optional[List[str]] = None wear_price_profile_slugs: Optional[List[str]] = None wheel_chair_accessible: Optional[bool] = None wifi: Optional[bool] = None outdoor_seating: Optional[bool] = None save_food_and_money: Optional[bool] = None open_at: Optional[OpenAtTimeDto] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class QueryLocationDto: longitude: Optional[float] = None latitude: Optional[float] = None search_radius_in_km: Optional[float] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CategoryDto: name: Optional[str] = None slug: Optional[str] = None absolute_slug: Optional[str] = None image_url: Optional[str] = None all_image_url: Optional[str] = None icon_image_url: Optional[str] = None position: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BarSpecialityDto: slug: Optional[str] = None title: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BarTypeDto: slug: Optional[str] = None title: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BrandDto: name: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CuisineDto: label: Optional[str] = None slug: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class MealTypeDto: label: Optional[str] = None slug: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ParkingDto: label: Optional[str] = None slug: Optional[Parking] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class PaymentOptionDto: label: Optional[str] = None slug: Optional[PaymentOption] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class PriceMainDishDto: title: Optional[str] = None slug: Optional[PriceMainDish] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class EatingSuitabilityDto: label: Optional[str] = None slug: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TakeAwayDto: label: Optional[str] = None slug: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class WearPriceProfileDto: slug: Optional[str] = None label: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FilterDetails: categories: Optional[List[CategoryDto]] = None bar_specialities: Optional[List[BarSpecialityDto]] = None bar_types: Optional[List[BarTypeDto]] = None brands: Optional[List[BrandDto]] = None cuisines: Optional[List[CuisineDto]] = None meal_types: Optional[List[MealTypeDto]] = None parking: Optional[List[ParkingDto]] = None payment_options: Optional[List[PaymentOptionDto]] = None price_main_dishes: Optional[List[PriceMainDishDto]] = None eating_suitability: Optional[List[EatingSuitabilityDto]] = None take_aways: Optional[List[TakeAwayDto]] = None wear_price_profiles: Optional[List[WearPriceProfileDto]] = None root_categories: Optional[List[CategoryDto]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SavedSearchDto: id: int = 0 name: Optional[str] = None filter: Optional[QueryFilterDto] = None location: Optional[QueryLocationDto] = None filter_details: Optional[FilterDetails] = None created_at: datetime.datetime = datetime.datetime(1, 1, 1) updated_at: datetime.datetime = datetime.datetime(1, 1, 1) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetSavedSearchesResponse: searches: Optional[List[SavedSearchDto]] = None # @Route("/searches/GetSavedSearches", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetSavedSearchesRequest(IReturn[GetSavedSearchesResponse], IGet): pass