""" Options: Date: 2025-12-06 09:23:17 Version: 8.80 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: ListingSummaryRequest.* #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 ListingSummary: agent_level: Decimal = decimal.Decimal(0) agent_points: Optional[str] = None agent_policy_numbers: Optional[str] = None agent_y_t_d_total: Decimal = decimal.Decimal(0) agent_r_total: Decimal = decimal.Decimal(0) agent_overall_total: Decimal = decimal.Decimal(0) agent_next_level_prerequired: Decimal = decimal.Decimal(0) agent_current_y_t_d_total: Decimal = decimal.Decimal(0) agent_current_running_total: Decimal = decimal.Decimal(0) agent_level_calculated_from_listing_part: Decimal = decimal.Decimal(0) agent_required_before_next_level: Decimal = decimal.Decimal(0) agent_adjustment_total: Decimal = decimal.Decimal(0) agent_commission_subtotal: Decimal = decimal.Decimal(0) agent_balance_forward: Decimal = decimal.Decimal(0) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ListingSummaryResponse: response_status: Optional[ResponseStatus] = None listing_summary: List[ListingSummary] = field(default_factory=list) # @Route("/v1/ListingSummary", "GET,POST,PUT,DELETE,OPTIONS") # @Route("/v1/ListingSummary/{ID}", "GET,POST,PUT,DELETE,OPTIONS") # @Route("/v1/ListingSummary/DateRange/{ParamStartDate}/{ParamEndDate}", "GET,POST,PUT,DELETE,OPTIONS") # @Route("/v1/ListingSummary/DateRange/{ParamStartDate}/{ParamEndDate}/{AgentID}", "GET,POST,PUT,DELETE,OPTIONS") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ListingSummaryRequest(IReturn[ListingSummaryResponse]): listing_summary: List[ListingSummary] = field(default_factory=list) agent_i_d: int = 0 param_start_date: datetime.datetime = datetime.datetime(1, 1, 1) param_end_date: datetime.datetime = datetime.datetime(1, 1, 1)