""" Options: Date: 2024-11-21 11:57:41 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: 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 BookingPrintout(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 BookingPrintoutQueryResponse: # @ApiMember(Description="Report id") id: int = 0 """ Report id """ # @ApiMember(Description="Report Name") name: Optional[str] = None """ Report Name """ # @ApiMember(Description="Report header left cell content", IsRequired=true) header_left_cell: Optional[str] = None """ Report header left cell content """ # @ApiMember(Description="Report header middle cell content", IsRequired=true) header_middle_cell: Optional[str] = None """ Report header middle cell content """ # @ApiMember(Description="Report header right cell content", IsRequired=true) header_right_cell: Optional[str] = None """ Report header right cell content """ # @ApiMember(Description="Report body cell content", IsRequired=true) body_cell: Optional[str] = None """ Report body cell content """ # @ApiMember(Description="Report footer left cell content", IsRequired=true) footer_left_cell: Optional[str] = None """ Report footer left cell content """ # @ApiMember(Description="Report footer middle cell content", IsRequired=true) footer_middle_cell: Optional[str] = None """ Report footer middle cell content """ # @ApiMember(Description="Report footer right cell content", IsRequired=true) footer_right_cell: Optional[str] = None """ Report footer right cell content """ # @Route("/bookings/reports/", "GET") # @ValidateRequest(Validator="IsAuthenticated") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ReportQuery(QueryDb2[BookingPrintout, BookingPrintoutQueryResponse], IReturn[QueryResponse[BookingPrintoutQueryResponse]], 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. """