import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class GetDbsSearches extends PagedRequest
{
/**
* Filter the results to those that have a Name including the specified value
*/
@DataMember
@ApiMember(Description="Filter the results to those that have a Name including the specified value", ParameterType="query")
public String name = null;
/**
* Filter the results to those that were created after (or on) this date
*/
@DataMember
@ApiMember(Description="Filter the results to those that were created after (or on) this date", ParameterType="query")
public Date dateFrom = null;
/**
* Filter the results to those that were created before this date
*/
@DataMember
@ApiMember(Description="Filter the results to those that were created before this date", ParameterType="query")
public Date dateTo = null;
/**
* Filter the results to those where the applicant has provided their information (true), or not (false), or either (null)
*/
@DataMember
@ApiMember(Description="Filter the results to those where the applicant has provided their information (true), or not (false), or either (null)", ParameterType="query")
public Boolean isApplicantInfoCompleted = null;
/**
* Filter the results to those where the ID Checker has verified the applicant's ID (true), or not (false), or either (null)
*/
@DataMember
@ApiMember(Description="Filter the results to those where the ID Checker has verified the applicant's ID (true), or not (false), or either (null)", ParameterType="query")
public Boolean isIdCheckCompleted = null;
/**
* Filter the results to those where the application is complete and ready to be submitted (true), or not (false), or either (null)
*/
@DataMember
@ApiMember(Description="Filter the results to those where the application is complete and ready to be submitted (true), or not (false), or either (null)", ParameterType="query")
public Boolean isApplicationCompleted = null;
/**
* Filter the results to those where the application has been submitted (true), or not (false), or either (null)
*/
@DataMember
@ApiMember(Description="Filter the results to those where the application has been submitted (true), or not (false), or either (null)", ParameterType="query")
public Boolean isApplicationSubmitted = null;
/**
* Filter the results to those where the application has been disclosed (true), or not (false), or either (null)
*/
@DataMember
@ApiMember(Description="Filter the results to those where the application has been disclosed (true), or not (false), or either (null)", ParameterType="query")
public Boolean isApplicationDisclosed = null;
/**
* If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view
*/
@DataMember
@ApiMember(Description="If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view", ParameterType="query")
public String subUserName = null;
public String getName() { return name; }
public GetDbsSearches setName(String value) { this.name = value; return this; }
public Date getDateFrom() { return dateFrom; }
public GetDbsSearches setDateFrom(Date value) { this.dateFrom = value; return this; }
public Date getDateTo() { return dateTo; }
public GetDbsSearches setDateTo(Date value) { this.dateTo = value; return this; }
public Boolean getIsApplicantInfoCompleted() { return isApplicantInfoCompleted; }
public GetDbsSearches setIsApplicantInfoCompleted(Boolean value) { this.isApplicantInfoCompleted = value; return this; }
public Boolean getIsIdCheckCompleted() { return isIdCheckCompleted; }
public GetDbsSearches setIsIdCheckCompleted(Boolean value) { this.isIdCheckCompleted = value; return this; }
public Boolean getIsApplicationCompleted() { return isApplicationCompleted; }
public GetDbsSearches setIsApplicationCompleted(Boolean value) { this.isApplicationCompleted = value; return this; }
public Boolean getIsApplicationSubmitted() { return isApplicationSubmitted; }
public GetDbsSearches setIsApplicationSubmitted(Boolean value) { this.isApplicationSubmitted = value; return this; }
public Boolean getIsApplicationDisclosed() { return isApplicationDisclosed; }
public GetDbsSearches setIsApplicationDisclosed(Boolean value) { this.isApplicationDisclosed = value; return this; }
public String getSubUserName() { return subUserName; }
public GetDbsSearches setSubUserName(String value) { this.subUserName = value; return this; }
}
@DataContract
public static class PagedRequest extends BaseRequest
{
/**
* The maximum number of records to be returned in one page
*/
@DataMember(Name="page[limit]")
@SerializedName("page[limit]")
@ApiMember(Description="The maximum number of records to be returned in one page", ParameterType="query")
public Integer pageLimit = null;
/**
* The starting point in the list of records from where the data should be fetched. Zero based index.
*/
@DataMember(Name="page[offset]")
@SerializedName("page[offset]")
@ApiMember(Description="The starting point in the list of records from where the data should be fetched. Zero based index.", ParameterType="query")
public Integer pageOffset = null;
/**
* The term to determine the order in which the data is returned
*/
@DataMember
@ApiMember(Description="The term to determine the order in which the data is returned", ParameterType="query")
public String sort = null;
public Integer getPageLimit() { return pageLimit; }
public PagedRequest setPageLimit(Integer value) { this.pageLimit = value; return this; }
public Integer getPageOffset() { return pageOffset; }
public PagedRequest setPageOffset(Integer value) { this.pageOffset = value; return this; }
public String getSort() { return sort; }
public PagedRequest setSort(String value) { this.sort = 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; }
}
@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 GetDbsSearchesResponse
{
@DataMember
public GetDbsSearchesData data = null;
public GetDbsSearchesData getData() { return data; }
public GetDbsSearchesResponse setData(GetDbsSearchesData value) { this.data = value; return this; }
}
public static class GetDbsSearchesData extends PagedResponse<GetDbsSearches>
{
public ArrayOfDbsSearchShort searches = null;
public ArrayOfDbsSearchShort getSearches() { return searches; }
public GetDbsSearchesData setSearches(ArrayOfDbsSearchShort value) { this.searches = value; return this; }
}
public static class PagedResponse<T> extends BaseResponse
{
/**
* The response Metadata
*/
@ApiMember(Description="The response Metadata")
public Meta<T> meta = null;
public Meta<T> getMeta() { return meta; }
public PagedResponse<T> setMeta(Meta<T> value) { this.meta = value; return this; }
}
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 class ArrayOfResponseError extends ArrayList<ResponseError>
{
}
public static class Meta<T>
{
/**
* Pagination links
*/
@ApiMember(Description="Pagination links")
public MetaLinks links = null;
/**
* The total number of records for the query
*/
@ApiMember(Description="The total number of records for the query")
public Integer totalCount = null;
/**
* The maximum number of records to be returned in one page
*/
@ApiMember(Description="The maximum number of records to be returned in one page")
public Integer pageLimit = null;
/**
* The starting point in the list of records from where the data should be fetched. Zero based index.
*/
@ApiMember(Description="The starting point in the list of records from where the data should be fetched. Zero based index.")
public Integer pageOffset = null;
public MetaLinks getLinks() { return links; }
public Meta<T> setLinks(MetaLinks value) { this.links = value; return this; }
public Integer getTotalCount() { return totalCount; }
public Meta<T> setTotalCount(Integer value) { this.totalCount = value; return this; }
public Integer getPageLimit() { return pageLimit; }
public Meta<T> setPageLimit(Integer value) { this.pageLimit = value; return this; }
public Integer getPageOffset() { return pageOffset; }
public Meta<T> setPageOffset(Integer value) { this.pageOffset = value; return this; }
}
public static class MetaLinks extends Links
{
/**
* The link to the first page of records
*/
@ApiMember(Description="The link to the first page of records")
public String first = null;
/**
* The link to the last page of records
*/
@ApiMember(Description="The link to the last page of records")
public String last = null;
/**
* The link to the next page of records, if applicable
*/
@ApiMember(Description="The link to the next page of records, if applicable")
public String next = null;
/**
* The link to the last page of records, if applicable
*/
@ApiMember(Description="The link to the last page of records, if applicable")
public String prev = null;
public String getFirst() { return first; }
public MetaLinks setFirst(String value) { this.first = value; return this; }
public String getLast() { return last; }
public MetaLinks setLast(String value) { this.last = value; return this; }
public String getNext() { return next; }
public MetaLinks setNext(String value) { this.next = value; return this; }
public String getPrev() { return prev; }
public MetaLinks setPrev(String value) { this.prev = value; return this; }
}
public static class Links
{
@ApiMember()
public String self = null;
public String getSelf() { return self; }
public Links setSelf(String value) { this.self = value; return this; }
}
public static class ArrayOfDbsSearchShort extends ArrayList<DbsSearchShort>
{
}
public static class DbsSearchShort
{
public Long id = null;
public Date dateSearched = null;
public Date dateUpdated = null;
public String status = null;
public String disclosureStatus = null;
public Boolean isApplicantInfoCompleted = null;
public Boolean isIdCheckCompleted = null;
public Boolean isApplicationCompleted = null;
public Boolean isApplicationSubmitted = null;
public Boolean isApplicationDisclosed = null;
public String disclosureLevel = null;
public String name = null;
public String reference = null;
public Long getId() { return id; }
public DbsSearchShort setId(Long value) { this.id = value; return this; }
public Date getDateSearched() { return dateSearched; }
public DbsSearchShort setDateSearched(Date value) { this.dateSearched = value; return this; }
public Date getDateUpdated() { return dateUpdated; }
public DbsSearchShort setDateUpdated(Date value) { this.dateUpdated = value; return this; }
public String getStatus() { return status; }
public DbsSearchShort setStatus(String value) { this.status = value; return this; }
public String getDisclosureStatus() { return disclosureStatus; }
public DbsSearchShort setDisclosureStatus(String value) { this.disclosureStatus = value; return this; }
public Boolean getIsApplicantInfoCompleted() { return isApplicantInfoCompleted; }
public DbsSearchShort setIsApplicantInfoCompleted(Boolean value) { this.isApplicantInfoCompleted = value; return this; }
public Boolean getIsIdCheckCompleted() { return isIdCheckCompleted; }
public DbsSearchShort setIsIdCheckCompleted(Boolean value) { this.isIdCheckCompleted = value; return this; }
public Boolean getIsApplicationCompleted() { return isApplicationCompleted; }
public DbsSearchShort setIsApplicationCompleted(Boolean value) { this.isApplicationCompleted = value; return this; }
public Boolean getIsApplicationSubmitted() { return isApplicationSubmitted; }
public DbsSearchShort setIsApplicationSubmitted(Boolean value) { this.isApplicationSubmitted = value; return this; }
public Boolean getIsApplicationDisclosed() { return isApplicationDisclosed; }
public DbsSearchShort setIsApplicationDisclosed(Boolean value) { this.isApplicationDisclosed = value; return this; }
public String getDisclosureLevel() { return disclosureLevel; }
public DbsSearchShort setDisclosureLevel(String value) { this.disclosureLevel = value; return this; }
public String getName() { return name; }
public DbsSearchShort setName(String value) { this.name = value; return this; }
public String getReference() { return reference; }
public DbsSearchShort setReference(String value) { this.reference = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .soap12 suffix or ?format=soap12
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /soap12 HTTP/1.1
Host: api.sanctionssearch.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetDbsSearches xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Authentication>
<ApiUserId>String</ApiUserId>
<ApiUserKey>String</ApiUserKey>
</Authentication>
<Sort>String</Sort>
<page_x005B_limit_x005D_>0</page_x005B_limit_x005D_>
<page_x005B_offset_x005D_>0</page_x005B_offset_x005D_>
<DateFrom>0001-01-01T00:00:00</DateFrom>
<DateTo>0001-01-01T00:00:00</DateTo>
<IsApplicantInfoCompleted>false</IsApplicantInfoCompleted>
<IsApplicationCompleted>false</IsApplicationCompleted>
<IsApplicationDisclosed>false</IsApplicationDisclosed>
<IsApplicationSubmitted>false</IsApplicationSubmitted>
<IsIdCheckCompleted>false</IsIdCheckCompleted>
<Name>String</Name>
<SubUserName>String</SubUserName>
</GetDbsSearches>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetDbsSearchesResponse 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> <Meta> <Links> <Self>String</Self> <First>String</First> <Last>String</Last> <Next>String</Next> <Prev>String</Prev> </Links> <PageLimit>0</PageLimit> <PageOffset>0</PageOffset> <TotalCount>0</TotalCount> </Meta> <Searches> <SearchRecord> <DateSearched>0001-01-01T00:00:00</DateSearched> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <DisclosureLevel>String</DisclosureLevel> <DisclosureStatus>String</DisclosureStatus> <Id>0</Id> <IsApplicantInfoCompleted>false</IsApplicantInfoCompleted> <IsApplicationCompleted>false</IsApplicationCompleted> <IsApplicationDisclosed>false</IsApplicationDisclosed> <IsApplicationSubmitted>false</IsApplicationSubmitted> <IsIdCheckCompleted>false</IsIdCheckCompleted> <Name>String</Name> <Reference>String</Reference> <Status>String</Status> </SearchRecord> </Searches> </Data> </GetDbsSearchesResponse> </soap12:Body> </soap12:Envelope>