/* Options: Date: 2025-03-15 05:24:40 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: GetDbsSearches.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using SanctionsSearch.Api2.ServiceModel.Types; using SanctionsSearch.Api2.ServiceModel.Operations.Base; using SanctionsSearch.Api2.ServiceModel.Operations.DbsSearches; namespace SanctionsSearch.Api2.ServiceModel.Operations.Base { public partial class ArrayOfResponseError : List { } [DataContract] public partial class BaseRequest : IBaseRequest { /// ///The authentication credentials /// [DataMember] [ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")] public virtual Authentication Authentication { get; set; } } public partial class BaseResponse : IBaseDataResponse, IHasResponseStatus { /// ///The status of the response /// [ApiMember(Description="The status of the response")] public virtual ResponseStatus ResponseStatus { get; set; } } public partial interface IBaseDataResponse { ResponseStatus ResponseStatus { get; set; } } public partial interface IBaseRequest { Authentication Authentication { get; set; } } public partial interface IHasResponseStatus { ResponseStatus ResponseStatus { get; set; } } [DataContract] public partial class PagedRequest : BaseRequest { /// ///The maximum number of records to be returned in one page /// [DataMember(Name="page[limit]")] [ApiMember(Description="The maximum number of records to be returned in one page", ParameterType="query")] public virtual int PageLimit { get; set; } /// ///The starting point in the list of records from where the data should be fetched. Zero based index. /// [DataMember(Name="page[offset]")] [ApiMember(Description="The starting point in the list of records from where the data should be fetched. Zero based index.", ParameterType="query")] public virtual int PageOffset { get; set; } /// ///The term to determine the order in which the data is returned /// [DataMember] [ApiMember(Description="The term to determine the order in which the data is returned", ParameterType="query")] public virtual string Sort { get; set; } } public partial class PagedResponse : BaseResponse { /// ///The response Metadata /// [ApiMember(Description="The response Metadata")] public virtual Meta Meta { get; set; } } [DataContract] public partial class ResponseError { public ResponseError() { Meta = new Dictionary{}; } [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string FieldName { get; set; } [DataMember(Order=3)] public virtual string Message { get; set; } [DataMember(Order=4)] public virtual Dictionary Meta { get; set; } } [DataContract] public partial class ResponseStatus { public ResponseStatus() { Meta = new Dictionary{}; } [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string Message { get; set; } [DataMember(Order=3)] public virtual string StackTrace { get; set; } [DataMember(Order=4)] public virtual ArrayOfResponseError Errors { get; set; } [DataMember(Order=5)] public virtual Dictionary Meta { get; set; } } } namespace SanctionsSearch.Api2.ServiceModel.Operations.DbsSearches { [Route("/dbs", "GET")] [DataContract] public partial class GetDbsSearches : PagedRequest, IReturn { /// ///Filter the results to those that have a Name including the specified value /// [DataMember] [ApiMember(Description="Filter the results to those that have a Name including the specified value", ParameterType="query")] public virtual string Name { get; set; } /// ///Filter the results to those that were created after (or on) this date /// [DataMember] [ApiMember(Description="Filter the results to those that were created after (or on) this date", ParameterType="query")] public virtual DateTime? DateFrom { get; set; } /// ///Filter the results to those that were created before this date /// [DataMember] [ApiMember(Description="Filter the results to those that were created before this date", ParameterType="query")] public virtual DateTime? DateTo { get; set; } /// ///Filter the results to those where the applicant has provided their information (true), or not (false), or either (null) /// [DataMember] [ApiMember(Description="Filter the results to those where the applicant has provided their information (true), or not (false), or either (null)", ParameterType="query")] public virtual bool? IsApplicantInfoCompleted { get; set; } /// ///Filter the results to those where the ID Checker has verified the applicant's ID (true), or not (false), or either (null) /// [DataMember] [ApiMember(Description="Filter the results to those where the ID Checker has verified the applicant's ID (true), or not (false), or either (null)", ParameterType="query")] public virtual bool? IsIdCheckCompleted { get; set; } /// ///Filter the results to those where the application is complete and ready to be submitted (true), or not (false), or either (null) /// [DataMember] [ApiMember(Description="Filter the results to those where the application is complete and ready to be submitted (true), or not (false), or either (null)", ParameterType="query")] public virtual bool? IsApplicationCompleted { get; set; } /// ///Filter the results to those where the application has been submitted (true), or not (false), or either (null) /// [DataMember] [ApiMember(Description="Filter the results to those where the application has been submitted (true), or not (false), or either (null)", ParameterType="query")] public virtual bool? IsApplicationSubmitted { get; set; } /// ///Filter the results to those where the application has been disclosed (true), or not (false), or either (null) /// [DataMember] [ApiMember(Description="Filter the results to those where the application has been disclosed (true), or not (false), or either (null)", ParameterType="query")] public virtual bool? IsApplicationDisclosed { 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 /// [DataMember] [ApiMember(Description="If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view", ParameterType="query")] public virtual string SubUserName { get; set; } } public partial class GetDbsSearchesData : PagedResponse { public virtual ArrayOfDbsSearchShort Searches { get; set; } } [DataContract] public partial class GetDbsSearchesResponse { [DataMember] public virtual GetDbsSearchesData Data { get; set; } } } namespace SanctionsSearch.Api2.ServiceModel.Types { public partial class ArrayOfDbsSearchShort : List { } [DataContract] public partial class Authentication { /// ///The API User ID provided by us when you signed up to use our API /// [DataMember] [ApiMember(Description="The API User ID provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")] public virtual string ApiUserId { get; set; } /// ///The API User Key provided by us when you signed up to use our API /// [DataMember] [ApiMember(Description="The API User Key provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")] public virtual string ApiUserKey { get; set; } } public partial class DbsSearchShort { public virtual long Id { get; set; } public virtual DateTime DateSearched { get; set; } public virtual DateTime DateUpdated { get; set; } public virtual string Status { get; set; } public virtual string DisclosureStatus { get; set; } public virtual bool IsApplicantInfoCompleted { get; set; } public virtual bool IsIdCheckCompleted { get; set; } public virtual bool IsApplicationCompleted { get; set; } public virtual bool IsApplicationSubmitted { get; set; } public virtual bool IsApplicationDisclosed { get; set; } public virtual string DisclosureLevel { get; set; } public virtual string Name { get; set; } public virtual string Reference { get; set; } } public partial class Links { [ApiMember] public virtual string Self { get; set; } } public partial class Meta { /// ///Pagination links /// [ApiMember(Description="Pagination links")] public virtual MetaLinks Links { get; set; } /// ///The total number of records for the query /// [ApiMember(Description="The total number of records for the query")] public virtual int? TotalCount { get; set; } /// ///The maximum number of records to be returned in one page /// [ApiMember(Description="The maximum number of records to be returned in one page")] public virtual int? PageLimit { get; set; } /// ///The starting point in the list of records from where the data should be fetched. Zero based index. /// [ApiMember(Description="The starting point in the list of records from where the data should be fetched. Zero based index.")] public virtual int? PageOffset { get; set; } } public partial class MetaLinks : Links { /// ///The link to the first page of records /// [ApiMember(Description="The link to the first page of records")] public virtual string First { get; set; } /// ///The link to the last page of records /// [ApiMember(Description="The link to the last page of records")] public virtual string Last { get; set; } /// ///The link to the next page of records, if applicable /// [ApiMember(Description="The link to the next page of records, if applicable")] public virtual string Next { get; set; } /// ///The link to the last page of records, if applicable /// [ApiMember(Description="The link to the last page of records, if applicable")] public virtual string Prev { get; set; } } }