/* Options: Date: 2025-10-21 00:13:15 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: AddCompanyLookup.* //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.CompanyLookup; 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 IBaseSearchResponse : IBaseDataResponse { ArrayOfLinkedTo LinkedTo { 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.CompanyLookup { [Route("/companylookups/create", "POST")] [DataContract] public partial class AddCompanyLookup : BaseRequest, IReturn { [DataMember] public virtual AddCompanyLookupRequest Request { get; set; } } public partial class AddCompanyLookupData : BaseResponse, IBaseSearchResponse { public virtual ArrayOfLinkedTo LinkedTo { get; set; } public virtual CompanyLookupSearchRecord SearchRecord { get; set; } } public partial class AddCompanyLookupRequest { /// ///If the search should be saved against a single Sub User account, specify their username here /// [ApiMember(Description="If the search should be saved against a single Sub User account, specify their username here")] public virtual string SubUserName { get; set; } public virtual int? CompanyLookupId { get; set; } /// ///If this CompanyLookup is to update an existing record due to CompanyLookup Monitor changes, set the ID of the existing record here. This is the only field that needs to be set in the request. /// [ApiMember(Description="If this CompanyLookup is to update an existing record due to CompanyLookup Monitor changes, set the ID of the existing record here. This is the only field that needs to be set in the request.")] public virtual int? MonitorCompanyLookupId { get; set; } public virtual string CompanyRegistrationNumber { get; set; } public virtual string CompanyName { get; set; } public virtual string CompanyAddress { get; set; } public virtual string CompanyCountry { get; set; } public virtual bool PerformEnhancedSearch { get; set; } public virtual ArrayOfLists SelectedLists { get; set; } /// ///If the search should be linked to other searches, specify the them here /// [ApiMember(Description="If the search should be linked to other searches, specify the them here")] public virtual ArrayOfLinkedTo LinkedTo { get; set; } } [DataContract] public partial class AddCompanyLookupResponse { [DataMember] public virtual AddCompanyLookupData Data { get; set; } } } namespace SanctionsSearch.Api2.ServiceModel.Types { public partial class ArrayOfCompanyChangeData : List { } public partial class ArrayOfCompanyChanges : List { } public partial class ArrayOfLinkedTo : List { } public partial class ArrayOfLists : 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; } } public partial class CompanyChange { public virtual DateTime DateOfChange { get; set; } public virtual string ChangeEventType { get; set; } public virtual bool IsPending { get; set; } public virtual ArrayOfCompanyChangeData CompanyChangeData { get; set; } } public partial class CompanyChangeData { public virtual string Name { get; set; } public virtual string PreviousValue { get; set; } public virtual string NewValue { get; set; } } public partial class CompanyDirectorOrShareholder { public virtual long Id { get; set; } public virtual string SearchType { get; set; } public virtual DateTime DateSearched { get; set; } public virtual DateTime DateUpdated { get; set; } public virtual int NumOfResults { get; set; } public virtual bool ClientInResults { get; set; } public virtual bool ClientNotInResults { get; set; } public virtual bool AffectedByUpdate { get; set; } public virtual SearchCriteria SearchCriteria { get; set; } public virtual bool IsDirector { get; set; } public virtual bool IsShareholder { get; set; } } public partial class CompanyLookupEnhanced { public CompanyLookupEnhanced() { SicCodes = new List{}; PreviousNames = new List{}; EventHistory = new List{}; Commentaries = new List{}; FinancialStatements = new List{}; } public virtual CompanyLookupEnhancedSummary Summary { get; set; } public virtual CompanyLookupEnhancedContactInfo ContactInformation { get; set; } public virtual List SicCodes { get; set; } public virtual List PreviousNames { get; set; } public virtual CompanyLookupEnhancedShareStructure ShareStructure { get; set; } public virtual CompanyLookupEnhancedDirectors Directors { get; set; } public virtual CompanyLookupEnhancedStructure GroupStructure { get; set; } public virtual CompanyLookupEnhancedCCJs CountyCourtJudgements { get; set; } public virtual List EventHistory { get; set; } public virtual List Commentaries { get; set; } public virtual CompanyLookupEnhancedCreditAccount CreditAccounts { get; set; } public virtual List FinancialStatements { get; set; } } public partial class CompanyLookupEnhancedAdditionalContact { public virtual string Telephone { get; set; } public virtual string FaxNumber { get; set; } public virtual string EmailAddress { get; set; } public virtual string WebAddress { get; set; } public virtual string Twitter { get; set; } public virtual string Facebook { get; set; } public virtual string GooglePlus { get; set; } public virtual string LinkedIn { get; set; } public virtual string ContactName { get; set; } public virtual string BusinessClassification { get; set; } } public partial class CompanyLookupEnhancedAddress { public virtual string FullAddress { get; set; } public virtual string Address1 { get; set; } public virtual string Address2 { get; set; } public virtual string Address3 { get; set; } public virtual string Address4 { get; set; } public virtual string PostCode { get; set; } public virtual string Telephone { get; set; } } public partial class CompanyLookupEnhancedCCJ { public virtual DateTime? Date { get; set; } public virtual string Court { get; set; } public virtual decimal? Amount { get; set; } public virtual string CaseNumber { get; set; } public virtual string Status { get; set; } public virtual string DatePaid { get; set; } public virtual string IncomingRecordDetails { get; set; } } public partial class CompanyLookupEnhancedCCJs { public CompanyLookupEnhancedCCJs() { PossibleCCJs = new List{}; ExactCCJs = new List{}; } public virtual List PossibleCCJs { get; set; } public virtual List ExactCCJs { get; set; } } public partial class CompanyLookupEnhancedCommentary { public virtual string Text { get; set; } public virtual string PositiveOrNegative { get; set; } public virtual int? Priority { get; set; } } public partial class CompanyLookupEnhancedCompany { public virtual string Country { get; set; } public virtual string CompanyName { get; set; } public virtual string CompanyNumber { get; set; } } public partial class CompanyLookupEnhancedContactInfo { public CompanyLookupEnhancedContactInfo() { TradingAddresses = new List{}; Websites = new List{}; } public virtual CompanyLookupEnhancedAddress RegisteredAddress { get; set; } public virtual List TradingAddresses { get; set; } public virtual List Websites { get; set; } public virtual CompanyLookupEnhancedAdditionalContact AdditionalContactInfo { get; set; } } public partial class CompanyLookupEnhancedCreditAccount { public CompanyLookupEnhancedCreditAccount() { CreditLimitHistory = new List{}; CreditRatingHistory = new List{}; } public virtual List CreditLimitHistory { get; set; } public virtual List CreditRatingHistory { get; set; } } public partial class CompanyLookupEnhancedCreditLimit { public virtual DateTime? Date { get; set; } public virtual int? DateOrder { get; set; } public virtual int? Amount { get; set; } } public partial class CompanyLookupEnhancedCreditRating { public virtual DateTime? Date { get; set; } public virtual int? DateOrder { get; set; } public virtual int? Amount { get; set; } public virtual string ShortDescription { get; set; } public virtual string Description { get; set; } } public partial class CompanyLookupEnhancedDirector { public virtual string Name { get; set; } public virtual string Address { get; set; } public virtual string Gender { get; set; } public virtual DateTime? AppointmentDate { get; set; } public virtual DateTime? ResignationDate { get; set; } public virtual DateTime? DateOfBirth { get; set; } public virtual string Position { get; set; } public virtual int? IdNumber { get; set; } public virtual int? CurrentDirectorships { get; set; } public virtual int? PreviousDirectorships { get; set; } public virtual int? TotalDirectorships { get; set; } } public partial class CompanyLookupEnhancedDirectors { public CompanyLookupEnhancedDirectors() { CurrentDirectors = new List{}; PreviousDirectors = new List{}; } public virtual List CurrentDirectors { get; set; } public virtual List PreviousDirectors { get; set; } } public partial class CompanyLookupEnhancedEvent { public virtual DateTime? Date { get; set; } public virtual string Description { get; set; } } public partial class CompanyLookupEnhancedFinancialStatement { public virtual int? YearEndDateOrder { get; set; } public virtual DateTime? YearEndDate { get; set; } public virtual int? SummaryNumberOfWeeks { get; set; } public virtual string SummaryCurrency { get; set; } public virtual string SummaryConsolidatedAccount { get; set; } public virtual CompanyLookupFinancialProfit ProfitAndLoss { get; set; } public virtual CompanyLookupFinancialBalance BalanceSheet { get; set; } public virtual CompanyLookupFinancialCapital CapitalAndReserves { get; set; } public virtual CompanyLookupFinancialOther Other { get; set; } public virtual CompanyLookupFinancialCash Cash { get; set; } public virtual CompanyLookupFinancialMisc Misc { get; set; } public virtual CompanyLookupFinancialRatios Ratios { get; set; } } public partial class CompanyLookupEnhancedLatestAccounts { public virtual string Currency { get; set; } public virtual decimal? Turnover { get; set; } public virtual decimal? ShareholdersEquity { get; set; } public virtual int? CreditRating { get; set; } public virtual int? CreditLimit { get; set; } public virtual string CreditRatingDescription { get; set; } public virtual int? AccountRefDay { get; set; } public virtual int? AccountRefMonth { get; set; } public virtual DateTime? AccountNextDueDate { get; set; } public virtual DateTime? AccountLastMadeUpDate { get; set; } public virtual string AccountCategory { get; set; } public virtual DateTime? ReturnLastMadeUpDate { get; set; } } public partial class CompanyLookupEnhancedPreviousName { public virtual DateTime? DateChanged { get; set; } public virtual string Name { get; set; } } public partial class CompanyLookupEnhancedShareholder { public virtual string Title { get; set; } public virtual string Forename { get; set; } public virtual string Surname { get; set; } public virtual string Address1 { get; set; } public virtual string Address2 { get; set; } public virtual string Address3 { get; set; } public virtual string Address4 { get; set; } public virtual string Address5 { get; set; } public virtual string PostCode { get; set; } public virtual string ShareType { get; set; } public virtual decimal? Number { get; set; } public virtual decimal? Value { get; set; } public virtual string Currency { get; set; } public virtual string ShareholderType { get; set; } public virtual string ShareClass { get; set; } } public partial class CompanyLookupEnhancedShareStructure { public CompanyLookupEnhancedShareStructure() { Shareholders = new List{}; } public virtual decimal? IssuedShareCapital { get; set; } public virtual List Shareholders { get; set; } } public partial class CompanyLookupEnhancedSicCode { public virtual int? SicCode2003 { get; set; } public virtual string SicCode2003Description { get; set; } public virtual int? SicCode2007 { get; set; } public virtual string SicCode2007Description { get; set; } public virtual string Status { get; set; } } public partial class CompanyLookupEnhancedStructure { public CompanyLookupEnhancedStructure() { ParentCompanies = new List{}; SubsidiaryCompanies = new List{}; } public virtual List ParentCompanies { get; set; } public virtual List SubsidiaryCompanies { get; set; } } public partial class CompanyLookupEnhancedSummary { public virtual string Name { get; set; } public virtual string Country { get; set; } public virtual string RegistrationNumber { get; set; } public virtual string DateOfIncorporation { get; set; } public virtual string TypeOfIncorporation { get; set; } public virtual string CompanyStatus { get; set; } public virtual string Address { get; set; } public virtual string Telephone { get; set; } public virtual string SicCode { get; set; } public virtual string SicDescription { get; set; } public virtual string PrincipleActivity { get; set; } public virtual CompanyLookupEnhancedLatestAccounts LatestAccounts { get; set; } } public partial class CompanyLookupEnhancedWebsite { public virtual string Website { get; set; } } public partial class CompanyLookupFinancialBalance { public virtual decimal? TangibleAccounts { get; set; } public virtual decimal? IntangibleAssets { get; set; } public virtual decimal? TotalFixedAssets { get; set; } public virtual decimal? Stock { get; set; } public virtual decimal? TradeDebtors { get; set; } public virtual decimal? Cash { get; set; } public virtual decimal? OtherDebtors { get; set; } public virtual decimal? MiscCurrentAssets { get; set; } public virtual decimal? TotalCurrentAssets { get; set; } public virtual decimal? TradeCreditors { get; set; } public virtual decimal? BankLoansAndOverdrafts { get; set; } public virtual decimal? OtherShortTermFinance { get; set; } public virtual decimal? MiscCurrentLiabilities { get; set; } public virtual decimal? TotalCurrentLiabilities { get; set; } public virtual decimal? BankLoansAndOverdraftsAndLTL { get; set; } public virtual decimal? OtherLongTermFinance { get; set; } public virtual decimal? TotalLongTermFinance { get; set; } } public partial class CompanyLookupFinancialCapital { public virtual decimal? CalledUpSharedCapital { get; set; } public virtual decimal? ProfitAndLossAccountReserve { get; set; } public virtual decimal? RevaluationReserve { get; set; } public virtual decimal? SundryReserves { get; set; } public virtual decimal? ShareholderFunds { get; set; } } public partial class CompanyLookupFinancialCash { public virtual decimal? NetCashFlowFromOperations { get; set; } public virtual decimal? NetCashFlowBeforeFinancing { get; set; } public virtual decimal? NetCashFlowFromFinancing { get; set; } public virtual decimal? IncreaseInCash { get; set; } } public partial class CompanyLookupFinancialMisc { public virtual string ContingentLiability { get; set; } public virtual decimal? CapitalEmployed { get; set; } public virtual decimal? NumberOfEmployees { get; set; } public virtual string Auditors { get; set; } public virtual string AuditorComments { get; set; } public virtual string Bankers { get; set; } public virtual string BankBranchCode { get; set; } } public partial class CompanyLookupFinancialOther { public virtual decimal? NetWorth { get; set; } public virtual decimal? NetAssets { get; set; } public virtual decimal? WorkingCapital { get; set; } public virtual decimal? TotalAssets { get; set; } public virtual decimal? TotalLiabilities { get; set; } } public partial class CompanyLookupFinancialProfit { public virtual decimal? Turnover { get; set; } public virtual decimal? Export { get; set; } public virtual decimal? CostOfSales { get; set; } public virtual decimal? GrossProfit { get; set; } public virtual decimal? WagesAndSalaries { get; set; } public virtual decimal? DirectorEmolument { get; set; } public virtual decimal? OperatingProfit { get; set; } public virtual decimal? Depreciation { get; set; } public virtual decimal? AuditFees { get; set; } public virtual decimal? InterestPayments { get; set; } public virtual decimal? PretaxProfit { get; set; } public virtual decimal? Taxation { get; set; } public virtual decimal? ProfitAfterTax { get; set; } public virtual decimal? DividendsPayable { get; set; } public virtual decimal? RetainedProfit { get; set; } } public partial class CompanyLookupFinancialRatios { public virtual decimal? PreTaxProfitMargin { get; set; } public virtual decimal? CurrentRatio { get; set; } public virtual decimal? SalesNetworkingCapital { get; set; } public virtual decimal? Gearing { get; set; } public virtual decimal? Equity { get; set; } public virtual decimal? CreditorDays { get; set; } public virtual decimal? DebtorDays { get; set; } public virtual decimal? LiquidityAcidTest { get; set; } public virtual decimal? ReturnOnCapitalEmployed { get; set; } public virtual decimal? ReturnOnNetAssetsEmployed { get; set; } public virtual decimal? ReturnOnTotalAssetsEmployed { get; set; } public virtual decimal? CurrentDebtRatio { get; set; } public virtual decimal? TotalDebtRatio { get; set; } public virtual decimal? StockTurnoverRatio { get; set; } } public partial class CompanyLookupSearchRecord { public CompanyLookupSearchRecord() { CompanyDirectorsAndShareholders = new List{}; } public virtual int Id { get; set; } public virtual SearchCriteria SearchCriteria { get; set; } public virtual ArrayOfLists SelectedLists { get; set; } public virtual DateTime Date { get; set; } public virtual bool HasCompanyId { get; set; } public virtual bool HasCompanyDetails { get; set; } public virtual bool HasStartedSearches { get; set; } public virtual bool HasCompletedSearches { get; set; } public virtual ArrayOfCompanyChanges CompanyChanges { get; set; } public virtual List CompanyDirectorsAndShareholders { get; set; } public virtual SearchListItem CompanySearchRecord { get; set; } public virtual bool HasEnhancedInformation { get; set; } public virtual CompanyLookupEnhanced EnhancedInformation { get; set; } } 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 SearchCriteria { public virtual string Name { get; set; } public virtual string Address { get; set; } public virtual string Country { get; set; } public virtual string DateOfBirth { get; set; } public virtual string Nationality { get; set; } public virtual string Reference { get; set; } } public partial class SearchListItem { public SearchListItem() { SearchSources = new List{}; } public virtual long Id { get; set; } public virtual string SearchType { get; set; } public virtual DateTime DateSearched { get; set; } public virtual DateTime DateUpdated { get; set; } public virtual DateTime? DateArchived { get; set; } public virtual bool IsArchived { get; set; } public virtual int NumOfResults { get; set; } public virtual bool ClientInResults { get; set; } public virtual bool ClientNotInResults { get; set; } public virtual bool AffectedByUpdate { get; set; } public virtual SearchCriteria SearchCriteria { get; set; } public virtual List SearchSources { get; set; } } public partial class SearchSource { public virtual string ListId { get; set; } public virtual string ListName { get; set; } public virtual string ListShortName { get; set; } public virtual bool? IsAffectedByListUpdate { get; set; } } }