/* Options: Date: 2025-04-29 14:46:41 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: GetCompanySearch.* //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; } class SearchCriteria implements IConvertible { String? Name; String? DateOfBirth; String? CountryOfBirth; String? Nationality; String? Address; SearchCriteria({this.Name,this.DateOfBirth,this.CountryOfBirth,this.Nationality,this.Address}); SearchCriteria.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; DateOfBirth = json['DateOfBirth']; CountryOfBirth = json['CountryOfBirth']; Nationality = json['Nationality']; Address = json['Address']; return this; } Map toJson() => { 'Name': Name, 'DateOfBirth': DateOfBirth, 'CountryOfBirth': CountryOfBirth, 'Nationality': Nationality, 'Address': Address }; getTypeName() => "SearchCriteria"; TypeContext? context = _ctx; } class SearchResultHmTreasury implements IConvertible { int? ResultStrength; double? ResultSimilarity; bool? ResultResolved; String? ResultType; DateTime? DateListed; DateTime? DateUpdated; String? Name1; String? Name2; String? Name3; String? Name4; String? Name5; String? Name6; String? DateOfBirth; String? CountryOfBirth; String? Nationality; String? Address1; String? Address2; String? Address3; String? Address4; String? Address5; String? Address6; String? PostCode; String? Country; SearchResultHmTreasury({this.ResultStrength,this.ResultSimilarity,this.ResultResolved,this.ResultType,this.DateListed,this.DateUpdated,this.Name1,this.Name2,this.Name3,this.Name4,this.Name5,this.Name6,this.DateOfBirth,this.CountryOfBirth,this.Nationality,this.Address1,this.Address2,this.Address3,this.Address4,this.Address5,this.Address6,this.PostCode,this.Country}); SearchResultHmTreasury.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResultStrength = json['ResultStrength']; ResultSimilarity = JsonConverters.toDouble(json['ResultSimilarity']); ResultResolved = json['ResultResolved']; ResultType = json['ResultType']; DateListed = JsonConverters.fromJson(json['DateListed'],'DateTime',context!); DateUpdated = JsonConverters.fromJson(json['DateUpdated'],'DateTime',context!); Name1 = json['Name1']; Name2 = json['Name2']; Name3 = json['Name3']; Name4 = json['Name4']; Name5 = json['Name5']; Name6 = json['Name6']; DateOfBirth = json['DateOfBirth']; CountryOfBirth = json['CountryOfBirth']; Nationality = json['Nationality']; Address1 = json['Address1']; Address2 = json['Address2']; Address3 = json['Address3']; Address4 = json['Address4']; Address5 = json['Address5']; Address6 = json['Address6']; PostCode = json['PostCode']; Country = json['Country']; return this; } Map toJson() => { 'ResultStrength': ResultStrength, 'ResultSimilarity': ResultSimilarity, 'ResultResolved': ResultResolved, 'ResultType': ResultType, 'DateListed': JsonConverters.toJson(DateListed,'DateTime',context!), 'DateUpdated': JsonConverters.toJson(DateUpdated,'DateTime',context!), 'Name1': Name1, 'Name2': Name2, 'Name3': Name3, 'Name4': Name4, 'Name5': Name5, 'Name6': Name6, 'DateOfBirth': DateOfBirth, 'CountryOfBirth': CountryOfBirth, 'Nationality': Nationality, 'Address1': Address1, 'Address2': Address2, 'Address3': Address3, 'Address4': Address4, 'Address5': Address5, 'Address6': Address6, 'PostCode': PostCode, 'Country': Country }; getTypeName() => "SearchResultHmTreasury"; TypeContext? context = _ctx; } class SearchResultOfacAddress implements IConvertible { String? Address1; String? Address2; String? Address3; String? City; String? State; String? PostCode; String? Country; SearchResultOfacAddress({this.Address1,this.Address2,this.Address3,this.City,this.State,this.PostCode,this.Country}); SearchResultOfacAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Address1 = json['Address1']; Address2 = json['Address2']; Address3 = json['Address3']; City = json['City']; State = json['State']; PostCode = json['PostCode']; Country = json['Country']; return this; } Map toJson() => { 'Address1': Address1, 'Address2': Address2, 'Address3': Address3, 'City': City, 'State': State, 'PostCode': PostCode, 'Country': Country }; getTypeName() => "SearchResultOfacAddress"; TypeContext? context = _ctx; } class SearchResultOfacAka implements IConvertible { String? FirstName; String? LastName; String? Type; String? Strength; SearchResultOfacAka({this.FirstName,this.LastName,this.Type,this.Strength}); SearchResultOfacAka.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FirstName = json['FirstName']; LastName = json['LastName']; Type = json['Type']; Strength = json['Strength']; return this; } Map toJson() => { 'FirstName': FirstName, 'LastName': LastName, 'Type': Type, 'Strength': Strength }; getTypeName() => "SearchResultOfacAka"; TypeContext? context = _ctx; } class SearchResultOfacDateOfBirth implements IConvertible { String? DateOfBirth; SearchResultOfacDateOfBirth({this.DateOfBirth}); SearchResultOfacDateOfBirth.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DateOfBirth = json['DateOfBirth']; return this; } Map toJson() => { 'DateOfBirth': DateOfBirth }; getTypeName() => "SearchResultOfacDateOfBirth"; TypeContext? context = _ctx; } class SearchResultOfacNationality implements IConvertible { String? Country; SearchResultOfacNationality({this.Country}); SearchResultOfacNationality.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Country = json['Country']; return this; } Map toJson() => { 'Country': Country }; getTypeName() => "SearchResultOfacNationality"; TypeContext? context = _ctx; } class SearchResultOfacPlaceOfBirth implements IConvertible { String? PlaceOfBirth; SearchResultOfacPlaceOfBirth({this.PlaceOfBirth}); SearchResultOfacPlaceOfBirth.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PlaceOfBirth = json['PlaceOfBirth']; return this; } Map toJson() => { 'PlaceOfBirth': PlaceOfBirth }; getTypeName() => "SearchResultOfacPlaceOfBirth"; TypeContext? context = _ctx; } class SearchResultOfac implements IConvertible { int? ResultStrength; double? ResultSimilarity; bool? ResultResolved; String? ResultType; DateTime? DateUpdated; String? FirstName; String? LastName; List? Addresses; List? Akas; List? DateOfBirths; List? Nationalities; List? PlaceOfBirths; SearchResultOfac({this.ResultStrength,this.ResultSimilarity,this.ResultResolved,this.ResultType,this.DateUpdated,this.FirstName,this.LastName,this.Addresses,this.Akas,this.DateOfBirths,this.Nationalities,this.PlaceOfBirths}); SearchResultOfac.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResultStrength = json['ResultStrength']; ResultSimilarity = JsonConverters.toDouble(json['ResultSimilarity']); ResultResolved = json['ResultResolved']; ResultType = json['ResultType']; DateUpdated = JsonConverters.fromJson(json['DateUpdated'],'DateTime',context!); FirstName = json['FirstName']; LastName = json['LastName']; Addresses = JsonConverters.fromJson(json['Addresses'],'List',context!); Akas = JsonConverters.fromJson(json['Akas'],'List',context!); DateOfBirths = JsonConverters.fromJson(json['DateOfBirths'],'List',context!); Nationalities = JsonConverters.fromJson(json['Nationalities'],'List',context!); PlaceOfBirths = JsonConverters.fromJson(json['PlaceOfBirths'],'List',context!); return this; } Map toJson() => { 'ResultStrength': ResultStrength, 'ResultSimilarity': ResultSimilarity, 'ResultResolved': ResultResolved, 'ResultType': ResultType, 'DateUpdated': JsonConverters.toJson(DateUpdated,'DateTime',context!), 'FirstName': FirstName, 'LastName': LastName, 'Addresses': JsonConverters.toJson(Addresses,'List',context!), 'Akas': JsonConverters.toJson(Akas,'List',context!), 'DateOfBirths': JsonConverters.toJson(DateOfBirths,'List',context!), 'Nationalities': JsonConverters.toJson(Nationalities,'List',context!), 'PlaceOfBirths': JsonConverters.toJson(PlaceOfBirths,'List',context!) }; getTypeName() => "SearchResultOfac"; TypeContext? context = _ctx; } class SearchResults implements IConvertible { List? HMTResults; List? OfacResults; SearchResults({this.HMTResults,this.OfacResults}); SearchResults.fromJson(Map json) { fromMap(json); } fromMap(Map json) { HMTResults = JsonConverters.fromJson(json['HMTResults'],'List',context!); OfacResults = JsonConverters.fromJson(json['OfacResults'],'List',context!); return this; } Map toJson() => { 'HMTResults': JsonConverters.toJson(HMTResults,'List',context!), 'OfacResults': JsonConverters.toJson(OfacResults,'List',context!) }; getTypeName() => "SearchResults"; TypeContext? context = _ctx; } class SearchRecord implements IConvertible { int? Id; String? SearchType; DateTime? DateSearched; DateTime? DateUpdated; int? NumOfResults; bool? ClientInResults; bool? ClientNotInResults; bool? AffectedByUpdate; SearchCriteria? SearchCriteria; SearchResults? SearchResults; SearchRecord({this.Id,this.SearchType,this.DateSearched,this.DateUpdated,this.NumOfResults,this.ClientInResults,this.ClientNotInResults,this.AffectedByUpdate,this.SearchCriteria,this.SearchResults}); SearchRecord.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; SearchType = json['SearchType']; DateSearched = JsonConverters.fromJson(json['DateSearched'],'DateTime',context!); DateUpdated = JsonConverters.fromJson(json['DateUpdated'],'DateTime',context!); NumOfResults = json['NumOfResults']; ClientInResults = json['ClientInResults']; ClientNotInResults = json['ClientNotInResults']; AffectedByUpdate = json['AffectedByUpdate']; SearchCriteria = JsonConverters.fromJson(json['SearchCriteria'],'SearchCriteria',context!); SearchResults = JsonConverters.fromJson(json['SearchResults'],'SearchResults',context!); return this; } Map toJson() => { 'Id': Id, 'SearchType': SearchType, 'DateSearched': JsonConverters.toJson(DateSearched,'DateTime',context!), 'DateUpdated': JsonConverters.toJson(DateUpdated,'DateTime',context!), 'NumOfResults': NumOfResults, 'ClientInResults': ClientInResults, 'ClientNotInResults': ClientNotInResults, 'AffectedByUpdate': AffectedByUpdate, 'SearchCriteria': JsonConverters.toJson(SearchCriteria,'SearchCriteria',context!), 'SearchResults': JsonConverters.toJson(SearchResults,'SearchResults',context!) }; getTypeName() => "SearchRecord"; TypeContext? context = _ctx; } // @DataContract class GetCompanySearchData implements IBaseDataResponse, IHasResponseStatus, IConvertible { // @DataMember ResponseStatus? ResponseStatus; // @DataMember SearchRecord? SearchRecord; GetCompanySearchData({this.ResponseStatus,this.SearchRecord}); GetCompanySearchData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); SearchRecord = JsonConverters.fromJson(json['SearchRecord'],'SearchRecord',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'SearchRecord': JsonConverters.toJson(SearchRecord,'SearchRecord',context!) }; getTypeName() => "GetCompanySearchData"; TypeContext? context = _ctx; } abstract class IAuthentication { String? ApiUserId; String? ApiUserKey; String? UserId; } abstract class IBaseDataResponse { ResponseStatus? ResponseStatus; } abstract class IHasResponseStatus { ResponseStatus? ResponseStatus; } // @DataContract class GetCompanySearchResponse implements IConvertible { // @DataMember GetCompanySearchData? Data; GetCompanySearchResponse({this.Data}); GetCompanySearchResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Data = JsonConverters.fromJson(json['Data'],'GetCompanySearchData',context!); return this; } Map toJson() => { 'Data': JsonConverters.toJson(Data,'GetCompanySearchData',context!) }; getTypeName() => "GetCompanySearchResponse"; TypeContext? context = _ctx; } // @Route("/sanctions/entity/get", "POST") // @ApiResponse(Description="Your request is successful if the \"Data.ResponseStatus.Message\" field is \"Success\".", StatusCode=200) // @DataContract class GetCompanySearch implements IReturn, IBaseRequest, IConvertible, IPost { // @DataMember Authentication? Authentication; // @DataMember int? Id; GetCompanySearch({this.Authentication,this.Id}); GetCompanySearch.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Authentication = JsonConverters.fromJson(json['Authentication'],'Authentication',context!); Id = json['Id']; return this; } Map toJson() => { 'Authentication': JsonConverters.toJson(Authentication,'Authentication',context!), 'Id': Id }; createResponse() => GetCompanySearchResponse(); getResponseTypeName() => "GetCompanySearchResponse"; getTypeName() => "GetCompanySearch"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sanctionssearch.com', types: { 'Authentication': TypeInfo(TypeOf.Class, create:() => Authentication()), 'IBaseRequest': TypeInfo(TypeOf.Interface), 'SearchCriteria': TypeInfo(TypeOf.Class, create:() => SearchCriteria()), 'SearchResultHmTreasury': TypeInfo(TypeOf.Class, create:() => SearchResultHmTreasury()), 'SearchResultOfacAddress': TypeInfo(TypeOf.Class, create:() => SearchResultOfacAddress()), 'SearchResultOfacAka': TypeInfo(TypeOf.Class, create:() => SearchResultOfacAka()), 'SearchResultOfacDateOfBirth': TypeInfo(TypeOf.Class, create:() => SearchResultOfacDateOfBirth()), 'SearchResultOfacNationality': TypeInfo(TypeOf.Class, create:() => SearchResultOfacNationality()), 'SearchResultOfacPlaceOfBirth': TypeInfo(TypeOf.Class, create:() => SearchResultOfacPlaceOfBirth()), 'SearchResultOfac': TypeInfo(TypeOf.Class, create:() => SearchResultOfac()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchResults': TypeInfo(TypeOf.Class, create:() => SearchResults()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchRecord': TypeInfo(TypeOf.Class, create:() => SearchRecord()), 'GetCompanySearchData': TypeInfo(TypeOf.Class, create:() => GetCompanySearchData()), 'IAuthentication': TypeInfo(TypeOf.Interface), 'IBaseDataResponse': TypeInfo(TypeOf.Interface), 'IHasResponseStatus': TypeInfo(TypeOf.Interface), 'GetCompanySearchResponse': TypeInfo(TypeOf.Class, create:() => GetCompanySearchResponse()), 'GetCompanySearch': TypeInfo(TypeOf.Class, create:() => GetCompanySearch()), });