/* Options:
Date: 2026-09-11 19:41:11
SwiftVersion: 6.0
Version: 8.80
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.sanctionssearch.com/v1
//BaseClass:
//AddModelExtensions: True
//AddServiceStackTypes: True
//MakePropertiesOptional: True
IncludeTypes: UpdateSearchStatus.*
//ExcludeTypes:
//ExcludeGenericBaseTypes: False
//AddResponseStatus: False
//AddImplicitVersion:
//AddDescriptionAsComments: True
//InitializeCollections: False
//TreatTypesAsStrings:
//DefaultImports: Foundation,ServiceStack
*/
import Foundation
import ServiceStack
/**
* Update/resolve a sanctions search
*/
// @Route("/sanctions/update", "PUT")
// @Api(Description="Update/resolve a sanctions search")
// @ApiResponse(Description="Your request is successful if the \"Data.ResponseStatus.Message\" field is \"Success\".", StatusCode=200)
// @DataContract
public class UpdateSearchStatus : IReturn, IBaseRequest, Codable
{
public typealias Return = UpdateSearchStatusResponse
/**
* Authentication object
*/
// @DataMember
// @ApiMember(DataType="Authentication", Description="Authentication object", IsRequired=true)
public var authentication:Authentication?
/**
* Request object
*/
// @DataMember
// @ApiMember(DataType="UpdateSearchStatusRequest", Description="Request object", IsRequired=true)
public var request:UpdateSearchStatusRequest?
required public init(){}
}
// @DataContract
public class UpdateSearchStatusResponse : Codable
{
/**
* Response object
*/
// @DataMember
// @ApiMember(DataType="UpdateSearchStatusData", Description="Response object")
public var data:UpdateSearchStatusData?
required public init(){}
}
// @DataContract
public class Authentication : IAuthentication, Codable
{
/**
* 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 var apiUserId:String?
/**
* 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 var apiUserKey:String?
required public init(){}
}
public protocol IBaseRequest
{
var authentication:Authentication? { get set }
}
// @DataContract
public class UpdateSearchStatusRequest : Codable
{
/**
* The ID of the sanctions search that is being resolved/updated.
*/
// @DataMember
// @ApiMember(DataType="integer", Description="The ID of the sanctions search that is being resolved/updated.", Format="int64", IsRequired=true)
public var id:Int?
/**
* Whether the search results did contain the client. Set this to "true" if the client WAS found in the search results.
*/
// @DataMember
// @ApiMember(DataType="boolean", Description="Whether the search results did contain the client. Set this to \"true\" if the client WAS found in the search results.", IsRequired=true)
public var clientInResults:Bool?
/**
* Whether the search results did not contain the client. Set this to "true" if the client WAS NOT found in the search results.
*/
// @DataMember
// @ApiMember(DataType="boolean", Description="Whether the search results did not contain the client. Set this to \"true\" if the client WAS NOT found in the search results.", IsRequired=true)
public var clientNotInResults:Bool?
required public init(){}
}
// @DataContract
public class UpdateSearchStatusData : IBaseDataResponse, IHasResponseStatus, Codable
{
/**
* Response status object
*/
// @DataMember
// @ApiMember(DataType="ResponseStatus", Description="Response status object")
public var responseStatus:ResponseStatus?
required public init(){}
}
public protocol IAuthentication
{
var apiUserId:String? { get set }
var apiUserKey:String? { get set }
var userId:String? { get set }
}
public protocol IBaseDataResponse
{
var responseStatus:ResponseStatus? { get set }
}
public protocol IHasResponseStatus
{
var responseStatus:ResponseStatus? { get set }
}
public class ArrayOfResponseError : List
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}