""" Options: Date: 2025-04-04 16:14:12 Version: 5.140 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.clubmanagercentral.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: FindOrder.* #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 OrderInstance: order_id: int = 0 order_number: Optional[str] = None order_code: Optional[str] = None order_amount: Decimal = decimal.Decimal(0) received_date_time: datetime.datetime = datetime.datetime(1, 1, 1) completed_date_time: Optional[datetime.datetime] = None refunded_date_time: Optional[datetime.datetime] = None order_fee: Optional[Decimal] = None # @Route("/api/Query/Order") # @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Order") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FindOrder(QueryDb[OrderInstance], IReturn[QueryResponse[OrderInstance]]): pass