' Options: 'Date: 2024-11-21 12:18:50 '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: CustomerQuery.* '''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.Db Imports BokaMera.API.ServiceModel.Dtos Imports PaysonIntegrationCO2.Models Namespace Global Namespace BokaMera.API.ServiceModel.Db Public Partial Class BaseModel End Class Public Partial Class Customer Inherits BaseModel Implements IUser Implements ICustomFieldTable Public Overridable Property IdentityId As Integer Public Overridable Property Id As Guid Public Overridable Property CustomerId As Guid Public Overridable Property AccessKeys As IList(Of UserAccessKeys) Public Overridable Property Email As String Public Overridable Property ExternalReferences As IList(Of ExternalReference) Public Overridable Property Company As Company Public Overridable Property CustomFieldsConfig As IList(Of CustomFieldConfig) Public Overridable Property CustomFieldsData As IList(Of CustomFieldDataResponse) Public Overridable Property Comments As IList(Of CustomerComment) Public Overridable Property RebateCodes As IList(Of RebateCode) Public Overridable Property Firstname As String Public Overridable Property ImageUrl As String Public Overridable Property Active As Boolean Public Overridable Property FacebookUsername As String Public Overridable Property Updated As Date 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 Public Overridable Property CompanyId As Guid Public Overridable Property SubscribedToNewsletter As Boolean 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 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 CustomerQuery Inherits QueryDb(Of Customer, CustomerQueryResponse) Implements IReturn(Of QueryResponse(Of CustomerQueryResponse)) ''' '''Enter the company and id you want to see the information for a customer, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown ''' Public Overridable Property CompanyId As Nullable(Of Guid) ''' '''Enter the customer id you want to see the information for a customer. Only admins are allowed to see all customers on their company, users can only see their own customer info. ''' Public Overridable Property CustomerId As Nullable(Of Guid) ''' '''Enter the user id you want to see the information for a customer. Only admins are allowed to see all customers on their company, users can only see their own customer info. User Id is the userprofile ''' Public Overridable Property UserId As Nullable(Of Guid) ''' '''Will search by any customer name,phone or email that contains the searchstring provided. ''' Public Overridable Property Search As String ''' '''If you want to filter on visible customers. ''' Public Overridable Property Visible As Nullable(Of Boolean) ''' '''If you want to include the connected custom fields ''' Public Overridable Property IncludeCustomFieldValues As Boolean ''' '''If you want to include the connected custom fields ''' Public Overridable Property IncludeCustomFields As Boolean ''' '''If you want to include the comments on the customer ''' Public Overridable Property IncludeComments As Boolean ''' '''If you want to include the accesskeys ''' Public Overridable Property IncludeAccessKeys As Boolean ''' '''If you want to include invoice address ''' Public Overridable Property IncludeInvoiceAddress As Boolean 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 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 End Namespace End Namespace