/* Options:
Date: 2025-06-27 15:16:20
Version: 8.30
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.sanctionssearch.com/v1
//Package:
//GlobalNamespace: dtos
//AddPropertyAccessors: True
//SettersReturnThis: True
//AddServiceStackTypes: True
//AddResponseStatus: False
//AddDescriptionAsComments: True
//AddImplicitVersion:
IncludeTypes: GetListSearches.*
//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="/searches/list", Verbs="POST")
@ApiResponse(Description="Your request is successful if the \"Data.ResponseStatus.Message\" field is \"Success\".", StatusCode=200)
@DataContract
public static class GetListSearches implements IReturn, IBaseRequest
{
@DataMember
public Authentication Authentication = null;
@DataMember
public Integer Page = null;
@DataMember
public String SortOrder = null;
@DataMember
public String NameSearch = null;
public Authentication getAuthentication() { return Authentication; }
public GetListSearches setAuthentication(Authentication value) { this.Authentication = value; return this; }
public Integer getPage() { return Page; }
public GetListSearches setPage(Integer value) { this.Page = value; return this; }
public String getSortOrder() { return SortOrder; }
public GetListSearches setSortOrder(String value) { this.SortOrder = value; return this; }
public String getNameSearch() { return NameSearch; }
public GetListSearches setNameSearch(String value) { this.NameSearch = value; return this; }
private static Object responseType = GetListSearchesResponse.class;
public Object getResponseType() { return responseType; }
}
@DataContract
public static class GetListSearchesResponse
{
@DataMember
public GetListSearchesData Data = null;
public GetListSearchesData getData() { return Data; }
public GetListSearchesResponse setData(GetListSearchesData value) { this.Data = value; return this; }
}
@DataContract
public static class Authentication implements IAuthentication
{
/**
* The API User ID that will authenticate your request
*/
@DataMember
@ApiMember(DataType="string", Description="The API User ID that will authenticate your request", IsRequired=true)
public String ApiUserId = null;
/**
* The API User Key that will authenticate your request
*/
@DataMember
@ApiMember(DataType="string", Description="The API User Key that will authenticate your request", IsRequired=true)
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; }
}
public static interface IBaseRequest
{
public Authentication Authentication = null;
}
@DataContract
public static class GetListSearchesData implements IBaseDataResponse, IHasResponseStatus
{
@DataMember
public ResponseStatus ResponseStatus = null;
@DataMember
public Integer TotalSearchRecords = null;
@DataMember
public Integer CurrentPageNum = null;
@DataMember
public Integer MaxPageNum = null;
@DataMember
public ArrayOfSearchListItem SearchRecords = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public GetListSearchesData setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Integer getTotalSearchRecords() { return TotalSearchRecords; }
public GetListSearchesData setTotalSearchRecords(Integer value) { this.TotalSearchRecords = value; return this; }
public Integer getCurrentPageNum() { return CurrentPageNum; }
public GetListSearchesData setCurrentPageNum(Integer value) { this.CurrentPageNum = value; return this; }
public Integer getMaxPageNum() { return MaxPageNum; }
public GetListSearchesData setMaxPageNum(Integer value) { this.MaxPageNum = value; return this; }
public ArrayOfSearchListItem getSearchRecords() { return SearchRecords; }
public GetListSearchesData setSearchRecords(ArrayOfSearchListItem value) { this.SearchRecords = value; return this; }
}
public static interface IAuthentication
{
public String ApiUserId = null;
public String ApiUserKey = null;
public String UserId = null;
}
public static interface IBaseDataResponse
{
public ResponseStatus ResponseStatus = null;
}
public static interface IHasResponseStatus
{
public ResponseStatus ResponseStatus = null;
}
public static class ArrayOfSearchListItem extends ArrayList
{
}
public static class ArrayOfResponseError extends ArrayList
{
}
public static class SearchCriteria
{
public String Name = null;
public String DateOfBirth = null;
public String CountryOfBirth = null;
public String Nationality = null;
public String Address = null;
public String getName() { return Name; }
public SearchCriteria setName(String value) { this.Name = value; return this; }
public String getDateOfBirth() { return DateOfBirth; }
public SearchCriteria setDateOfBirth(String value) { this.DateOfBirth = value; return this; }
public String getCountryOfBirth() { return CountryOfBirth; }
public SearchCriteria setCountryOfBirth(String value) { this.CountryOfBirth = value; return this; }
public String getNationality() { return Nationality; }
public SearchCriteria setNationality(String value) { this.Nationality = value; return this; }
public String getAddress() { return Address; }
public SearchCriteria setAddress(String value) { this.Address = value; return this; }
}
public static class SearchListItem
{
public Long Id = null;
public String SearchType = null;
public Date DateSearched = null;
public Date DateUpdated = null;
public Integer NumOfResults = null;
public Boolean ClientInResults = null;
public Boolean ClientNotInResults = null;
public Boolean AffectedByUpdate = null;
public SearchCriteria SearchCriteria = null;
public Long getId() { return Id; }
public SearchListItem setId(Long value) { this.Id = value; return this; }
public String getSearchType() { return SearchType; }
public SearchListItem setSearchType(String value) { this.SearchType = value; return this; }
public Date getDateSearched() { return DateSearched; }
public SearchListItem setDateSearched(Date value) { this.DateSearched = value; return this; }
public Date getDateUpdated() { return DateUpdated; }
public SearchListItem setDateUpdated(Date value) { this.DateUpdated = value; return this; }
public Integer getNumOfResults() { return NumOfResults; }
public SearchListItem setNumOfResults(Integer value) { this.NumOfResults = value; return this; }
public Boolean isClientInResults() { return ClientInResults; }
public SearchListItem setClientInResults(Boolean value) { this.ClientInResults = value; return this; }
public Boolean isClientNotInResults() { return ClientNotInResults; }
public SearchListItem setClientNotInResults(Boolean value) { this.ClientNotInResults = value; return this; }
public Boolean isAffectedByUpdate() { return AffectedByUpdate; }
public SearchListItem setAffectedByUpdate(Boolean value) { this.AffectedByUpdate = value; return this; }
public SearchCriteria getSearchCriteria() { return SearchCriteria; }
public SearchListItem setSearchCriteria(SearchCriteria value) { this.SearchCriteria = value; return this; }
}
}