Add a sanctions search |
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
// @DataContract
class Authentication implements JsonSerializable
{
public function __construct(
/** @description 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")
/** @var string */
public string $apiUserId='',
/** @description 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")
/** @var string */
public string $apiUserKey=''
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['apiUserId'])) $this->apiUserId = $o['apiUserId'];
if (isset($o['apiUserKey'])) $this->apiUserKey = $o['apiUserKey'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->apiUserId)) $o['apiUserId'] = $this->apiUserId;
if (isset($this->apiUserKey)) $o['apiUserKey'] = $this->apiUserKey;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseRequest implements IBaseRequest, JsonSerializable
{
public function __construct(
/** @description The authentication credentials */
// @DataMember
// @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")
/** @var Authentication|null */
public ?Authentication $authentication=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['authentication'])) $this->authentication = JsonConverters::from('Authentication', $o['authentication']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->authentication)) $o['authentication'] = JsonConverters::to('Authentication', $this->authentication);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class ResponseError implements JsonSerializable
{
public function __construct(
// @DataMember(Order=1)
/** @var string|null */
public ?string $errorCode=null,
// @DataMember(Order=2)
/** @var string|null */
public ?string $fieldName=null,
// @DataMember(Order=3)
/** @var string|null */
public ?string $message=null,
// @DataMember(Order=4)
/** @var array<string,string>|null */
public ?array $meta=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['errorCode'])) $this->errorCode = $o['errorCode'];
if (isset($o['fieldName'])) $this->fieldName = $o['fieldName'];
if (isset($o['message'])) $this->message = $o['message'];
if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->errorCode)) $o['errorCode'] = $this->errorCode;
if (isset($this->fieldName)) $o['fieldName'] = $this->fieldName;
if (isset($this->message)) $o['message'] = $this->message;
if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
return empty($o) ? new class(){} : $o;
}
}
/**
* @template array of ResponseError
*/
class ArrayOfResponseError extends \ArrayObject implements JsonSerializable
{
public function __construct(ResponseError ...$items) {
parent::__construct($items, \ArrayObject::STD_PROP_LIST);
}
/** @throws \Exception */
public function append($value): void {
if ($value instanceof ResponseError)
parent::append($value);
else
throw new \Exception("Can only append a ResponseError to " . __CLASS__);
}
/** @throws Exception */
public function fromMap($o): void {
foreach ($o as $item) {
$el = new ResponseError();
$el->fromMap($item);
$this->append($el);
}
}
/** @throws Exception */
public function jsonSerialize(): array {
return parent::getArrayCopy();
}
}
// @DataContract
class ResponseStatus implements JsonSerializable
{
public function __construct(
// @DataMember(Order=1)
/** @var string|null */
public ?string $errorCode=null,
// @DataMember(Order=2)
/** @var string|null */
public ?string $message=null,
// @DataMember(Order=3)
/** @var string|null */
public ?string $stackTrace=null,
// @DataMember(Order=4)
/** @var ArrayOfResponseError|null */
public ?ArrayOfResponseError $errors=null,
// @DataMember(Order=5)
/** @var array<string,string>|null */
public ?array $meta=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['errorCode'])) $this->errorCode = $o['errorCode'];
if (isset($o['message'])) $this->message = $o['message'];
if (isset($o['stackTrace'])) $this->stackTrace = $o['stackTrace'];
if (isset($o['errors'])) $this->errors = JsonConverters::from('ArrayOfResponseError', $o['errors']);
if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->errorCode)) $o['errorCode'] = $this->errorCode;
if (isset($this->message)) $o['message'] = $this->message;
if (isset($this->stackTrace)) $o['stackTrace'] = $this->stackTrace;
if (isset($this->errors)) $o['errors'] = JsonConverters::to('ArrayOfResponseError', $this->errors);
if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
return empty($o) ? new class(){} : $o;
}
}
class BaseResponse implements IBaseDataResponse, IHasResponseStatus, JsonSerializable
{
public function __construct(
/** @description The status of the response */
// @ApiMember(Description="The status of the response")
/** @var ResponseStatus|null */
public ?ResponseStatus $responseStatus=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
return empty($o) ? new class(){} : $o;
}
}
class LinkedTo implements JsonSerializable
{
public function __construct(
/** @var int|null */
public ?int $clientId=null,
/** @var int|null */
public ?int $id=null,
/** @var string|null */
public ?string $type=null,
/** @var string|null */
public ?string $subtype=null,
/** @var string|null */
public ?string $status=null,
/** @var string|null */
public ?string $description=null,
/** @var bool|null */
public ?bool $isArchived=null,
/** @var string|null */
public ?string $name=null,
/** @var DateTime|null */
public ?DateTime $date=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['clientId'])) $this->clientId = $o['clientId'];
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['type'])) $this->type = $o['type'];
if (isset($o['subtype'])) $this->subtype = $o['subtype'];
if (isset($o['status'])) $this->status = $o['status'];
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['isArchived'])) $this->isArchived = $o['isArchived'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['date'])) $this->date = JsonConverters::from('DateTime', $o['date']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->clientId)) $o['clientId'] = $this->clientId;
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->type)) $o['type'] = $this->type;
if (isset($this->subtype)) $o['subtype'] = $this->subtype;
if (isset($this->status)) $o['status'] = $this->status;
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->isArchived)) $o['isArchived'] = $this->isArchived;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->date)) $o['date'] = JsonConverters::to('DateTime', $this->date);
return empty($o) ? new class(){} : $o;
}
}
/**
* @template array of LinkedTo
*/
class ArrayOfLinkedTo extends \ArrayObject implements JsonSerializable
{
public function __construct(LinkedTo ...$items) {
parent::__construct($items, \ArrayObject::STD_PROP_LIST);
}
/** @throws \Exception */
public function append($value): void {
if ($value instanceof LinkedTo)
parent::append($value);
else
throw new \Exception("Can only append a LinkedTo to " . __CLASS__);
}
/** @throws Exception */
public function fromMap($o): void {
foreach ($o as $item) {
$el = new LinkedTo();
$el->fromMap($item);
$this->append($el);
}
}
/** @throws Exception */
public function jsonSerialize(): array {
return parent::getArrayCopy();
}
}
class SearchCriteria implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $name=null,
/** @var string|null */
public ?string $address=null,
/** @var string|null */
public ?string $country=null,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var string|null */
public ?string $nationality=null,
/** @var string|null */
public ?string $reference=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['address'])) $this->address = $o['address'];
if (isset($o['country'])) $this->country = $o['country'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['nationality'])) $this->nationality = $o['nationality'];
if (isset($o['reference'])) $this->reference = $o['reference'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->address)) $o['address'] = $this->address;
if (isset($this->country)) $o['country'] = $this->country;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->nationality)) $o['nationality'] = $this->nationality;
if (isset($this->reference)) $o['reference'] = $this->reference;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultEuAddress implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $street=null,
/** @var string|null */
public ?string $city=null,
/** @var string|null */
public ?string $country=null,
/** @var string|null */
public ?string $postCode=null,
/** @var string|null */
public ?string $other=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['street'])) $this->street = $o['street'];
if (isset($o['city'])) $this->city = $o['city'];
if (isset($o['country'])) $this->country = $o['country'];
if (isset($o['postCode'])) $this->postCode = $o['postCode'];
if (isset($o['other'])) $this->other = $o['other'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->street)) $o['street'] = $this->street;
if (isset($this->city)) $o['city'] = $this->city;
if (isset($this->country)) $o['country'] = $this->country;
if (isset($this->postCode)) $o['postCode'] = $this->postCode;
if (isset($this->other)) $o['other'] = $this->other;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultEuBirth implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $date=null,
/** @var string|null */
public ?string $place=null,
/** @var string|null */
public ?string $country=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['date'])) $this->date = $o['date'];
if (isset($o['place'])) $this->place = $o['place'];
if (isset($o['country'])) $this->country = $o['country'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->date)) $o['date'] = $this->date;
if (isset($this->place)) $o['place'] = $this->place;
if (isset($this->country)) $o['country'] = $this->country;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOfacEuCitizenship implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $country=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['country'])) $this->country = $o['country'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->country)) $o['country'] = $this->country;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultEuName implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $fullName=null,
/** @var string|null */
public ?string $gender=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['fullName'])) $this->fullName = $o['fullName'];
if (isset($o['gender'])) $this->gender = $o['gender'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->fullName)) $o['fullName'] = $this->fullName;
if (isset($this->gender)) $o['gender'] = $this->gender;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultEuPassport implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $number=null,
/** @var string|null */
public ?string $country=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['number'])) $this->number = $o['number'];
if (isset($o['country'])) $this->country = $o['country'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->number)) $o['number'] = $this->number;
if (isset($this->country)) $o['country'] = $this->country;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultEu implements JsonSerializable
{
public function __construct(
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var array<SearchResultEuAddress>|null */
public ?array $addresses=null,
/** @var array<SearchResultEuBirth>|null */
public ?array $births=null,
/** @var array<SearchResultOfacEuCitizenship>|null */
public ?array $citizenships=null,
/** @var array<SearchResultEuName>|null */
public ?array $names=null,
/** @var array<SearchResultEuPassport>|null */
public ?array $passports=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['addresses'])) $this->addresses = JsonConverters::fromArray('SearchResultEuAddress', $o['addresses']);
if (isset($o['births'])) $this->births = JsonConverters::fromArray('SearchResultEuBirth', $o['births']);
if (isset($o['citizenships'])) $this->citizenships = JsonConverters::fromArray('SearchResultOfacEuCitizenship', $o['citizenships']);
if (isset($o['names'])) $this->names = JsonConverters::fromArray('SearchResultEuName', $o['names']);
if (isset($o['passports'])) $this->passports = JsonConverters::fromArray('SearchResultEuPassport', $o['passports']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->addresses)) $o['addresses'] = JsonConverters::toArray('SearchResultEuAddress', $this->addresses);
if (isset($this->births)) $o['births'] = JsonConverters::toArray('SearchResultEuBirth', $this->births);
if (isset($this->citizenships)) $o['citizenships'] = JsonConverters::toArray('SearchResultOfacEuCitizenship', $this->citizenships);
if (isset($this->names)) $o['names'] = JsonConverters::toArray('SearchResultEuName', $this->names);
if (isset($this->passports)) $o['passports'] = JsonConverters::toArray('SearchResultEuPassport', $this->passports);
return empty($o) ? new class(){} : $o;
}
}
class SearchResultHmTreasury implements JsonSerializable
{
public function __construct(
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime */
public DateTime $dateListed=new DateTime(),
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var string|null */
public ?string $name1=null,
/** @var string|null */
public ?string $name2=null,
/** @var string|null */
public ?string $name3=null,
/** @var string|null */
public ?string $name4=null,
/** @var string|null */
public ?string $name5=null,
/** @var string|null */
public ?string $name6=null,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var string|null */
public ?string $countryOfBirth=null,
/** @var string|null */
public ?string $nationality=null,
/** @var string|null */
public ?string $address1=null,
/** @var string|null */
public ?string $address2=null,
/** @var string|null */
public ?string $address3=null,
/** @var string|null */
public ?string $address4=null,
/** @var string|null */
public ?string $address5=null,
/** @var string|null */
public ?string $address6=null,
/** @var string|null */
public ?string $postCode=null,
/** @var string|null */
public ?string $country=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateListed'])) $this->dateListed = JsonConverters::from('DateTime', $o['dateListed']);
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['name1'])) $this->name1 = $o['name1'];
if (isset($o['name2'])) $this->name2 = $o['name2'];
if (isset($o['name3'])) $this->name3 = $o['name3'];
if (isset($o['name4'])) $this->name4 = $o['name4'];
if (isset($o['name5'])) $this->name5 = $o['name5'];
if (isset($o['name6'])) $this->name6 = $o['name6'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['countryOfBirth'])) $this->countryOfBirth = $o['countryOfBirth'];
if (isset($o['nationality'])) $this->nationality = $o['nationality'];
if (isset($o['address1'])) $this->address1 = $o['address1'];
if (isset($o['address2'])) $this->address2 = $o['address2'];
if (isset($o['address3'])) $this->address3 = $o['address3'];
if (isset($o['address4'])) $this->address4 = $o['address4'];
if (isset($o['address5'])) $this->address5 = $o['address5'];
if (isset($o['address6'])) $this->address6 = $o['address6'];
if (isset($o['postCode'])) $this->postCode = $o['postCode'];
if (isset($o['country'])) $this->country = $o['country'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateListed)) $o['dateListed'] = JsonConverters::to('DateTime', $this->dateListed);
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->name1)) $o['name1'] = $this->name1;
if (isset($this->name2)) $o['name2'] = $this->name2;
if (isset($this->name3)) $o['name3'] = $this->name3;
if (isset($this->name4)) $o['name4'] = $this->name4;
if (isset($this->name5)) $o['name5'] = $this->name5;
if (isset($this->name6)) $o['name6'] = $this->name6;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->countryOfBirth)) $o['countryOfBirth'] = $this->countryOfBirth;
if (isset($this->nationality)) $o['nationality'] = $this->nationality;
if (isset($this->address1)) $o['address1'] = $this->address1;
if (isset($this->address2)) $o['address2'] = $this->address2;
if (isset($this->address3)) $o['address3'] = $this->address3;
if (isset($this->address4)) $o['address4'] = $this->address4;
if (isset($this->address5)) $o['address5'] = $this->address5;
if (isset($this->address6)) $o['address6'] = $this->address6;
if (isset($this->postCode)) $o['postCode'] = $this->postCode;
if (isset($this->country)) $o['country'] = $this->country;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOfacAddress implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $address1=null,
/** @var string|null */
public ?string $address2=null,
/** @var string|null */
public ?string $address3=null,
/** @var string|null */
public ?string $city=null,
/** @var string|null */
public ?string $state=null,
/** @var string|null */
public ?string $postCode=null,
/** @var string|null */
public ?string $country=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['address1'])) $this->address1 = $o['address1'];
if (isset($o['address2'])) $this->address2 = $o['address2'];
if (isset($o['address3'])) $this->address3 = $o['address3'];
if (isset($o['city'])) $this->city = $o['city'];
if (isset($o['state'])) $this->state = $o['state'];
if (isset($o['postCode'])) $this->postCode = $o['postCode'];
if (isset($o['country'])) $this->country = $o['country'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->address1)) $o['address1'] = $this->address1;
if (isset($this->address2)) $o['address2'] = $this->address2;
if (isset($this->address3)) $o['address3'] = $this->address3;
if (isset($this->city)) $o['city'] = $this->city;
if (isset($this->state)) $o['state'] = $this->state;
if (isset($this->postCode)) $o['postCode'] = $this->postCode;
if (isset($this->country)) $o['country'] = $this->country;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOfacAka implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $firstName=null,
/** @var string|null */
public ?string $lastName=null,
/** @var string|null */
public ?string $type=null,
/** @var string|null */
public ?string $strength=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['firstName'])) $this->firstName = $o['firstName'];
if (isset($o['lastName'])) $this->lastName = $o['lastName'];
if (isset($o['type'])) $this->type = $o['type'];
if (isset($o['strength'])) $this->strength = $o['strength'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->firstName)) $o['firstName'] = $this->firstName;
if (isset($this->lastName)) $o['lastName'] = $this->lastName;
if (isset($this->type)) $o['type'] = $this->type;
if (isset($this->strength)) $o['strength'] = $this->strength;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOfacDateOfBirth implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $dateOfBirth=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOfacNationality implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $country=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['country'])) $this->country = $o['country'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->country)) $o['country'] = $this->country;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOfacPlaceOfBirth implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $placeOfBirth=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOfac implements JsonSerializable
{
public function __construct(
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var string|null */
public ?string $firstName=null,
/** @var string|null */
public ?string $lastName=null,
/** @var array<SearchResultOfacAddress>|null */
public ?array $addresses=null,
/** @var array<SearchResultOfacAka>|null */
public ?array $akas=null,
/** @var array<SearchResultOfacDateOfBirth>|null */
public ?array $dateOfBirths=null,
/** @var array<SearchResultOfacNationality>|null */
public ?array $nationalities=null,
/** @var array<SearchResultOfacPlaceOfBirth>|null */
public ?array $placeOfBirths=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['firstName'])) $this->firstName = $o['firstName'];
if (isset($o['lastName'])) $this->lastName = $o['lastName'];
if (isset($o['addresses'])) $this->addresses = JsonConverters::fromArray('SearchResultOfacAddress', $o['addresses']);
if (isset($o['akas'])) $this->akas = JsonConverters::fromArray('SearchResultOfacAka', $o['akas']);
if (isset($o['dateOfBirths'])) $this->dateOfBirths = JsonConverters::fromArray('SearchResultOfacDateOfBirth', $o['dateOfBirths']);
if (isset($o['nationalities'])) $this->nationalities = JsonConverters::fromArray('SearchResultOfacNationality', $o['nationalities']);
if (isset($o['placeOfBirths'])) $this->placeOfBirths = JsonConverters::fromArray('SearchResultOfacPlaceOfBirth', $o['placeOfBirths']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->firstName)) $o['firstName'] = $this->firstName;
if (isset($this->lastName)) $o['lastName'] = $this->lastName;
if (isset($this->addresses)) $o['addresses'] = JsonConverters::toArray('SearchResultOfacAddress', $this->addresses);
if (isset($this->akas)) $o['akas'] = JsonConverters::toArray('SearchResultOfacAka', $this->akas);
if (isset($this->dateOfBirths)) $o['dateOfBirths'] = JsonConverters::toArray('SearchResultOfacDateOfBirth', $this->dateOfBirths);
if (isset($this->nationalities)) $o['nationalities'] = JsonConverters::toArray('SearchResultOfacNationality', $this->nationalities);
if (isset($this->placeOfBirths)) $o['placeOfBirths'] = JsonConverters::toArray('SearchResultOfacPlaceOfBirth', $this->placeOfBirths);
return empty($o) ? new class(){} : $o;
}
}
class SearchResultDfat implements JsonSerializable
{
public function __construct(
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var string|null */
public ?string $fullName=null,
/** @var string|null */
public ?string $address=null,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var string|null */
public ?string $placeOfBirth=null,
/** @var string|null */
public ?string $nationality=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['fullName'])) $this->fullName = $o['fullName'];
if (isset($o['address'])) $this->address = $o['address'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
if (isset($o['nationality'])) $this->nationality = $o['nationality'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->fullName)) $o['fullName'] = $this->fullName;
if (isset($this->address)) $o['address'] = $this->address;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
if (isset($this->nationality)) $o['nationality'] = $this->nationality;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultOsfi implements JsonSerializable
{
public function __construct(
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var string|null */
public ?string $fullName=null,
/** @var string|null */
public ?string $address=null,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var string|null */
public ?string $placeOfBirth=null,
/** @var string|null */
public ?string $nationality=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['fullName'])) $this->fullName = $o['fullName'];
if (isset($o['address'])) $this->address = $o['address'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
if (isset($o['nationality'])) $this->nationality = $o['nationality'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->fullName)) $o['fullName'] = $this->fullName;
if (isset($this->address)) $o['address'] = $this->address;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
if (isset($this->nationality)) $o['nationality'] = $this->nationality;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultCanadianJustice implements JsonSerializable
{
public function __construct(
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var string|null */
public ?string $name=null,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var string|null */
public ?string $country=null,
/** @var int */
public int $refId=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['country'])) $this->country = $o['country'];
if (isset($o['refId'])) $this->refId = $o['refId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->country)) $o['country'] = $this->country;
if (isset($this->refId)) $o['refId'] = $this->refId;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultCanadianSema implements JsonSerializable
{
public function __construct(
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var string|null */
public ?string $name=null,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var string|null */
public ?string $country=null,
/** @var string|null */
public ?string $schedule=null,
/** @var string|null */
public ?string $item=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['country'])) $this->country = $o['country'];
if (isset($o['schedule'])) $this->schedule = $o['schedule'];
if (isset($o['item'])) $this->item = $o['item'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->country)) $o['country'] = $this->country;
if (isset($this->schedule)) $o['schedule'] = $this->schedule;
if (isset($this->item)) $o['item'] = $this->item;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultAddress implements JsonSerializable
{
public function __construct(
/** @var int */
public int $searchResultAddressId=0,
/** @var string|null */
public ?string $type=null,
/** @var string|null */
public ?string $address1=null,
/** @var string|null */
public ?string $address2=null,
/** @var string|null */
public ?string $address3=null,
/** @var string|null */
public ?string $city=null,
/** @var string|null */
public ?string $county=null,
/** @var string|null */
public ?string $postCode=null,
/** @var string|null */
public ?string $country=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['searchResultAddressId'])) $this->searchResultAddressId = $o['searchResultAddressId'];
if (isset($o['type'])) $this->type = $o['type'];
if (isset($o['address1'])) $this->address1 = $o['address1'];
if (isset($o['address2'])) $this->address2 = $o['address2'];
if (isset($o['address3'])) $this->address3 = $o['address3'];
if (isset($o['city'])) $this->city = $o['city'];
if (isset($o['county'])) $this->county = $o['county'];
if (isset($o['postCode'])) $this->postCode = $o['postCode'];
if (isset($o['country'])) $this->country = $o['country'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->searchResultAddressId)) $o['searchResultAddressId'] = $this->searchResultAddressId;
if (isset($this->type)) $o['type'] = $this->type;
if (isset($this->address1)) $o['address1'] = $this->address1;
if (isset($this->address2)) $o['address2'] = $this->address2;
if (isset($this->address3)) $o['address3'] = $this->address3;
if (isset($this->city)) $o['city'] = $this->city;
if (isset($this->county)) $o['county'] = $this->county;
if (isset($this->postCode)) $o['postCode'] = $this->postCode;
if (isset($this->country)) $o['country'] = $this->country;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultDateOfBirth implements JsonSerializable
{
public function __construct(
/** @var int */
public int $searchResultDateOfBirthId=0,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var int|null */
public ?int $year=null,
/** @var int|null */
public ?int $month=null,
/** @var int|null */
public ?int $day=null,
/** @var string|null */
public ?string $type=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['searchResultDateOfBirthId'])) $this->searchResultDateOfBirthId = $o['searchResultDateOfBirthId'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['year'])) $this->year = $o['year'];
if (isset($o['month'])) $this->month = $o['month'];
if (isset($o['day'])) $this->day = $o['day'];
if (isset($o['type'])) $this->type = $o['type'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->searchResultDateOfBirthId)) $o['searchResultDateOfBirthId'] = $this->searchResultDateOfBirthId;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->year)) $o['year'] = $this->year;
if (isset($this->month)) $o['month'] = $this->month;
if (isset($this->day)) $o['day'] = $this->day;
if (isset($this->type)) $o['type'] = $this->type;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultName implements JsonSerializable
{
public function __construct(
/** @var int */
public int $searchResultNameId=0,
/** @var string|null */
public ?string $type=null,
/** @var string|null */
public ?string $title=null,
/** @var string|null */
public ?string $fullName=null,
/** @var float */
public float $resultSimilarity=0.0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['searchResultNameId'])) $this->searchResultNameId = $o['searchResultNameId'];
if (isset($o['type'])) $this->type = $o['type'];
if (isset($o['title'])) $this->title = $o['title'];
if (isset($o['fullName'])) $this->fullName = $o['fullName'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->searchResultNameId)) $o['searchResultNameId'] = $this->searchResultNameId;
if (isset($this->type)) $o['type'] = $this->type;
if (isset($this->title)) $o['title'] = $this->title;
if (isset($this->fullName)) $o['fullName'] = $this->fullName;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultNationality implements JsonSerializable
{
public function __construct(
/** @var int */
public int $searchResultNationalityId=0,
/** @var string|null */
public ?string $nationality=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['searchResultNationalityId'])) $this->searchResultNationalityId = $o['searchResultNationalityId'];
if (isset($o['nationality'])) $this->nationality = $o['nationality'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->searchResultNationalityId)) $o['searchResultNationalityId'] = $this->searchResultNationalityId;
if (isset($this->nationality)) $o['nationality'] = $this->nationality;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultPlaceOfBirth implements JsonSerializable
{
public function __construct(
/** @var int */
public int $searchResultPlaceOfBirthId=0,
/** @var string|null */
public ?string $placeOfBirth=null,
/** @var string|null */
public ?string $countryOfBirth=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['searchResultPlaceOfBirthId'])) $this->searchResultPlaceOfBirthId = $o['searchResultPlaceOfBirthId'];
if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
if (isset($o['countryOfBirth'])) $this->countryOfBirth = $o['countryOfBirth'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->searchResultPlaceOfBirthId)) $o['searchResultPlaceOfBirthId'] = $this->searchResultPlaceOfBirthId;
if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
if (isset($this->countryOfBirth)) $o['countryOfBirth'] = $this->countryOfBirth;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultRemark implements JsonSerializable
{
public function __construct(
/** @var int */
public int $searchResultRemarkId=0,
/** @var string|null */
public ?string $name=null,
/** @var string|null */
public ?string $description=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['searchResultRemarkId'])) $this->searchResultRemarkId = $o['searchResultRemarkId'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['description'])) $this->description = $o['description'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->searchResultRemarkId)) $o['searchResultRemarkId'] = $this->searchResultRemarkId;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->description)) $o['description'] = $this->description;
return empty($o) ? new class(){} : $o;
}
}
class SearchResultEntry implements JsonSerializable
{
public function __construct(
/** @var int */
public int $searchResultId=0,
/** @var int */
public int $resultStrength=0,
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var string|null */
public ?string $resultType=null,
/** @var DateTime|null */
public ?DateTime $dateUpdated=null,
/** @var string|null */
public ?string $sanctionsListId=null,
/** @var string|null */
public ?string $sanctionsListName=null,
/** @var array<SearchResultAddress>|null */
public ?array $addresses=null,
/** @var array<SearchResultDateOfBirth>|null */
public ?array $datesOfBirth=null,
/** @var array<SearchResultName>|null */
public ?array $names=null,
/** @var array<SearchResultNationality>|null */
public ?array $nationalities=null,
/** @var array<SearchResultPlaceOfBirth>|null */
public ?array $placesOfBirth=null,
/** @var array<SearchResultRemark>|null */
public ?array $remarks=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['searchResultId'])) $this->searchResultId = $o['searchResultId'];
if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['resultType'])) $this->resultType = $o['resultType'];
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['sanctionsListId'])) $this->sanctionsListId = $o['sanctionsListId'];
if (isset($o['sanctionsListName'])) $this->sanctionsListName = $o['sanctionsListName'];
if (isset($o['addresses'])) $this->addresses = JsonConverters::fromArray('SearchResultAddress', $o['addresses']);
if (isset($o['datesOfBirth'])) $this->datesOfBirth = JsonConverters::fromArray('SearchResultDateOfBirth', $o['datesOfBirth']);
if (isset($o['names'])) $this->names = JsonConverters::fromArray('SearchResultName', $o['names']);
if (isset($o['nationalities'])) $this->nationalities = JsonConverters::fromArray('SearchResultNationality', $o['nationalities']);
if (isset($o['placesOfBirth'])) $this->placesOfBirth = JsonConverters::fromArray('SearchResultPlaceOfBirth', $o['placesOfBirth']);
if (isset($o['remarks'])) $this->remarks = JsonConverters::fromArray('SearchResultRemark', $o['remarks']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->searchResultId)) $o['searchResultId'] = $this->searchResultId;
if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->resultType)) $o['resultType'] = $this->resultType;
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->sanctionsListId)) $o['sanctionsListId'] = $this->sanctionsListId;
if (isset($this->sanctionsListName)) $o['sanctionsListName'] = $this->sanctionsListName;
if (isset($this->addresses)) $o['addresses'] = JsonConverters::toArray('SearchResultAddress', $this->addresses);
if (isset($this->datesOfBirth)) $o['datesOfBirth'] = JsonConverters::toArray('SearchResultDateOfBirth', $this->datesOfBirth);
if (isset($this->names)) $o['names'] = JsonConverters::toArray('SearchResultName', $this->names);
if (isset($this->nationalities)) $o['nationalities'] = JsonConverters::toArray('SearchResultNationality', $this->nationalities);
if (isset($this->placesOfBirth)) $o['placesOfBirth'] = JsonConverters::toArray('SearchResultPlaceOfBirth', $this->placesOfBirth);
if (isset($this->remarks)) $o['remarks'] = JsonConverters::toArray('SearchResultRemark', $this->remarks);
return empty($o) ? new class(){} : $o;
}
}
class SearchResults implements JsonSerializable
{
public function __construct(
/** @var array<SearchResultEu>|null */
public ?array $euResults=null,
/** @var array<SearchResultHmTreasury>|null */
public ?array $hmtResults=null,
/** @var array<SearchResultHmTreasury>|null */
public ?array $hmtUkraineResults=null,
/** @var array<SearchResultOfac>|null */
public ?array $ofacResults=null,
/** @var array<SearchResultOfac>|null */
public ?array $ofacConsolidatedResults=null,
/** @var array<SearchResultDfat>|null */
public ?array $dfatResults=null,
/** @var array<SearchResultOsfi>|null */
public ?array $osfiResults=null,
/** @var array<SearchResultCanadianJustice>|null */
public ?array $canadianJusticeResults=null,
/** @var array<SearchResultCanadianSema>|null */
public ?array $canadianSemaResults=null,
/** @var array<SearchResultEntry>|null */
public ?array $swissSecoResults=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['euResults'])) $this->euResults = JsonConverters::fromArray('SearchResultEu', $o['euResults']);
if (isset($o['hmtResults'])) $this->hmtResults = JsonConverters::fromArray('SearchResultHmTreasury', $o['hmtResults']);
if (isset($o['hmtUkraineResults'])) $this->hmtUkraineResults = JsonConverters::fromArray('SearchResultHmTreasury', $o['hmtUkraineResults']);
if (isset($o['ofacResults'])) $this->ofacResults = JsonConverters::fromArray('SearchResultOfac', $o['ofacResults']);
if (isset($o['ofacConsolidatedResults'])) $this->ofacConsolidatedResults = JsonConverters::fromArray('SearchResultOfac', $o['ofacConsolidatedResults']);
if (isset($o['dfatResults'])) $this->dfatResults = JsonConverters::fromArray('SearchResultDfat', $o['dfatResults']);
if (isset($o['osfiResults'])) $this->osfiResults = JsonConverters::fromArray('SearchResultOsfi', $o['osfiResults']);
if (isset($o['canadianJusticeResults'])) $this->canadianJusticeResults = JsonConverters::fromArray('SearchResultCanadianJustice', $o['canadianJusticeResults']);
if (isset($o['canadianSemaResults'])) $this->canadianSemaResults = JsonConverters::fromArray('SearchResultCanadianSema', $o['canadianSemaResults']);
if (isset($o['swissSecoResults'])) $this->swissSecoResults = JsonConverters::fromArray('SearchResultEntry', $o['swissSecoResults']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->euResults)) $o['euResults'] = JsonConverters::toArray('SearchResultEu', $this->euResults);
if (isset($this->hmtResults)) $o['hmtResults'] = JsonConverters::toArray('SearchResultHmTreasury', $this->hmtResults);
if (isset($this->hmtUkraineResults)) $o['hmtUkraineResults'] = JsonConverters::toArray('SearchResultHmTreasury', $this->hmtUkraineResults);
if (isset($this->ofacResults)) $o['ofacResults'] = JsonConverters::toArray('SearchResultOfac', $this->ofacResults);
if (isset($this->ofacConsolidatedResults)) $o['ofacConsolidatedResults'] = JsonConverters::toArray('SearchResultOfac', $this->ofacConsolidatedResults);
if (isset($this->dfatResults)) $o['dfatResults'] = JsonConverters::toArray('SearchResultDfat', $this->dfatResults);
if (isset($this->osfiResults)) $o['osfiResults'] = JsonConverters::toArray('SearchResultOsfi', $this->osfiResults);
if (isset($this->canadianJusticeResults)) $o['canadianJusticeResults'] = JsonConverters::toArray('SearchResultCanadianJustice', $this->canadianJusticeResults);
if (isset($this->canadianSemaResults)) $o['canadianSemaResults'] = JsonConverters::toArray('SearchResultCanadianSema', $this->canadianSemaResults);
if (isset($this->swissSecoResults)) $o['swissSecoResults'] = JsonConverters::toArray('SearchResultEntry', $this->swissSecoResults);
return empty($o) ? new class(){} : $o;
}
}
class SearchSource implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $listId=null,
/** @var string|null */
public ?string $listName=null,
/** @var string|null */
public ?string $listShortName=null,
/** @var bool|null */
public ?bool $isAffectedByListUpdate=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['listId'])) $this->listId = $o['listId'];
if (isset($o['listName'])) $this->listName = $o['listName'];
if (isset($o['listShortName'])) $this->listShortName = $o['listShortName'];
if (isset($o['isAffectedByListUpdate'])) $this->isAffectedByListUpdate = $o['isAffectedByListUpdate'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->listId)) $o['listId'] = $this->listId;
if (isset($this->listName)) $o['listName'] = $this->listName;
if (isset($this->listShortName)) $o['listShortName'] = $this->listShortName;
if (isset($this->isAffectedByListUpdate)) $o['isAffectedByListUpdate'] = $this->isAffectedByListUpdate;
return empty($o) ? new class(){} : $o;
}
}
/**
* @template array of SearchResultEntry
*/
class ArrayOfSearchResultEntries extends \ArrayObject implements JsonSerializable
{
public function __construct(SearchResultEntry ...$items) {
parent::__construct($items, \ArrayObject::STD_PROP_LIST);
}
/** @throws \Exception */
public function append($value): void {
if ($value instanceof SearchResultEntry)
parent::append($value);
else
throw new \Exception("Can only append a SearchResultEntry to " . __CLASS__);
}
/** @throws Exception */
public function fromMap($o): void {
foreach ($o as $item) {
$el = new SearchResultEntry();
$el->fromMap($item);
$this->append($el);
}
}
/** @throws Exception */
public function jsonSerialize(): array {
return parent::getArrayCopy();
}
}
class SearchRecord implements JsonSerializable
{
public function __construct(
/** @var int */
public int $id=0,
/** @var string|null */
public ?string $searchType=null,
/** @var DateTime */
public DateTime $dateSearched=new DateTime(),
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var DateTime|null */
public ?DateTime $dateArchived=null,
/** @var bool|null */
public ?bool $isArchived=null,
/** @var int */
public int $numOfResults=0,
/** @var bool|null */
public ?bool $clientInResults=null,
/** @var bool|null */
public ?bool $clientNotInResults=null,
/** @var bool|null */
public ?bool $affectedByUpdate=null,
/** @var SearchCriteria|null */
public ?SearchCriteria $searchCriteria=null,
/** @var SearchResults|null */
public ?SearchResults $searchResults=null,
/** @var array<SearchSource>|null */
public ?array $searchSources=null,
/** @var ArrayOfSearchResultEntries|null */
public ?ArrayOfSearchResultEntries $listSearchResults=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['searchType'])) $this->searchType = $o['searchType'];
if (isset($o['dateSearched'])) $this->dateSearched = JsonConverters::from('DateTime', $o['dateSearched']);
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['dateArchived'])) $this->dateArchived = JsonConverters::from('DateTime', $o['dateArchived']);
if (isset($o['isArchived'])) $this->isArchived = $o['isArchived'];
if (isset($o['numOfResults'])) $this->numOfResults = $o['numOfResults'];
if (isset($o['clientInResults'])) $this->clientInResults = $o['clientInResults'];
if (isset($o['clientNotInResults'])) $this->clientNotInResults = $o['clientNotInResults'];
if (isset($o['affectedByUpdate'])) $this->affectedByUpdate = $o['affectedByUpdate'];
if (isset($o['searchCriteria'])) $this->searchCriteria = JsonConverters::from('SearchCriteria', $o['searchCriteria']);
if (isset($o['searchResults'])) $this->searchResults = JsonConverters::from('SearchResults', $o['searchResults']);
if (isset($o['searchSources'])) $this->searchSources = JsonConverters::fromArray('SearchSource', $o['searchSources']);
if (isset($o['listSearchResults'])) $this->listSearchResults = JsonConverters::from('ArrayOfSearchResultEntries', $o['listSearchResults']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->searchType)) $o['searchType'] = $this->searchType;
if (isset($this->dateSearched)) $o['dateSearched'] = JsonConverters::to('DateTime', $this->dateSearched);
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->dateArchived)) $o['dateArchived'] = JsonConverters::to('DateTime', $this->dateArchived);
if (isset($this->isArchived)) $o['isArchived'] = $this->isArchived;
if (isset($this->numOfResults)) $o['numOfResults'] = $this->numOfResults;
if (isset($this->clientInResults)) $o['clientInResults'] = $this->clientInResults;
if (isset($this->clientNotInResults)) $o['clientNotInResults'] = $this->clientNotInResults;
if (isset($this->affectedByUpdate)) $o['affectedByUpdate'] = $this->affectedByUpdate;
if (isset($this->searchCriteria)) $o['searchCriteria'] = JsonConverters::to('SearchCriteria', $this->searchCriteria);
if (isset($this->searchResults)) $o['searchResults'] = JsonConverters::to('SearchResults', $this->searchResults);
if (isset($this->searchSources)) $o['searchSources'] = JsonConverters::toArray('SearchSource', $this->searchSources);
if (isset($this->listSearchResults)) $o['listSearchResults'] = JsonConverters::to('ArrayOfSearchResultEntries', $this->listSearchResults);
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultAddress implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $addressLine1=null,
/** @var string|null */
public ?string $addressLine2=null,
/** @var string|null */
public ?string $addressLine3=null,
/** @var string|null */
public ?string $addressLine4=null,
/** @var string|null */
public ?string $town=null,
/** @var string|null */
public ?string $county=null,
/** @var string|null */
public ?string $postCode=null,
/** @var string|null */
public ?string $country=null,
/** @var string|null */
public ?string $isoCountry=null,
/** @var bool|null */
public ?bool $softDelete=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime()
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['addressLine1'])) $this->addressLine1 = $o['addressLine1'];
if (isset($o['addressLine2'])) $this->addressLine2 = $o['addressLine2'];
if (isset($o['addressLine3'])) $this->addressLine3 = $o['addressLine3'];
if (isset($o['addressLine4'])) $this->addressLine4 = $o['addressLine4'];
if (isset($o['town'])) $this->town = $o['town'];
if (isset($o['county'])) $this->county = $o['county'];
if (isset($o['postCode'])) $this->postCode = $o['postCode'];
if (isset($o['country'])) $this->country = $o['country'];
if (isset($o['isoCountry'])) $this->isoCountry = $o['isoCountry'];
if (isset($o['softDelete'])) $this->softDelete = $o['softDelete'];
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->addressLine1)) $o['addressLine1'] = $this->addressLine1;
if (isset($this->addressLine2)) $o['addressLine2'] = $this->addressLine2;
if (isset($this->addressLine3)) $o['addressLine3'] = $this->addressLine3;
if (isset($this->addressLine4)) $o['addressLine4'] = $this->addressLine4;
if (isset($this->town)) $o['town'] = $this->town;
if (isset($this->county)) $o['county'] = $this->county;
if (isset($this->postCode)) $o['postCode'] = $this->postCode;
if (isset($this->country)) $o['country'] = $this->country;
if (isset($this->isoCountry)) $o['isoCountry'] = $this->isoCountry;
if (isset($this->softDelete)) $o['softDelete'] = $this->softDelete;
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultAlias implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $forename=null,
/** @var string|null */
public ?string $middleName=null,
/** @var string|null */
public ?string $surname=null,
/** @var bool|null */
public ?bool $softDelete=null,
/** @var DateTime|null */
public ?DateTime $dateOfSoftDelete=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime(),
/** @var string|null */
public ?string $title=null,
/** @var string|null */
public ?string $alternateTitle=null,
/** @var string|null */
public ?string $businessName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['forename'])) $this->forename = $o['forename'];
if (isset($o['middleName'])) $this->middleName = $o['middleName'];
if (isset($o['surname'])) $this->surname = $o['surname'];
if (isset($o['softDelete'])) $this->softDelete = $o['softDelete'];
if (isset($o['dateOfSoftDelete'])) $this->dateOfSoftDelete = JsonConverters::from('DateTime', $o['dateOfSoftDelete']);
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
if (isset($o['title'])) $this->title = $o['title'];
if (isset($o['alternateTitle'])) $this->alternateTitle = $o['alternateTitle'];
if (isset($o['businessName'])) $this->businessName = $o['businessName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->forename)) $o['forename'] = $this->forename;
if (isset($this->middleName)) $o['middleName'] = $this->middleName;
if (isset($this->surname)) $o['surname'] = $this->surname;
if (isset($this->softDelete)) $o['softDelete'] = $this->softDelete;
if (isset($this->dateOfSoftDelete)) $o['dateOfSoftDelete'] = JsonConverters::to('DateTime', $this->dateOfSoftDelete);
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
if (isset($this->title)) $o['title'] = $this->title;
if (isset($this->alternateTitle)) $o['alternateTitle'] = $this->alternateTitle;
if (isset($this->businessName)) $o['businessName'] = $this->businessName;
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultArticleSnippet implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $title=null,
/** @var string|null */
public ?string $text=null,
/** @var string|null */
public ?string $adverseTerms=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['title'])) $this->title = $o['title'];
if (isset($o['text'])) $this->text = $o['text'];
if (isset($o['adverseTerms'])) $this->adverseTerms = $o['adverseTerms'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->title)) $o['title'] = $this->title;
if (isset($this->text)) $o['text'] = $this->text;
if (isset($this->adverseTerms)) $o['adverseTerms'] = $this->adverseTerms;
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultArticle implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $url=null,
/** @var string|null */
public ?string $originalUrl=null,
/** @var string|null */
public ?string $source=null,
/** @var DateTime|null */
public ?DateTime $dateOfCapture=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime(),
/** @var array<PepSearchResultArticleSnippet>|null */
public ?array $snippets=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['url'])) $this->url = $o['url'];
if (isset($o['originalUrl'])) $this->originalUrl = $o['originalUrl'];
if (isset($o['source'])) $this->source = $o['source'];
if (isset($o['dateOfCapture'])) $this->dateOfCapture = JsonConverters::from('DateTime', $o['dateOfCapture']);
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
if (isset($o['snippets'])) $this->snippets = JsonConverters::fromArray('PepSearchResultArticleSnippet', $o['snippets']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->url)) $o['url'] = $this->url;
if (isset($this->originalUrl)) $o['originalUrl'] = $this->originalUrl;
if (isset($this->source)) $o['source'] = $this->source;
if (isset($this->dateOfCapture)) $o['dateOfCapture'] = JsonConverters::to('DateTime', $this->dateOfCapture);
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
if (isset($this->snippets)) $o['snippets'] = JsonConverters::toArray('PepSearchResultArticleSnippet', $this->snippets);
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultIndividualAssociation implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $linkDescription=null,
/** @var bool|null */
public ?bool $softDelete=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime(),
/** @var string|null */
public ?string $fullName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['linkDescription'])) $this->linkDescription = $o['linkDescription'];
if (isset($o['softDelete'])) $this->softDelete = $o['softDelete'];
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
if (isset($o['fullName'])) $this->fullName = $o['fullName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->linkDescription)) $o['linkDescription'] = $this->linkDescription;
if (isset($this->softDelete)) $o['softDelete'] = $this->softDelete;
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
if (isset($this->fullName)) $o['fullName'] = $this->fullName;
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultBusinessAssociation implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $linkDescription=null,
/** @var bool|null */
public ?bool $softDelete=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime(),
/** @var string|null */
public ?string $businessName=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['linkDescription'])) $this->linkDescription = $o['linkDescription'];
if (isset($o['softDelete'])) $this->softDelete = $o['softDelete'];
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
if (isset($o['businessName'])) $this->businessName = $o['businessName'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->linkDescription)) $o['linkDescription'] = $this->linkDescription;
if (isset($this->softDelete)) $o['softDelete'] = $this->softDelete;
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
if (isset($this->businessName)) $o['businessName'] = $this->businessName;
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultNote implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $source=null,
/** @var string|null */
public ?string $notes=null,
/** @var bool|null */
public ?bool $softDelete=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime()
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['source'])) $this->source = $o['source'];
if (isset($o['notes'])) $this->notes = $o['notes'];
if (isset($o['softDelete'])) $this->softDelete = $o['softDelete'];
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->source)) $o['source'] = $this->source;
if (isset($this->notes)) $o['notes'] = $this->notes;
if (isset($this->softDelete)) $o['softDelete'] = $this->softDelete;
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResultPoliticalPosition implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $description=null,
/** @var string|null */
public ?string $from=null,
/** @var string|null */
public ?string $to=null,
/** @var string|null */
public ?string $country=null,
/** @var bool|null */
public ?bool $softDelete=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime()
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['from'])) $this->from = $o['from'];
if (isset($o['to'])) $this->to = $o['to'];
if (isset($o['country'])) $this->country = $o['country'];
if (isset($o['softDelete'])) $this->softDelete = $o['softDelete'];
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->from)) $o['from'] = $this->from;
if (isset($this->to)) $o['to'] = $this->to;
if (isset($this->country)) $o['country'] = $this->country;
if (isset($this->softDelete)) $o['softDelete'] = $this->softDelete;
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResult implements JsonSerializable
{
public function __construct(
/** @var float */
public float $resultSimilarity=0.0,
/** @var bool|null */
public ?bool $resultResolved=null,
/** @var DateTime */
public DateTime $dateLastUpdated=new DateTime(),
/** @var bool|null */
public ?bool $resultIsClient=null,
/** @var int */
public int $id=0,
/** @var string|null */
public ?string $type=null,
/** @var string|null */
public ?string $title=null,
/** @var string|null */
public ?string $forename=null,
/** @var string|null */
public ?string $middlename=null,
/** @var string|null */
public ?string $surname=null,
/** @var bool|null */
public ?bool $softDelete=null,
/** @var DateTime|null */
public ?DateTime $dateOfSoftDelete=null,
/** @var DateTime|null */
public ?DateTime $dateOfCapture=null,
/** @var DateTime|null */
public ?DateTime $dateOfBirth=null,
/** @var DateTime|null */
public ?DateTime $dateOfDeath=null,
/** @var int|null */
public ?int $yearOfBirth=null,
/** @var int|null */
public ?int $yearOfDeath=null,
/** @var string|null */
public ?string $gender=null,
/** @var string|null */
public ?string $homeTelephone=null,
/** @var string|null */
public ?string $businessTelephone=null,
/** @var string|null */
public ?string $mobileTelephone=null,
/** @var string|null */
public ?string $fax=null,
/** @var string|null */
public ?string $email=null,
/** @var string|null */
public ?string $nationality=null,
/** @var string|null */
public ?string $source=null,
/** @var string|null */
public ?string $category=null,
/** @var string|null */
public ?string $picture=null,
/** @var string|null */
public ?string $alternateTitle=null,
/** @var string|null */
public ?string $businessName=null,
/** @var string|null */
public ?string $description=null,
/** @var string|null */
public ?string $telephone=null,
/** @var string|null */
public ?string $website=null,
/** @var int|null */
public ?int $pepTier=null,
/** @var array<PepSearchResultAddress>|null */
public ?array $addresses=null,
/** @var array<PepSearchResultAlias>|null */
public ?array $aliases=null,
/** @var array<PepSearchResultArticle>|null */
public ?array $articles=null,
/** @var array<PepSearchResultIndividualAssociation>|null */
public ?array $associations=null,
/** @var array<PepSearchResultBusinessAssociation>|null */
public ?array $businessAssociations=null,
/** @var array<PepSearchResultNote>|null */
public ?array $notes=null,
/** @var array<PepSearchResultPoliticalPosition>|null */
public ?array $politicalPositions=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
if (isset($o['dateLastUpdated'])) $this->dateLastUpdated = JsonConverters::from('DateTime', $o['dateLastUpdated']);
if (isset($o['resultIsClient'])) $this->resultIsClient = $o['resultIsClient'];
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['type'])) $this->type = $o['type'];
if (isset($o['title'])) $this->title = $o['title'];
if (isset($o['forename'])) $this->forename = $o['forename'];
if (isset($o['middlename'])) $this->middlename = $o['middlename'];
if (isset($o['surname'])) $this->surname = $o['surname'];
if (isset($o['softDelete'])) $this->softDelete = $o['softDelete'];
if (isset($o['dateOfSoftDelete'])) $this->dateOfSoftDelete = JsonConverters::from('DateTime', $o['dateOfSoftDelete']);
if (isset($o['dateOfCapture'])) $this->dateOfCapture = JsonConverters::from('DateTime', $o['dateOfCapture']);
if (isset($o['dateOfBirth'])) $this->dateOfBirth = JsonConverters::from('DateTime', $o['dateOfBirth']);
if (isset($o['dateOfDeath'])) $this->dateOfDeath = JsonConverters::from('DateTime', $o['dateOfDeath']);
if (isset($o['yearOfBirth'])) $this->yearOfBirth = $o['yearOfBirth'];
if (isset($o['yearOfDeath'])) $this->yearOfDeath = $o['yearOfDeath'];
if (isset($o['gender'])) $this->gender = $o['gender'];
if (isset($o['homeTelephone'])) $this->homeTelephone = $o['homeTelephone'];
if (isset($o['businessTelephone'])) $this->businessTelephone = $o['businessTelephone'];
if (isset($o['mobileTelephone'])) $this->mobileTelephone = $o['mobileTelephone'];
if (isset($o['fax'])) $this->fax = $o['fax'];
if (isset($o['email'])) $this->email = $o['email'];
if (isset($o['nationality'])) $this->nationality = $o['nationality'];
if (isset($o['source'])) $this->source = $o['source'];
if (isset($o['category'])) $this->category = $o['category'];
if (isset($o['picture'])) $this->picture = $o['picture'];
if (isset($o['alternateTitle'])) $this->alternateTitle = $o['alternateTitle'];
if (isset($o['businessName'])) $this->businessName = $o['businessName'];
if (isset($o['description'])) $this->description = $o['description'];
if (isset($o['telephone'])) $this->telephone = $o['telephone'];
if (isset($o['website'])) $this->website = $o['website'];
if (isset($o['pepTier'])) $this->pepTier = $o['pepTier'];
if (isset($o['addresses'])) $this->addresses = JsonConverters::fromArray('PepSearchResultAddress', $o['addresses']);
if (isset($o['aliases'])) $this->aliases = JsonConverters::fromArray('PepSearchResultAlias', $o['aliases']);
if (isset($o['articles'])) $this->articles = JsonConverters::fromArray('PepSearchResultArticle', $o['articles']);
if (isset($o['associations'])) $this->associations = JsonConverters::fromArray('PepSearchResultIndividualAssociation', $o['associations']);
if (isset($o['businessAssociations'])) $this->businessAssociations = JsonConverters::fromArray('PepSearchResultBusinessAssociation', $o['businessAssociations']);
if (isset($o['notes'])) $this->notes = JsonConverters::fromArray('PepSearchResultNote', $o['notes']);
if (isset($o['politicalPositions'])) $this->politicalPositions = JsonConverters::fromArray('PepSearchResultPoliticalPosition', $o['politicalPositions']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
if (isset($this->dateLastUpdated)) $o['dateLastUpdated'] = JsonConverters::to('DateTime', $this->dateLastUpdated);
if (isset($this->resultIsClient)) $o['resultIsClient'] = $this->resultIsClient;
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->type)) $o['type'] = $this->type;
if (isset($this->title)) $o['title'] = $this->title;
if (isset($this->forename)) $o['forename'] = $this->forename;
if (isset($this->middlename)) $o['middlename'] = $this->middlename;
if (isset($this->surname)) $o['surname'] = $this->surname;
if (isset($this->softDelete)) $o['softDelete'] = $this->softDelete;
if (isset($this->dateOfSoftDelete)) $o['dateOfSoftDelete'] = JsonConverters::to('DateTime', $this->dateOfSoftDelete);
if (isset($this->dateOfCapture)) $o['dateOfCapture'] = JsonConverters::to('DateTime', $this->dateOfCapture);
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = JsonConverters::to('DateTime', $this->dateOfBirth);
if (isset($this->dateOfDeath)) $o['dateOfDeath'] = JsonConverters::to('DateTime', $this->dateOfDeath);
if (isset($this->yearOfBirth)) $o['yearOfBirth'] = $this->yearOfBirth;
if (isset($this->yearOfDeath)) $o['yearOfDeath'] = $this->yearOfDeath;
if (isset($this->gender)) $o['gender'] = $this->gender;
if (isset($this->homeTelephone)) $o['homeTelephone'] = $this->homeTelephone;
if (isset($this->businessTelephone)) $o['businessTelephone'] = $this->businessTelephone;
if (isset($this->mobileTelephone)) $o['mobileTelephone'] = $this->mobileTelephone;
if (isset($this->fax)) $o['fax'] = $this->fax;
if (isset($this->email)) $o['email'] = $this->email;
if (isset($this->nationality)) $o['nationality'] = $this->nationality;
if (isset($this->source)) $o['source'] = $this->source;
if (isset($this->category)) $o['category'] = $this->category;
if (isset($this->picture)) $o['picture'] = $this->picture;
if (isset($this->alternateTitle)) $o['alternateTitle'] = $this->alternateTitle;
if (isset($this->businessName)) $o['businessName'] = $this->businessName;
if (isset($this->description)) $o['description'] = $this->description;
if (isset($this->telephone)) $o['telephone'] = $this->telephone;
if (isset($this->website)) $o['website'] = $this->website;
if (isset($this->pepTier)) $o['pepTier'] = $this->pepTier;
if (isset($this->addresses)) $o['addresses'] = JsonConverters::toArray('PepSearchResultAddress', $this->addresses);
if (isset($this->aliases)) $o['aliases'] = JsonConverters::toArray('PepSearchResultAlias', $this->aliases);
if (isset($this->articles)) $o['articles'] = JsonConverters::toArray('PepSearchResultArticle', $this->articles);
if (isset($this->associations)) $o['associations'] = JsonConverters::toArray('PepSearchResultIndividualAssociation', $this->associations);
if (isset($this->businessAssociations)) $o['businessAssociations'] = JsonConverters::toArray('PepSearchResultBusinessAssociation', $this->businessAssociations);
if (isset($this->notes)) $o['notes'] = JsonConverters::toArray('PepSearchResultNote', $this->notes);
if (isset($this->politicalPositions)) $o['politicalPositions'] = JsonConverters::toArray('PepSearchResultPoliticalPosition', $this->politicalPositions);
return empty($o) ? new class(){} : $o;
}
}
class PepSearchResults implements JsonSerializable
{
public function __construct(
/** @var array<PepSearchResult>|null */
public ?array $results=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['results'])) $this->results = JsonConverters::fromArray('PepSearchResult', $o['results']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->results)) $o['results'] = JsonConverters::toArray('PepSearchResult', $this->results);
return empty($o) ? new class(){} : $o;
}
}
class PepSearchRecord implements JsonSerializable
{
public function __construct(
/** @var int */
public int $id=0,
/** @var string|null */
public ?string $searchType=null,
/** @var DateTime */
public DateTime $dateSearched=new DateTime(),
/** @var DateTime */
public DateTime $dateUpdated=new DateTime(),
/** @var DateTime|null */
public ?DateTime $dateRenewal=null,
/** @var DateTime|null */
public ?DateTime $dateArchived=null,
/** @var bool|null */
public ?bool $isArchived=null,
/** @var int */
public int $numOfResults=0,
/** @var bool|null */
public ?bool $clientInResults=null,
/** @var bool|null */
public ?bool $clientNotInResults=null,
/** @var bool|null */
public ?bool $affectedByUpdate=null,
/** @var bool|null */
public ?bool $isDayOneSearch=null,
/** @var SearchCriteria|null */
public ?SearchCriteria $searchCriteria=null,
/** @var PepSearchResults|null */
public ?PepSearchResults $searchResults=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['id'])) $this->id = $o['id'];
if (isset($o['searchType'])) $this->searchType = $o['searchType'];
if (isset($o['dateSearched'])) $this->dateSearched = JsonConverters::from('DateTime', $o['dateSearched']);
if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
if (isset($o['dateRenewal'])) $this->dateRenewal = JsonConverters::from('DateTime', $o['dateRenewal']);
if (isset($o['dateArchived'])) $this->dateArchived = JsonConverters::from('DateTime', $o['dateArchived']);
if (isset($o['isArchived'])) $this->isArchived = $o['isArchived'];
if (isset($o['numOfResults'])) $this->numOfResults = $o['numOfResults'];
if (isset($o['clientInResults'])) $this->clientInResults = $o['clientInResults'];
if (isset($o['clientNotInResults'])) $this->clientNotInResults = $o['clientNotInResults'];
if (isset($o['affectedByUpdate'])) $this->affectedByUpdate = $o['affectedByUpdate'];
if (isset($o['isDayOneSearch'])) $this->isDayOneSearch = $o['isDayOneSearch'];
if (isset($o['searchCriteria'])) $this->searchCriteria = JsonConverters::from('SearchCriteria', $o['searchCriteria']);
if (isset($o['searchResults'])) $this->searchResults = JsonConverters::from('PepSearchResults', $o['searchResults']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->id)) $o['id'] = $this->id;
if (isset($this->searchType)) $o['searchType'] = $this->searchType;
if (isset($this->dateSearched)) $o['dateSearched'] = JsonConverters::to('DateTime', $this->dateSearched);
if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
if (isset($this->dateRenewal)) $o['dateRenewal'] = JsonConverters::to('DateTime', $this->dateRenewal);
if (isset($this->dateArchived)) $o['dateArchived'] = JsonConverters::to('DateTime', $this->dateArchived);
if (isset($this->isArchived)) $o['isArchived'] = $this->isArchived;
if (isset($this->numOfResults)) $o['numOfResults'] = $this->numOfResults;
if (isset($this->clientInResults)) $o['clientInResults'] = $this->clientInResults;
if (isset($this->clientNotInResults)) $o['clientNotInResults'] = $this->clientNotInResults;
if (isset($this->affectedByUpdate)) $o['affectedByUpdate'] = $this->affectedByUpdate;
if (isset($this->isDayOneSearch)) $o['isDayOneSearch'] = $this->isDayOneSearch;
if (isset($this->searchCriteria)) $o['searchCriteria'] = JsonConverters::to('SearchCriteria', $this->searchCriteria);
if (isset($this->searchResults)) $o['searchResults'] = JsonConverters::to('PepSearchResults', $this->searchResults);
return empty($o) ? new class(){} : $o;
}
}
class AddSearchData extends BaseResponse implements IBaseSearchResponse, JsonSerializable
{
/**
* @param ResponseStatus|null $responseStatus
*/
public function __construct(
?ResponseStatus $responseStatus=null,
/** @var ArrayOfLinkedTo|null */
public ?ArrayOfLinkedTo $linkedTo=null,
/** @var SearchRecord|null */
public ?SearchRecord $searchRecord=null,
/** @var bool|null */
public ?bool $includesPepSearchRecord=null,
/** @var PepSearchRecord|null */
public ?PepSearchRecord $pepSearchRecord=null
) {
parent::__construct($responseStatus);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['linkedTo'])) $this->linkedTo = JsonConverters::from('ArrayOfLinkedTo', $o['linkedTo']);
if (isset($o['searchRecord'])) $this->searchRecord = JsonConverters::from('SearchRecord', $o['searchRecord']);
if (isset($o['includesPepSearchRecord'])) $this->includesPepSearchRecord = $o['includesPepSearchRecord'];
if (isset($o['pepSearchRecord'])) $this->pepSearchRecord = JsonConverters::from('PepSearchRecord', $o['pepSearchRecord']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->linkedTo)) $o['linkedTo'] = JsonConverters::to('ArrayOfLinkedTo', $this->linkedTo);
if (isset($this->searchRecord)) $o['searchRecord'] = JsonConverters::to('SearchRecord', $this->searchRecord);
if (isset($this->includesPepSearchRecord)) $o['includesPepSearchRecord'] = $this->includesPepSearchRecord;
if (isset($this->pepSearchRecord)) $o['pepSearchRecord'] = JsonConverters::to('PepSearchRecord', $this->pepSearchRecord);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class AddSearchResponse implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var AddSearchData|null */
public ?AddSearchData $data=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['data'])) $this->data = JsonConverters::from('AddSearchData', $o['data']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->data)) $o['data'] = JsonConverters::to('AddSearchData', $this->data);
return empty($o) ? new class(){} : $o;
}
}
/**
* @template array of String
*/
class ArrayOfLists extends \ArrayObject implements JsonSerializable
{
public function __construct(String ...$items) {
parent::__construct($items, \ArrayObject::STD_PROP_LIST);
}
/** @throws \Exception */
public function append($value): void {
if ($value instanceof String)
parent::append($value);
else
throw new \Exception("Can only append a String to " . __CLASS__);
}
/** @throws Exception */
public function fromMap($o): void {
foreach ($o as $item) {
$el = new String();
$el->fromMap($item);
$this->append($el);
}
}
/** @throws Exception */
public function jsonSerialize(): array {
return parent::getArrayCopy();
}
}
class AddSearchRequest implements IAddSearchRequest, JsonSerializable
{
public function __construct(
/** @description 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")
/** @var string|null */
public ?string $subUserName=null,
/** @var string|null */
public ?string $type=null,
/** @var string|null */
public ?string $name=null,
/** @var string|null */
public ?string $country=null,
/** @var string|null */
public ?string $address=null,
/** @var string|null */
public ?string $dateOfBirth=null,
/** @var string|null */
public ?string $nationality=null,
/** @var string|null */
public ?string $reference=null,
/** @var bool|null */
public ?bool $excludeResults=null,
/** @var ArrayOfLists|null */
public ?ArrayOfLists $selectedLists=null,
/** @var bool|null */
public ?bool $performPepSearch=null,
/** @var bool|null */
public ?bool $dayOneSearch=null,
/** @description 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")
/** @var ArrayOfLinkedTo|null */
public ?ArrayOfLinkedTo $linkedTo=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['subUserName'])) $this->subUserName = $o['subUserName'];
if (isset($o['type'])) $this->type = $o['type'];
if (isset($o['name'])) $this->name = $o['name'];
if (isset($o['country'])) $this->country = $o['country'];
if (isset($o['address'])) $this->address = $o['address'];
if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
if (isset($o['nationality'])) $this->nationality = $o['nationality'];
if (isset($o['reference'])) $this->reference = $o['reference'];
if (isset($o['excludeResults'])) $this->excludeResults = $o['excludeResults'];
if (isset($o['selectedLists'])) $this->selectedLists = JsonConverters::from('ArrayOfLists', $o['selectedLists']);
if (isset($o['performPepSearch'])) $this->performPepSearch = $o['performPepSearch'];
if (isset($o['dayOneSearch'])) $this->dayOneSearch = $o['dayOneSearch'];
if (isset($o['linkedTo'])) $this->linkedTo = JsonConverters::from('ArrayOfLinkedTo', $o['linkedTo']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->subUserName)) $o['subUserName'] = $this->subUserName;
if (isset($this->type)) $o['type'] = $this->type;
if (isset($this->name)) $o['name'] = $this->name;
if (isset($this->country)) $o['country'] = $this->country;
if (isset($this->address)) $o['address'] = $this->address;
if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
if (isset($this->nationality)) $o['nationality'] = $this->nationality;
if (isset($this->reference)) $o['reference'] = $this->reference;
if (isset($this->excludeResults)) $o['excludeResults'] = $this->excludeResults;
if (isset($this->selectedLists)) $o['selectedLists'] = JsonConverters::to('ArrayOfLists', $this->selectedLists);
if (isset($this->performPepSearch)) $o['performPepSearch'] = $this->performPepSearch;
if (isset($this->dayOneSearch)) $o['dayOneSearch'] = $this->dayOneSearch;
if (isset($this->linkedTo)) $o['linkedTo'] = JsonConverters::to('ArrayOfLinkedTo', $this->linkedTo);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class AddSearch extends BaseRequest implements JsonSerializable
{
/**
* @param Authentication|null $authentication
*/
public function __construct(
?Authentication $authentication=null,
// @DataMember
/** @var AddSearchRequest|null */
public ?AddSearchRequest $request=null
) {
parent::__construct($authentication);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['request'])) $this->request = JsonConverters::from('AddSearchRequest', $o['request']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->request)) $o['request'] = JsonConverters::to('AddSearchRequest', $this->request);
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /soap11 HTTP/1.1
Host: api.sanctionssearch.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: AddSearch
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AddSearch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Authentication>
<ApiUserId>String</ApiUserId>
<ApiUserKey>String</ApiUserKey>
</Authentication>
<Request>
<Address>String</Address>
<Country>String</Country>
<DateOfBirth>String</DateOfBirth>
<DayOneSearch>false</DayOneSearch>
<ExcludeResults>false</ExcludeResults>
<LinkedTo>
<LinkedTo>
<ClientId>0</ClientId>
<Date>0001-01-01T00:00:00</Date>
<Description>String</Description>
<Id>0</Id>
<IsArchived>false</IsArchived>
<Name>String</Name>
<Status>String</Status>
<Subtype>String</Subtype>
<Type>String</Type>
</LinkedTo>
</LinkedTo>
<Name>String</Name>
<Nationality>String</Nationality>
<PerformPepSearch>false</PerformPepSearch>
<Reference>String</Reference>
<SelectedLists>
<ListId>String</ListId>
</SelectedLists>
<SubUserName>String</SubUserName>
<Type>String</Type>
</Request>
</AddSearch>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"> <Data> <ResponseStatus> <ErrorCode>String</ErrorCode> <Message>String</Message> <StackTrace>String</StackTrace> <Errors> <ResponseError> <ErrorCode>String</ErrorCode> <FieldName>String</FieldName> <Message>String</Message> <Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d6p1:KeyValueOfstringstring> <d6p1:Key>String</d6p1:Key> <d6p1:Value>String</d6p1:Value> </d6p1:KeyValueOfstringstring> </Meta> </ResponseError> </Errors> <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:KeyValueOfstringstring> <d4p1:Key>String</d4p1:Key> <d4p1:Value>String</d4p1:Value> </d4p1:KeyValueOfstringstring> </Meta> </ResponseStatus> <IncludesPepSearchRecord>false</IncludesPepSearchRecord> <LinkedTo> <LinkedTo> <ClientId>0</ClientId> <Date>0001-01-01T00:00:00</Date> <Description>String</Description> <Id>0</Id> <IsArchived>false</IsArchived> <Name>String</Name> <Status>String</Status> <Subtype>String</Subtype> <Type>String</Type> </LinkedTo> </LinkedTo> <PepSearchRecord> <AffectedByUpdate>false</AffectedByUpdate> <ClientInResults>false</ClientInResults> <ClientNotInResults>false</ClientNotInResults> <DateArchived>0001-01-01T00:00:00</DateArchived> <DateRenewal>0001-01-01T00:00:00</DateRenewal> <DateSearched>0001-01-01T00:00:00</DateSearched> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <Id>0</Id> <IsArchived>false</IsArchived> <IsDayOneSearch>false</IsDayOneSearch> <NumOfResults>0</NumOfResults> <SearchCriteria> <Address>String</Address> <Country>String</Country> <DateOfBirth>String</DateOfBirth> <Name>String</Name> <Nationality>String</Nationality> <Reference>String</Reference> </SearchCriteria> <SearchResults> <Results> <PepSearchResult> <Addresses> <PepSearchResultAddress> <AddressLine1>String</AddressLine1> <AddressLine2>String</AddressLine2> <AddressLine3>String</AddressLine3> <AddressLine4>String</AddressLine4> <Country>String</Country> <County>String</County> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <ISOCountry>String</ISOCountry> <PostCode>String</PostCode> <SoftDelete>false</SoftDelete> <Town>String</Town> </PepSearchResultAddress> </Addresses> <Aliases> <PepSearchResultAlias> <AlternateTitle>String</AlternateTitle> <BusinessName>String</BusinessName> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <DateOfSoftDelete>0001-01-01T00:00:00</DateOfSoftDelete> <Forename>String</Forename> <MiddleName>String</MiddleName> <SoftDelete>false</SoftDelete> <Surname>String</Surname> <Title>String</Title> </PepSearchResultAlias> </Aliases> <AlternateTitle>String</AlternateTitle> <Articles> <PepSearchResultArticle> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <DateOfCapture>0001-01-01T00:00:00</DateOfCapture> <OriginalUrl>String</OriginalUrl> <Snippets> <PepSearchResultArticleSnippet> <AdverseTerms>String</AdverseTerms> <Text>String</Text> <Title>String</Title> </PepSearchResultArticleSnippet> </Snippets> <Source>String</Source> <Url>String</Url> </PepSearchResultArticle> </Articles> <Associations> <PepSearchResultIndividualAssociation> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <FullName>String</FullName> <LinkDescription>String</LinkDescription> <SoftDelete>false</SoftDelete> </PepSearchResultIndividualAssociation> </Associations> <BusinessAssociations> <PepSearchResultBusinessAssociation> <BusinessName>String</BusinessName> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <LinkDescription>String</LinkDescription> <SoftDelete>false</SoftDelete> </PepSearchResultBusinessAssociation> </BusinessAssociations> <BusinessName>String</BusinessName> <BusinessTelephone>String</BusinessTelephone> <Category>String</Category> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <DateOfBirth>0001-01-01T00:00:00</DateOfBirth> <DateOfCapture>0001-01-01T00:00:00</DateOfCapture> <DateOfDeath>0001-01-01T00:00:00</DateOfDeath> <DateOfSoftDelete>0001-01-01T00:00:00</DateOfSoftDelete> <Description>String</Description> <Email>String</Email> <Fax>String</Fax> <Forename>String</Forename> <Gender>String</Gender> <HomeTelephone>String</HomeTelephone> <Id>0</Id> <Middlename>String</Middlename> <MobileTelephone>String</MobileTelephone> <Nationality>String</Nationality> <Notes> <PepSearchResultNote> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <Notes>String</Notes> <SoftDelete>false</SoftDelete> <Source>String</Source> </PepSearchResultNote> </Notes> <PepTier>0</PepTier> <Picture>String</Picture> <PoliticalPositions> <PepSearchResultPoliticalPosition> <Country>String</Country> <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated> <Description>String</Description> <From>String</From> <SoftDelete>false</SoftDelete> <To>String</To> </PepSearchResultPoliticalPosition> </PoliticalPositions> <ResultIsClient>false</ResultIsClient> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <SoftDelete>false</SoftDelete> <Source>String</Source> <Surname>String</Surname> <Telephone>String</Telephone> <Title>String</Title> <Type>String</Type> <Website>String</Website> <YearOfBirth>0</YearOfBirth> <YearOfDeath>0</YearOfDeath> </PepSearchResult> </Results> </SearchResults> <SearchType>String</SearchType> </PepSearchRecord> <SearchRecord> <AffectedByUpdate>false</AffectedByUpdate> <ClientInResults>false</ClientInResults> <ClientNotInResults>false</ClientNotInResults> <DateArchived>0001-01-01T00:00:00</DateArchived> <DateSearched>0001-01-01T00:00:00</DateSearched> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <Id>0</Id> <IsArchived>false</IsArchived> <ListSearchResults> <SearchResultEntry> <Addresses> <SearchResultAddress> <Address1>String</Address1> <Address2>String</Address2> <Address3>String</Address3> <City>String</City> <Country>String</Country> <County>String</County> <PostCode>String</PostCode> <SearchResultAddressId>0</SearchResultAddressId> <Type>String</Type> </SearchResultAddress> </Addresses> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <DatesOfBirth> <SearchResultDateOfBirth> <DateOfBirth>String</DateOfBirth> <Day>0</Day> <Month>0</Month> <SearchResultDateOfBirthId>0</SearchResultDateOfBirthId> <Type>String</Type> <Year>0</Year> </SearchResultDateOfBirth> </DatesOfBirth> <Names> <SearchResultName> <FullName>String</FullName> <ResultSimilarity>0</ResultSimilarity> <SearchResultNameId>0</SearchResultNameId> <Title>String</Title> <Type>String</Type> </SearchResultName> </Names> <Nationalities> <SearchResultNationality> <Nationality>String</Nationality> <SearchResultNationalityId>0</SearchResultNationalityId> </SearchResultNationality> </Nationalities> <PlacesOfBirth> <SearchResultPlaceOfBirth> <CountryOfBirth>String</CountryOfBirth> <PlaceOfBirth>String</PlaceOfBirth> <SearchResultPlaceOfBirthId>0</SearchResultPlaceOfBirthId> </SearchResultPlaceOfBirth> </PlacesOfBirth> <Remarks> <SearchResultRemark> <Description>String</Description> <Name>String</Name> <SearchResultRemarkId>0</SearchResultRemarkId> </SearchResultRemark> </Remarks> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> <SanctionsListId>String</SanctionsListId> <SanctionsListName>String</SanctionsListName> <SearchResultId>0</SearchResultId> </SearchResultEntry> </ListSearchResults> <NumOfResults>0</NumOfResults> <SearchCriteria> <Address>String</Address> <Country>String</Country> <DateOfBirth>String</DateOfBirth> <Name>String</Name> <Nationality>String</Nationality> <Reference>String</Reference> </SearchCriteria> <SearchResults> <CanadianJusticeResults> <SearchResultCanadianJustice> <Country>String</Country> <DateOfBirth>String</DateOfBirth> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <Name>String</Name> <RefId>0</RefId> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultCanadianJustice> </CanadianJusticeResults> <CanadianSemaResults> <SearchResultCanadianSema> <Country>String</Country> <DateOfBirth>String</DateOfBirth> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <Item>String</Item> <Name>String</Name> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> <Schedule>String</Schedule> </SearchResultCanadianSema> </CanadianSemaResults> <DfatResults> <SearchResultDfat> <Address>String</Address> <DateOfBirth>String</DateOfBirth> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <FullName>String</FullName> <Nationality>String</Nationality> <PlaceOfBirth>String</PlaceOfBirth> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultDfat> </DfatResults> <EuResults> <SearchResultEu> <Addresses> <SearchResultEuAddress> <City>String</City> <Country>String</Country> <Other>String</Other> <PostCode>String</PostCode> <Street>String</Street> </SearchResultEuAddress> </Addresses> <Births> <SearchResultEuBirth> <Country>String</Country> <Date>String</Date> <Place>String</Place> </SearchResultEuBirth> </Births> <Citizenships> <SearchResultOfacEuCitizenship> <Country>String</Country> </SearchResultOfacEuCitizenship> </Citizenships> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <Names> <SearchResultEuName> <FullName>String</FullName> <Gender>String</Gender> </SearchResultEuName> </Names> <Passports> <SearchResultEuPassport> <Country>String</Country> <Number>String</Number> </SearchResultEuPassport> </Passports> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultEu> </EuResults> <HMTResults> <SearchResultHmTreasury> <Address1>String</Address1> <Address2>String</Address2> <Address3>String</Address3> <Address4>String</Address4> <Address5>String</Address5> <Address6>String</Address6> <Country>String</Country> <CountryOfBirth>String</CountryOfBirth> <DateListed>0001-01-01T00:00:00</DateListed> <DateOfBirth>String</DateOfBirth> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <Name1>String</Name1> <Name2>String</Name2> <Name3>String</Name3> <Name4>String</Name4> <Name5>String</Name5> <Name6>String</Name6> <Nationality>String</Nationality> <PostCode>String</PostCode> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultHmTreasury> </HMTResults> <HMTUkraineResults> <SearchResultHmTreasury> <Address1>String</Address1> <Address2>String</Address2> <Address3>String</Address3> <Address4>String</Address4> <Address5>String</Address5> <Address6>String</Address6> <Country>String</Country> <CountryOfBirth>String</CountryOfBirth> <DateListed>0001-01-01T00:00:00</DateListed> <DateOfBirth>String</DateOfBirth> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <Name1>String</Name1> <Name2>String</Name2> <Name3>String</Name3> <Name4>String</Name4> <Name5>String</Name5> <Name6>String</Name6> <Nationality>String</Nationality> <PostCode>String</PostCode> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultHmTreasury> </HMTUkraineResults> <OfacConsolidatedResults> <SearchResultOfac> <Addresses> <SearchResultOfacAddress> <Address1>String</Address1> <Address2>String</Address2> <Address3>String</Address3> <City>String</City> <Country>String</Country> <PostCode>String</PostCode> <State>String</State> </SearchResultOfacAddress> </Addresses> <Akas> <SearchResultOfacAka> <FirstName>String</FirstName> <LastName>String</LastName> <Strength>String</Strength> <Type>String</Type> </SearchResultOfacAka> </Akas> <DateOfBirths> <SearchResultOfacDateOfBirth> <DateOfBirth>String</DateOfBirth> </SearchResultOfacDateOfBirth> </DateOfBirths> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <FirstName>String</FirstName> <LastName>String</LastName> <Nationalities> <SearchResultOfacNationality> <Country>String</Country> </SearchResultOfacNationality> </Nationalities> <PlaceOfBirths> <SearchResultOfacPlaceOfBirth> <PlaceOfBirth>String</PlaceOfBirth> </SearchResultOfacPlaceOfBirth> </PlaceOfBirths> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultOfac> </OfacConsolidatedResults> <OfacResults> <SearchResultOfac> <Addresses> <SearchResultOfacAddress> <Address1>String</Address1> <Address2>String</Address2> <Address3>String</Address3> <City>String</City> <Country>String</Country> <PostCode>String</PostCode> <State>String</State> </SearchResultOfacAddress> </Addresses> <Akas> <SearchResultOfacAka> <FirstName>String</FirstName> <LastName>String</LastName> <Strength>String</Strength> <Type>String</Type> </SearchResultOfacAka> </Akas> <DateOfBirths> <SearchResultOfacDateOfBirth> <DateOfBirth>String</DateOfBirth> </SearchResultOfacDateOfBirth> </DateOfBirths> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <FirstName>String</FirstName> <LastName>String</LastName> <Nationalities> <SearchResultOfacNationality> <Country>String</Country> </SearchResultOfacNationality> </Nationalities> <PlaceOfBirths> <SearchResultOfacPlaceOfBirth> <PlaceOfBirth>String</PlaceOfBirth> </SearchResultOfacPlaceOfBirth> </PlaceOfBirths> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultOfac> </OfacResults> <OsfiResults> <SearchResultOsfi> <Address>String</Address> <DateOfBirth>String</DateOfBirth> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <FullName>String</FullName> <Nationality>String</Nationality> <PlaceOfBirth>String</PlaceOfBirth> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> </SearchResultOsfi> </OsfiResults> <SwissSecoResults> <SearchResultEntry> <Addresses> <SearchResultAddress> <Address1>String</Address1> <Address2>String</Address2> <Address3>String</Address3> <City>String</City> <Country>String</Country> <County>String</County> <PostCode>String</PostCode> <SearchResultAddressId>0</SearchResultAddressId> <Type>String</Type> </SearchResultAddress> </Addresses> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <DatesOfBirth> <SearchResultDateOfBirth> <DateOfBirth>String</DateOfBirth> <Day>0</Day> <Month>0</Month> <SearchResultDateOfBirthId>0</SearchResultDateOfBirthId> <Type>String</Type> <Year>0</Year> </SearchResultDateOfBirth> </DatesOfBirth> <Names> <SearchResultName> <FullName>String</FullName> <ResultSimilarity>0</ResultSimilarity> <SearchResultNameId>0</SearchResultNameId> <Title>String</Title> <Type>String</Type> </SearchResultName> </Names> <Nationalities> <SearchResultNationality> <Nationality>String</Nationality> <SearchResultNationalityId>0</SearchResultNationalityId> </SearchResultNationality> </Nationalities> <PlacesOfBirth> <SearchResultPlaceOfBirth> <CountryOfBirth>String</CountryOfBirth> <PlaceOfBirth>String</PlaceOfBirth> <SearchResultPlaceOfBirthId>0</SearchResultPlaceOfBirthId> </SearchResultPlaceOfBirth> </PlacesOfBirth> <Remarks> <SearchResultRemark> <Description>String</Description> <Name>String</Name> <SearchResultRemarkId>0</SearchResultRemarkId> </SearchResultRemark> </Remarks> <ResultResolved>false</ResultResolved> <ResultSimilarity>0</ResultSimilarity> <ResultStrength>0</ResultStrength> <ResultType>String</ResultType> <SanctionsListId>String</SanctionsListId> <SanctionsListName>String</SanctionsListName> <SearchResultId>0</SearchResultId> </SearchResultEntry> </SwissSecoResults> </SearchResults> <SearchSources> <SearchSource> <IsAffectedByListUpdate>false</IsAffectedByListUpdate> <ListId>String</ListId> <ListName>String</ListName> <ListShortName>String</ListShortName> </SearchSource> </SearchSources> <SearchType>String</SearchType> </SearchRecord> </Data> </AddSearchResponse> </soap:Body> </soap:Envelope>