/* Options: Date: 2025-10-27 22:33:11 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: SendMailRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/communication/sendmail", "POST") public class SendMailRequest : Codable { /** * Email address of sender. If it is not set the a default address will be used. */ // @ApiMember(Description="Email address of sender. If it is not set the a default address will be used.") public var fromAddress:String? /** * List of recipient email addresses */ // @ApiMember(Description="List of recipient email addresses", IsRequired=true) public var recipients:[String]? /** * Email subject */ // @ApiMember(Description="Email subject", IsRequired=true) public var subject:String? /** * Plain text body. Either this or HtmlBody is required */ // @ApiMember(Description="Plain text body. Either this or HtmlBody is required") public var body:String? /** * Html body. Either this or Body is required */ // @ApiMember(Description="Html body. Either this or Body is required") public var htmlBody:String? /** * Email attachments */ // @ApiMember(Description="Email attachments") public var attachments:[String]? /** * Email attachments */ // @ApiMember(Description="Email attachments") public var attachmentsObject:[Attachment]? /** * Attachment streams */ // @ApiMember(Description="Attachment streams") public var attachmentStreams:[AttachmentStream]? /** * Template substitutions */ // @ApiMember(Description="Template substitutions") public var templateSubstitutions:[String:String]? /** * Template Id */ // @ApiMember(Description="Template Id") public var templateId:String? /** * List of BCC email addresses */ // @ApiMember(Description="List of BCC email addresses") public var bcc:[String]? /** * List of CC email addresses */ // @ApiMember(Description="List of CC email addresses") public var cc:[String]? required public init(){} }