/* Options: Date: 2024-11-10 21:35:25 SwiftVersion: 5.0 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: TestSchedule.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Test the customer's schedule */ // @Route("/customers/{customerId}/test-schedule", "POST") // @Route("/endpoints/{endpointId}/test-schedule", "POST") // @Api(Description="Test the customer's schedule") public class TestSchedule : IReturn, Codable { public typealias Return = TestScheduleResponse /** * The ID of the customer whose schedule you want to test */ // @ApiMember(Description="The ID of the customer whose schedule you want to test") public var customerId:String? /** * The ID of the endpoint whose schedule you want to test. */ // @ApiMember(Description="The ID of the endpoint whose schedule you want to test.") public var endpointId:String? /** * The schedule to use (leave null to use the current saved schedule) */ // @ApiMember(Description="The schedule to use (leave null to use the current saved schedule)") public var schedule:Schedule? /** * The ISO string of the date and time you want to test */ // @ApiMember(Description="The ISO string of the date and time you want to test") public var dateTime:String? required public init(){} } public class TestScheduleResponse : Codable { public var stateName:String? public var timeZoneId:String? required public init(){} } public class Schedule : Codable { public var timeZoneId:String? public var inherit:Bool? public var forceClosed:Bool? public var rules:[SchedulingRule] = [] public var defaultState:String? required public init(){} }