""" Options: Date: 2024-11-21 13:33:27 Version: 6.40 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://cip-reporting.chargeitpro.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: LocationSummaryRequest.* #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 Company: company_id: Optional[int] = None company_name: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CompanyProxy: company_id: Optional[int] = None name: Optional[str] = None company_name: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class LocationSummary: location_name: Optional[str] = None location_key: int = 0 count: int = 0 all_cards: Decimal = decimal.Decimal(0) all_c_c: Decimal = decimal.Decimal(0) db: Decimal = decimal.Decimal(0) vsmcdc: Decimal = decimal.Decimal(0) ax: Decimal = decimal.Decimal(0) vs: Decimal = decimal.Decimal(0) mc: Decimal = decimal.Decimal(0) dc: Decimal = decimal.Decimal(0) jc: Decimal = decimal.Decimal(0) cu: Decimal = decimal.Decimal(0) xx: Decimal = decimal.Decimal(0) device_summaries: Optional[List[DeviceSummary]] = None # @Route("/CompanyLocations/Summary/{CompanyId}") # @Route("/CompanyLocations/Summary/{CompanyId}/{UserId}") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class LocationSummaryRequest(IReturn[List[LocationSummary]]): company_id: int = 0 user_id: Optional[str] = None