' Options: 'Date: 2024-11-23 10:41:51 '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: UpdateCustomer.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Globalization Imports ServiceStack.Data Imports BokaMera.API.ServiceModel.Dtos Imports BokaMera.API.ServiceModel.Db Namespace Global Namespace BokaMera.API.ServiceModel.Db Public Partial Class BaseModel End Class Public Partial Class UserAccessKeys Inherits BaseModel Public Overridable Property CompanyId As Guid Public Overridable Property AccessKeyTypeId As Integer Public Overridable Property Value As String Public Overridable Property CustomerId As Guid Public Overridable Property Description As String Public Overridable Property Id As Guid End Class End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class AddCustomField Public Overridable Property Id As Integer Public Overridable Property Value As String End Class Public Partial Class AddUserAccessKey Public Overridable Property Id As Nullable(Of Guid) Public Overridable Property CompanyId As Nullable(Of Guid) Public Overridable Property AccessKeyTypeId As Integer Public Overridable Property Value As String Public Overridable Property CustomerId As Nullable(Of Guid) Public Overridable Property Description As String End Class Public Partial Class CustomerCommentsResponse Public Overridable Property Id As Integer Public Overridable Property CustomerId As Guid Public Overridable Property Comments As String Public Overridable Property Updated As Date Public Overridable Property Created As Date Public Overridable Property ImageUrl As Uri End Class Public Partial Class CustomerQueryResponse Public Sub New() CustomFields = New List(Of CustomFieldConfigData) CustomFieldValues = New List(Of CustomFieldDataResponse) Comments = New List(Of CustomerCommentsResponse) AccessKeys = New List(Of UserAccessKeys) End Sub 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 ImageUrl As String Public Overridable Property CustomFields As List(Of CustomFieldConfigData) Public Overridable Property CustomFieldValues As List(Of CustomFieldDataResponse) Public Overridable Property Comments As List(Of CustomerCommentsResponse) Public Overridable Property AccessKeys As List(Of UserAccessKeys) Public Overridable Property Updated As Date Public Overridable Property Created As Date Public Overridable Property ResponseStatus As Object Public Overridable Property SubscribedToNewsletter As Boolean Public Overridable Property InvoiceAddress As InvoiceAddress End Class Public Partial Class CustomFieldConfigData Public Sub New() Values = New List(Of CustomFieldValueResponse) End Sub ''' '''Custom field id ''' Public Overridable Property Id As Integer ''' '''Configuration name. Example: 'Number of persons'. ''' Public Overridable Property Name As String ''' '''Custom field description. Example: 'For how many persons is this booking?' ''' Public Overridable Property Description As String ''' '''Field width. Example: 20 for 20px ''' Public Overridable Property Width As Nullable(Of Integer) ''' '''Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' ''' Public Overridable Property DataType As String ''' '''Default value of the field. Example: '3' ''' Public Overridable Property DefaultValue As String ''' '''Determines if the field is required to have a value or not ''' Public Overridable Property IsMandatory As Boolean ''' '''Error message shown to the user if the field data is required but not entered ''' Public Overridable Property MandatoryErrorMessage As String ''' '''Max lenght of the field ''' Public Overridable Property MaxLength As Integer ''' '''If the field should have multiple lines ''' Public Overridable Property MultipleLineText As Boolean ''' '''Regular expression used for validation of the field ''' Public Overridable Property RegEx As String ''' '''Error message shown if the regular expression validation failed ''' Public Overridable Property RegExErrorMessage As String ''' '''The values to select from if Datatype is DropDown for this custom field ''' Public Overridable Property Values As List(Of CustomFieldValueResponse) End Class Public Partial Class CustomFieldDataResponse Public Overridable Property Id As Integer Public Overridable Property Column As String Public Overridable Property Name As String Public Overridable Property Description As String Public Overridable Property Value As String ''' '''Data field of custom field. Valid values are: TextBox, ... Example: 'TextBox' ''' Public Overridable Property DataType As String End Class Public Partial Class CustomFieldValueResponse Public Overridable Property Value As String End Class Public Partial Class DeleteUserAccessKey Public Overridable Property Id As Guid End Class Public Partial Class UpdateCustomer Implements IReturn(Of CustomerQueryResponse) Public Sub New() CustomFields = New List(Of AddCustomField) AccessKeys = New List(Of AddUserAccessKey) AccessKeysToDelete = New List(Of DeleteUserAccessKey) End Sub ''' '''Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used. ''' Public Overridable Property CompanyId As Nullable(Of Guid) ''' '''customer id ''' Public Overridable Property Id As Guid Public Overridable Property Firstname As String Public Overridable Property Lastname As String Public Overridable Property Phone As String Public Overridable Property Email As String ''' '''If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated ''' Public Overridable Property CustomFields As List(Of AddCustomField) ''' '''List of Access Keys ''' Public Overridable Property AccessKeys As List(Of AddUserAccessKey) Public Overridable Property AccessKeysToDelete As List(Of DeleteUserAccessKey) Public Overridable Property SubscribedToNewsletter As Nullable(Of Boolean) Public Overridable Property InvoiceAddress As InvoiceAddress End Class End Namespace End Namespace