/* Options: Date: 2025-05-05 00:07:49 SwiftVersion: 6.0 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetInheritedSchedule.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Get the inherited schedule for this customer */ // @Route("/customers/{customerId}/inherited-schedule", "GET") // @Route("/endpoints/{endpointId}/inherited-schedule", "GET") // @Api(Description="Get the inherited schedule for this customer") public class GetInheritedSchedule : IReturn, Codable { public typealias Return = Schedule /** * The customer ID whose inherited schedule you want to retrieve */ // @ApiMember(Description="The customer ID whose inherited schedule you want to retrieve") public var customerId:String? /** * The endpoint ID whose inherited schedule you want to retrieve (use this OR customer id */ // @ApiMember(Description="The endpoint ID whose inherited schedule you want to retrieve (use this OR customer id") public var endpointId: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(){} } public class Struct : List { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public class SchedulingRule : Codable { public var id:String? public var name:String? public var priority:Int? public var state:String? public var source:String? public var condition:String? public var simpleRuleType:SimpleSchedulingRuleTypes? public var customerState:String? public var flowId:String? public var flowParams:Struct? public var isAllDay:Bool? public var startDate:String? public var startTime:String? public var endTime:String? public var bySetPosition:[Int]? public var byMonth:[Int]? public var byWeekNo:[Int]? public var byYearDay:[Int]? public var byMonthDay:[Int]? public var byDay:[ScheduleDay]? public var byHour:[Int]? public var byMinute:[Int]? public var interval:Int? public var count:Int? public var untilDate:String? public var frequency:SchedulingRuleFrequency? required public init(){} } public class Value : Codable { public var boolValue:Bool? public var stringValue:String? public var numberValue:Double? public var listValue:[Struct]? public var structValue:Struct? required public init(){} } public enum SimpleSchedulingRuleTypes : String, Codable { case Always case CustomerState case Time } public class ScheduleDay : Codable { public var offset:Int? public var dayOfWeek:DayOfWeek? required public init(){} } public enum SchedulingRuleFrequency : String, Codable { case None case Secondly case Minutely case Hourly case Daily case Weekly case Monthly case Yearly } public enum DayOfWeek : String, Codable { case Sunday case Monday case Tuesday case Wednesday case Thursday case Friday case Saturday }