/* Options: Date: 2025-12-16 07:31:25 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: RegisterAccountTemplate.* //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.Account; namespace SanctionsSearch.Api2.ServiceModel.Operations.Account { public partial class ReferenceData { /// ///A list of supported country values /// [ApiMember(Description="A list of supported country values")] public virtual ArrayOfCountry Countries { get; set; } /// ///A list of valid industry classifications for companies /// [ApiMember(Description="A list of valid industry classifications for companies")] public virtual ArrayOfCompanyIndustry CompanyIndustries { get; set; } /// ///A list of accepted company types /// [ApiMember(Description="A list of accepted company types")] public virtual ArrayOfCompanyType CompanyTypes { get; set; } /// ///A list of countries where VAT registration is recognized /// [ApiMember(Description="A list of countries where VAT registration is recognized")] public virtual ArrayOfVATCountry VATCountries { get; set; } /// ///A URL linking to the terms and conditions document /// [ApiMember(Description="A URL linking to the terms and conditions document")] public virtual string TermsAndConditionsLink { get; set; } /// ///A URL linking to the privacy policy /// [ApiMember(Description="A URL linking to the privacy policy")] public virtual string PrivacyPolicyLink { get; set; } /// ///The statement regarding contact preferences /// [ApiMember(Description="The statement regarding contact preferences")] public virtual string ContactStatement { get; set; } /// ///The statement outlining data protection policies /// [ApiMember(Description="The statement outlining data protection policies")] public virtual string DataProtectionStatement { get; set; } } public partial class RegisterAccountRequest { /// ///The desired login username for the account /// [ApiMember(Description="The desired login username for the account", IsRequired=true)] public virtual string Username { get; set; } /// ///The password for account login /// [ApiMember(Description="The password for account login", IsRequired=true)] public virtual string Password { get; set; } /// ///The contact email address for the account holder /// [ApiMember(Description="The contact email address for the account holder", IsRequired=true)] public virtual string Email { get; set; } /// ///The full legal name of the account holder /// [ApiMember(Description="The full legal name of the account holder", IsRequired=true)] public virtual string FullName { get; set; } /// ///The registered name of the company associated with this account /// [ApiMember(Description="The registered name of the company associated with this account", IsRequired=true)] public virtual string CompanyName { get; set; } /// ///The primary contact phone number of the company /// [ApiMember(Description="The primary contact phone number of the company", IsRequired=true)] public virtual string CompanyPhone { get; set; } /// ///The first line of the company’s address (e.g., street name and number) /// [ApiMember(Description="The first line of the company’s address (e.g., street name and number)", IsRequired=true)] public virtual string Address1 { get; set; } /// ///The second line of the company’s address (optional) /// [ApiMember(Description="The second line of the company’s address (optional)")] public virtual string Address2 { get; set; } /// ///The third line of the company’s address (optional) /// [ApiMember(Description="The third line of the company’s address (optional)")] public virtual string Address3 { get; set; } /// ///The city where the company is located (optional) /// [ApiMember(Description="The city where the company is located (optional)")] public virtual string City { get; set; } /// ///The postal or ZIP code of the company’s address /// [ApiMember(Description="The postal or ZIP code of the company’s address", IsRequired=true)] public virtual string Postcode { get; set; } /// ///The country where the company is registered /// [ApiMember(Description="The country where the company is registered", IsRequired=true)] public virtual string Country { get; set; } /// ///The classification of the company (e.g., LLC, Corporation, Sole Proprietorship) /// [ApiMember(Description="The classification of the company (e.g., LLC, Corporation, Sole Proprietorship)", IsRequired=true)] public virtual string CompanyType { get; set; } /// ///The industry sector the company operates in /// [ApiMember(Description="The industry sector the company operates in", IsRequired=true)] public virtual string CompanyIndustry { get; set; } /// ///The trade body, network, or affiliation the company is a member of (if applicable) /// [ApiMember(Description="The trade body, network, or affiliation the company is a member of (if applicable)")] public virtual string CompanyNetwork { get; set; } /// ///Indicates agreement to the terms and conditions (required) /// [ApiMember(Description="Indicates agreement to the terms and conditions (required)", IsRequired=true)] public virtual bool AgreeToTerms { get; set; } /// ///Indicates agreement to the data protection statement (required) /// [ApiMember(Description="Indicates agreement to the data protection statement (required)", IsRequired=true)] public virtual bool AgreeToDataProtection { get; set; } /// ///Indicates consent to be contacted (optional) /// [ApiMember(Description="Indicates consent to be contacted (optional)")] public virtual bool AgreeToContact { get; set; } /// ///Indicates agreement to the privacy policy (required) /// [ApiMember(Description="Indicates agreement to the privacy policy (required)", IsRequired=true)] public virtual bool AgreeToPrivacy { get; set; } /// ///An optional voucher code for discounts or promotions /// [ApiMember(Description="An optional voucher code for discounts or promotions")] public virtual string VoucherCode { get; set; } /// ///An optional code that grants access to certain features or subscriptions /// [ApiMember(Description="An optional code that grants access to certain features or subscriptions")] public virtual string AccountActivationCode { get; set; } /// ///The company's VAT registration number (if applicable) /// [ApiMember(Description="The company's VAT registration number (if applicable)")] public virtual string VATNumber { get; set; } /// ///The country where the company is VAT-registered /// [ApiMember(Description="The country where the company is VAT-registered")] public virtual string VATCountry { get; set; } } [Route("/account/register/template", "GET")] [DataContract] public partial class RegisterAccountTemplate : BaseRequest, IReturn { } public partial class RegisterAccountTemplateData : BaseResponse { /// ///The request body of the RegisterAccount endpoint /// [ApiMember(Description="The request body of the RegisterAccount endpoint")] public virtual RegisterAccountRequest Request { get; set; } /// ///Reference data to fill out the RegisterAccount body /// [ApiMember(Description="Reference data to fill out the RegisterAccount body")] public virtual ReferenceData ReferenceData { get; set; } } [DataContract] public partial class RegisterAccountTemplateResponse { /// ///The response data /// [DataMember] [ApiMember(Description="The response data")] public virtual RegisterAccountTemplateData Data { get; set; } } } 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.Types { public partial class ArrayOfCompanyIndustry : List { } public partial class ArrayOfCompanyType : List { } public partial class ArrayOfCountry : List { } public partial class ArrayOfVATCountry : List { } [DataContract] public partial class Authentication { /// ///The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User) /// [DataMember] [ApiMember(Description="The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User)", 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. Can be provided in the request body, or as a header parameter (X-Api-Key) /// [DataMember] [ApiMember(Description="The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key)", IsRequired=true, ParameterType="header, body")] public virtual string ApiUserKey { get; set; } /// ///The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id). /// [DataMember] [ApiMember(Description="The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id).", ParameterType="header, body")] public virtual string UserId { get; set; } } }