BokaMera.API.Host

<back to all web services

SuperAdminCompanyInvoiceQuery

Requires Authentication
Requires the role:superadmin
The following routes are available for this service:
GET/superadmin/billing/company/invoicesGet all company invoices for the subscriptionGet all company invoices for the subscription you have assigned to.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BokaMera.API.ServiceModel.Dtos
Imports BokaMera.API.ServiceModel.Db
Imports BokaMera.API.ServiceModel.Enums
Imports BokaMera.API.ServiceModel.Interfaces
Imports QvicklyIntegration.Models.Checkout
Imports PaysonIntegrationCO2.Models
Imports PaysonIntegrationCO2.Models.Enums

Namespace Global

    Namespace BokaMera.API.ServiceModel.Db

        Public Partial Class AdminPaymentOptions
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class AverageRatingScore
            Public Overridable Property AverageScore As Double
            Public Overridable Property Score1Count As Integer
            Public Overridable Property Score2Count As Integer
            Public Overridable Property Score3Count As Integer
            Public Overridable Property Score4Count As Integer
            Public Overridable Property Score5Count As Integer
            Public Overridable Property Count As Integer
        End Class

        Public Partial Class BaseModel
        End Class

        Public Partial Class BillingInformation
            Inherits BaseModel
            Public Overridable Property BillingMethod As BillingMethod
            <Required>
            Public Overridable Property BillingMethodId As Integer

            <Required>
            Public Overridable Property Name As String

            Public Overridable Property Attention 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 Email As String
            Public Overridable Property CreditCard As String
            Public Overridable Property CreditCardHolder As String
            Public Overridable Property CreditCardNumber As String
            Public Overridable Property ValidToYear As Nullable(Of Short)
            Public Overridable Property ValidToMonth As Nullable(Of Short)
            Public Overridable Property CSV As String
            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property CountryId As String

            <Required>
            Public Overridable Property PaymentTermsDays As Integer

            Public Overridable Property VATRegistrationNumber As String
            Public Overridable Property GLN As String
            Public Overridable Property ReferenceLine1 As String
            Public Overridable Property ReferenceLine2 As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class BillingMethod
            Inherits BaseModel
            Public Sub New()
                BillingMethodCountriesRelation = New List(Of BillingMethodCountriesRelation)
            End Sub

            Public Overridable Property BillingMethodCountriesRelation As List(Of BillingMethodCountriesRelation)
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class BillingMethodCountriesRelation
            Inherits BaseModel
            <Required>
            Public Overridable Property BillingMethodId As Integer

            <Required>
            Public Overridable Property CountryId As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class Booking
            Inherits BaseModel
            Implements IInterval
            Implements ICustomFieldTable
            Implements IBaseModelUpdated
            Implements IBaseModelCreated
            Public Sub New()
                Log = New List(Of BookingLog)
                PaymentLog = New List(Of PaymentLog)
                CheckoutLogs = New List(Of PaymentDetails)
                Prices = New List(Of BookingPrice)
                PriceMappings = New List(Of PriceMapping)
            End Sub

            <Ignore>
            Public Overridable Property Customer As Customer

            <Ignore>
            Public Overridable Property Service As Service

            <Ignore>
            Public Overridable Property CalendarExport As CalendarExport

            <Ignore>
            Public Overridable Property Log As List(Of BookingLog)

            <Ignore>
            Public Overridable Property PaymentLog As List(Of PaymentLog)

            <Ignore>
            Public Overridable Property CheckoutLogs As List(Of PaymentDetails)

            <Ignore>
            Public Overridable Property Prices As List(Of BookingPrice)

            <Ignore>
            Public Overridable Property Status As BookingStatusEnum

            <Ignore>
            Public Overridable Property isReserved As Boolean

            <Ignore>
            Public Overridable Property StatusName As String

            <Ignore>
            Public Overridable Property Company As Company

            <References(GetType(Currency))>
            Public Overridable Property CurrencyId As String

            Public Overridable Property CurrencyInfo As Currency
            Public Overridable Property BookingStatus As BookingStatus
            <Ignore>
            Public Overridable Property TotalPrice As Nullable(Of Double)

            <Ignore>
            Public Overridable Property TotalSpots As Nullable(Of Integer)

            <Ignore>
            Public Overridable Property Resources As IList(Of Resource)

            <Ignore>
            Public Overridable Property ExternalReferences As IList(Of ExternalReference)

            <Ignore>
            Public Overridable Property BookedResources As IList(Of BookedResourceType)

            <Ignore>
            Public Overridable Property CustomFieldsConfig As IList(Of CustomFieldConfig)

            <Ignore>
            Public Overridable Property CustomFieldsData As IList(Of CustomFieldDataResponse)

            <Ignore>
            Public Overridable Property Active As Boolean

            <Ignore>
            Public Overridable Property LastTimeToUnBook As Nullable(Of Date)

            <Ignore>
            Public Overridable Property PriceMappings As List(Of PriceMapping)

            <Required>
            Public Overridable Property UpdatedDate As Date

            <Required>
            Public Overridable Property CreatedDate As Date

            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property CustomerId As Guid

            <Required>
            Public Overridable Property ServiceId As Integer

            <Required>
            Public Overridable Property StatusId As Integer

            Public Overridable Property UnbookedOn As Nullable(Of Date)
            Public Overridable Property UnbookedComments As String
            Public Overridable Property BookedComments As String
            <Required>
            Public Overridable Property BookedBy As String

            Public Overridable Property UnBookedBy As String
            <Required>
            Public Overridable Property SendSmsReminder As Boolean

            <Required>
            Public Overridable Property SendEmailReminder As Boolean

            <Required>
            Public Overridable Property SendSmsConfirmation As Boolean

            Public Overridable Property RebateCode As String
            Public Overridable Property Comments As String
            Public Overridable Property IpAddress As String
            <Required>
            Public Overridable Property NumberOfBookedSpots As Integer

            Public Overridable Property CommentsToCustomer As String
            Public Overridable Property PaymentExpiration As Nullable(Of Date)
            Public Overridable Property PriceVat As Nullable(Of Decimal)
            <Required>
            Public Overridable Property SendEmailConfirmation As Boolean

            Public Overridable Property CancellationCode As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property RatingCode As String
            Public Overridable Property TextField1 As String
            Public Overridable Property TextField2 As String
            Public Overridable Property TextField3 As String
            Public Overridable Property TextField4 As String
            Public Overridable Property TextField5 As String
            Public Overridable Property TextField6 As String
            Public Overridable Property TextField7 As String
            Public Overridable Property TextField8 As String
            Public Overridable Property TextField9 As String
            Public Overridable Property TextField10 As String
            Public Overridable Property TextField11 As String
            Public Overridable Property TextField12 As String
            Public Overridable Property TextField13 As String
            Public Overridable Property TextField14 As String
            Public Overridable Property TextField15 As String
            Public Overridable Property TextField16 As String
            Public Overridable Property TextField17 As String
            Public Overridable Property TextField18 As String
            Public Overridable Property TextField19 As String
            Public Overridable Property TextField20 As String
            <Required>
            Public Overridable Property From As Date

            <Required>
            Public Overridable Property To As Date
        End Class

        Public Partial Class BookingLog
            Inherits BaseModel
            <References(GetType(BookingLogEventType))>
            Public Overridable Property EventTypeId As Integer

            Public Overridable Property EventType As BookingLogEventType
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property BookingId As Integer

            Public Overridable Property Id As Integer
            Public Overridable Property Comments As String
            Public Overridable Property UserId As String
            <Required>
            Public Overridable Property Created As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class BookingLogEventType
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class BookingPrice
            Inherits BaseModel
            Public Sub New()
                AppliedCodes = New List(Of AppliedRebateCodes)
            End Sub

            <References(GetType(Currency))>
            Public Overridable Property CurrencyId As String

            Public Overridable Property PriceId As Nullable(Of Integer)
            Public Overridable Property CurrencyInfo As Currency
            <Ignore>
            Public Overridable Property PriceText As String

            <Ignore>
            Public Overridable Property AppliedCodes As List(Of AppliedRebateCodes)

            <Ignore>
            Public Overridable Property IsRebate As Boolean

            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property BookingId As Integer

            <Required>
            Public Overridable Property Quantity As Integer

            Public Overridable Property Price As Nullable(Of Double)
            Public Overridable Property VAT As Nullable(Of Decimal)
            Public Overridable Property Category As String
            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property Invoiced As Boolean

            <Required>
            Public Overridable Property OccupiesSpot As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class BookingSettings
            Inherits BaseModel
            Public Sub New()
                ScheduleViewOptions = New List(Of ScheduleView)
                WeekNumberSettingOptions = New List(Of WeekNumberSetting)
                BookingTemplateOptions = New List(Of BookingTemplate)
                CalendarTypeOptions = New List(Of CalendarType)
                FreeSpotTextOptions = New List(Of FreeSpotTexts)
                BookingStatusOptions = New List(Of BookingStatusOptions)
            End Sub

            <References(GetType(FreeSpotTexts))>
            Public Overridable Property FreeSpotTextsId As Integer

            <Ignore>
            Public Overridable Property SendEmailConfirmation As Boolean

            <Ignore>
            Public Overridable Property ScheduleViewOptions As List(Of ScheduleView)

            <Ignore>
            Public Overridable Property WeekNumberSettingOptions As List(Of WeekNumberSetting)

            <Ignore>
            Public Overridable Property BookingTemplateOptions As List(Of BookingTemplate)

            <Ignore>
            Public Overridable Property CalendarTypeOptions As List(Of CalendarType)

            <Ignore>
            Public Overridable Property FreeSpotTextOptions As List(Of FreeSpotTexts)

            <Ignore>
            Public Overridable Property BookingStatusOptions As List(Of BookingStatusOptions)

            Public Overridable Property FreeSpotTextsInfo As FreeSpotTexts
            <Ignore>
            Public Overridable Property FreeSpotsTextSingular As String

            <Ignore>
            Public Overridable Property FreeSpotsTextPlural As String

            <Required>
            Public Overridable Property BookingStatusId As Integer

            <Required>
            Public Overridable Property ScheduleViewId As Integer

            <Required>
            Public Overridable Property BookingTemplateId As Integer

            <Required>
            Public Overridable Property CalendarTypeId As Integer

            <Required>
            Public Overridable Property AllowBookingOnUnbookedTimes As Boolean

            <Required>
            Public Overridable Property SendEmailReminder As Boolean

            <Required>
            Public Overridable Property SendSmsReminder As Boolean

            <Required>
            Public Overridable Property SendSmsConfirmation As Boolean

            <Required>
            Public Overridable Property EmailReminderTime As Integer

            <Required>
            Public Overridable Property SmsReminderTime As Integer

            <Required>
            Public Overridable Property MaxActiveBookings As Integer

            <Required>
            Public Overridable Property SendNotifications As Boolean

            Public Overridable Property SendNotificationsEmail As String
            <Required>
            Public Overridable Property EnableMobileApp As Boolean

            Public Overridable Property ScheduleStartTime As Nullable(Of TimeSpan)
            Public Overridable Property ScheduleEndTime As Nullable(Of TimeSpan)
            Public Overridable Property ReceiptTemplate As String
            <Required>
            Public Overridable Property ScheduleTimeSlotMinutes As Integer

            <Required>
            Public Overridable Property ShowFreeTimesLeft As Boolean

            <Required>
            Public Overridable Property EnableICalGroupBookings As Boolean

            Public Overridable Property AgreementTemplate As String
            <Required>
            Public Overridable Property ScheduleShowTimeExeptions As Boolean

            <Required>
            Public Overridable Property EnableBookingsOnSameTime As Boolean

            <Required>
            Public Overridable Property ShowWeekNumberSettingId As Integer

            <Required>
            Public Overridable Property EnableShowBookedTimes As Boolean

            <Required>
            Public Overridable Property EnableSendFollowUpMessage As Boolean

            <Required>
            Public Overridable Property FollowUpMessageTime As Integer

            Public Overridable Property MessageText As String
            <Required>
            Public Overridable Property ScheduleGroupResources As Boolean

            <Required>
            Public Overridable Property BookSpotUserResponseMinutes As Integer

            <Required>
            Public Overridable Property IsBookSpotDirectly As Boolean

            <Required>
            Public Overridable Property BookSpotDirectlyTimeLeftMinutes As Integer

            <Required>
            Public Overridable Property SendEmailNotificationQueue As Boolean

            <Required>
            Public Overridable Property SendSMSNotificationQueue As Boolean

            <Required>
            Public Overridable Property SchedulerDisableHorizontalScrolling As Boolean

            <Required>
            Public Overridable Property BookOnlyOnExistingCustomers As Boolean

            <Required>
            Public Overridable Property AutoGenerateUniquePinCode As Boolean

            <Required>
            Public Overridable Property WeightedPrices As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property AutoCreateUserProfile As Boolean

            Public Overridable Property ShowMultipleResourcesAsOne As Boolean
            Public Overridable Property ShowMultiDayAsTime As Boolean
            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class BookingStatus
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Color As String

            <Required>
            Public Overridable Property Icon As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class BookingStatusOptions
            Public Overridable Property Id As Integer
            Public Overridable Property Name As String
            Public Overridable Property Description As String
        End Class

        Public Partial Class BookingTemplate
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property UsedByApplication As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class CalendarExport
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property BookingId As Integer

            <Required>
            Public Overridable Property ExceptionId As Integer

            Public Overridable Property CalendarSync As Nullable(Of Boolean)
            Public Overridable Property CalendarId As String
            Public Overridable Property IsExceptionDeleted As Nullable(Of Boolean)
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class CalendarType
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class CodeLockSetting
            Inherits BaseModel
            Public Sub New()
                CodeLockSystemOptions = New List(Of CodeLockSystem)
            End Sub

            <Ignore>
            Public Overridable Property CodeLockSystemOptions As List(Of CodeLockSystem)

            <Required>
            Public Overridable Property Active As Boolean

            <Required>
            Public Overridable Property CodeLockSystemsId As Integer

            <Required>
            Public Overridable Property ValidBeforeMinutes As Integer

            <Required>
            Public Overridable Property ValidAfterMinutes As Integer

            <Required>
            Public Overridable Property DeleteOldBySchedule As Boolean

            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property Updated As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property SendEmailNotification As Boolean

            <Required>
            Public Overridable Property SendSMSNotification As Boolean

            <Required>
            Public Overridable Property EmailNotificationTime As Short

            <Required>
            Public Overridable Property SMSNotificationTime As Short

            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class CodeLockSystem
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Supplier As String

            Public Overridable Property LogoType As String
            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class Company
            Inherits BaseModel
            Public Sub New()
                Ratings = New List(Of Rating)
                Licenses = New List(Of License)
                ActiveLicenses = New List(Of License)
            End Sub

            <Ignore>
            Public Overridable Property Status As CompanyStatus

            <Ignore>
            Public Overridable Property Active As Boolean

            <Ignore>
            Public Overridable Property CustomerCustomFieldsConfig As IList(Of CustomFieldConfig)

            <Ignore>
            Public Overridable Property BookingAgreements As String

            <Ignore>
            Public Overridable Property BookingSettings As BookingSettings

            <Ignore>
            Public Overridable Property CompanyType As CompanyType

            <Ignore>
            Public Overridable Property CodeLockSettings As CodeLockSetting

            <Ignore>
            Public Overridable Property PaymentSettings As PaymentSetting

            <Ignore>
            Public Overridable Property Settings As CompanySetting

            <Ignore>
            Public Overridable Property WidgetSettings As HomepageWidgetSetting

            <Ignore>
            Public Overridable Property HomepageSettings As HomepageSetting

            <Ignore>
            Public Overridable Property RatingScore As AverageRatingScore

            <Ignore>
            Public Overridable Property Ratings As List(Of Rating)

            <Ignore>
            Public Overridable Property Distance As Nullable(Of Double)

            <Ignore>
            Public Overridable Property Licenses As List(Of License)

            <Ignore>
            Public Overridable Property ActiveLicenses As List(Of License)

            <Ignore>
            Public Overridable Property CurrentLicense As License

            <Ignore>
            Public Overridable Property IsFreeAccount As Boolean

            <Ignore>
            Public Overridable Property DefaultLanguage As CultureInfo

            Public Overridable Property Category As CompanyCategory
            <Ignore>
            Public Overridable Property Lat As Double

            <Ignore>
            Public Overridable Property Lon As Double

            <Ignore>
            Public Overridable Property IsFavorite As Boolean

            <Ignore>
            Public Overridable Property ExternalReferences As IList(Of ExternalReference)

            <Required>
            Public Overridable Property OrganisationNumber As String

            <Required>
            Public Overridable Property StatusId As Integer

            <Required>
            Public Overridable Property CategoryId As Integer

            <Required>
            Public Overridable Property SitePath As String

            <Required>
            Public Overridable Property Name 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 OpeningHours As String
            Public Overridable Property FaxNumber As String
            <Required>
            Public Overridable Property Email As String

            Public Overridable Property Phone As String
            Public Overridable Property Details As String
            Public Overridable Property LogoType As String
            <Required>
            Public Overridable Property ApprovedByAdmin As Boolean

            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            Public Overridable Property IpAddress As String
            Public Overridable Property Homepage As String
            Public Overridable Property DomainName As String
            <Required>
            Public Overridable Property CountryId As String

            <Required>
            Public Overridable Property CompanyOwnerId As Integer

            Public Overridable Property TypeId As Nullable(Of Integer)
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class CompanyCategory
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Header As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ImageUrl As Uri
            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property SortOrder As Nullable(Of Integer)
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class CompanyInvoice
            Inherits BaseModel
            Public Sub New()
                InvoiceLines = New List(Of CompanyInvoiceLine)
                ExternalReferences = New List(Of ExternalReference)
            End Sub

            <References(GetType(Currency))>
            Public Overridable Property CurrencyId As String

            Public Overridable Property CurrencyInfo As Currency
            Public Overridable Property InvoiceStatus As InvoiceStatus
            <Ignore>
            Public Overridable Property InvoiceLines As List(Of CompanyInvoiceLine)

            <Ignore>
            Public Overridable Property BillingInformation As BillingInformation

            <Ignore>
            Public Overridable Property ExternalReferences As List(Of ExternalReference)

            <Ignore>
            Public Overridable Property Company As Company

            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property StatusId As Integer

            <Required>
            Public Overridable Property InvoiceDate As Date

            Public Overridable Property DueDate As Nullable(Of Date)
            <Required>
            Public Overridable Property PeriodFrom As Date

            <Required>
            Public Overridable Property PeriodTo As Date

            <Required>
            Public Overridable Property TotalAmount As Double

            <Required>
            Public Overridable Property Rounding As Double

            <Required>
            Public Overridable Property VAT As Decimal

            <Required>
            Public Overridable Property VATRegistrationNo As String

            <Required>
            Public Overridable Property RegistrationNumber As String

            <Required>
            Public Overridable Property CompanyName As String

            Public Overridable Property ContactPerson As String
            Public Overridable Property Street1 As String
            Public Overridable Property Street2 As String
            Public Overridable Property City As String
            Public Overridable Property Zip As String
            Public Overridable Property Country As String
            Public Overridable Property PaymentMethod As String
            Public Overridable Property ViewedDate As Nullable(Of Date)
            Public Overridable Property ViewedBy As String
            Public Overridable Property Message As String
            Public Overridable Property Updated As Nullable(Of Date)
            Public Overridable Property Created As Nullable(Of Date)
            Public Overridable Property PromikBookInvoiceId As Nullable(Of Integer)
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class CompanyInvoiceLine
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property InvoiceId As Integer

            <Required>
            Public Overridable Property Id As Integer

            <Required>
            Public Overridable Property PeriodFrom As Date

            <Required>
            Public Overridable Property PeriodTo As Date

            Public Overridable Property ArticleNumber As Nullable(Of Integer)
            <Required>
            Public Overridable Property ArticleName As String

            <Required>
            Public Overridable Property ArticleDescription As String

            <Required>
            Public Overridable Property Quantity As Integer

            <Required>
            Public Overridable Property UnitPrice As Double

            <Required>
            Public Overridable Property SubTotal As Double

            <Required>
            Public Overridable Property Rebate As Integer

            Public Overridable Property Updated As Nullable(Of Date)
            Public Overridable Property Created As Nullable(Of Date)
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class CompanySetting
            Inherits BaseModel
            Public Sub New()
                Languages = New List(Of LanguageResponse)
            End Sub

            <Ignore>
            Public Overridable Property Languages As List(Of LanguageResponse)

            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property InactiveMessage As String
            <Required>
            Public Overridable Property Searchable As Boolean

            Public Overridable Property GATrackingId As String
            Public Overridable Property FacebookPixelId As String
            <Required>
            Public Overridable Property MultiLanguage As Boolean

            <Required>
            Public Overridable Property EnableAPITranslation As Boolean

            <Required>
            Public Overridable Property DefaultLanguage As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property GTMTrackingId As String
            <Required>
            Public Overridable Property ShowOnMarketPlace As Boolean

            Public Overridable Property GoogleAdsConversionId As String
            Public Overridable Property LinkedinTagId As String
            Public Overridable Property GoogleAdsConversionLabel As String
            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class CompanyType
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class Country
            Inherits BaseModel
            <References(GetType(Currency))>
            Public Overridable Property CurrencyId As String

            Public Overridable Property CurrencyInfo As Currency
            <Required>
            Public Overridable Property Name As String

            Public Overridable Property Culture As String
            Public Overridable Property TimeZone As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As String
        End Class

        Public Partial Class Currency
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property CurrencySign As String

            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As String
        End Class

        Public Partial Class Customer
            Inherits BaseModel
            Implements IUser
            Implements ICustomFieldTable
            Public Overridable Property IdentityId As Integer
            Public Overridable Property Id As Guid
            <Ignore>
            Public Overridable Property CustomerId As Guid

            <Ignore>
            Public Overridable Property AccessKeys As IList(Of UserAccessKeys)

            Public Overridable Property Email As String
            <Ignore>
            Public Overridable Property ExternalReferences As IList(Of ExternalReference)

            <Ignore>
            Public Overridable Property CustomFieldsConfig As IList(Of CustomFieldConfig)

            <Ignore>
            Public Overridable Property CustomFieldsData As IList(Of CustomFieldDataResponse)

            <Ignore>
            Public Overridable Property Comments As IList(Of CustomerComment)

            Public Overridable Property Firstname As String
            <Ignore>
            Public Overridable Property ImageUrl As String

            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property FacebookUsername As String
            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            Public Overridable Property IpAddress As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property TextField1 As String
            Public Overridable Property TextField2 As String
            Public Overridable Property TextField3 As String
            Public Overridable Property TextField4 As String
            Public Overridable Property TextField5 As String
            Public Overridable Property TextField6 As String
            Public Overridable Property TextField7 As String
            Public Overridable Property TextField8 As String
            Public Overridable Property TextField9 As String
            Public Overridable Property TextField10 As String
            Public Overridable Property TextField11 As String
            Public Overridable Property TextField12 As String
            Public Overridable Property TextField13 As String
            Public Overridable Property TextField14 As String
            Public Overridable Property TextField15 As String
            Public Overridable Property TextField16 As String
            Public Overridable Property TextField17 As String
            Public Overridable Property TextField18 As String
            Public Overridable Property TextField19 As String
            Public Overridable Property TextField20 As String
            Public Overridable Property UserId As Guid
            Public Overridable Property Lastname As String
            Public Overridable Property Phone 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
            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property SubscribedToNewsletter As Boolean
        End Class

        Public Partial Class CustomerComment
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property CustomerId As Guid

            <Required>
            Public Overridable Property Comments As String

            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            Public Overridable Property ImageUrl As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class CustomField
            Inherits BaseModel
            <Required>
            Public Overridable Property Table As String

            <Required>
            Public Overridable Property Column As String

            <Required>
            Public Overridable Property DataType As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class CustomFieldConfig
            Inherits BaseModel
            Public Sub New()
                Values = New List(Of CustomFieldValue)
                Services = New List(Of Service)
                CustomFieldServiceRelation = New List(Of CustomFieldServiceRelation)
            End Sub

            <Ignore>
            Public Overridable Property Values As List(Of CustomFieldValue)

            Public Overridable Property CustomField As CustomField
            <Ignore>
            Public Overridable Property RegEx As RegEx

            <Ignore>
            Public Overridable Property Services As List(Of Service)

            Public Overridable Property CustomFieldServiceRelation As List(Of CustomFieldServiceRelation)
            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            Public Overridable Property GroupId As Nullable(Of Integer)
            <Required>
            Public Overridable Property FieldId As Integer

            <Required>
            Public Overridable Property IconId As Integer

            Public Overridable Property RegExId As Nullable(Of Integer)
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Datatype As String

            <Required>
            Public Overridable Property MaxLength As Integer

            <Required>
            Public Overridable Property IsPublic As Boolean

            <Required>
            Public Overridable Property IsHidden As Boolean

            <Required>
            Public Overridable Property IsMandatory As Boolean

            Public Overridable Property DefaultValue As String
            Public Overridable Property RegExErrorMessage As String
            Public Overridable Property MandatoryErrorMessage As String
            Public Overridable Property Width As Nullable(Of Integer)
            <Required>
            Public Overridable Property MultipleLineText As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class CustomFieldServiceRelation
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property CustomFieldConfigId As Integer

            <Required>
            Public Overridable Property ServiceId As Integer

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class CustomFieldValue
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property Value As String

            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property SortOrder As Nullable(Of Short)
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class DaysOfWeek
            Inherits BaseModel
            <Required>
            Public Overridable Property DayOfWeek As String

            <Required>
            Public Overridable Property DayOfWeekTranslation As String

            Public Overridable Property DayOfWeekActive As Nullable(Of Boolean)
            Public Overridable Property DayOfWeekSortOrder As Nullable(Of Short)
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class ExternalReference
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property Id As Guid

            <Required>
            Public Overridable Property OwnerId As Guid

            <Required>
            Public Overridable Property ReferenceType As String

            Public Overridable Property ExternalData As String
            Public Overridable Property CreatedBy As String
            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class FreeSpotTexts
            Inherits BaseModel
            <Required>
            Public Overridable Property TextSingular As String

            <Required>
            Public Overridable Property TextPlural As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class HeroSectionStyle
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            Public Overridable Property Description As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class HomepageSetting
            Inherits BaseModel
            Implements ICompany
            Public Sub New()
                HomepageTemplateOptions = New List(Of HomepageTemplate)
                HomepageHeroSectionStyleOptions = New List(Of HeroSectionStyle)
            End Sub

            <Ignore>
            Public Overridable Property HomepageTemplateOptions As List(Of HomepageTemplate)

            <Ignore>
            Public Overridable Property HomepageHeroSectionStyleOptions As List(Of HeroSectionStyle)

            <Ignore>
            Public Overridable Property CompanyId As Nullable(Of Guid)

            Public Overridable Property WelcomePageHeading As String
            Public Overridable Property WelcomePageBody As String
            Public Overridable Property AboutUsPageHeading As String
            Public Overridable Property AboutUsPageBody As String
            <Required>
            Public Overridable Property HomePageTemplateId As Integer

            Public Overridable Property ImageUrl As String
            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            Public Overridable Property HomepageHeading As String
            <Required>
            Public Overridable Property HeroSectionStyleId As Integer

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property ShowRating As Boolean

            <Required>
            Public Overridable Property EnableHomepage As Boolean

            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class HomepageTemplate
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ImageUrl As Uri
            <Required>
            Public Overridable Property Premium As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class HomepageWidgetSetting
            Inherits BaseModel
            Public Sub New()
                WidgetServiceLayoutOptions = New List(Of WidgetServiceLayouts)
                WidgetTimeLayoutOptions = New List(Of WidgetTimeLayouts)
                WidgetBookingLayoutOptions = New List(Of WidgetBookingLayouts)
                WidgetBookingMethodOptions = New List(Of WidgetBookingMethods)
            End Sub

            <Ignore>
            Public Overridable Property WidgetServiceLayoutOptions As List(Of WidgetServiceLayouts)

            <Ignore>
            Public Overridable Property WidgetTimeLayoutOptions As List(Of WidgetTimeLayouts)

            <Ignore>
            Public Overridable Property WidgetBookingLayoutOptions As List(Of WidgetBookingLayouts)

            <Ignore>
            Public Overridable Property WidgetBookingMethodOptions As List(Of WidgetBookingMethods)

            <Required>
            Public Overridable Property ServiceLayoutId As Integer

            <Required>
            Public Overridable Property TimeLayoutId As Integer

            <Required>
            Public Overridable Property BookingLayoutId As Integer

            <Required>
            Public Overridable Property PrimaryColor As String

            <Required>
            Public Overridable Property ShowServiceImage As Boolean

            <Required>
            Public Overridable Property ShowNextAvailableTime As Boolean

            <Required>
            Public Overridable Property ShowEndTime As Boolean

            Public Overridable Property BookedTimeSlotText As String
            <Required>
            Public Overridable Property DarkTheme As Boolean

            <Required>
            Public Overridable Property ShowRebateCodeField As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property EnableCreateAccount As Boolean

            <Required>
            Public Overridable Property EnableLogin As Boolean

            <Required>
            Public Overridable Property EnableDirectBooking As Boolean

            <Required>
            Public Overridable Property EnableFacebookLogin As Boolean

            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class InvoiceStatus
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class License
            Inherits BaseModel
            Public Overridable Property Type As LicenseType
            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property TypeId As Integer

            <Required>
            Public Overridable Property ValidFrom As Date

            <Required>
            Public Overridable Property ValidTo As Date

            <Required>
            Public Overridable Property Active As Boolean

            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property MetaData As String
        End Class

        Public Partial Class LicensePrice
            Inherits BaseModel
            <Ignore>
            Public Overridable Property Country As Country

            <Ignore>
            Public Overridable Property MonthlyPayment As Boolean

            <Required>
            Public Overridable Property LicenseTypeId As Integer

            <Required>
            Public Overridable Property CountryId As String

            <Required>
            Public Overridable Property Price As Integer

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class LicenseType
            Inherits BaseModel
            <Ignore>
            Public Overridable Property LicenseItems As IList(Of LicenseTypeItem)

            <Ignore>
            Public Overridable Property Prices As IList(Of LicensePrice)

            <Ignore>
            Public Overridable Property PeriodOfNoticeDays As Integer

            <Ignore>
            Public Overridable Property NextLicenseOption As LicenseType

            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property ExtraLicenseOption As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class LicenseTypeItem
            Inherits BaseModel
            <Ignore>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property LicenseTypesId As Integer

            <Required>
            Public Overridable Property LicenseItemsId As Integer

            <Required>
            Public Overridable Property NumberOfItems As Integer

            Public Overridable Property Id As Integer
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class PaymentDetails
            Inherits BaseModel
            Implements IBaseModelCreated
            Implements IBaseModelUpdated
            <Ignore>
            Public Overridable Property QvicklyCheckoutSerialized As QvicklyCheckoutResponse

            <Ignore>
            Public Overridable Property Payson2CheckoutSerialized As Payson2CheckoutResponse

            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property BookingId As Integer

            <Required>
            Public Overridable Property ExternalResponseData As String

            <Required>
            Public Overridable Property ExternalResponseReference As String

            <Required>
            Public Overridable Property PaymentProviderId As Integer

            <Required>
            Public Overridable Property IsPayment As Boolean

            <Required>
            Public Overridable Property CreatedDate As Date

            <Required>
            Public Overridable Property UpdatedDate As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class PaymentLog
            Inherits BaseModel
            <References(GetType(Currency))>
            Public Overridable Property CurrencyId As String

            Public Overridable Property CurrencyInfo As Currency
            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property BookingId As Integer

            Public Overridable Property PaymentReferenceId As String
            Public Overridable Property PaymentProviderId As Nullable(Of Integer)
            Public Overridable Property OrderItemReferenceId As String
            Public Overridable Property Amount As Nullable(Of Double)
            Public Overridable Property VAT As Nullable(Of Decimal)
            Public Overridable Property AmountCredited As Nullable(Of Double)
            Public Overridable Property Comments As String
            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property Updated As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class PaymentProviders
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Category As String

            Public Overridable Property Url As String
            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class PaymentSetting
            Inherits BaseModel
            Public Sub New()
                AdminPaymentOptions = New List(Of AdminPaymentOptions)
                PaymentProviderOptions = New List(Of PaymentProviders)
            End Sub

            Public Overridable Property AdminPaymentOption As AdminPaymentOptions
            <Ignore>
            Public Overridable Property AdminPaymentOptions As List(Of AdminPaymentOptions)

            <Ignore>
            Public Overridable Property PaymentProviderOptions As List(Of PaymentProviders)

            <Required>
            Public Overridable Property Enabled As Boolean

            <Required>
            Public Overridable Property InvoiceFee As Integer

            <Required>
            Public Overridable Property AllowCreditCardPayment As Boolean

            <Required>
            Public Overridable Property AllowInvoicePayment As Boolean

            <Required>
            Public Overridable Property AllowBankPayment As Boolean

            <Required>
            Public Overridable Property GuaranteeOffered As Boolean

            <Required>
            Public Overridable Property RefundOnCancelBooking As Boolean

            Public Overridable Property DefaultPaymentOptionId As Nullable(Of Integer)
            <Required>
            Public Overridable Property PaymentProviderId As Integer

            <Required>
            Public Overridable Property SendPaymentRequestDirectly As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class PriceMapping
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property Id As Guid

            <Required>
            Public Overridable Property PriceId As Integer

            Public Overridable Property ReferenceType As String
            Public Overridable Property ExternalReference As String
            <Required>
            Public Overridable Property UpdatedDate As Date

            <Required>
            Public Overridable Property CreatedDate As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class Rating
            Inherits BaseModel
            Public Overridable Property ReviewId As Nullable(Of Guid)
            Public Overridable Property Review As Review
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property BookingId As Integer

            <Required>
            Public Overridable Property RatingScore As Integer

            <Required>
            Public Overridable Property Status As Integer

            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property Updated As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class RebateCode
            Inherits BaseModel
            Public Sub New()
                Services = New List(Of Service)
                RebateCodeDayOfWeekRelation = New List(Of RebateCodeDayOfWeekRelation)
                RebateCodeServiceRelation = New List(Of RebateCodeServiceRelation)
                RebateCodeBookingPriceRelation = New List(Of RebateCodeBookingPriceRelation)
                RebateCodeCustomerRelation = New List(Of RebateCodeCustomerRelation)
                DaysOfWeek = New List(Of DaysOfWeek)
                Customers = New List(Of Customer)
            End Sub

            <References(GetType(RebateCodeType))>
            Public Overridable Property RebateCodeTypeId As Integer

            Public Overridable Property RebateCodeTypeInfo As RebateCodeType
            <References(GetType(RebateCodeStatus))>
            Public Overridable Property RebateCodeStatusId As Integer

            Public Overridable Property RebateCodeStatusInfo As RebateCodeType
            <Ignore>
            Public Overridable Property Services As List(Of Service)

            Public Overridable Property RebateCodeDayOfWeekRelation As List(Of RebateCodeDayOfWeekRelation)
            Public Overridable Property RebateCodeServiceRelation As List(Of RebateCodeServiceRelation)
            Public Overridable Property RebateCodeBookingPriceRelation As List(Of RebateCodeBookingPriceRelation)
            Public Overridable Property RebateCodeCustomerRelation As List(Of RebateCodeCustomerRelation)
            <Ignore>
            Public Overridable Property DaysOfWeek As List(Of DaysOfWeek)

            <Ignore>
            Public Overridable Property Customers As List(Of Customer)

            <Ignore>
            Public Overridable Property RebateCodeStatus As RebateCodeStatus

            <Ignore>
            Public Overridable Property RebateCodeType As RebateCodeType

            <Ignore>
            Public Overridable Property CurrentNumberOfUsesPerCustomer As Integer

            <Ignore>
            Public Overridable Property IsSpecificByDayOfWeek As Boolean

            <Ignore>
            Public Overridable Property Active As Boolean

            Public Overridable Property CompanyId As Guid
            <Required>
            Public Overridable Property ValidFrom As Date

            <Required>
            Public Overridable Property ValidTo As Date

            <Required>
            Public Overridable Property RebateCodeSign As String

            <Required>
            Public Overridable Property RebateCodeValue As Integer

            <Required>
            Public Overridable Property MaxNumberOfUses As Integer

            <Required>
            Public Overridable Property MaxNumberOfUsesPerCustomer As Integer

            <Required>
            Public Overridable Property NumberOfUsesUsed As Integer

            Public Overridable Property PersonalNote As String
            <Required>
            Public Overridable Property CreatedBy As String

            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property UpdatedBy As String

            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property FromTime As TimeSpan

            <Required>
            Public Overridable Property ToTime As TimeSpan

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class RebateCodeBookingPriceRelation
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property PriceId As Integer

            <Required>
            Public Overridable Property RebateCodeId As Integer

            Public Overridable Property Id As Integer
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class RebateCodeCustomerRelation
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property CustomerId As Guid

            <Required>
            Public Overridable Property RebateCodeId As Integer

            Public Overridable Property Id As Integer
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class RebateCodeDayOfWeekRelation
            Inherits BaseModel
            <Ignore>
            Public Overridable Property DayOfWeek As BokaMeraDayOfWeek

            <Required>
            Public Overridable Property DayOfWeekId As Integer

            <Required>
            Public Overridable Property RebateCodeId As Integer

            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class RebateCodeServiceRelation
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property ServiceId As Integer

            <Required>
            Public Overridable Property RebateCodeId As Integer

            Public Overridable Property Id As Integer
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class RebateCodeStatus
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            Public Overridable Property Description As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class RebateCodeType
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            Public Overridable Property Description As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class RegEx
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property RegExCode As String

            Public Overridable Property ErrorMessage As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class Resource
            Inherits BaseModel
            Implements ICustomFieldTable
            Implements IBaseModelCreated
            Implements IBaseModelUpdated
            <Ignore>
            Public Overridable Property Priority As Integer

            <Ignore>
            Public Overridable Property Schedules As IList(Of ISchedule)

            <Ignore>
            Public Overridable Property Exceptions As IList(Of ITimeException)

            <Ignore>
            Public Overridable Property Bookings As IList(Of IBookedTime)

            <Ignore>
            Public Overridable Property CustomFieldsConfig As IList(Of CustomFieldConfig)

            <Ignore>
            Public Overridable Property CustomFieldsData As IList(Of CustomFieldDataResponse)

            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Active As Boolean

            Public Overridable Property Description As String
            Public Overridable Property ImageUrl As String
            <Required>
            Public Overridable Property UpdatedDate As Date

            <Required>
            Public Overridable Property CreatedDate As Date

            <Required>
            Public Overridable Property Color As String

            Public Overridable Property Email As String
            Public Overridable Property MobilePhone As String
            Public Overridable Property EmailNotification As Nullable(Of Boolean)
            Public Overridable Property SMSNotification As Nullable(Of Boolean)
            <Required>
            Public Overridable Property SendSMSReminder As Boolean

            <Required>
            Public Overridable Property SendEmailReminder As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property AccessGroup As String
            Public Overridable Property TextField1 As String
            Public Overridable Property TextField2 As String
            Public Overridable Property TextField3 As String
            Public Overridable Property TextField4 As String
            Public Overridable Property TextField5 As String
            Public Overridable Property TextField6 As String
            Public Overridable Property TextField7 As String
            Public Overridable Property TextField8 As String
            Public Overridable Property TextField9 As String
            Public Overridable Property TextField10 As String
            Public Overridable Property TextField11 As String
            Public Overridable Property TextField12 As String
            Public Overridable Property TextField13 As String
            Public Overridable Property TextField14 As String
            Public Overridable Property TextField15 As String
            Public Overridable Property TextField16 As String
            Public Overridable Property TextField17 As String
            Public Overridable Property TextField18 As String
            Public Overridable Property TextField19 As String
            Public Overridable Property TextField20 As String
        End Class

        Public Partial Class ResourceType
            Inherits BaseModel
            Implements IBaseModelCreated
            Implements IBaseModelUpdated
            Public Sub New()
                Resources = New List(Of Resource)
            End Sub

            <Ignore>
            Public Overridable Property SelectableByUser As Boolean

            <Ignore>
            Public Overridable Property Resources As List(Of Resource)

            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property Name As String

            Public Overridable Property Description As String
            <Required>
            Public Overridable Property Active As Boolean

            <Required>
            Public Overridable Property UpdatedDate As Date

            <Required>
            Public Overridable Property CreatedDate As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
        End Class

        Public Partial Class Review
            Inherits BaseModel
            Public Overridable Property ReviewId As Guid
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property Title As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Author As String

            <Required>
            Public Overridable Property Status As Integer

            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property Updated As Date

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property ReviewAnswer As String
        End Class

        Public Partial Class ScheduleView
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class Service
            Inherits BaseModel
            Implements ICustomFieldTable
            Implements IBaseModelCreated
            Implements IBaseModelUpdated
            Public Sub New()
                ResourceTypes = New List(Of ResourceType)
                Prices = New List(Of ServicePrice)
                BookingStatusOptions = New List(Of BookingStatusOptions)
                Ratings = New List(Of Rating)
            End Sub

            <Ignore>
            Public Overridable Property ResourceTypes As List(Of ResourceType)

            <Ignore>
            Public Overridable Property Resources As IEnumerable(Of Resource)

            <Ignore>
            Public Overridable Property TotalPrice As TotalPriceInformation

            <Ignore>
            Public Overridable Property Prices As List(Of ServicePrice)

            <Ignore>
            Public Overridable Property BookingStatusOptions As List(Of BookingStatusOptions)

            <Ignore>
            Public Overridable Property IsGroupBooking As Boolean

            <Ignore>
            Public Overridable Property IsMultipleResource As Boolean

            <Ignore>
            Public Overridable Property Settings As BookingSettings

            <Ignore>
            Public Overridable Property PaymentSetting As PaymentSetting

            <Ignore>
            Public Overridable Property BookingCustomFieldsConfig As IList(Of CustomFieldConfig)

            <Ignore>
            Public Overridable Property CustomerCustomFieldsConfig As IList(Of CustomFieldConfig)

            <Ignore>
            Public Overridable Property CustomFieldsConfig As IList(Of CustomFieldConfig)

            <Ignore>
            Public Overridable Property CustomFieldsData As IList(Of CustomFieldDataResponse)

            <Ignore>
            Public Overridable Property Schedules As IList(Of ISchedule)

            <Ignore>
            Public Overridable Property CustomerActiveBookings As IList(Of Booking)

            <Ignore>
            Public Overridable Property ScheduleType As ScheduleType

            <Ignore>
            Public Overridable Property LastTimeToUnbookThreshold As TimeSpan

            <Ignore>
            Public Overridable Property LastTimeToBookThreshold As TimeSpan

            <Ignore>
            Public Overridable Property RatingScore As AverageRatingScore

            <Ignore>
            Public Overridable Property Ratings As List(Of Rating)

            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property Group As String
            <Required>
            Public Overridable Property Active As Boolean

            <Required>
            Public Overridable Property SortOrder As Integer

            <Required>
            Public Overridable Property PauseAfterBooking As Integer

            <Required>
            Public Overridable Property UnbookBeforeDays As Integer

            <Required>
            Public Overridable Property UnbookBeforeHours As Integer

            <Required>
            Public Overridable Property UnbookBeforeMinutes As Integer

            <Required>
            Public Overridable Property BookBeforeDays As Integer

            <Required>
            Public Overridable Property BookBeforeHours As Integer

            <Required>
            Public Overridable Property BookBeforeMinutes As Integer

            Public Overridable Property Duration As Nullable(Of Integer)
            Public Overridable Property DurationTypeId As Integer
            Public Overridable Property MinDuration As Nullable(Of Integer)
            Public Overridable Property MaxDuration As Nullable(Of Integer)
            Public Overridable Property DurationInterval As Nullable(Of Integer)
            Public Overridable Property TotalSpots As Nullable(Of Integer)
            Public Overridable Property ImageUrl As String
            <Required>
            Public Overridable Property ScheduleTypeId As Integer

            <Required>
            Public Overridable Property UpdatedDate As Date

            <Required>
            Public Overridable Property CreatedDate As Date

            <Required>
            Public Overridable Property OnlyVisibleByAdmin As Boolean

            <Required>
            Public Overridable Property MaxNumberOfSpotsPerBooking As Integer

            <Required>
            Public Overridable Property MinNumberOfResourcesToBook As Integer

            <Required>
            Public Overridable Property MaxNumberOfResourcesToBook As Integer

            <Required>
            Public Overridable Property IsPaymentEnabled As Boolean

            <Required>
            Public Overridable Property MaxPaymentTime As Integer

            <Required>
            Public Overridable Property LockSpotsToBooking As Boolean

            <Required>
            Public Overridable Property EnableBookingQueue As Boolean

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property BookingStatusId As Integer

            <Required>
            Public Overridable Property EnableCodeLockSync As Boolean

            <Required>
            Public Overridable Property EnableCustomerManualPayment As Boolean

            Public Overridable Property PriceViewTypeId As Nullable(Of Integer)
            Public Overridable Property TextField1 As String
            Public Overridable Property TextField2 As String
            Public Overridable Property TextField3 As String
            Public Overridable Property TextField4 As String
            Public Overridable Property TextField5 As String
            Public Overridable Property TextField6 As String
            Public Overridable Property TextField7 As String
            Public Overridable Property TextField8 As String
            Public Overridable Property TextField9 As String
            Public Overridable Property TextField10 As String
            Public Overridable Property TextField11 As String
            Public Overridable Property TextField12 As String
            Public Overridable Property TextField13 As String
            Public Overridable Property TextField14 As String
            Public Overridable Property TextField15 As String
            Public Overridable Property TextField16 As String
            Public Overridable Property TextField17 As String
            Public Overridable Property TextField18 As String
            Public Overridable Property TextField19 As String
            Public Overridable Property TextField20 As String

            Public Partial Class TotalPriceInformation
                Public Sub New()
                    AppliedCodes = New List(Of AppliedRebateCodes)
                End Sub

                Public Overridable Property TotalPrice As Double
                Public Overridable Property TotalVATAmount As Double
                Public Overridable Property TotalRebate As Double
                Public Overridable Property TotalPriceBeforeRebate As Double
                Public Overridable Property AppliedCodes As List(Of AppliedRebateCodes)
                Public Overridable Property PriceSign As String
                Public Overridable Property CurrencyId As String
                Public Overridable Property VAT As Decimal
            End Class

            Public Partial Class AppliedRebateCodes
                Public Overridable Property RebateCodeId As Integer
                Public Overridable Property RebateCodeSign As String
                Public Overridable Property RebateCodeValue As Integer
                Public Overridable Property RebateAmount As Double
                Public Overridable Property RebateCodeType As RebateCodeType
            End Class
        End Class

        Public Partial Class ServicePrice
            Inherits BaseModel
            Implements IInterval
            Public Sub New()
                PriceMappings = New List(Of PriceMapping)
                DayOfWeeks = New List(Of ServicePriceDayOfWeekRelation)
                RebateCodesApplied = New List(Of RebateCode)
                OverlappingPrices = New List(Of ServicePrice)
            End Sub

            <References(GetType(Currency))>
            Public Overridable Property CurrencyId As String

            Public Overridable Property CurrencyInfo As Currency
            <Ignore>
            Public Overridable Property Service As Service

            <Ignore>
            Public Overridable Property PriceMappings As List(Of PriceMapping)

            <Ignore>
            Public Overridable Property isTimeSpecific As Boolean

            <Ignore>
            Public Overridable Property isDaysOfWeekSpecific As Boolean

            Public Overridable Property DayOfWeeks As List(Of ServicePriceDayOfWeekRelation)
            <Ignore>
            Public Overridable Property PriceBeforeRebate As Nullable(Of Double)

            <Ignore>
            Public Overridable Property RebateCodesApplied As List(Of RebateCode)

            <Ignore>
            Public Overridable Property PriceText As String

            <Ignore>
            Public Overridable Property IsWeighted As Boolean

            <Ignore>
            Public Overridable Property OverlappingPrices As List(Of ServicePrice)

            <Required>
            Public Overridable Property CompanyId As Guid

            Public Overridable Property Id As Integer
            <Required>
            Public Overridable Property ServiceId As Integer

            Public Overridable Property Price As Nullable(Of Double)
            <Required>
            Public Overridable Property Updated As Date

            <Required>
            Public Overridable Property Created As Date

            <Required>
            Public Overridable Property FromTime As TimeSpan

            <Required>
            Public Overridable Property ToTime As TimeSpan

            <Required>
            Public Overridable Property VAT As Decimal

            Public Overridable Property Category As String
            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property From As Date

            <Required>
            Public Overridable Property To As Date

            <Required>
            Public Overridable Property CalculationTypeId As Integer
        End Class

        Public Partial Class ServicePriceDayOfWeekRelation
            Inherits BaseModel
            <Ignore>
            Public Overridable Property DayOfWeek As BokaMeraDayOfWeek

            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property ServicePriceId As Integer

            <Required>
            Public Overridable Property DayOfWeekId As Integer

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class UserAccessKeys
            Inherits BaseModel
            <Required>
            Public Overridable Property CompanyId As Guid

            <Required>
            Public Overridable Property AccessKeyTypeId As Integer

            <Required>
            Public Overridable Property Value As String

            <Required>
            Public Overridable Property CustomerId As Guid

            Public Overridable Property Description As String
            <Required>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class WeekNumberSetting
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class WidgetBookingLayouts
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Code As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class WidgetBookingMethods
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Code As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class WidgetServiceLayouts
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Code As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class WidgetTimeLayouts
            Inherits BaseModel
            <Required>
            Public Overridable Property Name As String

            <Required>
            Public Overridable Property Description As String

            <Required>
            Public Overridable Property Code As String

            Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset)
            <Required>
            Public Overridable Property Id As Integer
        End Class
    End Namespace

    Namespace BokaMera.API.ServiceModel.Dtos

        Public Partial Class AccessKeyTypeResponse
            Public Overridable Property Id As Integer
            Public Overridable Property KeyType As String
            Public Overridable Property Description As String
        End Class

        Public Partial Class BillingInformationResponse
            Public Sub New()
                BillingMethodOptions = New List(Of BillingMethod)
            End Sub

            '''<Summary>
            '''The company id.
            '''</Summary>
            <ApiMember(Description:="The company id.")>
            Public Overridable Property CompanyId As Guid

            '''<Summary>
            '''The prefered billing method.
            '''</Summary>
            <ApiMember(Description:="The prefered billing method.", IsRequired:=true)>
            Public Overridable Property BillingMethodId As Integer

            '''<Summary>
            '''The name that should be printed on the billing information, normally this would be your company name.
            '''</Summary>
            <ApiMember(Description:="The name that should be printed on the billing information, normally this would be your company name.")>
            Public Overridable Property Name As String

            '''<Summary>
            '''If you want to add the attention to the billing address.
            '''</Summary>
            <ApiMember(Description:="If you want to add the attention to the billing address.")>
            Public Overridable Property Attention As String

            '''<Summary>
            '''The street for the billing adress. This is required when having postal invoice as billing method.
            '''</Summary>
            <ApiMember(Description:="The street for the billing adress. This is required when having postal invoice as billing method.")>
            Public Overridable Property Street1 As String

            '''<Summary>
            '''The street for the billing adress.
            '''</Summary>
            <ApiMember(Description:="The street for the billing adress.")>
            Public Overridable Property Street2 As String

            '''<Summary>
            '''The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.
            '''</Summary>
            <ApiMember(Description:="The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.")>
            Public Overridable Property ZipCode As String

            '''<Summary>
            '''The city for the billing adress. This is required when having postal invoice as billing method.
            '''</Summary>
            <ApiMember(Description:="The city for the billing adress. This is required when having postal invoice as billing method.")>
            Public Overridable Property City As String

            '''<Summary>
            '''The country for the billing adress. This is required when having postal invoice as billing method.
            '''</Summary>
            <ApiMember(Description:="The country for the billing adress. This is required when having postal invoice as billing method.")>
            Public Overridable Property CountryId As String

            '''<Summary>
            '''The billing email. This is required when having email invoice as billing method.
            '''</Summary>
            <ApiMember(Description:="The billing email. This is required when having email invoice as billing method.")>
            Public Overridable Property Email As String

            '''<Summary>
            '''The company global location number.
            '''</Summary>
            <ApiMember(Description:="The company global location number.")>
            Public Overridable Property GLN As String

            '''<Summary>
            '''You're internal rereference.
            '''</Summary>
            <ApiMember(Description:="You're internal rereference.")>
            Public Overridable Property ReferenceLine1 As String

            '''<Summary>
            '''You're internal rereference.
            '''</Summary>
            <ApiMember(Description:="You're internal rereference.")>
            Public Overridable Property ReferenceLine2 As String

            '''<Summary>
            '''The billing payment terms in days. This is default 15 days.
            '''</Summary>
            <ApiMember(Description:="The billing payment terms in days. This is default 15 days.")>
            Public Overridable Property PaymentTermsDays As Integer

            '''<Summary>
            '''The company vat registration number.
            '''</Summary>
            <ApiMember(Description:="The company vat registration number.")>
            Public Overridable Property VatRegistrationNumber As String

            '''<Summary>
            '''The billing method options to choose from
            '''</Summary>
            <ApiMember(Description:="The billing method options to choose from")>
            Public Overridable Property BillingMethodOptions As List(Of BillingMethod)
        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 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

            '''<Summary>
            '''The resource type id
            '''</Summary>
            <ApiMember(Description:="The resource type id")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''The resource type name
            '''</Summary>
            <ApiMember(Description:="The resource type name")>
            Public Overridable Property Name As String

            '''<Summary>
            '''The resources inside resource type
            '''</Summary>
            <ApiMember(Description:="The resources inside resource type")>
            Public Overridable Property Resources As List(Of BookedResource)
        End Class

        Public Partial Class CompanyInvoiceQueryResponse
            Public Sub New()
                InvoiceLines = New List(Of InvoiceLineResponse)
                ExternalReferences = New List(Of ExternalReference)
            End Sub

            '''<Summary>
            '''The company id
            '''</Summary>
            <ApiMember(Description:="The company id")>
            Public Overridable Property CompanyId As Guid

            '''<Summary>
            '''The invoice id
            '''</Summary>
            <ApiMember(Description:="The invoice id")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''Status of the invoice
            '''</Summary>
            <ApiMember(Description:="Status of the invoice")>
            Public Overridable Property StatusId As Integer

            '''<Summary>
            '''Date of the invoice
            '''</Summary>
            <ApiMember(Description:="Date of the invoice")>
            Public Overridable Property InvoiceDate As Date

            '''<Summary>
            '''Due date of the invoice
            '''</Summary>
            <ApiMember(Description:="Due date of the invoice")>
            Public Overridable Property DueDate As Nullable(Of Date)

            '''<Summary>
            '''What start date of the invoice period
            '''</Summary>
            <ApiMember(Description:="What start date of the invoice period")>
            Public Overridable Property PeriodFrom As Date

            '''<Summary>
            '''What end date of the invoice period
            '''</Summary>
            <ApiMember(Description:="What end date of the invoice period")>
            Public Overridable Property PeriodTo As Date

            '''<Summary>
            '''The total amount of the invoice
            '''</Summary>
            <ApiMember(Description:="The total amount of the invoice")>
            Public Overridable Property TotalAmount As Double

            '''<Summary>
            '''The rounding of the total amount
            '''</Summary>
            <ApiMember(Description:="The rounding of the total amount")>
            Public Overridable Property Rounding As Double

            '''<Summary>
            '''The VAT
            '''</Summary>
            <ApiMember(Description:="The VAT")>
            Public Overridable Property VAT As Decimal

            '''<Summary>
            '''The VAT registration number
            '''</Summary>
            <ApiMember(Description:="The VAT registration number")>
            Public Overridable Property VATRegistrationNo As String

            '''<Summary>
            '''The company registration number
            '''</Summary>
            <ApiMember(Description:="The company registration number")>
            Public Overridable Property RegistrationNumber As String

            '''<Summary>
            '''The company name
            '''</Summary>
            <ApiMember(Description:="The company name")>
            Public Overridable Property CompanyName As String

            '''<Summary>
            '''The company owner, used for grouping invoices per CompanyOwner
            '''</Summary>
            <ApiMember(Description:="The company owner, used for grouping invoices per CompanyOwner")>
            Public Overridable Property CompanyOwner As CompanyOwnerResponse

            '''<Summary>
            '''The company type
            '''</Summary>
            <ApiMember(Description:="The company type")>
            Public Overridable Property CompanyType As CompanyTypeResponse

            '''<Summary>
            '''The company contact person
            '''</Summary>
            <ApiMember(Description:="The company contact person")>
            Public Overridable Property ContactPerson As String

            '''<Summary>
            '''The company street
            '''</Summary>
            <ApiMember(Description:="The company street")>
            Public Overridable Property Street1 As String

            '''<Summary>
            '''The company street
            '''</Summary>
            <ApiMember(Description:="The company street")>
            Public Overridable Property Street2 As String

            '''<Summary>
            '''The company city
            '''</Summary>
            <ApiMember(Description:="The company city")>
            Public Overridable Property City As String

            '''<Summary>
            '''The company zip
            '''</Summary>
            <ApiMember(Description:="The company zip")>
            Public Overridable Property Zip As String

            '''<Summary>
            '''The company country
            '''</Summary>
            <ApiMember(Description:="The company country")>
            Public Overridable Property CountryId As String

            '''<Summary>
            '''The invoice currency
            '''</Summary>
            <ApiMember(Description:="The invoice currency")>
            Public Overridable Property CurrencyId As String

            '''<Summary>
            '''The invoice created date
            '''</Summary>
            <ApiMember(Description:="The invoice created date")>
            Public Overridable Property Created As Nullable(Of Date)

            '''<Summary>
            '''The invoice updated date
            '''</Summary>
            <ApiMember(Description:="The invoice updated date")>
            Public Overridable Property Updated As Nullable(Of Date)

            '''<Summary>
            '''The reference to promikbook invoice
            '''</Summary>
            <ApiMember(Description:="The reference to promikbook invoice")>
            Public Overridable Property PromikBookInvoiceId As Nullable(Of Integer)

            '''<Summary>
            '''Any invoice message
            '''</Summary>
            <ApiMember(Description:="Any invoice message")>
            Public Overridable Property Message As String

            '''<Summary>
            '''The currency information
            '''</Summary>
            <ApiMember(Description:="The currency information")>
            Public Overridable Property CurrencyInfo As CurrencyInfoResponse

            '''<Summary>
            '''The currency information
            '''</Summary>
            <ApiMember(Description:="The currency information")>
            Public Overridable Property InvoiceStatus As InvoiceStatusResponse

            '''<Summary>
            '''The currency information
            '''</Summary>
            <ApiMember(Description:="The currency information")>
            Public Overridable Property InvoiceLines As List(Of InvoiceLineResponse)

            '''<Summary>
            '''Billing information
            '''</Summary>
            <ApiMember(Description:="Billing information")>
            Public Overridable Property BillingInformation As BillingInformationResponse

            Public Overridable Property ExternalReferences As List(Of ExternalReference)
        End Class

        Public Partial Class CompanyOwnerResponse
            '''<Summary>
            '''Company owner id
            '''</Summary>
            <ApiMember(Description:="Company owner id")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''Company owner name
            '''</Summary>
            <ApiMember(Description:="Company owner name")>
            Public Overridable Property Name As String
        End Class

        Public Partial Class CompanyTypeResponse
            '''<Summary>
            '''Company type id
            '''</Summary>
            <ApiMember(Description:="Company type id")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''Company type name
            '''</Summary>
            <ApiMember(Description:="Company type name")>
            Public Overridable Property Name As String
        End Class

        Public Partial Class CurrencyInfoResponse
            '''<Summary>
            '''The currency id
            '''</Summary>
            <ApiMember(Description:="The currency id")>
            Public Overridable Property Id As String

            '''<Summary>
            '''The currency id
            '''</Summary>
            <ApiMember(Description:="The currency id")>
            Public Overridable Property Name As String

            '''<Summary>
            '''The currency id
            '''</Summary>
            <ApiMember(Description:="The currency id")>
            Public Overridable Property CurrencySign As String
        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
            '''<Summary>
            '''Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'
            '''</Summary>
            <ApiMember(Description:="Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'")>
            Public Overridable Property DataType As String
        End Class

        Public Partial Class InvoiceLineResponse
            '''<Summary>
            '''The invoice id
            '''</Summary>
            <ApiMember(Description:="The invoice id")>
            Public Overridable Property InvoiceId As Integer

            '''<Summary>
            '''The invoice line id
            '''</Summary>
            <ApiMember(Description:="The invoice line id")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''The invoice line period from date
            '''</Summary>
            <ApiMember(Description:="The invoice line period from date")>
            Public Overridable Property PeriodFrom As Date

            '''<Summary>
            '''The invoice line period to date
            '''</Summary>
            <ApiMember(Description:="The invoice line period to date")>
            Public Overridable Property PeriodTo As Date

            '''<Summary>
            '''The invoice line article number
            '''</Summary>
            <ApiMember(Description:="The invoice line article number")>
            Public Overridable Property ArticleNumber As Nullable(Of Integer)

            '''<Summary>
            '''The invoice line article name
            '''</Summary>
            <ApiMember(Description:="The invoice line article name")>
            Public Overridable Property ArticleName As String

            '''<Summary>
            '''The invoice line article description
            '''</Summary>
            <ApiMember(Description:="The invoice line article description")>
            Public Overridable Property ArticleDescription As String

            '''<Summary>
            '''The invoice line quantity
            '''</Summary>
            <ApiMember(Description:="The invoice line quantity")>
            Public Overridable Property Quantity As Integer

            '''<Summary>
            '''The invoice line unit price
            '''</Summary>
            <ApiMember(Description:="The invoice line unit price")>
            Public Overridable Property UnitPrice As Double

            '''<Summary>
            '''The invoice line sub total
            '''</Summary>
            <ApiMember(Description:="The invoice line sub total")>
            Public Overridable Property SubTotal As Double

            '''<Summary>
            '''The invoice line rebate in percent
            '''</Summary>
            <ApiMember(Description:="The invoice line rebate in percent")>
            Public Overridable Property Rebate As Integer

            '''<Summary>
            '''The invoice line updated date
            '''</Summary>
            <ApiMember(Description:="The invoice line updated date")>
            Public Overridable Property Updated As Nullable(Of Date)

            '''<Summary>
            '''The invoice line created date
            '''</Summary>
            <ApiMember(Description:="The invoice line created date")>
            Public Overridable Property Created As Nullable(Of Date)
        End Class

        Public Partial Class InvoiceStatusResponse
            '''<Summary>
            '''The status id
            '''</Summary>
            <ApiMember(Description:="The status id")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''The status name
            '''</Summary>
            <ApiMember(Description:="The status name")>
            Public Overridable Property Name As String

            '''<Summary>
            '''The status description
            '''</Summary>
            <ApiMember(Description:="The status description")>
            Public Overridable Property Description As String
        End Class

        Public Partial Class LanguageResponse
            Public Overridable Property Id As String
            Public Overridable Property Name As String
        End Class
    End Namespace

    Namespace BokaMera.API.ServiceModel.Enums

        Public Enum BokaMeraDayOfWeek
            Monday = 1
            Tuesday = 2
            Wednesday = 3
            Thursday = 4
            Friday = 5
            Saturday = 6
            Sunday = 7
        End Enum

        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

        Public Enum CompanyStatus
            Registered = 1
            AwaitingApproval = 2
            Approved = 3
            Inactive = 4
            ClosedDown = 5
            NotApproved = 6
        End Enum

        Public Enum ScheduleType
            NotDefined
            RecurringSchedule
            DateSchedule
        End Enum
    End Namespace

    Namespace BokaMera.API.ServiceModel.Interfaces

        Public Interface IBookedTime
            Implements IInterval
            Property Id As Integer
            Property ServiceId As Integer
            Property BookedSpots As Integer
            Property TotalSpots As Integer
            Property PauseAfterInMinutes As Integer
            Property Status As BookingStatusEnum
            Property StatusId As Integer
            Property Customer As BookedCustomer
        End Interface

        Public Interface ISchedule
            Property Resources As IList(Of Resource)
            Property Type As ScheduleType
            Property Active As Boolean
            Property IsResourceSpecific As Boolean
        End Interface

        Public Interface ITimeException
            Implements IInterval
            Property Id As Integer
            Property ReasonText As String
            Property IsBlock As Boolean
            Property ReasonTextPublic As String
            Property IsRecurring As Boolean
            Property ResourceIds As Integer()
        End Interface
    End Namespace

    Namespace PaysonIntegrationCO2.Models

        Public Partial Class Customer
            Public Overridable Property City As String
            Public Overridable Property CountryCode As String
            Public Overridable Property IdentityNumber As String
            Public Overridable Property Email As String
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property Phone As String
            Public Overridable Property PostalCode As String
            Public Overridable Property Street As String
            Public Overridable Property Reference As String
            Public Overridable Property Type As CustomerType
        End Class

        Public Partial Class Gui
            Public Overridable Property ColorScheme As ColorScheme
            Public Overridable Property Locale As String
            Public Overridable Property RequestPhone As Boolean
            Public Overridable Property PhoneOptional As Boolean
        End Class

        Public Partial Class History
            Public Overridable Property Created As Nullable(Of Date)
            Public Overridable Property ReadyToPay As Nullable(Of Date)
            Public Overridable Property ReadyToShip As Nullable(Of Date)
            Public Overridable Property Shipped As Nullable(Of Date)
            Public Overridable Property PaidToAccount As Nullable(Of Date)
            Public Overridable Property Canceled As Nullable(Of Date)
            Public Overridable Property Expired As Nullable(Of Date)
            Public Overridable Property Denied As Nullable(Of Date)
        End Class

        Public Partial Class Item
            Public Overridable Property ItemId As Guid
            Public Overridable Property DiscountRate As Decimal
            Public Overridable Property Ean As String
            Public Overridable Property ImageUri As Uri
            Public Overridable Property Name As String
            Public Overridable Property Quantity As Decimal
            Public Overridable Property Reference As String
            Public Overridable Property TaxRate As Decimal
            Public Overridable Property TotalPriceExcludingTax As Decimal
            Public Overridable Property TotalPriceIncludingTax As Decimal
            Public Overridable Property TotalTaxAmount As Decimal
            Public Overridable Property CreditedAmount As Decimal
            Public Overridable Property Type As ItemType
            Public Overridable Property UnitPrice As Decimal
            Public Overridable Property Uri As Uri
        End Class

        Public Partial Class Merchant
            Public Overridable Property CheckoutUri As Uri
            Public Overridable Property ConfirmationUri As Uri
            Public Overridable Property NotificationUri As Uri
            Public Overridable Property ValidationUri As Uri
            Public Overridable Property TermsUri As Uri
            Public Overridable Property Reference As String
            Public Overridable Property PartnerId As String
        End Class

        Public Partial Class Order
            Public Overridable Property Currency As Currency
            Public Overridable Property TotalFeeExcludingTax As Decimal
            Public Overridable Property TotalFeeIncludingTax As Decimal
            Public Overridable Property TotalPriceExcludingTax As Decimal
            Public Overridable Property TotalPriceIncludingTax As Decimal
            Public Overridable Property TotalTaxAmount As Decimal
            Public Overridable Property TotalCreditedAmount As Decimal
            Public Overridable Property Items As IList(Of Item)
        End Class

        Public Partial Class Payson2CheckoutResponse
            Public Overridable Property Id As Guid
            Public Overridable Property ExpirationTime As Nullable(Of Date)
            Public Overridable Property Snippet As String
            Public Overridable Property Status As Payson2CheckoutStatus
            Public Overridable Property Customer As Customer
            Public Overridable Property Order As Order
            Public Overridable Property Merchant As Merchant
            Public Overridable Property Gui As Gui
            Public Overridable Property History As History
            Public Overridable Property PurchaseId As Nullable(Of Integer)
        End Class
    End Namespace

    Namespace PaysonIntegrationCO2.Models.Enums

        Public Enum ColorScheme
            White
            Blue
            Gray
            GrayTextLogos
            BlueTextLogos
            WhiteTextLogos
            WhiteNoFooter
            GrayNoFooter
            BlueNoFooter
        End Enum

        Public Enum Currency
            SEK = 1
            EUR = 2
        End Enum

        Public Enum CustomerType
            Person
            Business
        End Enum

        Public Enum ItemType
            Physical
            Service
            Fee
            Discount
        End Enum

        Public Enum Payson2CheckoutStatus
            None
            Created
            FormsFilled
            ReadyToPay
            ProcessingPayment
            ReadyToShip
            Shipped
            PaidToAccount
            Canceled
            Credited
            Expired
            Denied
        End Enum
    End Namespace

    Namespace QvicklyIntegration.Models.Checkout

        Public Partial Class QvicklyCheckoutResponse
            Public Overridable Property Number As Integer
            Public Overridable Property Status As String
            Public Overridable Property OrderId As String
            Public Overridable Property Url As String
        End Class
    End Namespace

    Namespace ServiceStack

        <DataContract>
        Public Partial Class QueryBase
            Public Sub New()
                Meta = New Dictionary(Of String, String)
            End Sub

            '''<Summary>
            '''Skip over a given number of elements in a sequence and then return the remainder. Use this when you need paging.<br/><br/><strong>Example:</strong><br/><code>?skip=10&orderBy=Id</code>
            '''</Summary>
            <DataMember(Order:=1)>
            Public Overridable Property Skip As Nullable(Of Integer)

            '''<Summary>
            '''Return a given number of elements in a sequence and then skip over the remainder. Use this when you need paging.<br/><br/><strong>Example:</strong><br/><code>?take=20</code>
            '''</Summary>
            <DataMember(Order:=2)>
            Public Overridable Property Take As Nullable(Of Integer)

            '''<Summary>
            '''Comma separated list of fields to order by. Prefix the field name with a minus if you wan't to invert the sort for that field.<br/><br/><strong>Example:</strong><br/><code>?orderBy=Id,-Age,FirstName</code>
            '''</Summary>
            <DataMember(Order:=3)>
            Public Overridable Property OrderBy As String

            '''<Summary>
            '''Comma separated list of fields to order by in descending order. Prefix the field name with a minus if you wan't to invert the sort for that field.<br/><br/><strong>Example:</strong><br/><code>?orderByDesc=Id,-Age,FirstName</code>
            '''</Summary>
            <DataMember(Order:=4)>
            Public Overridable Property OrderByDesc As String

            '''<Summary>
            '''Include any of the aggregates <code>AVG, COUNT, FIRST, LAST, MAX, MIN, SUM</code> in your result set. The results will be returned in the meta field.<br/><br/><strong>Example:</strong><br/><code>?include=COUNT(*) as Total</code><br/><br/>or multiple fields with<br/><code>?include=Count(*) Total, Min(Age), AVG(Age) AverageAge</code><br/></br>or unique with<br/><code>?include=COUNT(DISTINCT LivingStatus) as UniqueStatus</code>
            '''</Summary>
            <DataMember(Order:=5)>
            Public Overridable Property Include As String

            <DataMember(Order:=6)>
            Public Overridable Property Fields As String

            <DataMember(Order:=7)>
            Public Overridable Property Meta As Dictionary(Of String, String)
        End Class

        Public Partial Class QueryDb(Of From, Into)
            Inherits QueryBase
        End Class

        <DataContract>
        Public Partial Class QueryResponse(Of AccessKeyTypeResponse)
            Public Sub New()
                Results = New List(Of AccessKeyTypeResponse)
                Meta = New Dictionary(Of String, String)
            End Sub

            <DataMember(Order:=1)>
            Public Overridable Property Offset As Integer

            <DataMember(Order:=2)>
            Public Overridable Property Total As Integer

            <DataMember(Order:=3)>
            Public Overridable Property Results As List(Of AccessKeyTypeResponse)

            <DataMember(Order:=4)>
            Public Overridable Property Meta As Dictionary(Of String, String)

            <DataMember(Order:=5)>
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET SuperAdminCompanyInvoiceQuery DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /superadmin/billing/company/invoices HTTP/1.1 
Host: testapi.bokamera.se 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<QueryResponseOfCompanyInvoiceQueryResponseWg5EthtI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Offset>0</Offset>
  <Total>0</Total>
  <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
    <d2p1:CompanyInvoiceQueryResponse>
      <d2p1:BillingInformation>
        <d2p1:Attention>String</d2p1:Attention>
        <d2p1:BillingMethodId>0</d2p1:BillingMethodId>
        <d2p1:BillingMethodOptions xmlns:d5p1="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Db">
          <d5p1:BillingMethod>
            <d5p1:BillingMethodCountriesRelation>
              <d5p1:BillingMethodCountriesRelation>
                <d5p1:BillingMethodId>0</d5p1:BillingMethodId>
                <d5p1:CountryId>String</d5p1:CountryId>
                <d5p1:ModifiedDate xmlns:d9p1="http://schemas.datacontract.org/2004/07/System">
                  <d9p1:DateTime>0001-01-01T00:00:00Z</d9p1:DateTime>
                  <d9p1:OffsetMinutes>0</d9p1:OffsetMinutes>
                </d5p1:ModifiedDate>
              </d5p1:BillingMethodCountriesRelation>
            </d5p1:BillingMethodCountriesRelation>
            <d5p1:Description>String</d5p1:Description>
            <d5p1:Id>0</d5p1:Id>
            <d5p1:ModifiedDate xmlns:d7p1="http://schemas.datacontract.org/2004/07/System">
              <d7p1:DateTime>0001-01-01T00:00:00Z</d7p1:DateTime>
              <d7p1:OffsetMinutes>0</d7p1:OffsetMinutes>
            </d5p1:ModifiedDate>
            <d5p1:Name>String</d5p1:Name>
          </d5p1:BillingMethod>
        </d2p1:BillingMethodOptions>
        <d2p1:City>String</d2p1:City>
        <d2p1:CompanyId>00000000-0000-0000-0000-000000000000</d2p1:CompanyId>
        <d2p1:CountryId>String</d2p1:CountryId>
        <d2p1:Email>String</d2p1:Email>
        <d2p1:GLN>String</d2p1:GLN>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:PaymentTermsDays>0</d2p1:PaymentTermsDays>
        <d2p1:ReferenceLine1>String</d2p1:ReferenceLine1>
        <d2p1:ReferenceLine2>String</d2p1:ReferenceLine2>
        <d2p1:Street1>String</d2p1:Street1>
        <d2p1:Street2>String</d2p1:Street2>
        <d2p1:VatRegistrationNumber>String</d2p1:VatRegistrationNumber>
        <d2p1:ZipCode>String</d2p1:ZipCode>
      </d2p1:BillingInformation>
      <d2p1:City>String</d2p1:City>
      <d2p1:CompanyId>00000000-0000-0000-0000-000000000000</d2p1:CompanyId>
      <d2p1:CompanyName>String</d2p1:CompanyName>
      <d2p1:CompanyOwner>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:CompanyOwner>
      <d2p1:CompanyType>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:CompanyType>
      <d2p1:ContactPerson>String</d2p1:ContactPerson>
      <d2p1:CountryId>String</d2p1:CountryId>
      <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
      <d2p1:CurrencyId>String</d2p1:CurrencyId>
      <d2p1:CurrencyInfo>
        <d2p1:CurrencySign>String</d2p1:CurrencySign>
        <d2p1:Id>String</d2p1:Id>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:CurrencyInfo>
      <d2p1:DueDate>0001-01-01T00:00:00</d2p1:DueDate>
      <d2p1:ExternalReferences xmlns:d4p1="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Db">
        <d4p1:ExternalReference>
          <d4p1:CompanyId>00000000-0000-0000-0000-000000000000</d4p1:CompanyId>
          <d4p1:Created>0001-01-01T00:00:00</d4p1:Created>
          <d4p1:CreatedBy>String</d4p1:CreatedBy>
          <d4p1:ExternalData>String</d4p1:ExternalData>
          <d4p1:Id>00000000-0000-0000-0000-000000000000</d4p1:Id>
          <d4p1:ModifiedDate xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
            <d6p1:DateTime>0001-01-01T00:00:00Z</d6p1:DateTime>
            <d6p1:OffsetMinutes>0</d6p1:OffsetMinutes>
          </d4p1:ModifiedDate>
          <d4p1:OwnerId>00000000-0000-0000-0000-000000000000</d4p1:OwnerId>
          <d4p1:ReferenceType>String</d4p1:ReferenceType>
          <d4p1:Updated>0001-01-01T00:00:00</d4p1:Updated>
        </d4p1:ExternalReference>
      </d2p1:ExternalReferences>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:InvoiceDate>0001-01-01T00:00:00</d2p1:InvoiceDate>
      <d2p1:InvoiceLines>
        <d2p1:InvoiceLineResponse>
          <d2p1:ArticleDescription>String</d2p1:ArticleDescription>
          <d2p1:ArticleName>String</d2p1:ArticleName>
          <d2p1:ArticleNumber>0</d2p1:ArticleNumber>
          <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:InvoiceId>0</d2p1:InvoiceId>
          <d2p1:PeriodFrom>0001-01-01T00:00:00</d2p1:PeriodFrom>
          <d2p1:PeriodTo>0001-01-01T00:00:00</d2p1:PeriodTo>
          <d2p1:Quantity>0</d2p1:Quantity>
          <d2p1:Rebate>0</d2p1:Rebate>
          <d2p1:SubTotal>0</d2p1:SubTotal>
          <d2p1:UnitPrice>0</d2p1:UnitPrice>
          <d2p1:Updated>0001-01-01T00:00:00</d2p1:Updated>
        </d2p1:InvoiceLineResponse>
      </d2p1:InvoiceLines>
      <d2p1:InvoiceStatus>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:Name>String</d2p1:Name>
      </d2p1:InvoiceStatus>
      <d2p1:Message>String</d2p1:Message>
      <d2p1:PeriodFrom>0001-01-01T00:00:00</d2p1:PeriodFrom>
      <d2p1:PeriodTo>0001-01-01T00:00:00</d2p1:PeriodTo>
      <d2p1:PromikBookInvoiceId>0</d2p1:PromikBookInvoiceId>
      <d2p1:RegistrationNumber>String</d2p1:RegistrationNumber>
      <d2p1:Rounding>0</d2p1:Rounding>
      <d2p1:StatusId>0</d2p1:StatusId>
      <d2p1:Street1>String</d2p1:Street1>
      <d2p1:Street2>String</d2p1:Street2>
      <d2p1:TotalAmount>0</d2p1:TotalAmount>
      <d2p1:Updated>0001-01-01T00:00:00</d2p1:Updated>
      <d2p1:VAT>0</d2p1:VAT>
      <d2p1:VATRegistrationNo>String</d2p1:VATRegistrationNo>
      <d2p1:Zip>String</d2p1:Zip>
    </d2p1:CompanyInvoiceQueryResponse>
  </Results>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <ResponseStatus>
    <ErrorCode>String</ErrorCode>
    <Message>String</Message>
    <StackTrace>String</StackTrace>
    <Errors>
      <ResponseError>
        <ErrorCode>String</ErrorCode>
        <FieldName>String</FieldName>
        <Message>String</Message>
        <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Meta>
      </ResponseError>
    </Errors>
    <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Meta>
  </ResponseStatus>
</QueryResponseOfCompanyInvoiceQueryResponseWg5EthtI>