/* Options: Date: 2026-11-27 09:09:32 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetClientGpg45.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/clients/{Id}/gpg45/", "GET") // @DataContract public class GetClientGpg45 : BaseRequest, IReturn { public typealias Return = GetClientGpg45Response // @DataMember // @ApiMember(IsRequired=true, ParameterType="path") public var id:Int? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case id } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) id = try container.decodeIfPresent(Int.self, forKey: .id) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if id != nil { try container.encode(id, forKey: .id) } } } // @DataContract public class GetClientGpg45Response : Codable { // @DataMember public var data:GetClientGpg45Data? required public init(){} } // @DataContract public class Authentication : Codable { /** * The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User) */ // @DataMember // @ApiMember(Description="The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User)", IsRequired=true, ParameterType="header, body") public var apiUserId:String? /** * The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key) */ // @DataMember // @ApiMember(Description="The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key)", IsRequired=true, ParameterType="header, body") public var apiUserKey:String? /** * The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id). */ // @DataMember // @ApiMember(Description="The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id).", ParameterType="header, body") public var userId:String? required public init(){} } // @DataContract public class BaseRequest : IBaseRequest, Codable { /** * The authentication credentials */ // @DataMember // @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body") public var authentication:Authentication? required public init(){} } public protocol IBaseRequest { var authentication:Authentication? { get set } } public class GetClientGpg45Data : BaseResponse { /** * Links related to this client's GPG 45 projection */ // @ApiMember(Description="Links related to this client's GPG 45 projection") public var links:Links? /** * The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification' */ // @ApiMember(Description="The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'") public var gpg45:Gpg45Projection? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case links case gpg45 } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) links = try container.decodeIfPresent(Links.self, forKey: .links) gpg45 = try container.decodeIfPresent(Gpg45Projection.self, forKey: .gpg45) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if links != nil { try container.encode(links, forKey: .links) } if gpg45 != nil { try container.encode(gpg45, forKey: .gpg45) } } } public class BaseResponse : IBaseDataResponse, IHasResponseStatus, Codable { /** * The status of the response */ // @ApiMember(Description="The status of the response") public var responseStatus:ResponseStatus? required public init(){} } public protocol IBaseDataResponse { var responseStatus:ResponseStatus? { get set } } public protocol IHasResponseStatus { var responseStatus:ResponseStatus? { get set } } public class Links : Codable { // @ApiMember() public var `self`:String? required public init(){} } public class Gpg45Projection : Codable { /** * The claimed identity information (GPG 45 'claims') */ // @ApiMember(Description="The claimed identity information (GPG 45 'claims')") public var claims:gpg45_claims? /** * How the claims were proven (GPG 45 'verification'). Null until the client is Verified */ // @ApiMember(Description="How the claims were proven (GPG 45 'verification'). Null until the client is Verified") public var verification:gpg45_verification? required public init(){} } 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) } } public class gpg45_claims : Codable { /** * The individual's given name(s) */ // @ApiMember(Description="The individual's given name(s)") public var given_name:String? /** * The individual's family / surname */ // @ApiMember(Description="The individual's family / surname") public var family_name:String? /** * The individual's date of birth (ISO 8601, yyyy-MM-dd) */ // @ApiMember(Description="The individual's date of birth (ISO 8601, yyyy-MM-dd)") public var birthdate:String? /** * Countries of citizenship (ISO 3166-1 alpha-3) */ // @ApiMember(Description="Countries of citizenship (ISO 3166-1 alpha-3)") public var nationalities:[String]? /** * The individual's address */ // @ApiMember(Description="The individual's address") public var address:gpg45_address? /** * Biometric characteristics of the person making the claim */ // @ApiMember(Description="Biometric characteristics of the person making the claim") public var biometric_information:[gpg45_biometric_information]? required public init(){} } public class gpg45_verification : Codable { /** * Always 'uk_dvstf' for the UK DVS trust framework */ // @ApiMember(Description="Always 'uk_dvstf' for the UK DVS trust framework") public var trust_framework:String? /** * The certified service's entry in the DVS register */ // @ApiMember(Description="The certified service's entry in the DVS register") public var dvs_registration:gpg45_dvs_registration? /** * The evidence used to prove the claim */ // @ApiMember(Description="The evidence used to prove the claim") public var evidence:[gpg45_evidence]? /** * The GPG 45 confidence level achieved: low, medium, high or very_high */ // @ApiMember(Description="The GPG 45 confidence level achieved: low, medium, high or very_high") public var assurance_level:String? /** * The assurance policy and procedure followed */ // @ApiMember(Description="The assurance policy and procedure followed") public var assurance_process:gpg45_assurance_process? required public init(){} } public class gpg45_address : Codable { /** * Street address lines, most specific first */ // @ApiMember(Description="Street address lines, most specific first") public var street:[String]? /** * City / town / district */ // @ApiMember(Description="City / town / district") public var locality:String? /** * Postcode */ // @ApiMember(Description="Postcode") public var postal_code:String? /** * Country code (ISO 3166-1 alpha-3) */ // @ApiMember(Description="Country code (ISO 3166-1 alpha-3)") public var country_code:String? required public init(){} } public class gpg45_biometric_information : Codable { /** * The biometric modality: face, fingerprint, voice or iris */ // @ApiMember(Description="The biometric modality: face, fingerprint, voice or iris") public var biometric_modality:String? /** * The captured biometric data */ // @ApiMember(Description="The captured biometric data") public var attachments:[gpg45_attachment]? required public init(){} } public class gpg45_dvs_registration : Codable { /** * The service's DVS register reference */ // @ApiMember(Description="The service's DVS register reference") public var registration_id:String? /** * The registered name of the certified service */ // @ApiMember(Description="The registered name of the certified service") public var name:String? /** * Contact email for the certified service */ // @ApiMember(Description="Contact email for the certified service") public var contact_email:String? /** * Website of the certified service */ // @ApiMember(Description="Website of the certified service") public var website:String? required public init(){} } public class gpg45_evidence : Codable { /** * The document used to prove the claim */ // @ApiMember(Description="The document used to prove the claim") public var document:gpg45_document? required public init(){} } public class gpg45_assurance_process : Codable { /** * Always 'gpg45' for the DVS trust framework */ // @ApiMember(Description="Always 'gpg45' for the DVS trust framework") public var policy:String? /** * The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met */ // @ApiMember(Description="The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met") public var procedure:String? /** * How each assurance process was satisfied */ // @ApiMember(Description="How each assurance process was satisfied") public var assurance_details:[gpg45_assurance_details]? required public init(){} } public class gpg45_attachment : Codable { /** * A description of the attachment */ // @ApiMember(Description="A description of the attachment") public var desc:String? /** * The IANA media type of the data (e.g. image/jpeg) */ // @ApiMember(Description="The IANA media type of the data (e.g. image/jpeg)") public var content_type:String? /** * The encoding format: base64 or byte_data */ // @ApiMember(Description="The encoding format: base64 or byte_data") public var content_format:String? /** * The base64-encoded data */ // @ApiMember(Description="The base64-encoded data") public var content:String? required public init(){} } public class gpg45_document : Codable { /** * Always 'document' */ // @ApiMember(Description="Always 'document'") public var type:String? /** * Details about the document itself */ // @ApiMember(Description="Details about the document itself") public var document_details:gpg45_document_details? /** * Copies of the document */ // @ApiMember(Description="Copies of the document") public var attachments:[gpg45_attachment]? /** * The checks performed on the document */ // @ApiMember(Description="The checks performed on the document") public var check_details:[gpg45_check_details]? required public init(){} } public class gpg45_assurance_details : Codable { /** * The type of check: validation, verification, counter_fraud or activity_history */ // @ApiMember(Description="The type of check: validation, verification, counter_fraud or activity_history") public var assurance_type:String? /** * The GPG 45 score achieved for this check: score_1 to score_4 */ // @ApiMember(Description="The GPG 45 score achieved for this check: score_1 to score_4") public var assurance_classification:String? /** * The checks that produced this assurance, matched by check_id */ // @ApiMember(Description="The checks that produced this assurance, matched by check_id") public var evidence_ref:[gpg45_evidence_ref]? required public init(){} } public class gpg45_document_details : Codable { /** * The GPG 45 document_type enumeration value */ // @ApiMember(Description="The GPG 45 document_type enumeration value") public var type:String? /** * The document's reference / identification number */ // @ApiMember(Description="The document's reference / identification number") public var document_number:String? /** * The date the document was issued (ISO 8601) */ // @ApiMember(Description="The date the document was issued (ISO 8601)") public var date_of_issuance:String? /** * The date the document expires (ISO 8601) */ // @ApiMember(Description="The date the document expires (ISO 8601)") public var date_of_expiry:String? /** * The authority that issued the document */ // @ApiMember(Description="The authority that issued the document") public var issuer:gpg45_authority? required public init(){} } public class gpg45_check_details : Codable { /** * The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data */ // @ApiMember(Description="The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data") public var check_method:String? /** * A unique reference for this check, matched by assurance_details evidence_ref entries */ // @ApiMember(Description="A unique reference for this check, matched by assurance_details evidence_ref entries") public var check_id:String? /** * When the check was performed (ISO 8601 timestamp) */ // @ApiMember(Description="When the check was performed (ISO 8601 timestamp)") public var time:String? /** * The organisation that performed the check */ // @ApiMember(Description="The organisation that performed the check") public var organisation:String? required public init(){} } public class gpg45_evidence_ref : Codable { /** * The check_id of the check that produced this assurance */ // @ApiMember(Description="The check_id of the check that produced this assurance") public var check_id:String? /** * Additional metadata about how the evidence supports the assurance */ // @ApiMember(Description="Additional metadata about how the evidence supports the assurance") public var evidence_ref:gpg45_evidence_metadata? required public init(){} } public class gpg45_authority : Codable { /** * The name of the authority */ // @ApiMember(Description="The name of the authority") public var name:String? /** * The country code where the authority is based (ISO 3166-1 alpha-2) */ // @ApiMember(Description="The country code where the authority is based (ISO 3166-1 alpha-2)") public var country_code:String? /** * The authority's jurisdiction */ // @ApiMember(Description="The authority's jurisdiction") public var jurisdiction:String? required public init(){} } public class gpg45_evidence_metadata : Codable { /** * The evidence classification, where applicable */ // @ApiMember(Description="The evidence classification, where applicable") public var evidence_classification:String? required public init(){} }