/* Options: Date: 2024-11-23 09:07:28 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: CreateNewsletterTemplate.* //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/templates", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CreateNewsletterTemplate : IReturn, ICompany { /// ///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 newsletter template heading. /// [ApiMember(Description="The newsletter template heading.")] public virtual string Heading { get; set; } /// ///The newsletter template body. /// [ApiMember(Description="The newsletter template body.")] public virtual string Body { get; set; } /// ///The newsletter template image url. /// [ApiMember(Description="The newsletter template image url.")] public virtual string ImageUrl { get; set; } /// ///The newsletter template send method (1=email, 2=sms). /// [ApiMember(Description="The newsletter template send method (1=email, 2=sms).")] public virtual int SendMethodId { get; set; } /// ///The email template id. Get valid email templates from GET /newsletter/emailtemplates /// [ApiMember(Description="The email template id. Get valid email templates from GET /newsletter/emailtemplates")] public virtual int? EmailTemplateId { get; set; } } public partial class NewsletterEmailTemplatesQueryResponse { /// ///The email template id /// [ApiMember(Description="The email template id")] public virtual int Id { get; set; } /// ///The email template name. /// [ApiMember(Description="The email template name.")] public virtual string Name { get; set; } /// ///The email template description. /// [ApiMember(Description="The email template description.")] public virtual string Description { get; set; } /// ///The email template html content. /// [ApiMember(Description="The email template html content.")] public virtual string Body { get; set; } } public partial class NewsletterSendMethodQueryResponse { /// ///The send method id /// [ApiMember(Description="The send method id")] public virtual int Id { get; set; } /// ///The send method name. /// [ApiMember(Description="The send method name.")] public virtual string Name { get; set; } /// ///The send method description. /// [ApiMember(Description="The send method description.")] public virtual string Description { get; set; } } public partial class NewsletterTemplatesQueryResponse { /// ///The newsletter template id /// [ApiMember(Description="The newsletter template id")] public virtual int Id { get; set; } /// ///The newsletter template heading. /// [ApiMember(Description="The newsletter template heading.")] public virtual string Heading { get; set; } /// ///The newsletter template body. /// [ApiMember(Description="The newsletter template body.")] public virtual string Body { get; set; } /// ///The email template the newsletter uses. /// [ApiMember(Description="The email template the newsletter uses.")] public virtual int? EmailTemplateId { get; set; } /// ///Send Method. 1 = Email, 2 = SMS /// [ApiMember(Description="Send Method. 1 = Email, 2 = SMS")] public virtual int SendMethodId { get; set; } /// ///The newsletter template image url. /// [ApiMember(Description="The newsletter template image url.")] public virtual string ImageUrl { get; set; } /// ///The newsletter created date. /// [ApiMember(Description="The newsletter created date.")] public virtual DateTime Created { get; set; } /// ///Send method information. /// [ApiMember(Description="Send method information.")] public virtual NewsletterSendMethodQueryResponse SendMethodInformation { get; set; } /// ///Email template information. /// [ApiMember(Description="Email template information.")] public virtual NewsletterEmailTemplatesQueryResponse EmailTemplateInformation { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }