(* Options: Date: 2025-03-15 04:22:11 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: GetClients.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace SanctionsSearch.Api2.ServiceModel.Operations.Base open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations [] [] type Authentication() = /// ///The API User ID provided by us when you signed up to use our API /// [] [] member val ApiUserId:String = null with get,set /// ///The API User Key provided by us when you signed up to use our API /// [] [] member val ApiUserKey:String = null with get,set [] [] type BaseRequest() = /// ///The authentication credentials /// [] [] member val Authentication:Authentication = null with get,set [] type IBaseRequest = abstract Authentication:Authentication with get,set [] type ClientState = | Undefined = 0 | PendingCompletion = 1 | PendingOcr = 2 | PendingVerification = 3 | Verified = 4 [] [] type PagedRequest() = inherit BaseRequest() /// ///The maximum number of records to be returned in one page /// [] [] member val PageLimit:Int32 = new Int32() with get,set /// ///The starting point in the list of records from where the data should be fetched. Zero based index. /// [] [] member val PageOffset:Int32 = new Int32() with get,set /// ///The term to determine the order in which the data is returned /// [] [] member val Sort:String = null with get,set [] type Links() = [] member val Self:String = null with get,set [] type Image() = member val Id:Int32 = new Int32() with get,set member val Name:String = null with get,set member val OcrId:Nullable = new Nullable() with get,set member val Url:String = null with get,set [] type ClientShort() = member val Id:Int32 = new Int32() with get,set member val DateCreated:DateTime = new DateTime() with get,set member val Name:String = null with get,set member val Reference:String = null with get,set member val IsValidateMe:Boolean = new Boolean() with get,set member val State:ClientState = new ClientState() with get,set member val Links:Links = null with get,set member val NumOfDocuments:Int32 = new Int32() with get,set member val Photo:Image = null with get,set [] type ArrayOfClientShort() = inherit ResizeArray() [] type GetClientsData() = inherit PagedResponse() member val Clients:ArrayOfClientShort = null with get,set [] [] type GetClientsResponse() = [] member val Data:GetClientsData = null with get,set [] [] [] type GetClients() = inherit PagedRequest() interface IReturn /// ///Filter the results to those that have a State matching the state specified /// [] [] member val State:ClientState = new ClientState() with get,set /// ///Filter the results to those that have a IsValidateMe flag matching the specified value /// [] [] member val IsValidateMe:Nullable = new Nullable() with get,set /// ///Filter the results to those that have a Name including the specified value /// [] [] member val Name:String = null with get,set /// ///Filter the results to those that were created after (or on) this date /// [] [] member val DateFrom:DateTime = new DateTime() with get,set /// ///Filter the results to those that were created before this date /// [] [] member val DateTo:DateTime = new DateTime() with get,set /// ///If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view /// [] [] member val SubUserName:String = null with get,set [] [] type ResponseError() = [] member val ErrorCode:String = null with get,set [] member val FieldName:String = null with get,set [] member val Message:String = null with get,set [] member val Meta:Dictionary = new Dictionary() with get,set [] type ArrayOfResponseError() = inherit ResizeArray() [] [] type ResponseStatus() = [] member val ErrorCode:String = null with get,set [] member val Message:String = null with get,set [] member val StackTrace:String = null with get,set [] member val Errors:ArrayOfResponseError = null with get,set [] member val Meta:Dictionary = new Dictionary() with get,set [] type BaseResponse() = /// ///The status of the response /// [] member val ResponseStatus:ResponseStatus = null with get,set [] type IBaseDataResponse = abstract ResponseStatus:ResponseStatus with get,set [] type IHasResponseStatus = abstract ResponseStatus:ResponseStatus with get,set [] type MetaLinks() = inherit Links() /// ///The link to the first page of records /// [] member val First:String = null with get,set /// ///The link to the last page of records /// [] member val Last:String = null with get,set /// ///The link to the next page of records, if applicable /// [] member val Next:String = null with get,set /// ///The link to the last page of records, if applicable /// [] member val Prev:String = null with get,set [] type Meta() = /// ///Pagination links /// [] member val Links:MetaLinks = null with get,set /// ///The total number of records for the query /// [] member val TotalCount:Nullable = new Nullable() with get,set /// ///The maximum number of records to be returned in one page /// [] member val PageLimit:Nullable = new Nullable() with get,set /// ///The starting point in the list of records from where the data should be fetched. Zero based index. /// [] member val PageOffset:Nullable = new Nullable() with get,set [] type PagedResponse() = inherit BaseResponse() /// ///The response Metadata /// [] member val Meta:Meta = null with get,set