Sanctions Search API: v2

<back to all web services

GetPepSearch

PEP
The following routes are available for this service:
POST/peps/getGet 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 GetPepSearchData 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
    ) {
        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']);
    }
    
    /** @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);
        return empty($o) ? new class(){} : $o;
    }
}

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

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

class GetPepSearchRequest implements JsonSerializable
{
    public function __construct(
        /** @description If the search was created against a single Sub User account, specify their username here */
        // @ApiMember(Description="If the search was created against a single Sub User account, specify their username here")
        /** @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 GetPepSearch extends BaseRequest implements JsonSerializable
{
    /**
     * @param Authentication|null $authentication
     */
    public function __construct(
        ?Authentication $authentication=null,
        // @DataMember
        /** @var GetPepSearchRequest|null */
        public ?GetPepSearchRequest $request=null
    ) {
        parent::__construct($authentication);
    }

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

PHP GetPepSearch 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 /peps/get HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetPepSearch 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>
</GetPepSearch>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetPepSearchResponse 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>
      <DateRenewal>0001-01-01T00:00:00</DateRenewal>
      <DateSearched>0001-01-01T00:00:00</DateSearched>
      <DateUpdated>0001-01-01T00:00:00</DateUpdated>
      <Id>0</Id>
      <IsArchived>false</IsArchived>
      <IsDayOneSearch>false</IsDayOneSearch>
      <NumOfResults>0</NumOfResults>
      <SearchCriteria>
        <Address>String</Address>
        <Country>String</Country>
        <DateOfBirth>String</DateOfBirth>
        <Name>String</Name>
        <Nationality>String</Nationality>
        <Reference>String</Reference>
      </SearchCriteria>
      <SearchResults>
        <Results>
          <PepSearchResult>
            <Addresses>
              <PepSearchResultAddress>
                <AddressLine1>String</AddressLine1>
                <AddressLine2>String</AddressLine2>
                <AddressLine3>String</AddressLine3>
                <AddressLine4>String</AddressLine4>
                <Country>String</Country>
                <County>String</County>
                <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
                <ISOCountry>String</ISOCountry>
                <PostCode>String</PostCode>
                <SoftDelete>false</SoftDelete>
                <Town>String</Town>
              </PepSearchResultAddress>
            </Addresses>
            <Aliases>
              <PepSearchResultAlias>
                <AlternateTitle>String</AlternateTitle>
                <BusinessName>String</BusinessName>
                <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
                <DateOfSoftDelete>0001-01-01T00:00:00</DateOfSoftDelete>
                <Forename>String</Forename>
                <MiddleName>String</MiddleName>
                <SoftDelete>false</SoftDelete>
                <Surname>String</Surname>
                <Title>String</Title>
              </PepSearchResultAlias>
            </Aliases>
            <AlternateTitle>String</AlternateTitle>
            <Articles>
              <PepSearchResultArticle>
                <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
                <DateOfCapture>0001-01-01T00:00:00</DateOfCapture>
                <OriginalUrl>String</OriginalUrl>
                <Snippets>
                  <PepSearchResultArticleSnippet>
                    <AdverseTerms>String</AdverseTerms>
                    <Text>String</Text>
                    <Title>String</Title>
                  </PepSearchResultArticleSnippet>
                </Snippets>
                <Source>String</Source>
                <Url>String</Url>
              </PepSearchResultArticle>
            </Articles>
            <Associations>
              <PepSearchResultIndividualAssociation>
                <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
                <FullName>String</FullName>
                <LinkDescription>String</LinkDescription>
                <SoftDelete>false</SoftDelete>
              </PepSearchResultIndividualAssociation>
            </Associations>
            <BusinessAssociations>
              <PepSearchResultBusinessAssociation>
                <BusinessName>String</BusinessName>
                <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
                <LinkDescription>String</LinkDescription>
                <SoftDelete>false</SoftDelete>
              </PepSearchResultBusinessAssociation>
            </BusinessAssociations>
            <BusinessName>String</BusinessName>
            <BusinessTelephone>String</BusinessTelephone>
            <Category>String</Category>
            <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
            <DateOfBirth>0001-01-01T00:00:00</DateOfBirth>
            <DateOfCapture>0001-01-01T00:00:00</DateOfCapture>
            <DateOfDeath>0001-01-01T00:00:00</DateOfDeath>
            <DateOfSoftDelete>0001-01-01T00:00:00</DateOfSoftDelete>
            <Description>String</Description>
            <Email>String</Email>
            <Fax>String</Fax>
            <Forename>String</Forename>
            <Gender>String</Gender>
            <HomeTelephone>String</HomeTelephone>
            <Id>0</Id>
            <Middlename>String</Middlename>
            <MobileTelephone>String</MobileTelephone>
            <Nationality>String</Nationality>
            <Notes>
              <PepSearchResultNote>
                <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
                <Notes>String</Notes>
                <SoftDelete>false</SoftDelete>
                <Source>String</Source>
              </PepSearchResultNote>
            </Notes>
            <PepTier>0</PepTier>
            <Picture>String</Picture>
            <PoliticalPositions>
              <PepSearchResultPoliticalPosition>
                <Country>String</Country>
                <DateLastUpdated>0001-01-01T00:00:00</DateLastUpdated>
                <Description>String</Description>
                <From>String</From>
                <SoftDelete>false</SoftDelete>
                <To>String</To>
              </PepSearchResultPoliticalPosition>
            </PoliticalPositions>
            <ResultIsClient>false</ResultIsClient>
            <ResultResolved>false</ResultResolved>
            <ResultSimilarity>0</ResultSimilarity>
            <SoftDelete>false</SoftDelete>
            <Source>String</Source>
            <Surname>String</Surname>
            <Telephone>String</Telephone>
            <Title>String</Title>
            <Type>String</Type>
            <Website>String</Website>
            <YearOfBirth>0</YearOfBirth>
            <YearOfDeath>0</YearOfDeath>
          </PepSearchResult>
        </Results>
      </SearchResults>
      <SearchType>String</SearchType>
    </SearchRecord>
  </Data>
</GetPepSearchResponse>