' Options: 'Date: 2024-06-17 10:06:27 '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: UpdateServicePrice.* '''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 DayOfWeekDto Public Overridable Property DayOfWeekId As Integer Public Overridable Property DotNetDayOfWeekId As Integer Public Overridable Property DayOfWeek As String End Class Public Partial Class GroupBookingSettings Public Overridable Property Active As Boolean Public Overridable Property Min As Integer Public Overridable Property Max As Integer End Class Public Partial Class MultipleResourceSettings Public Overridable Property Active As Boolean Public Overridable Property Min As Integer Public Overridable Property Max As Integer End Class Public Partial Class ServiceInfoResponse Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property Description As String Public Overridable Property ImageUrl As Uri Public Overridable Property LengthInMinutes As Nullable(Of Integer) Public Overridable Property MaxNumberOfSpotsPerBooking As Integer Public Overridable Property GroupBooking As GroupBookingSettings Public Overridable Property MultipleResource As MultipleResourceSettings Public Overridable Property IsGroupBooking As Boolean Public Overridable Property IsPaymentEnabled As Boolean End Class Public Partial Class ServicePriceResponse Public Sub New() DaysOfWeek = New List(Of DayOfWeekDto) End Sub ''' '''The company id ''' Public Overridable Property CompanyId As Guid ''' '''The price id ''' Public Overridable Property Id As Integer ''' '''The service id ''' Public Overridable Property ServiceId As Integer ''' '''The price ''' Public Overridable Property Price As Double ''' '''The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day ''' Public Overridable Property CalculationTypeId As Integer ''' '''The price currency ''' Public Overridable Property CurrencyId As String ''' '''The price sign ''' Public Overridable Property PriceSign As String ''' '''The price VAT in percent ''' Public Overridable Property VAT As Decimal ''' '''The price category if price has a category ''' Public Overridable Property Category As String ''' '''The price text to display ''' Public Overridable Property PriceText As String ''' '''The valid from date for the price. ''' Public Overridable Property From As Date ''' '''The valid to date for the price. ''' Public Overridable Property To As Date ''' '''If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. ''' Public Overridable Property DaysOfWeek As List(Of DayOfWeekDto) ''' '''If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. ''' Public Overridable Property FromTime As Nullable(Of TimeSpan) ''' '''If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. ''' Public Overridable Property ToTime As Nullable(Of TimeSpan) Public Overridable Property Service As ServiceInfoResponse ''' '''If the price is only valid for a specific time span ''' Public Overridable Property IsTimeSpecific As Boolean ''' '''If the price is only valid for specific days of week ''' Public Overridable Property IsDaysOfWeekSpecific As Boolean ''' '''If the price is Weighted ''' Public Overridable Property IsWeighted As Boolean End Class Public Partial Class UpdateServicePrice Implements IReturn(Of ServicePriceResponse) Implements ICompany Public Sub New() DaysOfWeek = New Integer(){} 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 price ''' Public Overridable Property Id As Integer ''' '''The price ''' Public Overridable Property Price As Double ''' '''The price currency ''' Public Overridable Property CurrencyId As String ''' '''The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day ''' Public Overridable Property CalculationTypeId As Integer ''' '''The price VAT in percent ''' Public Overridable Property VAT As Decimal ''' '''The price category if price has a category ''' Public Overridable Property Category As String ''' '''The valid from date for the price. ''' Public Overridable Property From As Date ''' '''The valid to date for the price. ''' Public Overridable Property To As Date ''' '''If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. ''' Public Overridable Property DaysOfWeek As Integer() ''' '''If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. ''' Public Overridable Property FromTime As Nullable(Of TimeSpan) ''' '''If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. ''' Public Overridable Property ToTime As Nullable(Of TimeSpan) End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace