/* Options: Date: 2024-06-02 10:32:40 Version: 8.23 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: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: CalculateTotalPriceOnService.* //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.Dtos; namespace BokaMera.API.ServiceModel.Dtos { public partial class AppliedRebateCodesResponse { public virtual string RebateCodeSign { get; set; } public virtual int RebateCodeValue { get; set; } public virtual RebateCodeTypeItem 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 { public CalculateTotalPriceOnService() { RebateCodeIdsWithAmount = new List{}; Quantities = new QuantityToBook[]{}; } /// ///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; } /// ///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 RebateCodeIdsWithAmount { 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; } } 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 RebateCodeAppliedWithAmount { public virtual int Id { get; set; } } public partial class RebateCodeTypeItem { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } } public partial class TotalPriceInformationResponse { public TotalPriceInformationResponse() { AppliedCodes = new List{}; PriceDetails = new List{}; } 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 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; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }