/* Options: Date: 2024-12-03 18:29:13 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: SendNewsLetter.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/newsletter/send", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class SendNewsLetter : IReturn, ICompany { public SendNewsLetter() { Customers = new List{}; } /// ///The newsletter template id. /// [ApiMember(Description="The newsletter template id.", IsRequired=true)] public virtual int Id { get; set; } /// ///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.")] public virtual Guid? CompanyId { get; set; } /// ///The datetime when the newsletters should be sent. /// [ApiMember(Description="The datetime when the newsletters should be sent.", IsRequired=true)] public virtual DateTime SendDate { get; set; } /// ///The customer ids to send newsletters to. /// [ApiMember(Description="The customer ids to send newsletters to.", IsRequired=true)] public virtual List Customers { get; set; } } public partial class SendNewslettersResponse { /// ///The number of messages that are added into queue. /// [ApiMember(Description="The number of messages that are added into queue.")] public virtual int Total { get; set; } /// ///Send Method. 1 = Email, 2 = SMS /// [ApiMember(Description="Send Method. 1 = Email, 2 = SMS")] public virtual int SendMethodId { get; set; } /// ///Message example sent (in HTML format) /// [ApiMember(Description="Message example sent (in HTML format)")] public virtual string MessageExample { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }