/* Options: Date: 2025-07-06 08:36:24 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v1 //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateSearchStatus.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class Authentication implements IAuthentication, IConvertible { /** * 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) String? ApiUserId; /** * 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) String? ApiUserKey; Authentication({this.ApiUserId,this.ApiUserKey}); Authentication.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiUserId = json['ApiUserId']; ApiUserKey = json['ApiUserKey']; return this; } Map toJson() => { 'ApiUserId': ApiUserId, 'ApiUserKey': ApiUserKey }; getTypeName() => "Authentication"; TypeContext? context = _ctx; } abstract class IBaseRequest { Authentication? Authentication; } // @DataContract class UpdateSearchStatusRequest implements IConvertible { /** * 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) int? Id; /** * 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) bool? ClientInResults; /** * 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) bool? ClientNotInResults; UpdateSearchStatusRequest({this.Id,this.ClientInResults,this.ClientNotInResults}); UpdateSearchStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; ClientInResults = json['ClientInResults']; ClientNotInResults = json['ClientNotInResults']; return this; } Map toJson() => { 'Id': Id, 'ClientInResults': ClientInResults, 'ClientNotInResults': ClientNotInResults }; getTypeName() => "UpdateSearchStatusRequest"; TypeContext? context = _ctx; } // @DataContract class UpdateSearchStatusData implements IBaseDataResponse, IHasResponseStatus, IConvertible { /** * Response status object */ // @DataMember // @ApiMember(DataType="ResponseStatus", Description="Response status object") ResponseStatus? ResponseStatus; UpdateSearchStatusData({this.ResponseStatus}); UpdateSearchStatusData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "UpdateSearchStatusData"; TypeContext? context = _ctx; } abstract class IAuthentication { String? ApiUserId; String? ApiUserKey; String? UserId; } abstract class IBaseDataResponse { ResponseStatus? ResponseStatus; } abstract class IHasResponseStatus { ResponseStatus? ResponseStatus; } // @DataContract class UpdateSearchStatusResponse implements IConvertible { /** * Response object */ // @DataMember // @ApiMember(DataType="UpdateSearchStatusData", Description="Response object") UpdateSearchStatusData? Data; UpdateSearchStatusResponse({this.Data}); UpdateSearchStatusResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Data = JsonConverters.fromJson(json['Data'],'UpdateSearchStatusData',context!); return this; } Map toJson() => { 'Data': JsonConverters.toJson(Data,'UpdateSearchStatusData',context!) }; getTypeName() => "UpdateSearchStatusResponse"; TypeContext? context = _ctx; } /** * 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 class UpdateSearchStatus implements IReturn, IBaseRequest, IConvertible, IPut { /** * Authentication object */ // @DataMember // @ApiMember(DataType="Authentication", Description="Authentication object", IsRequired=true) Authentication? Authentication; /** * Request object */ // @DataMember // @ApiMember(DataType="UpdateSearchStatusRequest", Description="Request object", IsRequired=true) UpdateSearchStatusRequest? Request; UpdateSearchStatus({this.Authentication,this.Request}); UpdateSearchStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Authentication = JsonConverters.fromJson(json['Authentication'],'Authentication',context!); Request = JsonConverters.fromJson(json['Request'],'UpdateSearchStatusRequest',context!); return this; } Map toJson() => { 'Authentication': JsonConverters.toJson(Authentication,'Authentication',context!), 'Request': JsonConverters.toJson(Request,'UpdateSearchStatusRequest',context!) }; createResponse() => UpdateSearchStatusResponse(); getResponseTypeName() => "UpdateSearchStatusResponse"; getTypeName() => "UpdateSearchStatus"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sanctionssearch.com', types: { 'Authentication': TypeInfo(TypeOf.Class, create:() => Authentication()), 'IBaseRequest': TypeInfo(TypeOf.Interface), 'UpdateSearchStatusRequest': TypeInfo(TypeOf.Class, create:() => UpdateSearchStatusRequest()), 'UpdateSearchStatusData': TypeInfo(TypeOf.Class, create:() => UpdateSearchStatusData()), 'IAuthentication': TypeInfo(TypeOf.Interface), 'IBaseDataResponse': TypeInfo(TypeOf.Interface), 'IHasResponseStatus': TypeInfo(TypeOf.Interface), 'UpdateSearchStatusResponse': TypeInfo(TypeOf.Class, create:() => UpdateSearchStatusResponse()), 'UpdateSearchStatus': TypeInfo(TypeOf.Class, create:() => UpdateSearchStatus()), });