/* Options: Date: 2024-12-03 18:02:30 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: UpdateArticle.* //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.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/{Id}", "PUT")] public partial class UpdateArticle : IReturn, ICompany { public UpdateArticle() { ServiceIds = new int[]{}; } /// /// /// [ApiMember(Description="", IsRequired=true, ParameterType="query")] public virtual int Id { get; set; } /// /// /// [ApiMember(Description="")] public virtual Guid? CompanyId { get; set; } /// /// /// [ApiMember(Description="")] public virtual string Name { get; set; } /// /// /// [ApiMember(Description="")] public virtual int? ArticleTypeId { get; set; } /// /// /// [ApiMember(Description="")] public virtual string Description { get; set; } /// /// /// [ApiMember(Description="")] public virtual Uri ImageUrl { get; set; } /// /// /// [ApiMember(Description="")] public virtual bool? Active { get; set; } /// /// /// [ApiMember(Description="")] public virtual int Amount { get; set; } /// ///. /// [ApiMember(Description=".")] public virtual double Price { get; set; } /// ///The payment currency id /// [ApiMember(Description="The payment currency id")] public virtual string CurrencyId { get; set; } /// ///Query for specific services. /// [ApiMember(Description="Query for specific services.", ParameterType="query")] public virtual int[] ServiceIds { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }