/* Options: Date: 2026-04-23 04:03:29 Version: 10.05 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: True //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: CreateCustomerArticle.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.Net; using System.Net.Http.Headers; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Enums; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class ArticleResponse { 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 int SortOrder { get; set; } public virtual DateTime UpdatedDate { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual int Duration { get; set; } public virtual List Services { get; set; } = []; public virtual List ServiceIds { get; set; } = []; public virtual string PriceSign { get; set; } public virtual decimal? VAT { get; set; } public virtual int ValidDays { get; set; } public virtual bool SendNotification { get; set; } public virtual string NotificationEmail { get; set; } } [Route("/customerarticle", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CreateCustomerArticle : 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 article id to base this customer article on /// [ApiMember(Description="The article id to base this customer article on", IsRequired=true)] public virtual int ArticleId { get; set; } /// ///The customer id to assign the article to /// [ApiMember(Description="The customer id to assign the article to", IsRequired=true)] public virtual Guid CustomerId { get; set; } /// ///The status of the customer article /// [ApiMember(Description="The status of the customer article")] public virtual CustomerArticleStatusEnum? StatusId { get; set; } /// ///Optional price override. If not provided, uses the article price. /// [ApiMember(Description="Optional price override. If not provided, uses the article price.")] public virtual decimal? Price { get; set; } /// ///Optional VAT override. If not provided, uses the article VAT. /// [ApiMember(Description="Optional VAT override. If not provided, uses the article VAT.")] public virtual decimal? VAT { get; set; } /// ///Optional currency override. If not provided, uses the article currency. /// [ApiMember(Description="Optional currency override. If not provided, uses the article currency.")] public virtual string CurrencyId { get; set; } } public partial class CustomerArticleCompanyResponse { public virtual Guid Id { get; set; } public virtual string Name { get; set; } public virtual string LogoType { get; set; } public virtual string Email { get; set; } public virtual string Phone { get; set; } public virtual string City { get; set; } public virtual string Street1 { get; set; } public virtual string ZipCode { get; set; } public virtual string CountryId { get; set; } } public partial class CustomerArticleCustomerResponse { public virtual Guid Id { get; set; } public virtual string Firstname { get; set; } public virtual string Lastname { get; set; } public virtual string Email { get; set; } public virtual string Phone { get; set; } } public partial class CustomerArticleResponse { public virtual int Id { get; set; } public virtual Guid CompanyId { get; set; } public virtual int? ArticleId { get; set; } public virtual decimal? Price { get; set; } public virtual decimal? VAT { get; set; } public virtual string CurrencyId { get; set; } public virtual int StatusId { get; set; } public virtual string StatusName { get; set; } public virtual Guid? CustomerId { get; set; } public virtual DateTime CreatedDate { get; set; } public virtual DateTime UpdatedDate { get; set; } public virtual ArticleResponse Article { get; set; } public virtual CustomerArticleCustomerResponse Customer { get; set; } public virtual CustomerArticleCompanyResponse Company { get; set; } public virtual List PaymentLog { get; set; } = []; public virtual ResponseStatus ResponseStatus { get; set; } } public partial class PaymentLogResponse { public virtual int Id { get; set; } public virtual double? Amount { get; set; } public virtual double? AmountCredited { get; set; } public virtual string CurrencyId { get; set; } public virtual string Comments { get; set; } public virtual DateTime Created { get; set; } public virtual DateTime Updated { get; set; } } } namespace BokaMera.API.ServiceModel.Enums { public enum CustomerArticleStatusEnum { AwaitingPayment = 1, AwaitingPaymentFromProvider = 2, AwaitingPaymentNoTimeLimit = 3, Active = 4, Off = 5, } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }