""" Options: Date: 2025-05-04 13:58:21 Version: 8.71 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://team.evovoice.io #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: TestSchedule.* #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 Schedule: time_zone_id: Optional[str] = None inherit: bool = False force_closed: bool = False rules: Optional[List[SchedulingRule]] = None default_state: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TestScheduleResponse: state_name: Optional[str] = None time_zone_id: Optional[str] = None # @Route("/customers/{customerId}/test-schedule", "POST") # @Route("/endpoints/{endpointId}/test-schedule", "POST") # @Api(Description="Test the customer's schedule") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TestSchedule(IReturn[TestScheduleResponse]): """ Test the customer's schedule """ # @ApiMember(Description="The ID of the customer whose schedule you want to test") customer_id: Optional[str] = None """ The ID of the customer whose schedule you want to test """ # @ApiMember(Description="The ID of the endpoint whose schedule you want to test.") endpoint_id: Optional[str] = None """ The ID of the endpoint whose schedule you want to test. """ # @ApiMember(Description="The schedule to use (leave null to use the current saved schedule)") schedule: Optional[Schedule] = None """ The schedule to use (leave null to use the current saved schedule) """ # @ApiMember(Description="The ISO string of the date and time you want to test") date_time: Optional[str] = None """ The ISO string of the date and time you want to test """