/* Options: Date: 2024-11-21 11:41:52 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: CreateArticle.* //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 System.IO; using BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class ArticleServiceRelation : BaseModel { [Required] public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } [Required] public virtual int ServiceId { get; set; } [Required] public virtual int ArticleId { get; set; } } public partial class BaseModel { } } namespace BokaMera.API.ServiceModel.Dtos { public partial class ArticleResponse { public ArticleResponse() { Services = new List{}; ServiceIds = new List{}; } public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual int ArticleTypeId { get; set; } public virtual string Description { get; set; } public virtual string ImageUrl { get; set; } public virtual bool Active { get; set; } public virtual int Amount { get; set; } public virtual double Price { get; set; } public virtual string CurrencyId { get; set; } public virtual DateTime UpdatedDate { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual List Services { get; set; } public virtual List ServiceIds { get; set; } public virtual string PriceSign { get; set; } } [Route("/articles", "POST")] public partial class CreateArticle : IReturn { public CreateArticle() { ServiceIds = new int[]{}; } /// /// /// [ApiMember(Description="")] public virtual Guid? CompanyId { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual string Name { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual int ArticleTypeId { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual string Description { get; set; } /// /// /// [ApiMember(Description="")] public virtual Uri ImageUrl { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual bool Active { get; set; } /// /// /// [ApiMember(Description="", IsRequired=true)] public virtual int Amount { get; set; } /// ///. /// [ApiMember(Description=".", IsRequired=true)] public virtual double Price { get; set; } /// ///The payment currency id /// [ApiMember(Description="The payment currency id", IsRequired=true)] public virtual string CurrencyId { get; set; } /// ///Query for specific services. /// [ApiMember(Description="Query for specific services.", ParameterType="query")] public virtual int[] ServiceIds { get; set; } } }