/* Options: Date: 2026-07-14 05:01:21 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //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: CalculateTotalPriceOnService.* //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; namespace BokaMera.API.ServiceModel.Dtos { public partial class AppliedRebateCodesResponse { public virtual string RebateCodeSign { get; set; } public virtual int RebateCodeValue { get; set; } public virtual RebateCodeTypeResponse RebateCodeType { get; set; } public virtual int RebateCodeId { get; set; } public virtual double RebateAmount { get; set; } } [Route("/services/{Id}/calculateprice", "PUT")] public partial class CalculateTotalPriceOnService : 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; } /// ///Id of the service /// [ApiMember(Description="Id of the service", IsRequired=true, ParameterType="path")] public virtual int Id { get; set; } /// ///Optional booking id. If provided, the response will also contain the price difference compared to the existing booking price. /// [ApiMember(Description="Optional booking id. If provided, the response will also contain the price difference compared to the existing booking price.")] public virtual int? BookingId { get; set; } /// ///The price interval to be used for calculations /// [ApiMember(Description="The price interval to be used for calculations", IsRequired=true)] public virtual PriceInterval Interval { get; set; } /// ///Rebate codes applied to booking /// [ApiMember(Description="Rebate codes applied to booking")] public virtual List RebateCodeIds { get; set; } = []; /// ///DEPRECATED — use Articles instead. Article ids that should be included in the price calculation. The articles must be of type ServiceAddonArticle and connected to the service. Duplicate ids are counted as quantity. /// [ApiMember(Description="DEPRECATED — use Articles instead. Article ids that should be included in the price calculation. The articles must be of type ServiceAddonArticle and connected to the service. Duplicate ids are counted as quantity.")] public virtual List ArticleIds { get; set; } = []; /// ///Articles (with quantity) that should be included in the price calculation. The articles must be of type ServiceAddonArticle and connected to the service. /// [ApiMember(Description="Articles (with quantity) that should be included in the price calculation. The articles must be of type ServiceAddonArticle and connected to the service.")] public virtual ArticleToCreateBase[] Articles { get; set; } = []; /// ///If you have selected to include the prices, here you can include the quantities to book to get the correct total price. /// [ApiMember(Description="If you have selected to include the prices, here you can include the quantities to book to get the correct total price.")] public virtual QuantityToBook[] Quantities { get; set; } = []; /// /// /// [ApiMember(Description="")] public virtual string CustomerEmail { get; set; } } public partial class PriceInterval { /// ///The start date and time for the price to be calculated. Normally the booking start datetime. /// [ApiMember(Description="The start date and time for the price to be calculated. Normally the booking start datetime.", IsRequired=true)] public virtual DateTime From { get; set; } /// ///The end date and time for the price to be calculated.Normally the booking end datetime. If nothing entered it will use the service length. /// [ApiMember(Description="The end date and time for the price to be calculated.Normally the booking end datetime. If nothing entered it will use the service length.")] public virtual DateTime? To { get; set; } } public partial class RebateCodeTypeResponse { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } } public partial class TotalPriceInformationResponse { public virtual string PriceSign { get; set; } public virtual string CurrencyId { get; set; } public virtual double TotalPrice { get; set; } public virtual double TotalVatAmount { get; set; } public virtual double TotalPriceBeforeRebate { get; set; } public virtual double PriceDifference { get; set; } public virtual List AppliedCodes { get; set; } = []; public virtual List PriceDetails { get; set; } = []; } public partial class TotalPricePriceDetail { public virtual int Quantity { get; set; } public virtual double Price { get; set; } public virtual double VatAmount { get; set; } public virtual string Description { get; set; } public virtual int ArticleId { get; set; } public virtual int MaxQuantity { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }