' 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 '''