' Options: 'Date: 2024-11-23 09:25:58 '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: ChangeResourceOnBooking.* '''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 BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Dtos Imports BokaMera.API.ServiceModel.Enums Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class BookedCompany Public Overridable Property Id As Guid Public Overridable Property Name As String Public Overridable Property LogoType As Uri Public Overridable Property Category As String Public Overridable Property Street1 As String Public Overridable Property Street2 As String Public Overridable Property ZipCode As String Public Overridable Property City As String Public Overridable Property CountryId As String Public Overridable Property Longitude As String Public Overridable Property Latitude As String Public Overridable Property Phone As String Public Overridable Property Email As String Public Overridable Property HomePage As String Public Overridable Property SitePath As String Public Overridable Property IsFavorite As Boolean Public Overridable Property PaymentProviderId As Nullable(Of Integer) End Class Public Partial Class BookedCustomer Public Overridable Property Id As Guid Public Overridable Property Firstname As String Public Overridable Property Lastname As String Public Overridable Property Email As String Public Overridable Property Phone As String Public Overridable Property FacebookUserName As String Public Overridable Property ImageUrl As String Public Overridable Property CorporateIdentityNumber As String Public Overridable Property InvoiceAddress1 As String Public Overridable Property InvoiceAddress2 As String Public Overridable Property InvoiceCity As String Public Overridable Property InvoicePostalCode As String Public Overridable Property InvoiceCountryCode As String End Class Public Partial Class BookedQuantity ''' '''The quantity Id ''' Public Overridable Property Id As Integer ''' '''The quantity for booked on this price category ''' Public Overridable Property Quantity As Integer ''' '''The price ''' Public Overridable Property Price As Nullable(Of Double) ''' '''The price bofore rebate codes ''' Public Overridable Property PriceBeforeRebate As Nullable(Of Double) ''' '''The price currency ''' Public Overridable Property CurrencyId As String ''' '''The price sign ''' Public Overridable Property PriceSign As String ''' '''The price category ''' Public Overridable Property Category As String ''' '''The price VAT in percent ''' Public Overridable Property VAT As Nullable(Of Decimal) ''' '''The price text to display ''' Public Overridable Property PriceText As String ''' '''If the quantity you add should occupy a spot. Default is true. If no it will only be a row that includes price information. ''' Public Overridable Property OccupiesSpot As Boolean End Class Public Partial Class BookedResource Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property Color As String Public Overridable Property ImageUrl As Uri Public Overridable Property Email As String Public Overridable Property MobilePhone As String Public Overridable Property AccessGroup As String Public Overridable Property EmailNotification As Boolean Public Overridable Property SMSNotification As Boolean Public Overridable Property EmailReminder As Boolean Public Overridable Property SMSReminder As Boolean End Class Public Partial Class BookedResourceType Public Sub New() Resources = New List(Of BookedResource) End Sub ''' '''The resource type id ''' Public Overridable Property Id As Integer ''' '''The resource type name ''' Public Overridable Property Name As String ''' '''The resources inside resource type ''' Public Overridable Property Resources As List(Of BookedResource) End Class Public Partial Class BookingCalendarExportStatus Public Overridable Property CalendarId As String Public Overridable Property BookingId As Integer Public Overridable Property Synced As Nullable(Of Boolean) End Class Public Partial Class BookingCheckoutQueryResponse ''' '''The checkout id ''' Public Overridable Property Id As Guid ''' '''The booking id ''' Public Overridable Property BookingId As Integer ''' '''The purchase id ''' Public Overridable Property PurchaseId As Nullable(Of Integer) ''' '''The payment checkout expiration datetime ''' Public Overridable Property ExpirationTime As Nullable(Of Date) ''' '''The payment snippet code ''' Public Overridable Property Snippet As String ''' '''The payment status ''' Public Overridable Property Status As String ''' '''Log message ''' Public Overridable Property Message As String ''' '''When the checkout log item was created ''' Public Overridable Property Created As Date ''' '''When the checkout log item was updated ''' Public Overridable Property Updated As Date End Class Public Partial Class BookingLogQueryResponse ''' '''The booking log id ''' Public Overridable Property Id As Integer ''' '''The booking id ''' Public Overridable Property BookingId As Integer ''' '''The type of event ''' Public Overridable Property EventTypeId As Integer ''' '''The type of event ''' Public Overridable Property EventType As BookingLogEventTypeResponse ''' '''Comments that could be added to the event log item ''' Public Overridable Property Comments As String ''' '''The user created the event ''' Public Overridable Property UserName As String ''' '''Then date when the event occured ''' Public Overridable Property Created As Date End Class Public Partial Class BookingPaymentLogQueryResponse ''' '''The booking payment log id ''' Public Overridable Property Id As Integer ''' '''The booking id ''' Public Overridable Property BookingId As Integer ''' '''The payment reference id ''' Public Overridable Property PaymentReferenceId As String ''' '''The payment order item reference id ''' Public Overridable Property OrderItemReferenceId As String ''' '''The payment reference id ''' Public Overridable Property PaymentProviderId As Nullable(Of Integer) ''' '''The payment amount ''' Public Overridable Property Amount As Double ''' '''The payment VAT in percent ''' Public Overridable Property VAT As Decimal ''' '''The payment amount that is credited ''' Public Overridable Property AmountCredited As Double ''' '''The payment currency id ''' Public Overridable Property CurrencyId As String ''' '''The payment currency info ''' Public Overridable Property CurrencyInfo As CurrencyInfoResponse ''' '''Comments that could be added to the event log item ''' Public Overridable Property Comments As String ''' '''The date when the payment items was created ''' Public Overridable Property Created As Date ''' '''The date when the payment items was update ''' Public Overridable Property Updated As Date End Class Public Partial Class BookingQueryResponse Public Sub New() CustomFields = New List(Of CustomFieldConfigData) CustomFieldValues = New List(Of CustomFieldDataResponse) BookedResourceTypes = New List(Of BookedResourceType) Quantities = New List(Of BookedQuantity) Log = New List(Of BookingLogQueryResponse) PaymentLog = New List(Of BookingPaymentLogQueryResponse) CheckoutLog = New List(Of BookingCheckoutQueryResponse) ExternalReference = New List(Of ExternalReferenceResponse) End Sub 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 Nullable(Of Date) Public Overridable Property CustomFields As List(Of CustomFieldConfigData) Public Overridable Property CustomFieldValues As List(Of CustomFieldDataResponse) Public Overridable Property BookedResourceTypes As List(Of BookedResourceType) Public Overridable Property Company As BookedCompany Public Overridable Property Customer As BookedCustomer Public Overridable Property Quantities As List(Of BookedQuantity) Public Overridable Property Service As ServiceInfoResponse Public Overridable Property PaymentExpiration As Nullable(Of Date) Public Overridable Property Log As List(Of BookingLogQueryResponse) Public Overridable Property PaymentLog As List(Of BookingPaymentLogQueryResponse) Public Overridable Property CheckoutLog As List(Of BookingCheckoutQueryResponse) Public Overridable Property ExternalReference As List(Of ExternalReferenceResponse) Public Overridable Property ResponseStatus As ResponseStatus Public Overridable Property CalendarExportStatus As BookingCalendarExportStatus Public Overridable Property LengthInMinutes As Nullable(Of 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 Nullable(Of Date) Public Overridable Property CancellationCode As String Public Overridable Property RatingCode As String End Class Public Partial Class BookingStatusQueryResponse Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property Description As String Public Overridable Property Icon As String Public Overridable Property Color As String End Class Public Partial Class ChangeResourceOnBooking Implements IReturn(Of BookingQueryResponse) Implements ICompany ''' '''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 booking ''' Public Overridable Property Id As Nullable(Of Integer) ''' '''The resource type id ''' Public Overridable Property ResourceTypeId As Integer ''' '''The resource id you want to replace ''' Public Overridable Property ResourceId As Integer ''' '''The resource id to be replaced with ''' Public Overridable Property NewResourceId As Integer End Class Public Partial Class CurrencyInfoResponse ''' '''The currency id ''' Public Overridable Property Id As String ''' '''The currency id ''' Public Overridable Property Name As String ''' '''The currency id ''' Public Overridable Property CurrencySign As String End Class Public Partial Class CustomFieldConfigData Public Sub New() Values = New List(Of CustomFieldValueResponse) End Sub ''' '''Custom field id ''' Public Overridable Property Id As Integer ''' '''Configuration name. Example: 'Number of persons'. ''' Public Overridable Property Name As String ''' '''Custom field description. Example: 'For how many persons is this booking?' ''' Public Overridable Property Description As String ''' '''Field width. Example: 20 for 20px ''' Public Overridable Property Width As Nullable(Of Integer) ''' '''Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' ''' Public Overridable Property DataType As String ''' '''Default value of the field. Example: '3' ''' Public Overridable Property DefaultValue As String ''' '''Determines if the field is required to have a value or not ''' Public Overridable Property IsMandatory As Boolean ''' '''Error message shown to the user if the field data is required but not entered ''' Public Overridable Property MandatoryErrorMessage As String ''' '''Max lenght of the field ''' Public Overridable Property MaxLength As Integer ''' '''If the field should have multiple lines ''' Public Overridable Property MultipleLineText As Boolean ''' '''Regular expression used for validation of the field ''' Public Overridable Property RegEx As String ''' '''Error message shown if the regular expression validation failed ''' Public Overridable Property RegExErrorMessage As String ''' '''The values to select from if Datatype is DropDown for this custom field ''' Public Overridable Property Values As List(Of CustomFieldValueResponse) End Class Public Partial Class CustomFieldDataResponse Public Overridable Property Id As Integer Public Overridable Property Column As String Public Overridable Property Name As String Public Overridable Property Description As String Public Overridable Property Value As String ''' '''Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' ''' Public Overridable Property DataType As String End Class Public Partial Class CustomFieldValueResponse Public Overridable Property Value As String End Class Public Partial Class ExternalReferenceResponse Public Overridable Property CompanyId As Guid Public Overridable Property Id As Guid Public Overridable Property OwnerId As Guid Public Overridable Property ReferenceType As String Public Overridable Property ExternalData As String Public Overridable Property CreatedBy As String Public Overridable Property Updated As Date Public Overridable Property Created As Date 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 MinNumberOfSpotsPerBooking 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 End Namespace Namespace BokaMera.API.ServiceModel.Enums Public Enum BookingStatusEnum Booked = 1 Unbooked = 2 Reserved = 3 Canceled = 4 AwaitingPayment = 5 AwaitingPaymentNoTimeLimit = 6 Payed = 7 AwaitingPaymentRequestFromAdmin = 8 AwaitingPaymentFromProvider = 9 Invoiced = 10 End Enum End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace