/* Options: Date: 2025-03-15 06:03:48 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: AddClientTemplate.* //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.Clients; 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 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.Clients { public partial class AddClientRequest { /// ///The full name of the client /// [ApiMember(Description="The full name of the client", IsRequired=true)] public virtual string Name { get; set; } /// ///The email address of the client /// [ApiMember(Description="The email address of the client", IsRequired=true)] public virtual string Email { get; set; } /// ///The client's mobile phone number in international format (e.g. '+447123456789') /// [ApiMember(Description="The client's mobile phone number in international format (e.g. '+447123456789')", IsRequired=true)] public virtual string MobileInternational { get; set; } /// ///The postal code of the client's address. Used in emails sent to the client to help them recognize the communication as genuine /// [ApiMember(Description="The postal code of the client's address. Used in emails sent to the client to help them recognize the communication as genuine", IsRequired=true)] public virtual string PostCode { get; set; } /// ///Specifies the type of ValidateMe preset. Possible values are 'ValidateMe' for configuring RequiredDocuments, or 'PassportChipVerification' for setting the Passport as Proof of Name /// [ApiMember(Description="Specifies the type of ValidateMe preset. Possible values are 'ValidateMe' for configuring RequiredDocuments, or 'PassportChipVerification' for setting the Passport as Proof of Name", IsRequired=true)] public virtual CreateMobileClientType ProofOfPreset { get; set; } /// ///The categories of proof and selected documents that the client can use to provide proof. Required if ClientType is set to 'ValidateMe' /// [ApiMember(Description="The categories of proof and selected documents that the client can use to provide proof. Required if ClientType is set to 'ValidateMe'")] public virtual ArrayOfProofOfDocumentCategories ProofOfDocumentCategories { get; set; } /// ///If the client should be linked to other searches, specify the them here /// [ApiMember(Description="If the client should be linked to other searches, specify the them here")] public virtual ArrayOfLinkedTo LinkedTo { get; set; } } [Route("/clients/template", "GET")] [DataContract] public partial class AddClientTemplate : BaseRequest, IReturn { } public partial class AddClientTemplateData : BaseResponse { public virtual AddClientRequest Request { get; set; } } [DataContract] public partial class AddClientTemplateResponse { [DataMember] public virtual AddClientTemplateData Data { get; set; } } } namespace SanctionsSearch.Api2.ServiceModel.Types { public partial class ArrayOfLinkedTo : List { } public partial class ArrayOfProofOfDocumentCategories : List { } public partial class ArrayOfProofOfDocuments : 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; } } [DataContract(Name="CreateMobileClientType", Namespace="http://schemas.servicestack.net/types")] public enum CreateMobileClientType { Undefined, ValidateMe, PassportChipVerification, } public partial class LinkedTo { public virtual int? ClientId { get; set; } public virtual long? Id { get; set; } public virtual string Type { get; set; } public virtual string Subtype { get; set; } public virtual string Status { get; set; } public virtual string Description { get; set; } public virtual bool? IsArchived { get; set; } public virtual string Name { get; set; } public virtual DateTime? Date { get; set; } } public partial class ProofOfDocument { /// ///The ID of the ProofOfDocument /// [ApiMember(Description="The ID of the ProofOfDocument", IsRequired=true)] public virtual int Id { get; set; } /// ///The name of the ProofOfDocument /// [ApiMember(Description="The name of the ProofOfDocument", IsRequired=true)] public virtual string Name { get; set; } } public partial class ProofOfDocumentCategory { /// ///The ID of the ProofOfDocumentCategory /// [ApiMember(Description="The ID of the ProofOfDocumentCategory", IsRequired=true)] public virtual int Id { get; set; } /// ///The category or subject that requires proof (e.g., 'Name', 'Address', 'Right to work') /// [ApiMember(Description="The category or subject that requires proof (e.g., 'Name', 'Address', 'Right to work')", IsRequired=true)] public virtual string ProofOf { get; set; } /// ///The documents that can be used to provide proof for the specified category. /// [ApiMember(Description="The documents that can be used to provide proof for the specified category.", IsRequired=true)] public virtual ArrayOfProofOfDocuments ProofOfDocuments { get; set; } } }