' Options:
'Date: 2026-03-03 10:47:39
'Version: 10.05
'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: False
'''ExportValueTypes: False
'IncludeTypes: CreateBookings.*
'''ExcludeTypes:
'''AddNamespaces:
'''AddDefaultXmlNamespace: http://schemas.servicestack.net/types
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports System.Globalization
Imports ServiceStack.Data
Imports System.Net
Imports System.Net.Http.Headers
Imports BokaMera.API.ServiceModel.Dtos
Imports BokaMera.API.ServiceModel.Enums
Imports BokaMera.API.ServiceModel.Dtos.Commons
Imports BokaMera.API.ServiceModel.Interfaces
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
Public Partial Class AddCustomField
Public Overridable Property Id As Integer
Public Overridable Property Value As String
End Class
Public Partial Class BookingQueryResponse
Public Overridable Property Id As Integer
Public Overridable Property CompanyId As Guid
Public Overridable Property From As Date
Public Overridable Property [To] As Date
Public Overridable Property Status As BookingStatusEnum
Public Overridable Property StatusId As Integer
Public Overridable Property StatusName As String
Public Overridable Property StatusInfo As BookingStatusQueryResponse
Public Overridable Property SendEmailReminder As Boolean
Public Overridable Property SendSmsReminder As Boolean
Public Overridable Property SendSmsConfirmation As Boolean
Public Overridable Property SendEmailConfirmation As Boolean
Public Overridable Property LastTimeToUnBook As Date?
Public Overridable Property CustomFields As List(Of CustomFieldConfigData) = New List(Of CustomFieldConfigData)
Public Overridable Property CustomFieldValues As List(Of CustomFieldDataResponse) = New List(Of CustomFieldDataResponse)
Public Overridable Property BookedResourceTypes As List(Of BookedResourceType) = New List(Of BookedResourceType)
Public Overridable Property Company As BookedCompany
Public Overridable Property Customer As BookedCustomer
Public Overridable Property Quantities As List(Of BookedQuantity) = New List(Of BookedQuantity)
Public Overridable Property Service As ServiceInfoResponse
Public Overridable Property InvoiceAddress As InvoiceAddressResponse
Public Overridable Property PaymentExpiration As Date?
Public Overridable Property Log As List(Of BookingLogQueryResponse) = New List(Of BookingLogQueryResponse)
Public Overridable Property PaymentLog As List(Of BookingPaymentLogQueryResponse) = New List(Of BookingPaymentLogQueryResponse)
Public Overridable Property CheckoutLog As List(Of BookingCheckoutQueryResponse) = New List(Of BookingCheckoutQueryResponse)
Public Overridable Property ExternalReference As List(Of ExternalReferenceResponse) = New List(Of ExternalReferenceResponse)
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property LengthInMinutes As Integer?
Public Overridable Property BookedBy As String
Public Overridable Property BookedComments As String
Public Overridable Property UnbookedComments As String
Public Overridable Property CommentsToCustomer As String
Public Overridable Property CreatedDate As Date
Public Overridable Property UpdatedDate As Date
Public Overridable Property UnbookedOn As Date?
Public Overridable Property CancellationCode As String
Public Overridable Property RatingCode As String
'''
'''The Google Meet URL for this booking, if Google Meet is enabled and a meeting was created.
'''
Public Overridable Property GoogleMeetUrl As String
End Class
Public Partial Class CreateBookings
Inherits CreateBookingBase
Implements IReturn(Of CreateBookingsResponse)
'''
'''Set the dates you want to book and it's quantities. It's an array of dates and quantities.
'''
", Description:="Set the dates you want to book and it's quantities. It's an array of dates and quantities.", IsRequired:=true)>
Public Overridable Property DatesToRepeat As List(Of DatesToRepeat) = New List(Of DatesToRepeat)
End Class
Public Partial Class CreateBookingsResponse
'''
'''The datetime you want to end the booking.
'''
Public Overridable Property Created As List(Of BookingQueryResponse) = New List(Of BookingQueryResponse)
'''
'''The dates that didn't work to book.
'''
Public Overridable Property Failed As List(Of FailedBookings) = New List(Of FailedBookings)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class CustomerToHandle
Inherits CustomerBase
End Class
Public Partial Class DatesToRepeat
Implements IInterval
'''
'''Booking start
'''
Public Overridable Property From As Date Implements IInterval.From
'''
'''Booking end
'''
Public Overridable Property [To] As Date Implements IInterval.To
'''
'''Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.
'''
Public Overridable Property Quantities As QuantityToBook() = New QuantityToBook(){}
End Class
Public Partial Class FailedBookings
Public Overridable Property From As Date
Public Overridable Property [To] As Date
Public Overridable Property Reason As String
'''
'''Set the number of spots you want to book. You add number of spots per price category. Multiple spots require that the service has GroupBooking enabled. Default is one spot.
'''
Public Overridable Property Quantities As QuantityToBook() = New QuantityToBook(){}
End Class
Public Partial Class InvoiceAddressToHandle
Implements IInvoiceAddress
Public Overridable Property CorporateIdentityNumber As String Implements IInvoiceAddress.CorporateIdentityNumber
Public Overridable Property InvoiceAddress1 As String Implements IInvoiceAddress.InvoiceAddress1
Public Overridable Property InvoiceAddress2 As String Implements IInvoiceAddress.InvoiceAddress2
Public Overridable Property InvoiceCity As String Implements IInvoiceAddress.InvoiceCity
Public Overridable Property InvoicePostalCode As String Implements IInvoiceAddress.InvoicePostalCode
Public Overridable Property InvoiceCountryCode As String Implements IInvoiceAddress.InvoiceCountryCode
End Class
Public Partial Class ResourceToBook
Public Overridable Property ResourceTypeId As Integer
Public Overridable Property ResourceId As Integer
End Class
End Namespace
Namespace BokaMera.API.ServiceModel.Dtos.Commons
Public Partial Class CreateBookingBase
Implements ICreateBookingBase
'''
'''The company id, if empty will use the company id for the user you are logged in with.
'''
Public Overridable Property CompanyId As Guid? Implements ICreateBookingBase.CompanyId
'''
'''If you want to book on an existing customer instead of CustomerToBook info set the CustomerId here. Set Empty Guid (00000000-0000-0000-0000-000000000000) if you want to book without any customer, this is only allowed by admin. The customer id is shown in the customer list named as id. When booking as customer (no admin) leave this field blank.
'''
Public Overridable Property CustomerId As Guid? Implements ICreateBookingBase.CustomerId
'''
'''If company requires to be authenticated or a pin code entered to book on a specific customer, enter it here.
'''
Public Overridable Property PinCode As String Implements ICreateBookingBase.PinCode
'''
'''If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile.
'''
Public Overridable Property Customer As CustomerToHandle Implements ICreateBookingBase.Customer
'''
'''If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinary profile.
'''
Public Overridable Property InvoiceAddress As InvoiceAddressToHandle Implements ICreateBookingBase.InvoiceAddress
'''
'''The service to be booked
'''
Public Overridable Property ServiceId As Integer Implements ICreateBookingBase.ServiceId
'''
'''If you want to add comments to a booking you can add them here, this comments are never shared with the customer
'''
Public Overridable Property BookedComments As String Implements ICreateBookingBase.BookedComments
'''
'''If you want to add comments to the booking that is sent to the customer, you can add them here. Comments will be sent in the booking confirmation
'''
Public Overridable Property CommentsToCustomer As String Implements ICreateBookingBase.CommentsToCustomer
Public Overridable Property Resources As List(Of ResourceToBook) Implements ICreateBookingBase.Resources = New List(Of ResourceToBook)
'''
'''Rebate codes applied to booking
'''
Public Overridable Property RebateCodeIds As List(Of Integer) Implements ICreateBookingBase.RebateCodeIds
'''
'''Article ids that should be booked with the service. The articles must be of type ServiceAddonArticle and connected to the service.
'''
Public Overridable Property Articles As ArticleToCreateBase() = New ArticleToCreateBase(){}
'''
'''If you want to send Email reminder
'''
Public Overridable Property SendEmailReminder As Boolean? Implements ICreateBookingBase.SendEmailReminder
'''
'''If you want to send SMS reminder
'''
Public Overridable Property SendSmsReminder As Boolean? Implements ICreateBookingBase.SendSmsReminder
'''
'''If you want to send SMS confirmation
'''
Public Overridable Property SendSmsConfirmation As Boolean? Implements ICreateBookingBase.SendSmsConfirmation
'''
'''Only admins are allowed to not send an email confirmation. Default is true
'''
Public Overridable Property SendEmailConfirmation As Boolean? Implements ICreateBookingBase.SendEmailConfirmation
'''
'''If payment is enabled and you're an administrator, optional to choose payment option, if empty then the default settings will be used. Following payment options exists. DefaultSetting = 0, BookWithoutPayment = 1 (will be direcyly booked without payment), BookWithPaymentMessageToCustomer = 2 (will set status AwaitingPayment and send payment instructions to customer), BookWithManualPayment = 3 (Will set status AwaitingPaymentNoTimeLimit and Admin will need to manually mark the booking as payed when recieved payment).
'''
Public Overridable Property PaymentOption As PaymentOptions Implements ICreateBookingBase.PaymentOption
'''
'''If Custom Fields are added to the booking, here you will send the id and the value for each custom field to be saved
'''
Public Overridable Property CustomFields As List(Of AddCustomField) Implements ICreateBookingBase.CustomFields = New List(Of AddCustomField)
'''
'''If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated
'''
Public Overridable Property CustomerCustomFields As List(Of AddCustomField) Implements ICreateBookingBase.CustomerCustomFields = New List(Of AddCustomField)
'''
'''If want to allow to book outside the service schedules. This means you can book a time after the schedule opening hours as long as the resource are available. This is only allowed by administrators
'''
Public Overridable Property AllowBookingOutsideSchedules As Boolean Implements ICreateBookingBase.AllowBookingOutsideSchedules
End Class
Public Partial Class CustomerBase
Implements ICustomerBase
Public Overridable Property CustomerId As Guid? Implements ICustomerBase.CustomerId
Public Overridable Property Firstname As String Implements ICustomerBase.Firstname
Public Overridable Property Lastname As String Implements ICustomerBase.Lastname
Public Overridable Property Email As String Implements ICustomerBase.Email
Public Overridable Property Phone As String Implements ICustomerBase.Phone
Public Overridable Property SubscribedToNewsletter As Boolean Implements ICustomerBase.SubscribedToNewsletter
Public Overridable Property PersonalIdentityNumber As String Implements ICustomerBase.PersonalIdentityNumber
End Class
Public Interface ICreateBookingBase
Property CompanyId As Guid?
Property CustomerId As Guid?
Property PinCode As String
Property Customer As CustomerToHandle
Property InvoiceAddress As InvoiceAddressToHandle
Property ServiceId As Integer
Property BookedComments As String
Property CommentsToCustomer As String
Property Resources As List(Of ResourceToBook) = New List(Of ResourceToBook)
Property RebateCodeIds As List(Of Integer) = New List(Of Integer)
Property SendEmailReminder As Boolean?
Property SendSmsReminder As Boolean?
Property SendSmsConfirmation As Boolean?
Property SendEmailConfirmation As Boolean?
Property PaymentOption As PaymentOptions
Property CustomFields As List(Of AddCustomField) = New List(Of AddCustomField)
Property CustomerCustomFields As List(Of AddCustomField) = New List(Of AddCustomField)
Property AllowBookingOutsideSchedules As Boolean
End Interface
Public Interface ICustomerBase
Property CustomerId As Guid?
Property Firstname As String
Property Lastname As String
Property Email As String
Property Phone As String
Property SubscribedToNewsletter As Boolean
Property PersonalIdentityNumber As String
End Interface
End Namespace
Namespace BokaMera.API.ServiceModel.Enums
Public Enum PaymentOptions
DefaultSetting
BookWithoutPayment
BookWithPaymentMessageToCustomer
BookWithManualPayment
End Enum
End Namespace
Namespace BokaMera.API.ServiceModel.Interfaces
Public Interface IInterval
Property From As Date
Property [To] As Date
End Interface
Public Interface IInvoiceAddress
Property CorporateIdentityNumber As String
Property InvoiceAddress1 As String
Property InvoiceAddress2 As String
Property InvoiceCity As String
Property InvoicePostalCode As String
Property InvoiceCountryCode As String
End Interface
End Namespace
End Namespace