""" Options: Date: 2025-10-31 17:43:19 Version: 8.80 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.bokamera.se #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: ReportQuery.* #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 class ICompany: company_id: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BaseModel: pass @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class PrintoutBase(BaseModel): # @Required() company_id: Optional[str] = None id: int = 0 # @Required() name: Optional[str] = None header_left_cell: Optional[str] = None header_middle_cell: Optional[str] = None header_right_cell: Optional[str] = None # @Required() body_cell: Optional[str] = None footer_left_cell: Optional[str] = None footer_middle_cell: Optional[str] = None footer_right_cell: Optional[str] = None modified_date: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BookingPrintout(PrintoutBase): # @Required() company_id: Optional[str] = None id: int = 0 # @Required() name: Optional[str] = None header_left_cell: Optional[str] = None header_middle_cell: Optional[str] = None header_right_cell: Optional[str] = None # @Required() body_cell: Optional[str] = None footer_left_cell: Optional[str] = None footer_middle_cell: Optional[str] = None footer_right_cell: Optional[str] = None message_template: Optional[str] = None language: Optional[str] = None modified_date: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ReportQueryResponse: id: int = 0 company_id: Optional[str] = None name: Optional[str] = None # @Route("/bookings/reports/", "GET") # @ValidateRequest(Validator="IsAuthenticated") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ReportQuery(QueryDb2[BookingPrintout, ReportQueryResponse], IReturn[QueryResponse[ReportQueryResponse]], ICompany): # @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") company_id: Optional[str] = None """ The company id, if empty will use the company id for the user you are logged in with. """