' Options: 'Date: 2024-06-17 02:25:50 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://testapi.bokamera.se ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: 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 Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Globalization Imports System.IO Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class AppliedRebateCodesResponse Public Overridable Property RebateCodeSign As String Public Overridable Property RebateCodeValue As Integer Public Overridable Property RebateCodeType As RebateCodeTypeItem Public Overridable Property RebateCodeId As Integer Public Overridable Property RebateAmount As Double End Class Public Partial Class CalculateTotalPriceOnService Implements IReturn(Of TotalPriceInformationResponse) Implements ICompany Public Sub New() RebateCodeIds = New List(Of Integer) Quantities = New QuantityToBook(){} End Sub ''' '''The company id, if empty will use the company id for the user you are logged in with. ''' Public Overridable Property CompanyId As Nullable(Of Guid) ''' '''Id of the service ''' Public Overridable Property Id As Integer ''' '''The price interval to be used for calculations ''' Public Overridable Property Interval As PriceInterval ''' '''If you have selected to include the prices, here you can include the rebate codes ''' Public Overridable Property RebateCodeIds As List(Of Integer) ''' '''If you have selected to include the prices, here you can include the quantities to book to get the correct total price. ''' Public Overridable Property Quantities As QuantityToBook() End Class Public Partial Class PriceInterval ''' '''The start date and time for the price to be calculated. Normally the booking start datetime. ''' Public Overridable Property From As Date ''' '''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 Overridable Property To As Nullable(Of Date) End Class Public Partial Class RebateCodeTypeItem Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property Description As String End Class Public Partial Class TotalPriceInformationResponse Public Sub New() AppliedCodes = New List(Of AppliedRebateCodesResponse) PriceDetails = New List(Of TotalPricePriceDetail) End Sub Public Overridable Property PriceSign As String Public Overridable Property CurrencyId As String Public Overridable Property TotalPrice As Double Public Overridable Property TotalVatAmount As Double Public Overridable Property TotalPriceBeforeRebate As Double Public Overridable Property AppliedCodes As List(Of AppliedRebateCodesResponse) Public Overridable Property PriceDetails As List(Of TotalPricePriceDetail) End Class Public Partial Class TotalPricePriceDetail Public Overridable Property Quantity As Integer Public Overridable Property Price As Double Public Overridable Property VatAmount As Double Public Overridable Property Description As String End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace