""" Options: Date: 2024-11-21 12:04:07 Version: 8.23 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.bokamera.se #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetAllBookingQueueForUser.* #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 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BookingUserQueueItemResponse: booking_user_queue_id: int = 0 company_id: Optional[str] = None customer_id: Optional[str] = None service_id: int = 0 from_: datetime.datetime = field(metadata=config(field_name='from'), default=datetime.datetime(1, 1, 1)) to: datetime.datetime = datetime.datetime(1, 1, 1) status_code: int = 0 status_name: Optional[str] = None send_confirmation_time: Optional[datetime.datetime] = None quantities: Optional[List[BookingUserQueuePriceResponse]] = None service: Optional[ServiceInfoResponse] = None company: Optional[CompanyInfoResponse] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetAllBookingQueueForUserResponse: booking_user_queue_response_list: Optional[List[BookingUserQueueItemResponse]] = None response_status: Optional[ResponseStatus] = None # @Route("/bookinguserqueue/user", "GET") # @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) # @ValidateRequest(Validator="IsAuthenticated") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetAllBookingQueueForUser(IReturn[GetAllBookingQueueForUserResponse]): # @ApiMember(Description="The user id for your profile. If not set it will set it automatically from your session") user_id: Optional[str] = None """ The user id for your profile. If not set it will set it automatically from your session """ date_start: Optional[datetime.datetime] = None date_end: Optional[datetime.datetime] = None # @ApiMember(DataType="boolean", Description="If you want to include the service information for the booking", ParameterType="query") include_service_information: bool = False """ If you want to include the service information for the booking """ # @ApiMember(DataType="boolean", Description="If you want to include the company information for the booking", ParameterType="query") include_company_information: bool = False """ If you want to include the company information for the booking """