' Options: 'Date: 2024-11-21 11:28:03 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.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 ServiceStack.Data 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 RebateCodeTypeResponse 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 ''' '''Rebate codes applied to booking ''' 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() ''' ''' ''' Public Overridable Property CustomerEmail As String 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 RebateCodeTypeResponse 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