/* Options: Date: 2026-02-20 05:15:40 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.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: CreateCustomerArticleFromArticle.* //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.Dtos; using BokaMera.API.ServiceModel.Dtos.Commons; 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 List Services { get; set; } = []; public virtual List ServiceIds { get; set; } = []; public virtual string PriceSign { get; set; } public virtual decimal? VAT { get; set; } } [Route("/customerarticle/fromarticle", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] public partial class CreateCustomerArticleFromArticle : FromArticleBase, IReturn, ICompany { } 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 CustomerToHandle : CustomerBase { } public partial class FromArticleBase { /// /// /// [ApiMember(Description="")] public virtual Guid? CompanyId { get; set; } /// ///Article ID for the rebate code /// [ApiMember(Description="Article ID for the rebate code", IsRequired=true)] public virtual int ArticleId { get; set; } /// ///Customer information /// [ApiMember(Description="Customer information")] public virtual CustomerToHandle Customer { get; set; } /// ///If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinairy profile. /// [ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinairy profile. ")] public virtual InvoiceAddressToHandle InvoiceAddress { get; set; } } public partial class InvoiceAddressToHandle : IInvoiceAddress { public virtual string CorporateIdentityNumber { get; set; } public virtual string InvoiceAddress1 { get; set; } public virtual string InvoiceAddress2 { get; set; } public virtual string InvoiceCity { get; set; } public virtual string InvoicePostalCode { get; set; } public virtual string InvoiceCountryCode { 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.Dtos.Commons { public partial class CustomerBase : ICustomerBase { public virtual Guid? CustomerId { 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 virtual bool SubscribedToNewsletter { get; set; } public virtual string PersonalIdentityNumber { get; set; } } public partial interface ICustomerBase { Guid? CustomerId { get; set; } string Firstname { get; set; } string Lastname { get; set; } string Email { get; set; } string Phone { get; set; } bool SubscribedToNewsletter { get; set; } string PersonalIdentityNumber { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } public partial interface IInvoiceAddress { string CorporateIdentityNumber { get; set; } string InvoiceAddress1 { get; set; } string InvoiceAddress2 { get; set; } string InvoiceCity { get; set; } string InvoicePostalCode { get; set; } string InvoiceCountryCode { get; set; } } }