(* Options: Date: 2026-07-13 16:05:04 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: CalculateTotalPriceOnService.* //ExcludeTypes: //InitializeCollections: False //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Dtos open System open System.IO open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open ServiceStack.Data open System.Net open System.Net.Http.Headers [] type ICompany = abstract CompanyId:Nullable with get,set [] type PriceInterval() = /// ///The start date and time for the price to be calculated. Normally the booking start datetime. /// [] member val From:DateTime = new DateTime() with 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. /// [] member val To:Nullable = new Nullable() with get,set [] type RebateCodeTypeResponse() = member val Id:Int32 = new Int32() with get,set member val Name:String = null with get,set member val Description:String = null with get,set [] type AppliedRebateCodesResponse() = member val RebateCodeSign:String = null with get,set member val RebateCodeValue:Int32 = new Int32() with get,set member val RebateCodeType:RebateCodeTypeResponse = null with get,set member val RebateCodeId:Int32 = new Int32() with get,set member val RebateAmount:Double = new Double() with get,set [] type TotalPricePriceDetail() = member val Quantity:Int32 = new Int32() with get,set member val Price:Double = new Double() with get,set member val VatAmount:Double = new Double() with get,set member val Description:String = null with get,set member val ArticleId:Int32 = new Int32() with get,set member val MaxQuantity:Int32 = new Int32() with get,set [] type TotalPriceInformationResponse() = member val PriceSign:String = null with get,set member val CurrencyId:String = null with get,set member val TotalPrice:Double = new Double() with get,set member val TotalVatAmount:Double = new Double() with get,set member val TotalPriceBeforeRebate:Double = new Double() with get,set member val PriceDifference:Double = new Double() with get,set member val AppliedCodes:ResizeArray = null with get,set member val PriceDetails:ResizeArray = null with get,set [] [] type CalculateTotalPriceOnService() = interface IReturn /// ///The company id, if empty will use the company id for the user you are logged in with. /// [] member val CompanyId:Nullable = new Nullable() with get,set /// ///Id of the service /// [] member val Id:Int32 = new Int32() with get,set /// ///Optional booking id. If provided, the response will also contain the price difference compared to the existing booking price. /// [] member val BookingId:Nullable = new Nullable() with get,set /// ///The price interval to be used for calculations /// [] member val Interval:PriceInterval = null with get,set /// ///Rebate codes applied to booking /// [] member val RebateCodeIds:ResizeArray = null with 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. /// [] member val ArticleIds:ResizeArray = null with 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. /// [] member val Articles:ArticleToCreateBase[] = null with get,set /// ///If you have selected to include the prices, here you can include the quantities to book to get the correct total price. /// [] member val Quantities:QuantityToBook[] = null with get,set /// /// /// [] member val CustomerEmail:String = null with get,set