""" Options: Date: 2024-11-23 09:19:36 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: BookingPrintoutQuery.* #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("/reports/booking/printout", "Get") # @ValidateRequest(Validator="IsAuthenticated") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BookingPrintoutQuery(QueryDb2[BookingPrintout, BookingPrintoutQueryResponse], IReturn[QueryResponse[BookingPrintoutQueryResponse]], ICompany): # @ApiMember(Description="Enter the company you want to see add a token for, if blank and you are an admin, your company id will be used", ParameterType="query") company_id: Optional[str] = None """ Enter the company you want to see add a token for, if blank and you are an admin, your company id will be used """ # @ApiMember(Description="Report id", ParameterType="query") id: Optional[int] = None """ Report id """