/* Options: Date: 2025-09-14 07:18:19 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendNewsLetter.* //ExcludeTypes: //InitializeCollections: False //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.* @Route(Path="/newsletter/send", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class SendNewsLetter : IReturn, ICompany { /** * The newsletter template id. */ @ApiMember(Description="The newsletter template id.", IsRequired=true) open var Id:Int? = null /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") override var CompanyId:UUID? = null /** * The datetime when the newsletters should be sent. */ @ApiMember(Description="The datetime when the newsletters should be sent.", IsRequired=true) open var SendDate:Date? = null /** * The customer ids to send newsletters to. */ @ApiMember(Description="The customer ids to send newsletters to.", IsRequired=true) open var Customers:ArrayList = ArrayList() companion object { private val responseType = SendNewslettersResponse::class.java } override fun getResponseType(): Any? = SendNewsLetter.responseType } open class SendNewslettersResponse { /** * The number of messages that are added into queue. */ @ApiMember(Description="The number of messages that are added into queue.") open var Total:Int? = null /** * Send Method. 1 = Email, 2 = SMS */ @ApiMember(Description="Send Method. 1 = Email, 2 = SMS") open var SendMethodId:Int? = null /** * Message example sent (in HTML format) */ @ApiMember(Description="Message example sent (in HTML format)") open var MessageExample:String? = null } interface ICompany { var CompanyId:UUID? }