/* Options: Date: 2025-06-09 07:52:40 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v1 //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: UpdateSearchStatus.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using Nugo.SanctionsSearch.Api.ServiceModel.Types; using Nugo.SanctionsSearch.Api.ServiceModel.Operations.Base; using Nugo.SanctionsSearch.Api.ServiceModel.Operations; using Nugo.SanctionsSearch.Models.Api; namespace Nugo.SanctionsSearch.Api.ServiceModel.Operations { /// ///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 partial class UpdateSearchStatus : IReturn, IBaseRequest { /// ///Authentication object /// [DataMember] [ApiMember(DataType="Authentication", Description="Authentication object", IsRequired=true)] public virtual Authentication Authentication { get; set; } /// ///Request object /// [DataMember] [ApiMember(DataType="UpdateSearchStatusRequest", Description="Request object", IsRequired=true)] public virtual UpdateSearchStatusRequest Request { get; set; } } [DataContract] public partial class UpdateSearchStatusData : IBaseDataResponse, IHasResponseStatus { /// ///Response status object /// [DataMember] [ApiMember(DataType="ResponseStatus", Description="Response status object")] public virtual ResponseStatus ResponseStatus { get; set; } } [DataContract] public partial class UpdateSearchStatusResponse { /// ///Response object /// [DataMember] [ApiMember(DataType="UpdateSearchStatusData", Description="Response object")] public virtual UpdateSearchStatusData Data { get; set; } } } namespace Nugo.SanctionsSearch.Api.ServiceModel.Operations.Base { public partial class ArrayOfResponseError : List { } public partial interface IBaseDataResponse { ResponseStatus ResponseStatus { get; set; } } public partial interface IBaseRequest { Authentication Authentication { get; set; } } public partial interface IHasResponseStatus { ResponseStatus ResponseStatus { get; set; } } [DataContract] public partial class ResponseError { [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string FieldName { get; set; } [DataMember(Order=3)] public virtual string Message { get; set; } } [DataContract] public partial class ResponseStatus { [DataMember(Order=1)] public virtual string ErrorCode { get; set; } [DataMember(Order=2)] public virtual string Message { get; set; } [DataMember(Order=3)] public virtual string StackTrace { get; set; } [DataMember(Order=4)] public virtual ArrayOfResponseError Errors { get; set; } } } namespace Nugo.SanctionsSearch.Api.ServiceModel.Types { [DataContract] public partial class Authentication : 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 virtual string ApiUserId { get; set; } /// ///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 virtual string ApiUserKey { get; set; } } [DataContract] public partial class UpdateSearchStatusRequest { /// ///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 virtual long Id { get; set; } /// ///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 virtual bool ClientInResults { get; set; } /// ///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 virtual bool ClientNotInResults { get; set; } } } namespace Nugo.SanctionsSearch.Models.Api { public partial interface IAuthentication { string ApiUserId { get; set; } string ApiUserKey { get; set; } string UserId { get; set; } } }