/* Options: Date: 2024-11-28 10:52:50 SwiftVersion: 5.0 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: CreateOrUpdateEmailDraft.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack public class CreateDraftCorporateIdentityMail : Outlook365Properties, IReturn { public typealias Return = CorporateIdentityMail public var registrationProfileID:String? public var values:[RegistrationValue] = [] public var processes:[Process] = [] public var documentUploadId:String? public var messageQueueId:String? public var replyEmailHtml:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case registrationProfileID case values case processes case documentUploadId case messageQueueId case replyEmailHtml } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) registrationProfileID = try container.decodeIfPresent(String.self, forKey: .registrationProfileID) values = try container.decodeIfPresent([RegistrationValue].self, forKey: .values) ?? [] processes = try container.decodeIfPresent([Process].self, forKey: .processes) ?? [] documentUploadId = try container.decodeIfPresent(String.self, forKey: .documentUploadId) messageQueueId = try container.decodeIfPresent(String.self, forKey: .messageQueueId) replyEmailHtml = try container.decodeIfPresent(String.self, forKey: .replyEmailHtml) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if registrationProfileID != nil { try container.encode(registrationProfileID, forKey: .registrationProfileID) } if values.count > 0 { try container.encode(values, forKey: .values) } if processes.count > 0 { try container.encode(processes, forKey: .processes) } if documentUploadId != nil { try container.encode(documentUploadId, forKey: .documentUploadId) } if messageQueueId != nil { try container.encode(messageQueueId, forKey: .messageQueueId) } if replyEmailHtml != nil { try container.encode(replyEmailHtml, forKey: .replyEmailHtml) } } } public class CreateOrUpdateEmailDraft : CreateDraftCorporateIdentityMail, IReturn { public typealias Return = CorporateIdentityMail 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 CorporateIdentityMail : Codable { public var documentId:String? public var emailHtml:String? public var isRegistered:Bool? public var documentNr:String? public var values:[RegistrationProfileFieldStateBase] = [] public var registrationProfileID:String? public var registerAutomatically:Bool? required public init(){} } public class RegistrationProfileFieldStateBase : Codable { public var documentFieldID:String? public var required:Bool? public var visible:Bool? public var readonly:Bool? required public init(){} }