Sanctions Search API: v2

<back to all web services

GetSearch

Sanctions
The following routes are available for this service:
POST/sanctions/getGet a sanctions search
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


// @DataContract
class Authentication implements JsonSerializable
{
    public function __construct(
        /** @description The API User ID provided by us when you signed up to use our API */
        // @DataMember
        // @ApiMember(Description="The API User ID provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")
        /** @var string */
        public string $apiUserId='',

        /** @description The API User Key provided by us when you signed up to use our API */
        // @DataMember
        // @ApiMember(Description="The API User Key provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body")
        /** @var string */
        public string $apiUserKey=''
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['apiUserId'])) $this->apiUserId = $o['apiUserId'];
        if (isset($o['apiUserKey'])) $this->apiUserKey = $o['apiUserKey'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->apiUserId)) $o['apiUserId'] = $this->apiUserId;
        if (isset($this->apiUserKey)) $o['apiUserKey'] = $this->apiUserKey;
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract
class BaseRequest implements IBaseRequest, JsonSerializable
{
    public function __construct(
        /** @description The authentication credentials */
        // @DataMember
        // @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")
        /** @var Authentication|null */
        public ?Authentication $authentication=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['authentication'])) $this->authentication = JsonConverters::from('Authentication', $o['authentication']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->authentication)) $o['authentication'] = JsonConverters::to('Authentication', $this->authentication);
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract
class ResponseError implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=1)
        /** @var string|null */
        public ?string $errorCode=null,

        // @DataMember(Order=2)
        /** @var string|null */
        public ?string $fieldName=null,

        // @DataMember(Order=3)
        /** @var string|null */
        public ?string $message=null,

        // @DataMember(Order=4)
        /** @var array<string,string>|null */
        public ?array $meta=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['errorCode'])) $this->errorCode = $o['errorCode'];
        if (isset($o['fieldName'])) $this->fieldName = $o['fieldName'];
        if (isset($o['message'])) $this->message = $o['message'];
        if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->errorCode)) $o['errorCode'] = $this->errorCode;
        if (isset($this->fieldName)) $o['fieldName'] = $this->fieldName;
        if (isset($this->message)) $o['message'] = $this->message;
        if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
        return empty($o) ? new class(){} : $o;
    }
}

/**
 * @template array of ResponseError
 */
class ArrayOfResponseError extends \ArrayObject implements JsonSerializable
{
    public function __construct(ResponseError ...$items) {
        parent::__construct($items, \ArrayObject::STD_PROP_LIST);
    }
    
    /** @throws \Exception */
    public function append($value): void {
        if ($value instanceof ResponseError)
            parent::append($value);
        else
            throw new \Exception("Can only append a ResponseError to " . __CLASS__);
    }
    
    /** @throws Exception */
    public function fromMap($o): void {
        foreach ($o as $item) {
            $el = new ResponseError();
            $el->fromMap($item);
            $this->append($el);
        }
    }
    
    /** @throws Exception */
    public function jsonSerialize(): array {
        return parent::getArrayCopy();
    }
}

// @DataContract
class ResponseStatus implements JsonSerializable
{
    public function __construct(
        // @DataMember(Order=1)
        /** @var string|null */
        public ?string $errorCode=null,

        // @DataMember(Order=2)
        /** @var string|null */
        public ?string $message=null,

        // @DataMember(Order=3)
        /** @var string|null */
        public ?string $stackTrace=null,

        // @DataMember(Order=4)
        /** @var ArrayOfResponseError|null */
        public ?ArrayOfResponseError $errors=null,

        // @DataMember(Order=5)
        /** @var array<string,string>|null */
        public ?array $meta=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['errorCode'])) $this->errorCode = $o['errorCode'];
        if (isset($o['message'])) $this->message = $o['message'];
        if (isset($o['stackTrace'])) $this->stackTrace = $o['stackTrace'];
        if (isset($o['errors'])) $this->errors = JsonConverters::from('ArrayOfResponseError', $o['errors']);
        if (isset($o['meta'])) $this->meta = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['meta']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->errorCode)) $o['errorCode'] = $this->errorCode;
        if (isset($this->message)) $o['message'] = $this->message;
        if (isset($this->stackTrace)) $o['stackTrace'] = $this->stackTrace;
        if (isset($this->errors)) $o['errors'] = JsonConverters::to('ArrayOfResponseError', $this->errors);
        if (isset($this->meta)) $o['meta'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->meta);
        return empty($o) ? new class(){} : $o;
    }
}

class BaseResponse implements IBaseDataResponse, IHasResponseStatus, JsonSerializable
{
    public function __construct(
        /** @description The status of the response */
        // @ApiMember(Description="The status of the response")
        /** @var ResponseStatus|null */
        public ?ResponseStatus $responseStatus=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
        return empty($o) ? new class(){} : $o;
    }
}

class LinkedTo implements JsonSerializable
{
    public function __construct(
        /** @var int|null */
        public ?int $clientId=null,
        /** @var int|null */
        public ?int $id=null,
        /** @var string|null */
        public ?string $type=null,
        /** @var string|null */
        public ?string $subtype=null,
        /** @var string|null */
        public ?string $status=null,
        /** @var string|null */
        public ?string $description=null,
        /** @var bool|null */
        public ?bool $isArchived=null,
        /** @var string|null */
        public ?string $name=null,
        /** @var DateTime|null */
        public ?DateTime $date=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['clientId'])) $this->clientId = $o['clientId'];
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['type'])) $this->type = $o['type'];
        if (isset($o['subtype'])) $this->subtype = $o['subtype'];
        if (isset($o['status'])) $this->status = $o['status'];
        if (isset($o['description'])) $this->description = $o['description'];
        if (isset($o['isArchived'])) $this->isArchived = $o['isArchived'];
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['date'])) $this->date = JsonConverters::from('DateTime', $o['date']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->clientId)) $o['clientId'] = $this->clientId;
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->type)) $o['type'] = $this->type;
        if (isset($this->subtype)) $o['subtype'] = $this->subtype;
        if (isset($this->status)) $o['status'] = $this->status;
        if (isset($this->description)) $o['description'] = $this->description;
        if (isset($this->isArchived)) $o['isArchived'] = $this->isArchived;
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->date)) $o['date'] = JsonConverters::to('DateTime', $this->date);
        return empty($o) ? new class(){} : $o;
    }
}

/**
 * @template array of LinkedTo
 */
class ArrayOfLinkedTo extends \ArrayObject implements JsonSerializable
{
    public function __construct(LinkedTo ...$items) {
        parent::__construct($items, \ArrayObject::STD_PROP_LIST);
    }
    
    /** @throws \Exception */
    public function append($value): void {
        if ($value instanceof LinkedTo)
            parent::append($value);
        else
            throw new \Exception("Can only append a LinkedTo to " . __CLASS__);
    }
    
    /** @throws Exception */
    public function fromMap($o): void {
        foreach ($o as $item) {
            $el = new LinkedTo();
            $el->fromMap($item);
            $this->append($el);
        }
    }
    
    /** @throws Exception */
    public function jsonSerialize(): array {
        return parent::getArrayCopy();
    }
}

class SearchCriteria implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $name=null,
        /** @var string|null */
        public ?string $address=null,
        /** @var string|null */
        public ?string $country=null,
        /** @var string|null */
        public ?string $dateOfBirth=null,
        /** @var string|null */
        public ?string $nationality=null,
        /** @var string|null */
        public ?string $reference=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['address'])) $this->address = $o['address'];
        if (isset($o['country'])) $this->country = $o['country'];
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
        if (isset($o['nationality'])) $this->nationality = $o['nationality'];
        if (isset($o['reference'])) $this->reference = $o['reference'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->address)) $o['address'] = $this->address;
        if (isset($this->country)) $o['country'] = $this->country;
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        if (isset($this->nationality)) $o['nationality'] = $this->nationality;
        if (isset($this->reference)) $o['reference'] = $this->reference;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultEuAddress implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $street=null,
        /** @var string|null */
        public ?string $city=null,
        /** @var string|null */
        public ?string $country=null,
        /** @var string|null */
        public ?string $postCode=null,
        /** @var string|null */
        public ?string $other=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['street'])) $this->street = $o['street'];
        if (isset($o['city'])) $this->city = $o['city'];
        if (isset($o['country'])) $this->country = $o['country'];
        if (isset($o['postCode'])) $this->postCode = $o['postCode'];
        if (isset($o['other'])) $this->other = $o['other'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->street)) $o['street'] = $this->street;
        if (isset($this->city)) $o['city'] = $this->city;
        if (isset($this->country)) $o['country'] = $this->country;
        if (isset($this->postCode)) $o['postCode'] = $this->postCode;
        if (isset($this->other)) $o['other'] = $this->other;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultEuBirth implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $date=null,
        /** @var string|null */
        public ?string $place=null,
        /** @var string|null */
        public ?string $country=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['date'])) $this->date = $o['date'];
        if (isset($o['place'])) $this->place = $o['place'];
        if (isset($o['country'])) $this->country = $o['country'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->date)) $o['date'] = $this->date;
        if (isset($this->place)) $o['place'] = $this->place;
        if (isset($this->country)) $o['country'] = $this->country;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOfacEuCitizenship implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $country=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['country'])) $this->country = $o['country'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->country)) $o['country'] = $this->country;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultEuName implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $fullName=null,
        /** @var string|null */
        public ?string $gender=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['fullName'])) $this->fullName = $o['fullName'];
        if (isset($o['gender'])) $this->gender = $o['gender'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->fullName)) $o['fullName'] = $this->fullName;
        if (isset($this->gender)) $o['gender'] = $this->gender;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultEuPassport implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $number=null,
        /** @var string|null */
        public ?string $country=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['number'])) $this->number = $o['number'];
        if (isset($o['country'])) $this->country = $o['country'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->number)) $o['number'] = $this->number;
        if (isset($this->country)) $o['country'] = $this->country;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultEu implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var array<SearchResultEuAddress>|null */
        public ?array $addresses=null,
        /** @var array<SearchResultEuBirth>|null */
        public ?array $births=null,
        /** @var array<SearchResultOfacEuCitizenship>|null */
        public ?array $citizenships=null,
        /** @var array<SearchResultEuName>|null */
        public ?array $names=null,
        /** @var array<SearchResultEuPassport>|null */
        public ?array $passports=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['addresses'])) $this->addresses = JsonConverters::fromArray('SearchResultEuAddress', $o['addresses']);
        if (isset($o['births'])) $this->births = JsonConverters::fromArray('SearchResultEuBirth', $o['births']);
        if (isset($o['citizenships'])) $this->citizenships = JsonConverters::fromArray('SearchResultOfacEuCitizenship', $o['citizenships']);
        if (isset($o['names'])) $this->names = JsonConverters::fromArray('SearchResultEuName', $o['names']);
        if (isset($o['passports'])) $this->passports = JsonConverters::fromArray('SearchResultEuPassport', $o['passports']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->addresses)) $o['addresses'] = JsonConverters::toArray('SearchResultEuAddress', $this->addresses);
        if (isset($this->births)) $o['births'] = JsonConverters::toArray('SearchResultEuBirth', $this->births);
        if (isset($this->citizenships)) $o['citizenships'] = JsonConverters::toArray('SearchResultOfacEuCitizenship', $this->citizenships);
        if (isset($this->names)) $o['names'] = JsonConverters::toArray('SearchResultEuName', $this->names);
        if (isset($this->passports)) $o['passports'] = JsonConverters::toArray('SearchResultEuPassport', $this->passports);
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultHmTreasury implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime */
        public DateTime $dateListed=new DateTime(),
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var string|null */
        public ?string $name1=null,
        /** @var string|null */
        public ?string $name2=null,
        /** @var string|null */
        public ?string $name3=null,
        /** @var string|null */
        public ?string $name4=null,
        /** @var string|null */
        public ?string $name5=null,
        /** @var string|null */
        public ?string $name6=null,
        /** @var string|null */
        public ?string $dateOfBirth=null,
        /** @var string|null */
        public ?string $countryOfBirth=null,
        /** @var string|null */
        public ?string $nationality=null,
        /** @var string|null */
        public ?string $address1=null,
        /** @var string|null */
        public ?string $address2=null,
        /** @var string|null */
        public ?string $address3=null,
        /** @var string|null */
        public ?string $address4=null,
        /** @var string|null */
        public ?string $address5=null,
        /** @var string|null */
        public ?string $address6=null,
        /** @var string|null */
        public ?string $postCode=null,
        /** @var string|null */
        public ?string $country=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateListed'])) $this->dateListed = JsonConverters::from('DateTime', $o['dateListed']);
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['name1'])) $this->name1 = $o['name1'];
        if (isset($o['name2'])) $this->name2 = $o['name2'];
        if (isset($o['name3'])) $this->name3 = $o['name3'];
        if (isset($o['name4'])) $this->name4 = $o['name4'];
        if (isset($o['name5'])) $this->name5 = $o['name5'];
        if (isset($o['name6'])) $this->name6 = $o['name6'];
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
        if (isset($o['countryOfBirth'])) $this->countryOfBirth = $o['countryOfBirth'];
        if (isset($o['nationality'])) $this->nationality = $o['nationality'];
        if (isset($o['address1'])) $this->address1 = $o['address1'];
        if (isset($o['address2'])) $this->address2 = $o['address2'];
        if (isset($o['address3'])) $this->address3 = $o['address3'];
        if (isset($o['address4'])) $this->address4 = $o['address4'];
        if (isset($o['address5'])) $this->address5 = $o['address5'];
        if (isset($o['address6'])) $this->address6 = $o['address6'];
        if (isset($o['postCode'])) $this->postCode = $o['postCode'];
        if (isset($o['country'])) $this->country = $o['country'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateListed)) $o['dateListed'] = JsonConverters::to('DateTime', $this->dateListed);
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->name1)) $o['name1'] = $this->name1;
        if (isset($this->name2)) $o['name2'] = $this->name2;
        if (isset($this->name3)) $o['name3'] = $this->name3;
        if (isset($this->name4)) $o['name4'] = $this->name4;
        if (isset($this->name5)) $o['name5'] = $this->name5;
        if (isset($this->name6)) $o['name6'] = $this->name6;
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        if (isset($this->countryOfBirth)) $o['countryOfBirth'] = $this->countryOfBirth;
        if (isset($this->nationality)) $o['nationality'] = $this->nationality;
        if (isset($this->address1)) $o['address1'] = $this->address1;
        if (isset($this->address2)) $o['address2'] = $this->address2;
        if (isset($this->address3)) $o['address3'] = $this->address3;
        if (isset($this->address4)) $o['address4'] = $this->address4;
        if (isset($this->address5)) $o['address5'] = $this->address5;
        if (isset($this->address6)) $o['address6'] = $this->address6;
        if (isset($this->postCode)) $o['postCode'] = $this->postCode;
        if (isset($this->country)) $o['country'] = $this->country;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOfacAddress implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $address1=null,
        /** @var string|null */
        public ?string $address2=null,
        /** @var string|null */
        public ?string $address3=null,
        /** @var string|null */
        public ?string $city=null,
        /** @var string|null */
        public ?string $state=null,
        /** @var string|null */
        public ?string $postCode=null,
        /** @var string|null */
        public ?string $country=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['address1'])) $this->address1 = $o['address1'];
        if (isset($o['address2'])) $this->address2 = $o['address2'];
        if (isset($o['address3'])) $this->address3 = $o['address3'];
        if (isset($o['city'])) $this->city = $o['city'];
        if (isset($o['state'])) $this->state = $o['state'];
        if (isset($o['postCode'])) $this->postCode = $o['postCode'];
        if (isset($o['country'])) $this->country = $o['country'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->address1)) $o['address1'] = $this->address1;
        if (isset($this->address2)) $o['address2'] = $this->address2;
        if (isset($this->address3)) $o['address3'] = $this->address3;
        if (isset($this->city)) $o['city'] = $this->city;
        if (isset($this->state)) $o['state'] = $this->state;
        if (isset($this->postCode)) $o['postCode'] = $this->postCode;
        if (isset($this->country)) $o['country'] = $this->country;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOfacAka implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $firstName=null,
        /** @var string|null */
        public ?string $lastName=null,
        /** @var string|null */
        public ?string $type=null,
        /** @var string|null */
        public ?string $strength=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['firstName'])) $this->firstName = $o['firstName'];
        if (isset($o['lastName'])) $this->lastName = $o['lastName'];
        if (isset($o['type'])) $this->type = $o['type'];
        if (isset($o['strength'])) $this->strength = $o['strength'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->firstName)) $o['firstName'] = $this->firstName;
        if (isset($this->lastName)) $o['lastName'] = $this->lastName;
        if (isset($this->type)) $o['type'] = $this->type;
        if (isset($this->strength)) $o['strength'] = $this->strength;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOfacDateOfBirth implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $dateOfBirth=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOfacNationality implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $country=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['country'])) $this->country = $o['country'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->country)) $o['country'] = $this->country;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOfacPlaceOfBirth implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $placeOfBirth=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOfac implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var string|null */
        public ?string $firstName=null,
        /** @var string|null */
        public ?string $lastName=null,
        /** @var array<SearchResultOfacAddress>|null */
        public ?array $addresses=null,
        /** @var array<SearchResultOfacAka>|null */
        public ?array $akas=null,
        /** @var array<SearchResultOfacDateOfBirth>|null */
        public ?array $dateOfBirths=null,
        /** @var array<SearchResultOfacNationality>|null */
        public ?array $nationalities=null,
        /** @var array<SearchResultOfacPlaceOfBirth>|null */
        public ?array $placeOfBirths=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['firstName'])) $this->firstName = $o['firstName'];
        if (isset($o['lastName'])) $this->lastName = $o['lastName'];
        if (isset($o['addresses'])) $this->addresses = JsonConverters::fromArray('SearchResultOfacAddress', $o['addresses']);
        if (isset($o['akas'])) $this->akas = JsonConverters::fromArray('SearchResultOfacAka', $o['akas']);
        if (isset($o['dateOfBirths'])) $this->dateOfBirths = JsonConverters::fromArray('SearchResultOfacDateOfBirth', $o['dateOfBirths']);
        if (isset($o['nationalities'])) $this->nationalities = JsonConverters::fromArray('SearchResultOfacNationality', $o['nationalities']);
        if (isset($o['placeOfBirths'])) $this->placeOfBirths = JsonConverters::fromArray('SearchResultOfacPlaceOfBirth', $o['placeOfBirths']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->firstName)) $o['firstName'] = $this->firstName;
        if (isset($this->lastName)) $o['lastName'] = $this->lastName;
        if (isset($this->addresses)) $o['addresses'] = JsonConverters::toArray('SearchResultOfacAddress', $this->addresses);
        if (isset($this->akas)) $o['akas'] = JsonConverters::toArray('SearchResultOfacAka', $this->akas);
        if (isset($this->dateOfBirths)) $o['dateOfBirths'] = JsonConverters::toArray('SearchResultOfacDateOfBirth', $this->dateOfBirths);
        if (isset($this->nationalities)) $o['nationalities'] = JsonConverters::toArray('SearchResultOfacNationality', $this->nationalities);
        if (isset($this->placeOfBirths)) $o['placeOfBirths'] = JsonConverters::toArray('SearchResultOfacPlaceOfBirth', $this->placeOfBirths);
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultDfat implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var string|null */
        public ?string $fullName=null,
        /** @var string|null */
        public ?string $address=null,
        /** @var string|null */
        public ?string $dateOfBirth=null,
        /** @var string|null */
        public ?string $placeOfBirth=null,
        /** @var string|null */
        public ?string $nationality=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['fullName'])) $this->fullName = $o['fullName'];
        if (isset($o['address'])) $this->address = $o['address'];
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
        if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
        if (isset($o['nationality'])) $this->nationality = $o['nationality'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->fullName)) $o['fullName'] = $this->fullName;
        if (isset($this->address)) $o['address'] = $this->address;
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
        if (isset($this->nationality)) $o['nationality'] = $this->nationality;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultOsfi implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var string|null */
        public ?string $fullName=null,
        /** @var string|null */
        public ?string $address=null,
        /** @var string|null */
        public ?string $dateOfBirth=null,
        /** @var string|null */
        public ?string $placeOfBirth=null,
        /** @var string|null */
        public ?string $nationality=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['fullName'])) $this->fullName = $o['fullName'];
        if (isset($o['address'])) $this->address = $o['address'];
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
        if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
        if (isset($o['nationality'])) $this->nationality = $o['nationality'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->fullName)) $o['fullName'] = $this->fullName;
        if (isset($this->address)) $o['address'] = $this->address;
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
        if (isset($this->nationality)) $o['nationality'] = $this->nationality;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultCanadianJustice implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var string|null */
        public ?string $name=null,
        /** @var string|null */
        public ?string $dateOfBirth=null,
        /** @var string|null */
        public ?string $country=null,
        /** @var int */
        public int $refId=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
        if (isset($o['country'])) $this->country = $o['country'];
        if (isset($o['refId'])) $this->refId = $o['refId'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        if (isset($this->country)) $o['country'] = $this->country;
        if (isset($this->refId)) $o['refId'] = $this->refId;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultCanadianSema implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var string|null */
        public ?string $name=null,
        /** @var string|null */
        public ?string $dateOfBirth=null,
        /** @var string|null */
        public ?string $country=null,
        /** @var string|null */
        public ?string $schedule=null,
        /** @var string|null */
        public ?string $item=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
        if (isset($o['country'])) $this->country = $o['country'];
        if (isset($o['schedule'])) $this->schedule = $o['schedule'];
        if (isset($o['item'])) $this->item = $o['item'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        if (isset($this->country)) $o['country'] = $this->country;
        if (isset($this->schedule)) $o['schedule'] = $this->schedule;
        if (isset($this->item)) $o['item'] = $this->item;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultAddress implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $searchResultAddressId=0,
        /** @var string|null */
        public ?string $type=null,
        /** @var string|null */
        public ?string $address1=null,
        /** @var string|null */
        public ?string $address2=null,
        /** @var string|null */
        public ?string $address3=null,
        /** @var string|null */
        public ?string $city=null,
        /** @var string|null */
        public ?string $county=null,
        /** @var string|null */
        public ?string $postCode=null,
        /** @var string|null */
        public ?string $country=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['searchResultAddressId'])) $this->searchResultAddressId = $o['searchResultAddressId'];
        if (isset($o['type'])) $this->type = $o['type'];
        if (isset($o['address1'])) $this->address1 = $o['address1'];
        if (isset($o['address2'])) $this->address2 = $o['address2'];
        if (isset($o['address3'])) $this->address3 = $o['address3'];
        if (isset($o['city'])) $this->city = $o['city'];
        if (isset($o['county'])) $this->county = $o['county'];
        if (isset($o['postCode'])) $this->postCode = $o['postCode'];
        if (isset($o['country'])) $this->country = $o['country'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->searchResultAddressId)) $o['searchResultAddressId'] = $this->searchResultAddressId;
        if (isset($this->type)) $o['type'] = $this->type;
        if (isset($this->address1)) $o['address1'] = $this->address1;
        if (isset($this->address2)) $o['address2'] = $this->address2;
        if (isset($this->address3)) $o['address3'] = $this->address3;
        if (isset($this->city)) $o['city'] = $this->city;
        if (isset($this->county)) $o['county'] = $this->county;
        if (isset($this->postCode)) $o['postCode'] = $this->postCode;
        if (isset($this->country)) $o['country'] = $this->country;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultDateOfBirth implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $searchResultDateOfBirthId=0,
        /** @var string|null */
        public ?string $dateOfBirth=null,
        /** @var int|null */
        public ?int $year=null,
        /** @var int|null */
        public ?int $month=null,
        /** @var int|null */
        public ?int $day=null,
        /** @var string|null */
        public ?string $type=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['searchResultDateOfBirthId'])) $this->searchResultDateOfBirthId = $o['searchResultDateOfBirthId'];
        if (isset($o['dateOfBirth'])) $this->dateOfBirth = $o['dateOfBirth'];
        if (isset($o['year'])) $this->year = $o['year'];
        if (isset($o['month'])) $this->month = $o['month'];
        if (isset($o['day'])) $this->day = $o['day'];
        if (isset($o['type'])) $this->type = $o['type'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->searchResultDateOfBirthId)) $o['searchResultDateOfBirthId'] = $this->searchResultDateOfBirthId;
        if (isset($this->dateOfBirth)) $o['dateOfBirth'] = $this->dateOfBirth;
        if (isset($this->year)) $o['year'] = $this->year;
        if (isset($this->month)) $o['month'] = $this->month;
        if (isset($this->day)) $o['day'] = $this->day;
        if (isset($this->type)) $o['type'] = $this->type;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultName implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $searchResultNameId=0,
        /** @var string|null */
        public ?string $type=null,
        /** @var string|null */
        public ?string $title=null,
        /** @var string|null */
        public ?string $fullName=null,
        /** @var float */
        public float $resultSimilarity=0.0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['searchResultNameId'])) $this->searchResultNameId = $o['searchResultNameId'];
        if (isset($o['type'])) $this->type = $o['type'];
        if (isset($o['title'])) $this->title = $o['title'];
        if (isset($o['fullName'])) $this->fullName = $o['fullName'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->searchResultNameId)) $o['searchResultNameId'] = $this->searchResultNameId;
        if (isset($this->type)) $o['type'] = $this->type;
        if (isset($this->title)) $o['title'] = $this->title;
        if (isset($this->fullName)) $o['fullName'] = $this->fullName;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultNationality implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $searchResultNationalityId=0,
        /** @var string|null */
        public ?string $nationality=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['searchResultNationalityId'])) $this->searchResultNationalityId = $o['searchResultNationalityId'];
        if (isset($o['nationality'])) $this->nationality = $o['nationality'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->searchResultNationalityId)) $o['searchResultNationalityId'] = $this->searchResultNationalityId;
        if (isset($this->nationality)) $o['nationality'] = $this->nationality;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultPlaceOfBirth implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $searchResultPlaceOfBirthId=0,
        /** @var string|null */
        public ?string $placeOfBirth=null,
        /** @var string|null */
        public ?string $countryOfBirth=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['searchResultPlaceOfBirthId'])) $this->searchResultPlaceOfBirthId = $o['searchResultPlaceOfBirthId'];
        if (isset($o['placeOfBirth'])) $this->placeOfBirth = $o['placeOfBirth'];
        if (isset($o['countryOfBirth'])) $this->countryOfBirth = $o['countryOfBirth'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->searchResultPlaceOfBirthId)) $o['searchResultPlaceOfBirthId'] = $this->searchResultPlaceOfBirthId;
        if (isset($this->placeOfBirth)) $o['placeOfBirth'] = $this->placeOfBirth;
        if (isset($this->countryOfBirth)) $o['countryOfBirth'] = $this->countryOfBirth;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultRemark implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $searchResultRemarkId=0,
        /** @var string|null */
        public ?string $name=null,
        /** @var string|null */
        public ?string $description=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['searchResultRemarkId'])) $this->searchResultRemarkId = $o['searchResultRemarkId'];
        if (isset($o['name'])) $this->name = $o['name'];
        if (isset($o['description'])) $this->description = $o['description'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->searchResultRemarkId)) $o['searchResultRemarkId'] = $this->searchResultRemarkId;
        if (isset($this->name)) $o['name'] = $this->name;
        if (isset($this->description)) $o['description'] = $this->description;
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResultEntry implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $searchResultId=0,
        /** @var int */
        public int $resultStrength=0,
        /** @var float */
        public float $resultSimilarity=0.0,
        /** @var bool|null */
        public ?bool $resultResolved=null,
        /** @var string|null */
        public ?string $resultType=null,
        /** @var DateTime|null */
        public ?DateTime $dateUpdated=null,
        /** @var string|null */
        public ?string $sanctionsListId=null,
        /** @var string|null */
        public ?string $sanctionsListName=null,
        /** @var array<SearchResultAddress>|null */
        public ?array $addresses=null,
        /** @var array<SearchResultDateOfBirth>|null */
        public ?array $datesOfBirth=null,
        /** @var array<SearchResultName>|null */
        public ?array $names=null,
        /** @var array<SearchResultNationality>|null */
        public ?array $nationalities=null,
        /** @var array<SearchResultPlaceOfBirth>|null */
        public ?array $placesOfBirth=null,
        /** @var array<SearchResultRemark>|null */
        public ?array $remarks=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['searchResultId'])) $this->searchResultId = $o['searchResultId'];
        if (isset($o['resultStrength'])) $this->resultStrength = $o['resultStrength'];
        if (isset($o['resultSimilarity'])) $this->resultSimilarity = $o['resultSimilarity'];
        if (isset($o['resultResolved'])) $this->resultResolved = $o['resultResolved'];
        if (isset($o['resultType'])) $this->resultType = $o['resultType'];
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['sanctionsListId'])) $this->sanctionsListId = $o['sanctionsListId'];
        if (isset($o['sanctionsListName'])) $this->sanctionsListName = $o['sanctionsListName'];
        if (isset($o['addresses'])) $this->addresses = JsonConverters::fromArray('SearchResultAddress', $o['addresses']);
        if (isset($o['datesOfBirth'])) $this->datesOfBirth = JsonConverters::fromArray('SearchResultDateOfBirth', $o['datesOfBirth']);
        if (isset($o['names'])) $this->names = JsonConverters::fromArray('SearchResultName', $o['names']);
        if (isset($o['nationalities'])) $this->nationalities = JsonConverters::fromArray('SearchResultNationality', $o['nationalities']);
        if (isset($o['placesOfBirth'])) $this->placesOfBirth = JsonConverters::fromArray('SearchResultPlaceOfBirth', $o['placesOfBirth']);
        if (isset($o['remarks'])) $this->remarks = JsonConverters::fromArray('SearchResultRemark', $o['remarks']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->searchResultId)) $o['searchResultId'] = $this->searchResultId;
        if (isset($this->resultStrength)) $o['resultStrength'] = $this->resultStrength;
        if (isset($this->resultSimilarity)) $o['resultSimilarity'] = $this->resultSimilarity;
        if (isset($this->resultResolved)) $o['resultResolved'] = $this->resultResolved;
        if (isset($this->resultType)) $o['resultType'] = $this->resultType;
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->sanctionsListId)) $o['sanctionsListId'] = $this->sanctionsListId;
        if (isset($this->sanctionsListName)) $o['sanctionsListName'] = $this->sanctionsListName;
        if (isset($this->addresses)) $o['addresses'] = JsonConverters::toArray('SearchResultAddress', $this->addresses);
        if (isset($this->datesOfBirth)) $o['datesOfBirth'] = JsonConverters::toArray('SearchResultDateOfBirth', $this->datesOfBirth);
        if (isset($this->names)) $o['names'] = JsonConverters::toArray('SearchResultName', $this->names);
        if (isset($this->nationalities)) $o['nationalities'] = JsonConverters::toArray('SearchResultNationality', $this->nationalities);
        if (isset($this->placesOfBirth)) $o['placesOfBirth'] = JsonConverters::toArray('SearchResultPlaceOfBirth', $this->placesOfBirth);
        if (isset($this->remarks)) $o['remarks'] = JsonConverters::toArray('SearchResultRemark', $this->remarks);
        return empty($o) ? new class(){} : $o;
    }
}

class SearchResults implements JsonSerializable
{
    public function __construct(
        /** @var array<SearchResultEu>|null */
        public ?array $euResults=null,
        /** @var array<SearchResultHmTreasury>|null */
        public ?array $hmtResults=null,
        /** @var array<SearchResultHmTreasury>|null */
        public ?array $hmtUkraineResults=null,
        /** @var array<SearchResultOfac>|null */
        public ?array $ofacResults=null,
        /** @var array<SearchResultOfac>|null */
        public ?array $ofacConsolidatedResults=null,
        /** @var array<SearchResultDfat>|null */
        public ?array $dfatResults=null,
        /** @var array<SearchResultOsfi>|null */
        public ?array $osfiResults=null,
        /** @var array<SearchResultCanadianJustice>|null */
        public ?array $canadianJusticeResults=null,
        /** @var array<SearchResultCanadianSema>|null */
        public ?array $canadianSemaResults=null,
        /** @var array<SearchResultEntry>|null */
        public ?array $swissSecoResults=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['euResults'])) $this->euResults = JsonConverters::fromArray('SearchResultEu', $o['euResults']);
        if (isset($o['hmtResults'])) $this->hmtResults = JsonConverters::fromArray('SearchResultHmTreasury', $o['hmtResults']);
        if (isset($o['hmtUkraineResults'])) $this->hmtUkraineResults = JsonConverters::fromArray('SearchResultHmTreasury', $o['hmtUkraineResults']);
        if (isset($o['ofacResults'])) $this->ofacResults = JsonConverters::fromArray('SearchResultOfac', $o['ofacResults']);
        if (isset($o['ofacConsolidatedResults'])) $this->ofacConsolidatedResults = JsonConverters::fromArray('SearchResultOfac', $o['ofacConsolidatedResults']);
        if (isset($o['dfatResults'])) $this->dfatResults = JsonConverters::fromArray('SearchResultDfat', $o['dfatResults']);
        if (isset($o['osfiResults'])) $this->osfiResults = JsonConverters::fromArray('SearchResultOsfi', $o['osfiResults']);
        if (isset($o['canadianJusticeResults'])) $this->canadianJusticeResults = JsonConverters::fromArray('SearchResultCanadianJustice', $o['canadianJusticeResults']);
        if (isset($o['canadianSemaResults'])) $this->canadianSemaResults = JsonConverters::fromArray('SearchResultCanadianSema', $o['canadianSemaResults']);
        if (isset($o['swissSecoResults'])) $this->swissSecoResults = JsonConverters::fromArray('SearchResultEntry', $o['swissSecoResults']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->euResults)) $o['euResults'] = JsonConverters::toArray('SearchResultEu', $this->euResults);
        if (isset($this->hmtResults)) $o['hmtResults'] = JsonConverters::toArray('SearchResultHmTreasury', $this->hmtResults);
        if (isset($this->hmtUkraineResults)) $o['hmtUkraineResults'] = JsonConverters::toArray('SearchResultHmTreasury', $this->hmtUkraineResults);
        if (isset($this->ofacResults)) $o['ofacResults'] = JsonConverters::toArray('SearchResultOfac', $this->ofacResults);
        if (isset($this->ofacConsolidatedResults)) $o['ofacConsolidatedResults'] = JsonConverters::toArray('SearchResultOfac', $this->ofacConsolidatedResults);
        if (isset($this->dfatResults)) $o['dfatResults'] = JsonConverters::toArray('SearchResultDfat', $this->dfatResults);
        if (isset($this->osfiResults)) $o['osfiResults'] = JsonConverters::toArray('SearchResultOsfi', $this->osfiResults);
        if (isset($this->canadianJusticeResults)) $o['canadianJusticeResults'] = JsonConverters::toArray('SearchResultCanadianJustice', $this->canadianJusticeResults);
        if (isset($this->canadianSemaResults)) $o['canadianSemaResults'] = JsonConverters::toArray('SearchResultCanadianSema', $this->canadianSemaResults);
        if (isset($this->swissSecoResults)) $o['swissSecoResults'] = JsonConverters::toArray('SearchResultEntry', $this->swissSecoResults);
        return empty($o) ? new class(){} : $o;
    }
}

class SearchSource implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $listId=null,
        /** @var string|null */
        public ?string $listName=null,
        /** @var string|null */
        public ?string $listShortName=null,
        /** @var bool|null */
        public ?bool $isAffectedByListUpdate=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['listId'])) $this->listId = $o['listId'];
        if (isset($o['listName'])) $this->listName = $o['listName'];
        if (isset($o['listShortName'])) $this->listShortName = $o['listShortName'];
        if (isset($o['isAffectedByListUpdate'])) $this->isAffectedByListUpdate = $o['isAffectedByListUpdate'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->listId)) $o['listId'] = $this->listId;
        if (isset($this->listName)) $o['listName'] = $this->listName;
        if (isset($this->listShortName)) $o['listShortName'] = $this->listShortName;
        if (isset($this->isAffectedByListUpdate)) $o['isAffectedByListUpdate'] = $this->isAffectedByListUpdate;
        return empty($o) ? new class(){} : $o;
    }
}

/**
 * @template array of SearchResultEntry
 */
class ArrayOfSearchResultEntries extends \ArrayObject implements JsonSerializable
{
    public function __construct(SearchResultEntry ...$items) {
        parent::__construct($items, \ArrayObject::STD_PROP_LIST);
    }
    
    /** @throws \Exception */
    public function append($value): void {
        if ($value instanceof SearchResultEntry)
            parent::append($value);
        else
            throw new \Exception("Can only append a SearchResultEntry to " . __CLASS__);
    }
    
    /** @throws Exception */
    public function fromMap($o): void {
        foreach ($o as $item) {
            $el = new SearchResultEntry();
            $el->fromMap($item);
            $this->append($el);
        }
    }
    
    /** @throws Exception */
    public function jsonSerialize(): array {
        return parent::getArrayCopy();
    }
}

class SearchRecord implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $id=0,
        /** @var string|null */
        public ?string $searchType=null,
        /** @var DateTime */
        public DateTime $dateSearched=new DateTime(),
        /** @var DateTime */
        public DateTime $dateUpdated=new DateTime(),
        /** @var DateTime|null */
        public ?DateTime $dateArchived=null,
        /** @var bool|null */
        public ?bool $isArchived=null,
        /** @var int */
        public int $numOfResults=0,
        /** @var bool|null */
        public ?bool $clientInResults=null,
        /** @var bool|null */
        public ?bool $clientNotInResults=null,
        /** @var bool|null */
        public ?bool $affectedByUpdate=null,
        /** @var SearchCriteria|null */
        public ?SearchCriteria $searchCriteria=null,
        /** @var SearchResults|null */
        public ?SearchResults $searchResults=null,
        /** @var array<SearchSource>|null */
        public ?array $searchSources=null,
        /** @var ArrayOfSearchResultEntries|null */
        public ?ArrayOfSearchResultEntries $listSearchResults=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['id'])) $this->id = $o['id'];
        if (isset($o['searchType'])) $this->searchType = $o['searchType'];
        if (isset($o['dateSearched'])) $this->dateSearched = JsonConverters::from('DateTime', $o['dateSearched']);
        if (isset($o['dateUpdated'])) $this->dateUpdated = JsonConverters::from('DateTime', $o['dateUpdated']);
        if (isset($o['dateArchived'])) $this->dateArchived = JsonConverters::from('DateTime', $o['dateArchived']);
        if (isset($o['isArchived'])) $this->isArchived = $o['isArchived'];
        if (isset($o['numOfResults'])) $this->numOfResults = $o['numOfResults'];
        if (isset($o['clientInResults'])) $this->clientInResults = $o['clientInResults'];
        if (isset($o['clientNotInResults'])) $this->clientNotInResults = $o['clientNotInResults'];
        if (isset($o['affectedByUpdate'])) $this->affectedByUpdate = $o['affectedByUpdate'];
        if (isset($o['searchCriteria'])) $this->searchCriteria = JsonConverters::from('SearchCriteria', $o['searchCriteria']);
        if (isset($o['searchResults'])) $this->searchResults = JsonConverters::from('SearchResults', $o['searchResults']);
        if (isset($o['searchSources'])) $this->searchSources = JsonConverters::fromArray('SearchSource', $o['searchSources']);
        if (isset($o['listSearchResults'])) $this->listSearchResults = JsonConverters::from('ArrayOfSearchResultEntries', $o['listSearchResults']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->id)) $o['id'] = $this->id;
        if (isset($this->searchType)) $o['searchType'] = $this->searchType;
        if (isset($this->dateSearched)) $o['dateSearched'] = JsonConverters::to('DateTime', $this->dateSearched);
        if (isset($this->dateUpdated)) $o['dateUpdated'] = JsonConverters::to('DateTime', $this->dateUpdated);
        if (isset($this->dateArchived)) $o['dateArchived'] = JsonConverters::to('DateTime', $this->dateArchived);
        if (isset($this->isArchived)) $o['isArchived'] = $this->isArchived;
        if (isset($this->numOfResults)) $o['numOfResults'] = $this->numOfResults;
        if (isset($this->clientInResults)) $o['clientInResults'] = $this->clientInResults;
        if (isset($this->clientNotInResults)) $o['clientNotInResults'] = $this->clientNotInResults;
        if (isset($this->affectedByUpdate)) $o['affectedByUpdate'] = $this->affectedByUpdate;
        if (isset($this->searchCriteria)) $o['searchCriteria'] = JsonConverters::to('SearchCriteria', $this->searchCriteria);
        if (isset($this->searchResults)) $o['searchResults'] = JsonConverters::to('SearchResults', $this->searchResults);
        if (isset($this->searchSources)) $o['searchSources'] = JsonConverters::toArray('SearchSource', $this->searchSources);
        if (isset($this->listSearchResults)) $o['listSearchResults'] = JsonConverters::to('ArrayOfSearchResultEntries', $this->listSearchResults);
        return empty($o) ? new class(){} : $o;
    }
}

class GetSearchData extends BaseResponse implements IBaseSearchResponse, JsonSerializable
{
    /**
     * @param ResponseStatus|null $responseStatus
     */
    public function __construct(
        ?ResponseStatus $responseStatus=null,
        /** @var ArrayOfLinkedTo|null */
        public ?ArrayOfLinkedTo $linkedTo=null,
        /** @var SearchRecord|null */
        public ?SearchRecord $searchRecord=null
    ) {
        parent::__construct($responseStatus);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['linkedTo'])) $this->linkedTo = JsonConverters::from('ArrayOfLinkedTo', $o['linkedTo']);
        if (isset($o['searchRecord'])) $this->searchRecord = JsonConverters::from('SearchRecord', $o['searchRecord']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->linkedTo)) $o['linkedTo'] = JsonConverters::to('ArrayOfLinkedTo', $this->linkedTo);
        if (isset($this->searchRecord)) $o['searchRecord'] = JsonConverters::to('SearchRecord', $this->searchRecord);
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract
class GetSearchResponse implements JsonSerializable
{
    public function __construct(
        // @DataMember
        /** @var GetSearchData|null */
        public ?GetSearchData $data=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['data'])) $this->data = JsonConverters::from('GetSearchData', $o['data']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->data)) $o['data'] = JsonConverters::to('GetSearchData', $this->data);
        return empty($o) ? new class(){} : $o;
    }
}

class GetSearchRequest implements JsonSerializable
{
    public function __construct(
        /** @description If the search is being accessed by a sub user, specify their username here to validate they have permissions to view it */
        // @ApiMember(Description="If the search is being accessed by a sub user, specify their username here to validate they have permissions to view it")
        /** @var string|null */
        public ?string $subUserName=null,

        /** @description If set to true, the response will exclude resolved search results, it will only include unresolved results */
        // @ApiMember(Description="If set to true, the response will exclude resolved search results, it will only include unresolved results")
        /** @var bool|null */
        public ?bool $onlyShowUnresolvedResults=null,

        /** @var int */
        public int $id=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['subUserName'])) $this->subUserName = $o['subUserName'];
        if (isset($o['onlyShowUnresolvedResults'])) $this->onlyShowUnresolvedResults = $o['onlyShowUnresolvedResults'];
        if (isset($o['id'])) $this->id = $o['id'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->subUserName)) $o['subUserName'] = $this->subUserName;
        if (isset($this->onlyShowUnresolvedResults)) $o['onlyShowUnresolvedResults'] = $this->onlyShowUnresolvedResults;
        if (isset($this->id)) $o['id'] = $this->id;
        return empty($o) ? new class(){} : $o;
    }
}

// @DataContract
class GetSearch extends BaseRequest implements JsonSerializable
{
    /**
     * @param Authentication|null $authentication
     */
    public function __construct(
        ?Authentication $authentication=null,
        // @DataMember
        /** @var GetSearchRequest|null */
        public ?GetSearchRequest $request=null
    ) {
        parent::__construct($authentication);
    }

    /** @throws Exception */
    public function fromMap($o): void {
        parent::fromMap($o);
        if (isset($o['request'])) $this->request = JsonConverters::from('GetSearchRequest', $o['request']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = parent::jsonSerialize();
        if (isset($this->request)) $o['request'] = JsonConverters::to('GetSearchRequest', $this->request);
        return empty($o) ? new class(){} : $o;
    }
}

PHP GetSearch DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /sanctions/get HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetSearch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Authentication>
    <ApiUserId>String</ApiUserId>
    <ApiUserKey>String</ApiUserKey>
  </Authentication>
  <Request>
    <Id>0</Id>
    <OnlyShowUnresolvedResults>false</OnlyShowUnresolvedResults>
    <SubUserName>String</SubUserName>
  </Request>
</GetSearch>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Data>
    <ResponseStatus>
      <ErrorCode>String</ErrorCode>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
      <Errors>
        <ResponseError>
          <ErrorCode>String</ErrorCode>
          <FieldName>String</FieldName>
          <Message>String</Message>
          <Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </Meta>
        </ResponseError>
      </Errors>
      <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Meta>
    </ResponseStatus>
    <LinkedTo>
      <LinkedTo>
        <ClientId>0</ClientId>
        <Date>0001-01-01T00:00:00</Date>
        <Description>String</Description>
        <Id>0</Id>
        <IsArchived>false</IsArchived>
        <Name>String</Name>
        <Status>String</Status>
        <Subtype>String</Subtype>
        <Type>String</Type>
      </LinkedTo>
    </LinkedTo>
    <SearchRecord>
      <AffectedByUpdate>false</AffectedByUpdate>
      <ClientInResults>false</ClientInResults>
      <ClientNotInResults>false</ClientNotInResults>
      <DateArchived>0001-01-01T00:00:00</DateArchived>
      <DateSearched>0001-01-01T00:00:00</DateSearched>
      <DateUpdated>0001-01-01T00:00:00</DateUpdated>
      <Id>0</Id>
      <IsArchived>false</IsArchived>
      <ListSearchResults>
        <SearchResultEntry>
          <Addresses>
            <SearchResultAddress>
              <Address1>String</Address1>
              <Address2>String</Address2>
              <Address3>String</Address3>
              <City>String</City>
              <Country>String</Country>
              <County>String</County>
              <PostCode>String</PostCode>
              <SearchResultAddressId>0</SearchResultAddressId>
              <Type>String</Type>
            </SearchResultAddress>
          </Addresses>
          <DateUpdated>0001-01-01T00:00:00</DateUpdated>
          <DatesOfBirth>
            <SearchResultDateOfBirth>
              <DateOfBirth>String</DateOfBirth>
              <Day>0</Day>
              <Month>0</Month>
              <SearchResultDateOfBirthId>0</SearchResultDateOfBirthId>
              <Type>String</Type>
              <Year>0</Year>
            </SearchResultDateOfBirth>
          </DatesOfBirth>
          <Names>
            <SearchResultName>
              <FullName>String</FullName>
              <ResultSimilarity>0</ResultSimilarity>
              <SearchResultNameId>0</SearchResultNameId>
              <Title>String</Title>
              <Type>String</Type>
            </SearchResultName>
          </Names>
          <Nationalities>
            <SearchResultNationality>
              <Nationality>String</Nationality>
              <SearchResultNationalityId>0</SearchResultNationalityId>
            </SearchResultNationality>
          </Nationalities>
          <PlacesOfBirth>
            <SearchResultPlaceOfBirth>
              <CountryOfBirth>String</CountryOfBirth>
              <PlaceOfBirth>String</PlaceOfBirth>
              <SearchResultPlaceOfBirthId>0</SearchResultPlaceOfBirthId>
            </SearchResultPlaceOfBirth>
          </PlacesOfBirth>
          <Remarks>
            <SearchResultRemark>
              <Description>String</Description>
              <Name>String</Name>
              <SearchResultRemarkId>0</SearchResultRemarkId>
            </SearchResultRemark>
          </Remarks>
          <ResultResolved>false</ResultResolved>
          <ResultSimilarity>0</ResultSimilarity>
          <ResultStrength>0</ResultStrength>
          <ResultType>String</ResultType>
          <SanctionsListId>String</SanctionsListId>
          <SanctionsListName>String</SanctionsListName>
          <SearchResultId>0</SearchResultId>
        </SearchResultEntry>
      </ListSearchResults>
      <NumOfResults>0</NumOfResults>
      <SearchCriteria>
        <Address>String</Address>
        <Country>String</Country>
        <DateOfBirth>String</DateOfBirth>
        <Name>String</Name>
        <Nationality>String</Nationality>
        <Reference>String</Reference>
      </SearchCriteria>
      <SearchResults>
        <CanadianJusticeResults>
          <SearchResultCanadianJustice>
            <Country>String</Country>
            <DateOfBirth>String</DateOfBirth>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <Name>String</Name>
            <RefId>0</RefId>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultCanadianJustice>
        </CanadianJusticeResults>
        <CanadianSemaResults>
          <SearchResultCanadianSema>
            <Country>String</Country>
            <DateOfBirth>String</DateOfBirth>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <Item>String</Item>
            <Name>String</Name>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
            <Schedule>String</Schedule>
          </SearchResultCanadianSema>
        </CanadianSemaResults>
        <DfatResults>
          <SearchResultDfat>
            <Address>String</Address>
            <DateOfBirth>String</DateOfBirth>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <FullName>String</FullName>
            <Nationality>String</Nationality>
            <PlaceOfBirth>String</PlaceOfBirth>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultDfat>
        </DfatResults>
        <EuResults>
          <SearchResultEu>
            <Addresses>
              <SearchResultEuAddress>
                <City>String</City>
                <Country>String</Country>
                <Other>String</Other>
                <PostCode>String</PostCode>
                <Street>String</Street>
              </SearchResultEuAddress>
            </Addresses>
            <Births>
              <SearchResultEuBirth>
                <Country>String</Country>
                <Date>String</Date>
                <Place>String</Place>
              </SearchResultEuBirth>
            </Births>
            <Citizenships>
              <SearchResultOfacEuCitizenship>
                <Country>String</Country>
              </SearchResultOfacEuCitizenship>
            </Citizenships>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <Names>
              <SearchResultEuName>
                <FullName>String</FullName>
                <Gender>String</Gender>
              </SearchResultEuName>
            </Names>
            <Passports>
              <SearchResultEuPassport>
                <Country>String</Country>
                <Number>String</Number>
              </SearchResultEuPassport>
            </Passports>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultEu>
        </EuResults>
        <HMTResults>
          <SearchResultHmTreasury>
            <Address1>String</Address1>
            <Address2>String</Address2>
            <Address3>String</Address3>
            <Address4>String</Address4>
            <Address5>String</Address5>
            <Address6>String</Address6>
            <Country>String</Country>
            <CountryOfBirth>String</CountryOfBirth>
            <DateListed>0001-01-01T00:00:00</DateListed>
            <DateOfBirth>String</DateOfBirth>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <Name1>String</Name1>
            <Name2>String</Name2>
            <Name3>String</Name3>
            <Name4>String</Name4>
            <Name5>String</Name5>
            <Name6>String</Name6>
            <Nationality>String</Nationality>
            <PostCode>String</PostCode>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultHmTreasury>
        </HMTResults>
        <HMTUkraineResults>
          <SearchResultHmTreasury>
            <Address1>String</Address1>
            <Address2>String</Address2>
            <Address3>String</Address3>
            <Address4>String</Address4>
            <Address5>String</Address5>
            <Address6>String</Address6>
            <Country>String</Country>
            <CountryOfBirth>String</CountryOfBirth>
            <DateListed>0001-01-01T00:00:00</DateListed>
            <DateOfBirth>String</DateOfBirth>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <Name1>String</Name1>
            <Name2>String</Name2>
            <Name3>String</Name3>
            <Name4>String</Name4>
            <Name5>String</Name5>
            <Name6>String</Name6>
            <Nationality>String</Nationality>
            <PostCode>String</PostCode>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultHmTreasury>
        </HMTUkraineResults>
        <OfacConsolidatedResults>
          <SearchResultOfac>
            <Addresses>
              <SearchResultOfacAddress>
                <Address1>String</Address1>
                <Address2>String</Address2>
                <Address3>String</Address3>
                <City>String</City>
                <Country>String</Country>
                <PostCode>String</PostCode>
                <State>String</State>
              </SearchResultOfacAddress>
            </Addresses>
            <Akas>
              <SearchResultOfacAka>
                <FirstName>String</FirstName>
                <LastName>String</LastName>
                <Strength>String</Strength>
                <Type>String</Type>
              </SearchResultOfacAka>
            </Akas>
            <DateOfBirths>
              <SearchResultOfacDateOfBirth>
                <DateOfBirth>String</DateOfBirth>
              </SearchResultOfacDateOfBirth>
            </DateOfBirths>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <FirstName>String</FirstName>
            <LastName>String</LastName>
            <Nationalities>
              <SearchResultOfacNationality>
                <Country>String</Country>
              </SearchResultOfacNationality>
            </Nationalities>
            <PlaceOfBirths>
              <SearchResultOfacPlaceOfBirth>
                <PlaceOfBirth>String</PlaceOfBirth>
              </SearchResultOfacPlaceOfBirth>
            </PlaceOfBirths>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultOfac>
        </OfacConsolidatedResults>
        <OfacResults>
          <SearchResultOfac>
            <Addresses>
              <SearchResultOfacAddress>
                <Address1>String</Address1>
                <Address2>String</Address2>
                <Address3>String</Address3>
                <City>String</City>
                <Country>String</Country>
                <PostCode>String</PostCode>
                <State>String</State>
              </SearchResultOfacAddress>
            </Addresses>
            <Akas>
              <SearchResultOfacAka>
                <FirstName>String</FirstName>
                <LastName>String</LastName>
                <Strength>String</Strength>
                <Type>String</Type>
              </SearchResultOfacAka>
            </Akas>
            <DateOfBirths>
              <SearchResultOfacDateOfBirth>
                <DateOfBirth>String</DateOfBirth>
              </SearchResultOfacDateOfBirth>
            </DateOfBirths>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <FirstName>String</FirstName>
            <LastName>String</LastName>
            <Nationalities>
              <SearchResultOfacNationality>
                <Country>String</Country>
              </SearchResultOfacNationality>
            </Nationalities>
            <PlaceOfBirths>
              <SearchResultOfacPlaceOfBirth>
                <PlaceOfBirth>String</PlaceOfBirth>
              </SearchResultOfacPlaceOfBirth>
            </PlaceOfBirths>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultOfac>
        </OfacResults>
        <OsfiResults>
          <SearchResultOsfi>
            <Address>String</Address>
            <DateOfBirth>String</DateOfBirth>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <FullName>String</FullName>
            <Nationality>String</Nationality>
            <PlaceOfBirth>String</PlaceOfBirth>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
          </SearchResultOsfi>
        </OsfiResults>
        <SwissSecoResults>
          <SearchResultEntry>
            <Addresses>
              <SearchResultAddress>
                <Address1>String</Address1>
                <Address2>String</Address2>
                <Address3>String</Address3>
                <City>String</City>
                <Country>String</Country>
                <County>String</County>
                <PostCode>String</PostCode>
                <SearchResultAddressId>0</SearchResultAddressId>
                <Type>String</Type>
              </SearchResultAddress>
            </Addresses>
            <DateUpdated>0001-01-01T00:00:00</DateUpdated>
            <DatesOfBirth>
              <SearchResultDateOfBirth>
                <DateOfBirth>String</DateOfBirth>
                <Day>0</Day>
                <Month>0</Month>
                <SearchResultDateOfBirthId>0</SearchResultDateOfBirthId>
                <Type>String</Type>
                <Year>0</Year>
              </SearchResultDateOfBirth>
            </DatesOfBirth>
            <Names>
              <SearchResultName>
                <FullName>String</FullName>
                <ResultSimilarity>0</ResultSimilarity>
                <SearchResultNameId>0</SearchResultNameId>
                <Title>String</Title>
                <Type>String</Type>
              </SearchResultName>
            </Names>
            <Nationalities>
              <SearchResultNationality>
                <Nationality>String</Nationality>
                <SearchResultNationalityId>0</SearchResultNationalityId>
              </SearchResultNationality>
            </Nationalities>
            <PlacesOfBirth>
              <SearchResultPlaceOfBirth>
                <CountryOfBirth>String</CountryOfBirth>
                <PlaceOfBirth>String</PlaceOfBirth>
                <SearchResultPlaceOfBirthId>0</SearchResultPlaceOfBirthId>
              </SearchResultPlaceOfBirth>
            </PlacesOfBirth>
            <Remarks>
              <SearchResultRemark>
                <Description>String</Description>
                <Name>String</Name>
                <SearchResultRemarkId>0</SearchResultRemarkId>
              </SearchResultRemark>
            </Remarks>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <ResultStrength>0</ResultStrength>
            <ResultType>String</ResultType>
            <SanctionsListId>String</SanctionsListId>
            <SanctionsListName>String</SanctionsListName>
            <SearchResultId>0</SearchResultId>
          </SearchResultEntry>
        </SwissSecoResults>
      </SearchResults>
      <SearchSources>
        <SearchSource>
          <IsAffectedByListUpdate>false</IsAffectedByListUpdate>
          <ListId>String</ListId>
          <ListName>String</ListName>
          <ListShortName>String</ListShortName>
        </SearchSource>
      </SearchSources>
      <SearchType>String</SearchType>
    </SearchRecord>
  </Data>
</GetSearchResponse>