' Options:
'Date: 2024-11-21 13:14:07
'Version: 8.23
'Tip: To override a DTO option, remove "''" prefix before updating
'BaseUrl: https://api.bokamera.se
'
'''GlobalNamespace:
'''MakePartial: True
'''MakeVirtual: True
'''MakeDataContractsExtensible: False
'''AddReturnMarker: True
'''AddDescriptionAsComments: True
'''AddDataContractAttributes: False
'''AddIndexesToDataMembers: False
'''AddGeneratedCodeAttributes: False
'''AddResponseStatus: False
'''AddImplicitVersion:
'''InitializeCollections: True
'''ExportValueTypes: False
'IncludeTypes: UpdateCustomField.*
'''ExcludeTypes:
'''AddNamespaces:
'''AddDefaultXmlNamespace: http://schemas.servicestack.net/types
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports System.Globalization
Imports ServiceStack.Data
Imports System.IO
Imports BokaMera.API.ServiceModel.Interfaces
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
Public Partial Class CustomFieldGroupValue
Public Overridable Property SortOrder As Nullable(Of Short)
Public Overridable Property Value As String
End Class
Public Partial Class CustomFieldLookupResponse
Public Overridable Property Id As Nullable(Of Integer)
Public Overridable Property Active As Nullable(Of Boolean)
Public Overridable Property SortOrder As Nullable(Of Integer)
Public Overridable Property Value As String
End Class
Public Partial Class CustomFieldQueryResponse
Public Sub New()
Values = New List(Of CustomFieldLookupResponse)
Services = New List(Of CustomFieldServices)
End Sub
'''
'''Custom field id
'''
Public Overridable Property Id As Integer
'''
'''Reference to company that owns the custom field configuration
'''
Public Overridable Property CompanyId As Guid
'''
'''Group id
'''
Public Overridable Property GroupId As Nullable(Of Integer)
'''
'''Field id
'''
Public Overridable Property FieldId As Integer
'''
'''Configuration name. Example: 'Number of persons'.
'''
Public Overridable Property Name As String
'''
'''Field width. Example: 20
'''
Public Overridable Property Width As Integer
'''
'''Column in database where to store the information. Example: 'TextField1'
'''
Public Overridable Property Column As String
'''
'''Custom field description. Example: 'For how many persons is this booking?'
'''
Public Overridable Property Description As String
'''
'''Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox'
'''
Public Overridable Property DataType As String
'''
'''Default value of the field. Example: '3'
'''
Public Overridable Property DefaultValue As String
'''
'''Determines if the field is required to have a value or not
'''
Public Overridable Property IsMandatory As Boolean
'''
'''Error message shown to the user if the field data is required but not entered
'''
Public Overridable Property MandatoryErrorMessage As String
'''
'''Max lenght of the field
'''
Public Overridable Property MaxLength As Integer
'''
'''If the field should have multiple lines
'''
Public Overridable Property MultipleLineText As Boolean
'''
'''Regular expression used for validation of the field
'''
Public Overridable Property RegEx As String
'''
'''Regular expression id for validation of the field
'''
Public Overridable Property RegExId As Nullable(Of Integer)
'''
'''Error message shown if the regular expression validation failed
'''
Public Overridable Property RegExErrorMessage As String
'''
'''If the field is visible to the customer
'''
Public Overridable Property IsPublic As Boolean
'''
'''If the field should be hidden in lists
'''
Public Overridable Property IsHidden As Boolean
'''
'''Table to which the field belongs
'''
Public Overridable Property Table As String
'''
'''The values to select from if Datatype is DropDown for this custom field
'''
Public Overridable Property Values As List(Of CustomFieldLookupResponse)
'''
'''The services that is connected to the custom field
'''
Public Overridable Property Services As List(Of CustomFieldServices)
End Class
Public Partial Class CustomFieldServices
Public Overridable Property Id As Integer
'''
'''Name of the service
'''
Public Overridable Property Name As String
'''
'''The image url of the service
'''
Public Overridable Property ImageUrl As Uri
End Class
Public Partial Class UpdateCustomField
Implements IReturn(Of CustomFieldQueryResponse)
Implements ICompany
Public Sub New()
Values = New List(Of CustomFieldGroupValue)
Services = New List(Of CustomFieldServices)
End Sub
'''
'''Custom field id
'''
Public Overridable Property Id As Integer
'''
'''The company id, if empty will use the company id for the user you are logged in with.
'''
Public Overridable Property CompanyId As Nullable(Of Guid)
'''
'''Group id
'''
Public Overridable Property GroupId As Nullable(Of Integer)
'''
'''Field id
'''
Public Overridable Property FieldId As Integer
'''
'''Configuration name. Example: 'Number of persons'.
'''
Public Overridable Property Name As String
'''
'''Custom field description. Example: 'For how many persons is this booking?'
'''
Public Overridable Property Description As String
'''
'''Custom field icon id. Example: '1 House,2 Calendar,3 Building,4 Cart,5 Find,6 Blue flag,7 Green flag,8 Information,9 Lightning,10 Page edit,11 Pencil,12 Link,13 Star,14 User,15 Tick,16 Wrench,17 Clock'
'''
Public Overridable Property IconId As Integer
'''
'''Field width. Example: 20
'''
Public Overridable Property Width As Integer
'''
'''Data field of custom field. Valid values are: TextBox, DropDown Example: 'TextBox'
'''
Public Overridable Property Datatype As String
'''
'''Default value of the field. Example: '3'
'''
Public Overridable Property DefaultValue As String
'''
'''Determines if the field is required to have a value or not. Default is false
'''
Public Overridable Property IsMandatory As Nullable(Of Boolean)
'''
'''Error message shown to the user if the field data is required but not entered
'''
Public Overridable Property MandatoryErrorMessage As String
'''
'''Max lenght of the field. Default is 500
'''
Public Overridable Property MaxLength As Integer
'''
'''If the field should have multiple lines. Defualt is false
'''
Public Overridable Property MultipleLineText As Nullable(Of Boolean)
'''
'''Regular expression used for validation of the field
'''
Public Overridable Property RegExId As Nullable(Of Integer)
'''
'''Error message shown if the regular expression validation failed
'''
Public Overridable Property RegExErrorMessage As String
'''
'''If the field is visible to the customer. Default is true
'''
Public Overridable Property IsPublic As Nullable(Of Boolean)
'''
'''If the field should be hidden in lists. Default is false
'''
Public Overridable Property IsHidden As Nullable(Of Boolean)
'''
'''The values to select from if Datatype is DropDown for this custom field
'''
Public Overridable Property Values As List(Of CustomFieldGroupValue)
'''
'''The services that is connected to the custom field. If null it will be connected to all services.
'''
Public Overridable Property Services As List(Of CustomFieldServices)
End Class
End Namespace
Namespace BokaMera.API.ServiceModel.Interfaces
Public Interface ICompany
Property CompanyId As Nullable(Of Guid)
End Interface
End Namespace
End Namespace