/* Options: Date: 2025-03-15 05:01:20 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPepSearches.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/peps/list", Verbs="POST") @DataContract open class GetPepSearches : BaseRequest(), IReturn { @DataMember var request:GetPepSearchesRequest? = null companion object { private val responseType = GetPepSearchesResponse::class.java } override fun getResponseType(): Any? = GetPepSearches.responseType } @DataContract open class GetPepSearchesResponse { @DataMember @SerializedName("data") var Data:GetPepSearchesData? = null } @DataContract open 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") var apiUserId:String? = 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") var apiUserKey:String? = null } @DataContract open class BaseRequest : IBaseRequest { /** * The authentication credentials */ @DataMember @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body") var authentication:Authentication? = null } open interface IBaseRequest { var authentication:Authentication? } open class GetPepSearchesRequest { /** * If the searches are being accessed by a sub user, specify their username here to only return searches they have permissions to view */ @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") var subUserName:String? = null var listUnresolvedSearches:Boolean? = null var listUpdatedSearches:Boolean? = null var listArchivedSearches:Boolean? = null var page:Int? = null var sortOrder:String? = null var nameSearch:String? = null var nameSearchExact:Boolean? = null var filterReference:String? = null var filterPepType:String? = null var filterType:String? = null var filterDateFrom:Date? = null var filterDateTo:Date? = null /** * If set, will only return searches created by the user */ @ApiMember(Description="If set, will only return searches created by the user") var filterUserName:String? = null } open class GetPepSearchesData : BaseResponse() { var totalSearchRecords:Int? = null var currentPageNum:Int? = null var maxPageNum:Int? = null var searchRecords:ArrayOfPepSearchListItem? = null } open class BaseResponse : IBaseDataResponse, IHasResponseStatus { /** * The status of the response */ @ApiMember(Description="The status of the response") var responseStatus:ResponseStatus? = null } open interface IBaseDataResponse { var responseStatus:ResponseStatus? } open interface IHasResponseStatus { var responseStatus:ResponseStatus? } open class ArrayOfPepSearchListItem : ArrayList() { } open class ArrayOfResponseError : ArrayList() { } open class SearchCriteria { var name:String? = null var address:String? = null var country:String? = null var dateOfBirth:String? = null var nationality:String? = null var reference:String? = null } open class PepSearchListItem { var id:Long? = null var searchType:String? = null var dateSearched:Date? = null var dateUpdated:Date? = null var dateRenewal:Date? = null var dateArchived:Date? = null var isArchived:Boolean? = null var numOfResults:Int? = null var clientInResults:Boolean? = null var clientNotInResults:Boolean? = null var affectedByUpdate:Boolean? = null var isDayOneSearch:Boolean? = null var searchCriteria:SearchCriteria? = null }