/* Options: Date: 2025-03-15 04:17:39 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: GetPepSearch.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/peps/get", Verbs="POST") @DataContract public static class GetPepSearch extends BaseRequest implements IReturn { @DataMember public GetPepSearchRequest request = null; public GetPepSearchRequest getRequest() { return request; } public GetPepSearch setRequest(GetPepSearchRequest value) { this.request = value; return this; } private static Object responseType = GetPepSearchResponse.class; public Object getResponseType() { return responseType; } } @DataContract public static class GetPepSearchResponse { @DataMember public GetPepSearchData data = null; public GetPepSearchData getData() { return data; } public GetPepSearchResponse setData(GetPepSearchData value) { this.data = value; return this; } } @DataContract public static class Authentication { /** * 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") public String apiUserId = null; /** * 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") public String apiUserKey = null; public String getApiUserId() { return apiUserId; } public Authentication setApiUserId(String value) { this.apiUserId = value; return this; } public String getApiUserKey() { return apiUserKey; } public Authentication setApiUserKey(String value) { this.apiUserKey = value; return this; } } @DataContract public static class BaseRequest implements IBaseRequest { /** * The authentication credentials */ @DataMember @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body") public Authentication authentication = null; public Authentication getAuthentication() { return authentication; } public BaseRequest setAuthentication(Authentication value) { this.authentication = value; return this; } } public static interface IBaseRequest { public Authentication authentication = null; } public static class GetPepSearchRequest { /** * 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") public String subUserName = null; /** * 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") public Boolean onlyShowUnresolvedResults = null; public Long id = null; public String getSubUserName() { return subUserName; } public GetPepSearchRequest setSubUserName(String value) { this.subUserName = value; return this; } public Boolean isOnlyShowUnresolvedResults() { return onlyShowUnresolvedResults; } public GetPepSearchRequest setOnlyShowUnresolvedResults(Boolean value) { this.onlyShowUnresolvedResults = value; return this; } public Long getId() { return id; } public GetPepSearchRequest setId(Long value) { this.id = value; return this; } } public static class GetPepSearchData extends BaseResponse implements IBaseSearchResponse { public ArrayOfLinkedTo linkedTo = null; public PepSearchRecord searchRecord = null; public ArrayOfLinkedTo getLinkedTo() { return linkedTo; } public GetPepSearchData setLinkedTo(ArrayOfLinkedTo value) { this.linkedTo = value; return this; } public PepSearchRecord getSearchRecord() { return searchRecord; } public GetPepSearchData setSearchRecord(PepSearchRecord value) { this.searchRecord = value; return this; } } public static class ArrayOfLinkedTo extends ArrayList { } public static class BaseResponse implements IBaseDataResponse, IHasResponseStatus { /** * The status of the response */ @ApiMember(Description="The status of the response") public ResponseStatus responseStatus = null; public ResponseStatus getResponseStatus() { return responseStatus; } public BaseResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } } public static interface IBaseDataResponse { public ResponseStatus responseStatus = null; } public static interface IHasResponseStatus { public ResponseStatus responseStatus = null; } public static interface IBaseSearchResponse implements IBaseDataResponse { public ArrayOfLinkedTo linkedTo = null; } public static class PepSearchRecord { public Long id = null; public String searchType = null; public Date dateSearched = null; public Date dateUpdated = null; public Date dateRenewal = null; public Date dateArchived = null; public Boolean isArchived = null; public Integer numOfResults = null; public Boolean clientInResults = null; public Boolean clientNotInResults = null; public Boolean affectedByUpdate = null; public Boolean isDayOneSearch = null; public SearchCriteria searchCriteria = null; public PepSearchResults searchResults = null; public Long getId() { return id; } public PepSearchRecord setId(Long value) { this.id = value; return this; } public String getSearchType() { return searchType; } public PepSearchRecord setSearchType(String value) { this.searchType = value; return this; } public Date getDateSearched() { return dateSearched; } public PepSearchRecord setDateSearched(Date value) { this.dateSearched = value; return this; } public Date getDateUpdated() { return dateUpdated; } public PepSearchRecord setDateUpdated(Date value) { this.dateUpdated = value; return this; } public Date getDateRenewal() { return dateRenewal; } public PepSearchRecord setDateRenewal(Date value) { this.dateRenewal = value; return this; } public Date getDateArchived() { return dateArchived; } public PepSearchRecord setDateArchived(Date value) { this.dateArchived = value; return this; } public Boolean getIsArchived() { return isArchived; } public PepSearchRecord setIsArchived(Boolean value) { this.isArchived = value; return this; } public Integer getNumOfResults() { return numOfResults; } public PepSearchRecord setNumOfResults(Integer value) { this.numOfResults = value; return this; } public Boolean isClientInResults() { return clientInResults; } public PepSearchRecord setClientInResults(Boolean value) { this.clientInResults = value; return this; } public Boolean isClientNotInResults() { return clientNotInResults; } public PepSearchRecord setClientNotInResults(Boolean value) { this.clientNotInResults = value; return this; } public Boolean isAffectedByUpdate() { return affectedByUpdate; } public PepSearchRecord setAffectedByUpdate(Boolean value) { this.affectedByUpdate = value; return this; } public Boolean getIsDayOneSearch() { return isDayOneSearch; } public PepSearchRecord setIsDayOneSearch(Boolean value) { this.isDayOneSearch = value; return this; } public SearchCriteria getSearchCriteria() { return searchCriteria; } public PepSearchRecord setSearchCriteria(SearchCriteria value) { this.searchCriteria = value; return this; } public PepSearchResults getSearchResults() { return searchResults; } public PepSearchRecord setSearchResults(PepSearchResults value) { this.searchResults = value; return this; } } public static class LinkedTo { public Integer clientId = null; public Long id = null; public String type = null; public String subtype = null; public String status = null; public String description = null; public Boolean isArchived = null; public String name = null; public Date date = null; public Integer getClientId() { return clientId; } public LinkedTo setClientId(Integer value) { this.clientId = value; return this; } public Long getId() { return id; } public LinkedTo setId(Long value) { this.id = value; return this; } public String getType() { return type; } public LinkedTo setType(String value) { this.type = value; return this; } public String getSubtype() { return subtype; } public LinkedTo setSubtype(String value) { this.subtype = value; return this; } public String getStatus() { return status; } public LinkedTo setStatus(String value) { this.status = value; return this; } public String getDescription() { return description; } public LinkedTo setDescription(String value) { this.description = value; return this; } public Boolean getIsArchived() { return isArchived; } public LinkedTo setIsArchived(Boolean value) { this.isArchived = value; return this; } public String getName() { return name; } public LinkedTo setName(String value) { this.name = value; return this; } public Date getDate() { return date; } public LinkedTo setDate(Date value) { this.date = value; return this; } } public static class ArrayOfResponseError extends ArrayList { } public static class SearchCriteria { public String name = null; public String address = null; public String country = null; public String dateOfBirth = null; public String nationality = null; public String reference = null; public String getName() { return name; } public SearchCriteria setName(String value) { this.name = value; return this; } public String getAddress() { return address; } public SearchCriteria setAddress(String value) { this.address = value; return this; } public String getCountry() { return country; } public SearchCriteria setCountry(String value) { this.country = value; return this; } public String getDateOfBirth() { return dateOfBirth; } public SearchCriteria setDateOfBirth(String value) { this.dateOfBirth = value; return this; } public String getNationality() { return nationality; } public SearchCriteria setNationality(String value) { this.nationality = value; return this; } public String getReference() { return reference; } public SearchCriteria setReference(String value) { this.reference = value; return this; } } public static class PepSearchResults { public ArrayList results = null; public ArrayList getResults() { return results; } public PepSearchResults setResults(ArrayList value) { this.results = value; return this; } } public static class PepSearchResult { public BigDecimal resultSimilarity = null; public Boolean resultResolved = null; public Date dateLastUpdated = null; public Boolean resultIsClient = null; public Long id = null; public String type = null; public String title = null; public String forename = null; public String middlename = null; public String surname = null; public Boolean softDelete = null; public Date dateOfSoftDelete = null; public Date dateOfCapture = null; public Date dateOfBirth = null; public Date dateOfDeath = null; public Integer yearOfBirth = null; public Integer yearOfDeath = null; public String gender = null; public String homeTelephone = null; public String businessTelephone = null; public String mobileTelephone = null; public String fax = null; public String email = null; public String nationality = null; public String source = null; public String category = null; public String picture = null; public String alternateTitle = null; public String businessName = null; public String description = null; public String telephone = null; public String website = null; public Integer pepTier = null; public ArrayList addresses = null; public ArrayList aliases = null; public ArrayList articles = null; public ArrayList associations = null; public ArrayList businessAssociations = null; public ArrayList notes = null; public ArrayList politicalPositions = null; public BigDecimal getResultSimilarity() { return resultSimilarity; } public PepSearchResult setResultSimilarity(BigDecimal value) { this.resultSimilarity = value; return this; } public Boolean isResultResolved() { return resultResolved; } public PepSearchResult setResultResolved(Boolean value) { this.resultResolved = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResult setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } public Boolean isResultIsClient() { return resultIsClient; } public PepSearchResult setResultIsClient(Boolean value) { this.resultIsClient = value; return this; } public Long getId() { return id; } public PepSearchResult setId(Long value) { this.id = value; return this; } public String getType() { return type; } public PepSearchResult setType(String value) { this.type = value; return this; } public String getTitle() { return title; } public PepSearchResult setTitle(String value) { this.title = value; return this; } public String getForename() { return forename; } public PepSearchResult setForename(String value) { this.forename = value; return this; } public String getMiddlename() { return middlename; } public PepSearchResult setMiddlename(String value) { this.middlename = value; return this; } public String getSurname() { return surname; } public PepSearchResult setSurname(String value) { this.surname = value; return this; } public Boolean isSoftDelete() { return softDelete; } public PepSearchResult setSoftDelete(Boolean value) { this.softDelete = value; return this; } public Date getDateOfSoftDelete() { return dateOfSoftDelete; } public PepSearchResult setDateOfSoftDelete(Date value) { this.dateOfSoftDelete = value; return this; } public Date getDateOfCapture() { return dateOfCapture; } public PepSearchResult setDateOfCapture(Date value) { this.dateOfCapture = value; return this; } public Date getDateOfBirth() { return dateOfBirth; } public PepSearchResult setDateOfBirth(Date value) { this.dateOfBirth = value; return this; } public Date getDateOfDeath() { return dateOfDeath; } public PepSearchResult setDateOfDeath(Date value) { this.dateOfDeath = value; return this; } public Integer getYearOfBirth() { return yearOfBirth; } public PepSearchResult setYearOfBirth(Integer value) { this.yearOfBirth = value; return this; } public Integer getYearOfDeath() { return yearOfDeath; } public PepSearchResult setYearOfDeath(Integer value) { this.yearOfDeath = value; return this; } public String getGender() { return gender; } public PepSearchResult setGender(String value) { this.gender = value; return this; } public String getHomeTelephone() { return homeTelephone; } public PepSearchResult setHomeTelephone(String value) { this.homeTelephone = value; return this; } public String getBusinessTelephone() { return businessTelephone; } public PepSearchResult setBusinessTelephone(String value) { this.businessTelephone = value; return this; } public String getMobileTelephone() { return mobileTelephone; } public PepSearchResult setMobileTelephone(String value) { this.mobileTelephone = value; return this; } public String getFax() { return fax; } public PepSearchResult setFax(String value) { this.fax = value; return this; } public String getEmail() { return email; } public PepSearchResult setEmail(String value) { this.email = value; return this; } public String getNationality() { return nationality; } public PepSearchResult setNationality(String value) { this.nationality = value; return this; } public String getSource() { return source; } public PepSearchResult setSource(String value) { this.source = value; return this; } public String getCategory() { return category; } public PepSearchResult setCategory(String value) { this.category = value; return this; } public String getPicture() { return picture; } public PepSearchResult setPicture(String value) { this.picture = value; return this; } public String getAlternateTitle() { return alternateTitle; } public PepSearchResult setAlternateTitle(String value) { this.alternateTitle = value; return this; } public String getBusinessName() { return businessName; } public PepSearchResult setBusinessName(String value) { this.businessName = value; return this; } public String getDescription() { return description; } public PepSearchResult setDescription(String value) { this.description = value; return this; } public String getTelephone() { return telephone; } public PepSearchResult setTelephone(String value) { this.telephone = value; return this; } public String getWebsite() { return website; } public PepSearchResult setWebsite(String value) { this.website = value; return this; } public Integer getPepTier() { return pepTier; } public PepSearchResult setPepTier(Integer value) { this.pepTier = value; return this; } public ArrayList getAddresses() { return addresses; } public PepSearchResult setAddresses(ArrayList value) { this.addresses = value; return this; } public ArrayList getAliases() { return aliases; } public PepSearchResult setAliases(ArrayList value) { this.aliases = value; return this; } public ArrayList getArticles() { return articles; } public PepSearchResult setArticles(ArrayList value) { this.articles = value; return this; } public ArrayList getAssociations() { return associations; } public PepSearchResult setAssociations(ArrayList value) { this.associations = value; return this; } public ArrayList getBusinessAssociations() { return businessAssociations; } public PepSearchResult setBusinessAssociations(ArrayList value) { this.businessAssociations = value; return this; } public ArrayList getNotes() { return notes; } public PepSearchResult setNotes(ArrayList value) { this.notes = value; return this; } public ArrayList getPoliticalPositions() { return politicalPositions; } public PepSearchResult setPoliticalPositions(ArrayList value) { this.politicalPositions = value; return this; } } public static class PepSearchResultAddress { public String addressLine1 = null; public String addressLine2 = null; public String addressLine3 = null; public String addressLine4 = null; public String town = null; public String county = null; public String postCode = null; public String country = null; public String isoCountry = null; public Boolean softDelete = null; public Date dateLastUpdated = null; public String getAddressLine1() { return addressLine1; } public PepSearchResultAddress setAddressLine1(String value) { this.addressLine1 = value; return this; } public String getAddressLine2() { return addressLine2; } public PepSearchResultAddress setAddressLine2(String value) { this.addressLine2 = value; return this; } public String getAddressLine3() { return addressLine3; } public PepSearchResultAddress setAddressLine3(String value) { this.addressLine3 = value; return this; } public String getAddressLine4() { return addressLine4; } public PepSearchResultAddress setAddressLine4(String value) { this.addressLine4 = value; return this; } public String getTown() { return town; } public PepSearchResultAddress setTown(String value) { this.town = value; return this; } public String getCounty() { return county; } public PepSearchResultAddress setCounty(String value) { this.county = value; return this; } public String getPostCode() { return postCode; } public PepSearchResultAddress setPostCode(String value) { this.postCode = value; return this; } public String getCountry() { return country; } public PepSearchResultAddress setCountry(String value) { this.country = value; return this; } public String getIsoCountry() { return isoCountry; } public PepSearchResultAddress setIsoCountry(String value) { this.isoCountry = value; return this; } public Boolean isSoftDelete() { return softDelete; } public PepSearchResultAddress setSoftDelete(Boolean value) { this.softDelete = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResultAddress setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } } public static class PepSearchResultAlias { public String forename = null; public String middleName = null; public String surname = null; public Boolean softDelete = null; public Date dateOfSoftDelete = null; public Date dateLastUpdated = null; public String title = null; public String alternateTitle = null; public String businessName = null; public String getForename() { return forename; } public PepSearchResultAlias setForename(String value) { this.forename = value; return this; } public String getMiddleName() { return middleName; } public PepSearchResultAlias setMiddleName(String value) { this.middleName = value; return this; } public String getSurname() { return surname; } public PepSearchResultAlias setSurname(String value) { this.surname = value; return this; } public Boolean isSoftDelete() { return softDelete; } public PepSearchResultAlias setSoftDelete(Boolean value) { this.softDelete = value; return this; } public Date getDateOfSoftDelete() { return dateOfSoftDelete; } public PepSearchResultAlias setDateOfSoftDelete(Date value) { this.dateOfSoftDelete = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResultAlias setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } public String getTitle() { return title; } public PepSearchResultAlias setTitle(String value) { this.title = value; return this; } public String getAlternateTitle() { return alternateTitle; } public PepSearchResultAlias setAlternateTitle(String value) { this.alternateTitle = value; return this; } public String getBusinessName() { return businessName; } public PepSearchResultAlias setBusinessName(String value) { this.businessName = value; return this; } } public static class PepSearchResultArticle { public String url = null; public String originalUrl = null; public String source = null; public Date dateOfCapture = null; public Date dateLastUpdated = null; public ArrayList snippets = null; public String getUrl() { return url; } public PepSearchResultArticle setUrl(String value) { this.url = value; return this; } public String getOriginalUrl() { return originalUrl; } public PepSearchResultArticle setOriginalUrl(String value) { this.originalUrl = value; return this; } public String getSource() { return source; } public PepSearchResultArticle setSource(String value) { this.source = value; return this; } public Date getDateOfCapture() { return dateOfCapture; } public PepSearchResultArticle setDateOfCapture(Date value) { this.dateOfCapture = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResultArticle setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } public ArrayList getSnippets() { return snippets; } public PepSearchResultArticle setSnippets(ArrayList value) { this.snippets = value; return this; } } public static class PepSearchResultIndividualAssociation { public String linkDescription = null; public Boolean softDelete = null; public Date dateLastUpdated = null; public String fullName = null; public String getLinkDescription() { return linkDescription; } public PepSearchResultIndividualAssociation setLinkDescription(String value) { this.linkDescription = value; return this; } public Boolean isSoftDelete() { return softDelete; } public PepSearchResultIndividualAssociation setSoftDelete(Boolean value) { this.softDelete = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResultIndividualAssociation setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } public String getFullName() { return fullName; } public PepSearchResultIndividualAssociation setFullName(String value) { this.fullName = value; return this; } } public static class PepSearchResultBusinessAssociation { public String linkDescription = null; public Boolean softDelete = null; public Date dateLastUpdated = null; public String businessName = null; public String getLinkDescription() { return linkDescription; } public PepSearchResultBusinessAssociation setLinkDescription(String value) { this.linkDescription = value; return this; } public Boolean isSoftDelete() { return softDelete; } public PepSearchResultBusinessAssociation setSoftDelete(Boolean value) { this.softDelete = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResultBusinessAssociation setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } public String getBusinessName() { return businessName; } public PepSearchResultBusinessAssociation setBusinessName(String value) { this.businessName = value; return this; } } public static class PepSearchResultNote { public String source = null; public String notes = null; public Boolean softDelete = null; public Date dateLastUpdated = null; public String getSource() { return source; } public PepSearchResultNote setSource(String value) { this.source = value; return this; } public String getNotes() { return notes; } public PepSearchResultNote setNotes(String value) { this.notes = value; return this; } public Boolean isSoftDelete() { return softDelete; } public PepSearchResultNote setSoftDelete(Boolean value) { this.softDelete = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResultNote setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } } public static class PepSearchResultPoliticalPosition { public String description = null; public String from = null; public String to = null; public String country = null; public Boolean softDelete = null; public Date dateLastUpdated = null; public String getDescription() { return description; } public PepSearchResultPoliticalPosition setDescription(String value) { this.description = value; return this; } public String getFrom() { return from; } public PepSearchResultPoliticalPosition setFrom(String value) { this.from = value; return this; } public String getTo() { return to; } public PepSearchResultPoliticalPosition setTo(String value) { this.to = value; return this; } public String getCountry() { return country; } public PepSearchResultPoliticalPosition setCountry(String value) { this.country = value; return this; } public Boolean isSoftDelete() { return softDelete; } public PepSearchResultPoliticalPosition setSoftDelete(Boolean value) { this.softDelete = value; return this; } public Date getDateLastUpdated() { return dateLastUpdated; } public PepSearchResultPoliticalPosition setDateLastUpdated(Date value) { this.dateLastUpdated = value; return this; } } public static class PepSearchResultArticleSnippet { public String title = null; public String text = null; public String adverseTerms = null; public String getTitle() { return title; } public PepSearchResultArticleSnippet setTitle(String value) { this.title = value; return this; } public String getText() { return text; } public PepSearchResultArticleSnippet setText(String value) { this.text = value; return this; } public String getAdverseTerms() { return adverseTerms; } public PepSearchResultArticleSnippet setAdverseTerms(String value) { this.adverseTerms = value; return this; } } }