/* Options: Date: 2025-10-27 22:15:25 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: SendMailRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/communication/sendmail", Verbs="POST") public static class SendMailRequest { /** * 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 String FromAddress = null; /** * List of recipient email addresses */ @ApiMember(Description="List of recipient email addresses", IsRequired=true) public ArrayList Recipients = null; /** * Email subject */ @ApiMember(Description="Email subject", IsRequired=true) public String Subject = null; /** * Plain text body. Either this or HtmlBody is required */ @ApiMember(Description="Plain text body. Either this or HtmlBody is required") public String Body = null; /** * Html body. Either this or Body is required */ @ApiMember(Description="Html body. Either this or Body is required") public String HtmlBody = null; /** * Email attachments */ @ApiMember(Description="Email attachments") public ArrayList Attachments = null; /** * Email attachments */ @ApiMember(Description="Email attachments") public ArrayList AttachmentsObject = null; /** * Attachment streams */ @ApiMember(Description="Attachment streams") public ArrayList AttachmentStreams = null; /** * Template substitutions */ @ApiMember(Description="Template substitutions") public HashMap TemplateSubstitutions = null; /** * Template Id */ @ApiMember(Description="Template Id") public String TemplateId = null; /** * List of BCC email addresses */ @ApiMember(Description="List of BCC email addresses") public ArrayList Bcc = null; /** * List of CC email addresses */ @ApiMember(Description="List of CC email addresses") public ArrayList Cc = null; public String getFromAddress() { return FromAddress; } public SendMailRequest setFromAddress(String value) { this.FromAddress = value; return this; } public ArrayList getRecipients() { return Recipients; } public SendMailRequest setRecipients(ArrayList value) { this.Recipients = value; return this; } public String getSubject() { return Subject; } public SendMailRequest setSubject(String value) { this.Subject = value; return this; } public String getBody() { return Body; } public SendMailRequest setBody(String value) { this.Body = value; return this; } public String getHtmlBody() { return HtmlBody; } public SendMailRequest setHtmlBody(String value) { this.HtmlBody = value; return this; } public ArrayList getAttachments() { return Attachments; } public SendMailRequest setAttachments(ArrayList value) { this.Attachments = value; return this; } public ArrayList getAttachmentsObject() { return AttachmentsObject; } public SendMailRequest setAttachmentsObject(ArrayList value) { this.AttachmentsObject = value; return this; } public ArrayList getAttachmentStreams() { return AttachmentStreams; } public SendMailRequest setAttachmentStreams(ArrayList value) { this.AttachmentStreams = value; return this; } public HashMap getTemplateSubstitutions() { return TemplateSubstitutions; } public SendMailRequest setTemplateSubstitutions(HashMap value) { this.TemplateSubstitutions = value; return this; } public String getTemplateId() { return TemplateId; } public SendMailRequest setTemplateId(String value) { this.TemplateId = value; return this; } public ArrayList getBcc() { return Bcc; } public SendMailRequest setBcc(ArrayList value) { this.Bcc = value; return this; } public ArrayList getCc() { return Cc; } public SendMailRequest setCc(ArrayList value) { this.Cc = value; return this; } } }