POST | /peps/add | Add a PEP 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 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 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 AddPepSearchData extends BaseResponse implements IBaseSearchResponse, JsonSerializable
{
/**
* @param ResponseStatus|null $responseStatus
*/
public function __construct(
?ResponseStatus $responseStatus=null,
/** @var ArrayOfLinkedTo|null */
public ?ArrayOfLinkedTo $linkedTo=null,
/** @var PepSearchRecord|null */
public ?PepSearchRecord $searchRecord=null,
/** @var bool|null */
public ?bool $includesSanctionsSearchRecord=null,
/** @var SearchRecord|null */
public ?SearchRecord $sanctionsSearchRecord=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('PepSearchRecord', $o['searchRecord']);
if (isset($o['includesSanctionsSearchRecord'])) $this->includesSanctionsSearchRecord = $o['includesSanctionsSearchRecord'];
if (isset($o['sanctionsSearchRecord'])) $this->sanctionsSearchRecord = JsonConverters::from('SearchRecord', $o['sanctionsSearchRecord']);
}
/** @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('PepSearchRecord', $this->searchRecord);
if (isset($this->includesSanctionsSearchRecord)) $o['includesSanctionsSearchRecord'] = $this->includesSanctionsSearchRecord;
if (isset($this->sanctionsSearchRecord)) $o['sanctionsSearchRecord'] = JsonConverters::to('SearchRecord', $this->sanctionsSearchRecord);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class AddPepSearchResponse implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var AddPepSearchData|null */
public ?AddPepSearchData $data=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['data'])) $this->data = JsonConverters::from('AddPepSearchData', $o['data']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->data)) $o['data'] = JsonConverters::to('AddPepSearchData', $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 AddPepSearchRequest 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 bool|null */
public ?bool $performSanctionsSearch=null,
/** @var bool|null */
public ?bool $dayOneSearch=null,
/** @var ArrayOfLists|null */
public ?ArrayOfLists $selectedLists=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['performSanctionsSearch'])) $this->performSanctionsSearch = $o['performSanctionsSearch'];
if (isset($o['dayOneSearch'])) $this->dayOneSearch = $o['dayOneSearch'];
if (isset($o['selectedLists'])) $this->selectedLists = JsonConverters::from('ArrayOfLists', $o['selectedLists']);
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->performSanctionsSearch)) $o['performSanctionsSearch'] = $this->performSanctionsSearch;
if (isset($this->dayOneSearch)) $o['dayOneSearch'] = $this->dayOneSearch;
if (isset($this->selectedLists)) $o['selectedLists'] = JsonConverters::to('ArrayOfLists', $this->selectedLists);
if (isset($this->linkedTo)) $o['linkedTo'] = JsonConverters::to('ArrayOfLinkedTo', $this->linkedTo);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class AddPepSearch extends BaseRequest implements JsonSerializable
{
/**
* @param Authentication|null $authentication
*/
public function __construct(
?Authentication $authentication=null,
// @DataMember
/** @var AddPepSearchRequest|null */
public ?AddPepSearchRequest $request=null
) {
parent::__construct($authentication);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['request'])) $this->request = JsonConverters::from('AddPepSearchRequest', $o['request']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->request)) $o['request'] = JsonConverters::to('AddPepSearchRequest', $this->request);
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /peps/add HTTP/1.1
Host: api.sanctionssearch.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"request":{"subUserName":"String","type":"String","name":"String","country":"String","address":"String","dateOfBirth":"String","nationality":"String","reference":"String","excludeResults":false,"performSanctionsSearch":false,"dayOneSearch":false,"selectedLists":["String"],"linkedTo":[{"clientId":0,"id":0,"type":"String","subtype":"String","status":"String","description":"String","isArchived":false,"name":"String","date":"\/Date(-62135596800000-0000)\/"}]},"authentication":{"apiUserId":"String","apiUserKey":"String"}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"data":{"linkedTo":[{"clientId":0,"id":0,"type":"String","subtype":"String","status":"String","description":"String","isArchived":false,"name":"String","date":"\/Date(-62135596800000-0000)\/"}],"searchRecord":{"id":0,"searchType":"String","dateSearched":"\/Date(-62135596800000-0000)\/","dateUpdated":"\/Date(-62135596800000-0000)\/","dateRenewal":"\/Date(-62135596800000-0000)\/","dateArchived":"\/Date(-62135596800000-0000)\/","isArchived":false,"numOfResults":0,"clientInResults":false,"clientNotInResults":false,"affectedByUpdate":false,"isDayOneSearch":false,"searchCriteria":{"name":"String","address":"String","country":"String","dateOfBirth":"String","nationality":"String","reference":"String"},"searchResults":{"results":[{"resultSimilarity":0,"resultResolved":false,"dateLastUpdated":"\/Date(-62135596800000-0000)\/","resultIsClient":false,"id":0,"type":"String","title":"String","forename":"String","middlename":"String","surname":"String","softDelete":false,"dateOfSoftDelete":"\/Date(-62135596800000-0000)\/","dateOfCapture":"\/Date(-62135596800000-0000)\/","dateOfBirth":"\/Date(-62135596800000-0000)\/","dateOfDeath":"\/Date(-62135596800000-0000)\/","yearOfBirth":0,"yearOfDeath":0,"gender":"String","homeTelephone":"String","businessTelephone":"String","mobileTelephone":"String","fax":"String","email":"String","nationality":"String","source":"String","category":"String","picture":"String","alternateTitle":"String","businessName":"String","description":"String","telephone":"String","website":"String","pepTier":0,"addresses":[{"addressLine1":"String","addressLine2":"String","addressLine3":"String","addressLine4":"String","town":"String","county":"String","postCode":"String","country":"String","isoCountry":"String","softDelete":false,"dateLastUpdated":"\/Date(-62135596800000-0000)\/"}],"aliases":[{"forename":"String","middleName":"String","surname":"String","softDelete":false,"dateOfSoftDelete":"\/Date(-62135596800000-0000)\/","dateLastUpdated":"\/Date(-62135596800000-0000)\/","title":"String","alternateTitle":"String","businessName":"String"}],"articles":[{"url":"String","originalUrl":"String","source":"String","dateOfCapture":"\/Date(-62135596800000-0000)\/","dateLastUpdated":"\/Date(-62135596800000-0000)\/","snippets":[{"title":"String","text":"String","adverseTerms":"String"}]}],"associations":[{"linkDescription":"String","softDelete":false,"dateLastUpdated":"\/Date(-62135596800000-0000)\/","fullName":"String"}],"businessAssociations":[{"linkDescription":"String","softDelete":false,"dateLastUpdated":"\/Date(-62135596800000-0000)\/","businessName":"String"}],"notes":[{"source":"String","notes":"String","softDelete":false,"dateLastUpdated":"\/Date(-62135596800000-0000)\/"}],"politicalPositions":[{"description":"String","from":"String","to":"String","country":"String","softDelete":false,"dateLastUpdated":"\/Date(-62135596800000-0000)\/"}]}]}},"includesSanctionsSearchRecord":false,"sanctionsSearchRecord":{"id":0,"searchType":"String","dateSearched":"\/Date(-62135596800000-0000)\/","dateUpdated":"\/Date(-62135596800000-0000)\/","dateArchived":"\/Date(-62135596800000-0000)\/","isArchived":false,"numOfResults":0,"clientInResults":false,"clientNotInResults":false,"affectedByUpdate":false,"searchCriteria":{"name":"String","address":"String","country":"String","dateOfBirth":"String","nationality":"String","reference":"String"},"searchResults":{"euResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","addresses":[{"street":"String","city":"String","country":"String","postCode":"String","other":"String"}],"births":[{"date":"String","place":"String","country":"String"}],"citizenships":[{"country":"String"}],"names":[{"fullName":"String","gender":"String"}],"passports":[{"number":"String","country":"String"}]}],"hmtResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateListed":"\/Date(-62135596800000-0000)\/","dateUpdated":"\/Date(-62135596800000-0000)\/","name1":"String","name2":"String","name3":"String","name4":"String","name5":"String","name6":"String","dateOfBirth":"String","countryOfBirth":"String","nationality":"String","address1":"String","address2":"String","address3":"String","address4":"String","address5":"String","address6":"String","postCode":"String","country":"String"}],"hmtUkraineResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateListed":"\/Date(-62135596800000-0000)\/","dateUpdated":"\/Date(-62135596800000-0000)\/","name1":"String","name2":"String","name3":"String","name4":"String","name5":"String","name6":"String","dateOfBirth":"String","countryOfBirth":"String","nationality":"String","address1":"String","address2":"String","address3":"String","address4":"String","address5":"String","address6":"String","postCode":"String","country":"String"}],"ofacResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","firstName":"String","lastName":"String","addresses":[{"address1":"String","address2":"String","address3":"String","city":"String","state":"String","postCode":"String","country":"String"}],"akas":[{"firstName":"String","lastName":"String","type":"String","strength":"String"}],"dateOfBirths":[{"dateOfBirth":"String"}],"nationalities":[{"country":"String"}],"placeOfBirths":[{"placeOfBirth":"String"}]}],"ofacConsolidatedResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","firstName":"String","lastName":"String","addresses":[{"address1":"String","address2":"String","address3":"String","city":"String","state":"String","postCode":"String","country":"String"}],"akas":[{"firstName":"String","lastName":"String","type":"String","strength":"String"}],"dateOfBirths":[{"dateOfBirth":"String"}],"nationalities":[{"country":"String"}],"placeOfBirths":[{"placeOfBirth":"String"}]}],"dfatResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","fullName":"String","address":"String","dateOfBirth":"String","placeOfBirth":"String","nationality":"String"}],"osfiResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","fullName":"String","address":"String","dateOfBirth":"String","placeOfBirth":"String","nationality":"String"}],"canadianJusticeResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","name":"String","dateOfBirth":"String","country":"String","refId":0}],"canadianSemaResults":[{"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","name":"String","dateOfBirth":"String","country":"String","schedule":"String","item":"String"}],"swissSecoResults":[{"searchResultId":0,"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","sanctionsListId":"String","sanctionsListName":"String","addresses":[{"searchResultAddressId":0,"type":"String","address1":"String","address2":"String","address3":"String","city":"String","county":"String","postCode":"String","country":"String"}],"datesOfBirth":[{"searchResultDateOfBirthId":0,"dateOfBirth":"String","year":0,"month":0,"day":0,"type":"String"}],"names":[{"searchResultNameId":0,"type":"String","title":"String","fullName":"String","resultSimilarity":0}],"nationalities":[{"searchResultNationalityId":0,"nationality":"String"}],"placesOfBirth":[{"searchResultPlaceOfBirthId":0,"placeOfBirth":"String","countryOfBirth":"String"}],"remarks":[{"searchResultRemarkId":0,"name":"String","description":"String"}]}]},"searchSources":[{"listId":"String","listName":"String","listShortName":"String","isAffectedByListUpdate":false}],"listSearchResults":[{"searchResultId":0,"resultStrength":0,"resultSimilarity":0,"resultResolved":false,"resultType":"String","dateUpdated":"\/Date(-62135596800000-0000)\/","sanctionsListId":"String","sanctionsListName":"String","addresses":[{"searchResultAddressId":0,"type":"String","address1":"String","address2":"String","address3":"String","city":"String","county":"String","postCode":"String","country":"String"}],"datesOfBirth":[{"searchResultDateOfBirthId":0,"dateOfBirth":"String","year":0,"month":0,"day":0,"type":"String"}],"names":[{"searchResultNameId":0,"type":"String","title":"String","fullName":"String","resultSimilarity":0}],"nationalities":[{"searchResultNationalityId":0,"nationality":"String"}],"placesOfBirth":[{"searchResultPlaceOfBirthId":0,"placeOfBirth":"String","countryOfBirth":"String"}],"remarks":[{"searchResultRemarkId":0,"name":"String","description":"String"}]}]},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}