(* Options: Date: 2024-07-03 12:42:52 Version: 8.23 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: True //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Dtos open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open System.IO [] 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 RebateCodeTypeItem() = 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:RebateCodeTypeItem = 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 [] 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 AppliedCodes:ResizeArray = new ResizeArray() with get,set member val PriceDetails:ResizeArray = new ResizeArray() 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 /// ///The price interval to be used for calculations /// [] member val Interval:PriceInterval = null with get,set /// ///If you have selected to include the prices, here you can include the rebate codes /// [] member val RebateCodeIds:ResizeArray = new ResizeArray() 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[] = [||] with get,set