' Options:
'Date: 2026-06-13 00:03:04
'Version: 10.05
'Tip: To override a DTO option, remove "''" prefix before updating
'BaseUrl: https://api.bookmore.com
'
'''GlobalNamespace:
'''MakePartial: True
'''MakeVirtual: True
'''MakeDataContractsExtensible: False
'''AddReturnMarker: True
'''AddDescriptionAsComments: True
'''AddDataContractAttributes: False
'''AddIndexesToDataMembers: False
'''AddGeneratedCodeAttributes: False
'''AddResponseStatus: False
'''AddImplicitVersion:
'''InitializeCollections: False
'''ExportValueTypes: False
'IncludeTypes: CreateApiKey.*
'''ExcludeTypes:
'''AddNamespaces:
'''AddDefaultXmlNamespace: http://schemas.servicestack.net/types
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports System.Globalization
Imports ServiceStack.Data
Imports System.Net
Imports System.Net.Http.Headers
Imports BokaMera.API.ServiceModel.Interfaces
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
Public Partial Class ApiKeyResponse
'''
'''The company the API key belongs to
'''
Public Overridable Property CompanyId As Guid
'''
'''The API key value to send in the x-api-key header
'''
Public Overridable Property ApiKey As Guid
'''
'''Whether the key is active
'''
Public Overridable Property Active As Boolean
'''
'''When the key was created
'''
Public Overridable Property CreatedDate As Date
'''
'''When the key expires, if ever
'''
Public Overridable Property ExpiryDate As Date?
'''
'''Contact email registered for the key
'''
Public Overridable Property ContactEmail As String
'''
'''Free text notes for the key
'''
Public Overridable Property Notes As String
'''
'''Comma separated list of IP addresses the key is restricted to, if any
'''
Public Overridable Property AllowedIpAddresses As String
End Class
Public Partial Class CreateApiKey
Implements IReturn(Of ApiKeyResponse)
Implements ICompany
'''
'''The company to create the API key for. Defaults to the logged in user's company. Only a SuperAdmin may specify a company other than their own; for other roles this value is ignored.
'''
Public Overridable Property CompanyId As Guid? Implements ICompany.CompanyId
'''
'''Optional contact email to register for the key. Defaults to the logged in user's email.
'''
Public Overridable Property ContactEmail As String
'''
'''Optional free text note for the key.
'''
Public Overridable Property Notes As String
End Class
End Namespace
Namespace BokaMera.API.ServiceModel.Interfaces
Public Interface ICompany
Property CompanyId As Guid?
End Interface
End Namespace
End Namespace