' Options: 'Date: 2025-03-15 04:15:10 'Version: 8.30 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.sanctionssearch.com/v2 ' '''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: GetClients.* '''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 SanctionsSearch.Api2.ServiceModel.Types Imports SanctionsSearch.Api2.ServiceModel.Operations.Base Imports SanctionsSearch.Api2.ServiceModel.Operations.Clients Namespace Global Namespace SanctionsSearch.Api2.ServiceModel.Operations.Base Public Partial Class ArrayOfResponseError Inherits List(Of ResponseError) End Class Public Partial Class BaseRequest Implements IBaseRequest ''' '''The authentication credentials ''' Public Overridable Property Authentication As Authentication End Class Public Partial Class BaseResponse Implements IBaseDataResponse Implements IHasResponseStatus ''' '''The status of the response ''' Public Overridable Property ResponseStatus As ResponseStatus End Class Public Interface IBaseDataResponse Property ResponseStatus As ResponseStatus End Interface Public Interface IBaseRequest Property Authentication As Authentication End Interface Public Interface IHasResponseStatus Property ResponseStatus As ResponseStatus End Interface Public Partial Class PagedRequest Inherits BaseRequest ''' '''The maximum number of records to be returned in one page ''' Public Overridable Property PageLimit As Integer ''' '''The starting point in the list of records from where the data should be fetched. Zero based index. ''' Public Overridable Property PageOffset As Integer ''' '''The term to determine the order in which the data is returned ''' Public Overridable Property Sort As String End Class Public Partial Class PagedResponse(Of T) Inherits BaseResponse ''' '''The response Metadata ''' Public Overridable Property Meta As Meta(Of T) End Class Public Partial Class ResponseError Public Sub New() Meta = New Dictionary(Of String, String) End Sub Public Overridable Property ErrorCode As String Public Overridable Property FieldName As String Public Overridable Property Message As String Public Overridable Property Meta As Dictionary(Of String, String) End Class Public Partial Class ResponseStatus Public Sub New() Meta = New Dictionary(Of String, String) End Sub Public Overridable Property ErrorCode As String Public Overridable Property Message As String Public Overridable Property StackTrace As String Public Overridable Property Errors As ArrayOfResponseError Public Overridable Property Meta As Dictionary(Of String, String) End Class End Namespace Namespace SanctionsSearch.Api2.ServiceModel.Operations.Clients Public Partial Class GetClients Inherits PagedRequest Implements IReturn(Of GetClientsResponse) ''' '''Filter the results to those that have a State matching the state specified ''' Public Overridable Property State As ClientState ''' '''Filter the results to those that have a IsValidateMe flag matching the specified value ''' Public Overridable Property IsValidateMe As Nullable(Of Boolean) ''' '''Filter the results to those that have a Name including the specified value ''' Public Overridable Property Name As String ''' '''Filter the results to those that were created after (or on) this date ''' Public Overridable Property DateFrom As Date ''' '''Filter the results to those that were created before this date ''' Public Overridable Property DateTo As Date ''' '''If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view ''' Public Overridable Property SubUserName As String End Class Public Partial Class GetClientsData Inherits PagedResponse(Of GetClients) Public Overridable Property Clients As ArrayOfClientShort End Class Public Partial Class GetClientsResponse Public Overridable Property Data As GetClientsData End Class End Namespace Namespace SanctionsSearch.Api2.ServiceModel.Types Public Partial Class ArrayOfClientShort Inherits List(Of ClientShort) End Class Public Partial Class Authentication ''' '''The API User ID provided by us when you signed up to use our API ''' Public Overridable Property ApiUserId As String ''' '''The API User Key provided by us when you signed up to use our API ''' Public Overridable Property ApiUserKey As String End Class Public Partial Class ClientShort Public Overridable Property Id As Integer Public Overridable Property DateCreated As Date Public Overridable Property Name As String Public Overridable Property Reference As String Public Overridable Property IsValidateMe As Boolean Public Overridable Property State As ClientState Public Overridable Property Links As Links Public Overridable Property NumOfDocuments As Integer Public Overridable Property Photo As Image End Class Public Enum ClientState Undefined PendingCompletion PendingOcr PendingVerification Verified End Enum Public Partial Class Image Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property OcrId As Nullable(Of Integer) Public Overridable Property Url As String End Class Public Partial Class Links Public Overridable Property Self As String End Class Public Partial Class Meta(Of T) ''' '''Pagination links ''' Public Overridable Property Links As MetaLinks ''' '''The total number of records for the query ''' Public Overridable Property TotalCount As Nullable(Of Integer) ''' '''The maximum number of records to be returned in one page ''' Public Overridable Property PageLimit As Nullable(Of Integer) ''' '''The starting point in the list of records from where the data should be fetched. Zero based index. ''' Public Overridable Property PageOffset As Nullable(Of Integer) End Class Public Partial Class MetaLinks Inherits Links ''' '''The link to the first page of records ''' Public Overridable Property First As String ''' '''The link to the last page of records ''' Public Overridable Property Last As String ''' '''The link to the next page of records, if applicable ''' Public Overridable Property Next As String ''' '''The link to the last page of records, if applicable ''' Public Overridable Property Prev As String End Class End Namespace End Namespace