/* Options: Date: 2024-07-03 12:50:20 Version: 8.23 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: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* 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) 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.") var CompanyId:UUID? = null /** * The datetime when the newsletters should be sent. */ @ApiMember(Description="The datetime when the newsletters should be sent.", IsRequired=true) var SendDate:Date? = null /** * The customer ids to send newsletters to. */ @ApiMember(Description="The customer ids to send newsletters to.", IsRequired=true) 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.") var Total:Int? = null /** * Send Method. 1 = Email, 2 = SMS */ @ApiMember(Description="Send Method. 1 = Email, 2 = SMS") var SendMethodId:Int? = null /** * Message example sent (in HTML format) */ @ApiMember(Description="Message example sent (in HTML format)") var MessageExample:String? = null } open interface ICompany { var CompanyId:UUID? }