| GET | /clients/{Id}/gpg45/ | Get the GPG 45 (DVS data schema v1.0) projection for a client |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using SimplifiedID.Api2.ServiceModel.Operations.Clients;
using SimplifiedID.Api2.ServiceModel.Operations.Base;
using SimplifiedID.Api2.ServiceModel.Types;
namespace SimplifiedID.Api2.ServiceModel.Operations.Base
{
public partial class ArrayOfResponseError
: List<ResponseError>
{
}
[DataContract]
public partial class BaseRequest
: IBaseRequest
{
///<summary>
///The authentication credentials
///</summary>
[DataMember]
[ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")]
public virtual Authentication Authentication { get; set; }
}
public partial class BaseResponse
: IBaseDataResponse, IHasResponseStatus
{
///<summary>
///The status of the response
///</summary>
[ApiMember(Description="The status of the response")]
public virtual 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; }
[DataMember(Order=4)]
public virtual Dictionary<string, string> Meta { 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; }
[DataMember(Order=5)]
public virtual Dictionary<string, string> Meta { get; set; }
}
}
namespace SimplifiedID.Api2.ServiceModel.Operations.Clients
{
[DataContract]
public partial class GetClientGpg45
: BaseRequest
{
[DataMember]
[ApiMember(IsRequired=true, ParameterType="path")]
public virtual int Id { get; set; }
}
public partial class GetClientGpg45Data
: BaseResponse
{
///<summary>
///Links related to this client's GPG 45 projection
///</summary>
[ApiMember(Description="Links related to this client's GPG 45 projection")]
public virtual Links Links { get; set; }
///<summary>
///The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'
///</summary>
[ApiMember(Description="The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'")]
public virtual Gpg45Projection Gpg45 { get; set; }
}
[DataContract]
public partial class GetClientGpg45Response
{
[DataMember]
public virtual GetClientGpg45Data Data { get; set; }
}
}
namespace SimplifiedID.Api2.ServiceModel.Types
{
[DataContract]
public partial class Authentication
{
///<summary>
///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)
///</summary>
[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 virtual string ApiUserId { get; set; }
///<summary>
///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)
///</summary>
[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 virtual string ApiUserKey { get; set; }
///<summary>
///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).
///</summary>
[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 virtual string UserId { get; set; }
}
public partial class gpg45_address
{
///<summary>
///Street address lines, most specific first
///</summary>
[ApiMember(Description="Street address lines, most specific first")]
public virtual List<string> street { get; set; }
///<summary>
///City / town / district
///</summary>
[ApiMember(Description="City / town / district")]
public virtual string locality { get; set; }
///<summary>
///Postcode
///</summary>
[ApiMember(Description="Postcode")]
public virtual string postal_code { get; set; }
///<summary>
///Country code (ISO 3166-1 alpha-3)
///</summary>
[ApiMember(Description="Country code (ISO 3166-1 alpha-3)")]
public virtual string country_code { get; set; }
}
public partial class gpg45_assurance_details
{
///<summary>
///The type of check: validation, verification, counter_fraud or activity_history
///</summary>
[ApiMember(Description="The type of check: validation, verification, counter_fraud or activity_history")]
public virtual string assurance_type { get; set; }
///<summary>
///The GPG 45 score achieved for this check: score_1 to score_4
///</summary>
[ApiMember(Description="The GPG 45 score achieved for this check: score_1 to score_4")]
public virtual string assurance_classification { get; set; }
///<summary>
///The checks that produced this assurance, matched by check_id
///</summary>
[ApiMember(Description="The checks that produced this assurance, matched by check_id")]
public virtual List<gpg45_evidence_ref> evidence_ref { get; set; }
}
public partial class gpg45_assurance_process
{
///<summary>
///Always 'gpg45' for the DVS trust framework
///</summary>
[ApiMember(Description="Always 'gpg45' for the DVS trust framework")]
public virtual string policy { get; set; }
///<summary>
///The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met
///</summary>
[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 virtual string procedure { get; set; }
///<summary>
///How each assurance process was satisfied
///</summary>
[ApiMember(Description="How each assurance process was satisfied")]
public virtual List<gpg45_assurance_details> assurance_details { get; set; }
}
public partial class gpg45_attachment
{
///<summary>
///A description of the attachment
///</summary>
[ApiMember(Description="A description of the attachment")]
public virtual string desc { get; set; }
///<summary>
///The IANA media type of the data (e.g. image/jpeg)
///</summary>
[ApiMember(Description="The IANA media type of the data (e.g. image/jpeg)")]
public virtual string content_type { get; set; }
///<summary>
///The encoding format: base64 or byte_data
///</summary>
[ApiMember(Description="The encoding format: base64 or byte_data")]
public virtual string content_format { get; set; }
///<summary>
///The base64-encoded data
///</summary>
[ApiMember(Description="The base64-encoded data")]
public virtual string content { get; set; }
}
public partial class gpg45_authority
{
///<summary>
///The name of the authority
///</summary>
[ApiMember(Description="The name of the authority")]
public virtual string name { get; set; }
///<summary>
///The country code where the authority is based (ISO 3166-1 alpha-2)
///</summary>
[ApiMember(Description="The country code where the authority is based (ISO 3166-1 alpha-2)")]
public virtual string country_code { get; set; }
///<summary>
///The authority's jurisdiction
///</summary>
[ApiMember(Description="The authority's jurisdiction")]
public virtual string jurisdiction { get; set; }
}
public partial class gpg45_biometric_information
{
///<summary>
///The biometric modality: face, fingerprint, voice or iris
///</summary>
[ApiMember(Description="The biometric modality: face, fingerprint, voice or iris")]
public virtual string biometric_modality { get; set; }
///<summary>
///The captured biometric data
///</summary>
[ApiMember(Description="The captured biometric data")]
public virtual List<gpg45_attachment> attachments { get; set; }
}
public partial class gpg45_check_details
{
///<summary>
///The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data
///</summary>
[ApiMember(Description="The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data")]
public virtual string check_method { get; set; }
///<summary>
///A unique reference for this check, matched by assurance_details evidence_ref entries
///</summary>
[ApiMember(Description="A unique reference for this check, matched by assurance_details evidence_ref entries")]
public virtual string check_id { get; set; }
///<summary>
///When the check was performed (ISO 8601 timestamp)
///</summary>
[ApiMember(Description="When the check was performed (ISO 8601 timestamp)")]
public virtual string time { get; set; }
///<summary>
///The organisation that performed the check
///</summary>
[ApiMember(Description="The organisation that performed the check")]
public virtual string organisation { get; set; }
}
public partial class gpg45_claims
{
///<summary>
///The individual's given name(s)
///</summary>
[ApiMember(Description="The individual's given name(s)")]
public virtual string given_name { get; set; }
///<summary>
///The individual's family / surname
///</summary>
[ApiMember(Description="The individual's family / surname")]
public virtual string family_name { get; set; }
///<summary>
///The individual's date of birth (ISO 8601, yyyy-MM-dd)
///</summary>
[ApiMember(Description="The individual's date of birth (ISO 8601, yyyy-MM-dd)")]
public virtual string birthdate { get; set; }
///<summary>
///Countries of citizenship (ISO 3166-1 alpha-3)
///</summary>
[ApiMember(Description="Countries of citizenship (ISO 3166-1 alpha-3)")]
public virtual List<string> nationalities { get; set; }
///<summary>
///The individual's address
///</summary>
[ApiMember(Description="The individual's address")]
public virtual gpg45_address address { get; set; }
///<summary>
///Biometric characteristics of the person making the claim
///</summary>
[ApiMember(Description="Biometric characteristics of the person making the claim")]
public virtual List<gpg45_biometric_information> biometric_information { get; set; }
}
public partial class gpg45_document
{
///<summary>
///Always 'document'
///</summary>
[ApiMember(Description="Always 'document'")]
public virtual string type { get; set; }
///<summary>
///Details about the document itself
///</summary>
[ApiMember(Description="Details about the document itself")]
public virtual gpg45_document_details document_details { get; set; }
///<summary>
///Copies of the document
///</summary>
[ApiMember(Description="Copies of the document")]
public virtual List<gpg45_attachment> attachments { get; set; }
///<summary>
///The checks performed on the document
///</summary>
[ApiMember(Description="The checks performed on the document")]
public virtual List<gpg45_check_details> check_details { get; set; }
}
public partial class gpg45_document_details
{
///<summary>
///The GPG 45 document_type enumeration value
///</summary>
[ApiMember(Description="The GPG 45 document_type enumeration value")]
public virtual string type { get; set; }
///<summary>
///The document's reference / identification number
///</summary>
[ApiMember(Description="The document's reference / identification number")]
public virtual string document_number { get; set; }
///<summary>
///The date the document was issued (ISO 8601)
///</summary>
[ApiMember(Description="The date the document was issued (ISO 8601)")]
public virtual string date_of_issuance { get; set; }
///<summary>
///The date the document expires (ISO 8601)
///</summary>
[ApiMember(Description="The date the document expires (ISO 8601)")]
public virtual string date_of_expiry { get; set; }
///<summary>
///The authority that issued the document
///</summary>
[ApiMember(Description="The authority that issued the document")]
public virtual gpg45_authority issuer { get; set; }
}
public partial class gpg45_dvs_registration
{
///<summary>
///The service's DVS register reference
///</summary>
[ApiMember(Description="The service's DVS register reference")]
public virtual string registration_id { get; set; }
///<summary>
///The registered name of the certified service
///</summary>
[ApiMember(Description="The registered name of the certified service")]
public virtual string name { get; set; }
///<summary>
///Contact email for the certified service
///</summary>
[ApiMember(Description="Contact email for the certified service")]
public virtual string contact_email { get; set; }
///<summary>
///Website of the certified service
///</summary>
[ApiMember(Description="Website of the certified service")]
public virtual string website { get; set; }
}
public partial class gpg45_evidence
{
///<summary>
///The document used to prove the claim
///</summary>
[ApiMember(Description="The document used to prove the claim")]
public virtual gpg45_document document { get; set; }
}
public partial class gpg45_evidence_metadata
{
///<summary>
///The evidence classification, where applicable
///</summary>
[ApiMember(Description="The evidence classification, where applicable")]
public virtual string evidence_classification { get; set; }
}
public partial class gpg45_evidence_ref
{
///<summary>
///The check_id of the check that produced this assurance
///</summary>
[ApiMember(Description="The check_id of the check that produced this assurance")]
public virtual string check_id { get; set; }
///<summary>
///Additional metadata about how the evidence supports the assurance
///</summary>
[ApiMember(Description="Additional metadata about how the evidence supports the assurance")]
public virtual gpg45_evidence_metadata evidence_ref { get; set; }
}
public partial class gpg45_verification
{
///<summary>
///Always 'uk_dvstf' for the UK DVS trust framework
///</summary>
[ApiMember(Description="Always 'uk_dvstf' for the UK DVS trust framework")]
public virtual string trust_framework { get; set; }
///<summary>
///The certified service's entry in the DVS register
///</summary>
[ApiMember(Description="The certified service's entry in the DVS register")]
public virtual gpg45_dvs_registration dvs_registration { get; set; }
///<summary>
///The evidence used to prove the claim
///</summary>
[ApiMember(Description="The evidence used to prove the claim")]
public virtual List<gpg45_evidence> evidence { get; set; }
///<summary>
///The GPG 45 confidence level achieved: low, medium, high or very_high
///</summary>
[ApiMember(Description="The GPG 45 confidence level achieved: low, medium, high or very_high")]
public virtual string assurance_level { get; set; }
///<summary>
///The assurance policy and procedure followed
///</summary>
[ApiMember(Description="The assurance policy and procedure followed")]
public virtual gpg45_assurance_process assurance_process { get; set; }
}
public partial class Gpg45Projection
{
///<summary>
///The claimed identity information (GPG 45 'claims')
///</summary>
[ApiMember(Description="The claimed identity information (GPG 45 'claims')")]
public virtual gpg45_claims claims { get; set; }
///<summary>
///How the claims were proven (GPG 45 'verification'). Null until the client is Verified
///</summary>
[ApiMember(Description="How the claims were proven (GPG 45 'verification'). Null until the client is Verified")]
public virtual gpg45_verification verification { get; set; }
}
public partial class Links
{
[ApiMember]
public virtual string Self { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /clients/{Id}/gpg45/ HTTP/1.1
Host: api.sanctionssearch.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetClientGpg45Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Data>
<ResponseStatus>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value>String</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</Meta>
</ResponseError>
</Errors>
<Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Meta>
</ResponseStatus>
<Gpg45>
<claims>
<address>
<country_code>String</country_code>
<locality>String</locality>
<postal_code>String</postal_code>
<street xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</street>
</address>
<biometric_information>
<gpg45_biometric_information>
<attachments>
<gpg45_attachment>
<content>String</content>
<content_format>String</content_format>
<content_type>String</content_type>
<desc>String</desc>
</gpg45_attachment>
</attachments>
<biometric_modality>String</biometric_modality>
</gpg45_biometric_information>
</biometric_information>
<birthdate>String</birthdate>
<family_name>String</family_name>
<given_name>String</given_name>
<nationalities xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</nationalities>
</claims>
<verification>
<assurance_level>String</assurance_level>
<assurance_process>
<assurance_details>
<gpg45_assurance_details>
<assurance_classification>String</assurance_classification>
<assurance_type>String</assurance_type>
<evidence_ref>
<gpg45_evidence_ref>
<check_id>String</check_id>
<evidence_ref>
<evidence_classification>String</evidence_classification>
</evidence_ref>
</gpg45_evidence_ref>
</evidence_ref>
</gpg45_assurance_details>
</assurance_details>
<policy>String</policy>
<procedure>String</procedure>
</assurance_process>
<dvs_registration>
<contact_email>String</contact_email>
<name>String</name>
<registration_id>String</registration_id>
<website>String</website>
</dvs_registration>
<evidence>
<gpg45_evidence>
<document>
<attachments>
<gpg45_attachment>
<content>String</content>
<content_format>String</content_format>
<content_type>String</content_type>
<desc>String</desc>
</gpg45_attachment>
</attachments>
<check_details>
<gpg45_check_details>
<check_id>String</check_id>
<check_method>String</check_method>
<organisation>String</organisation>
<time>String</time>
</gpg45_check_details>
</check_details>
<document_details>
<date_of_expiry>String</date_of_expiry>
<date_of_issuance>String</date_of_issuance>
<document_number>String</document_number>
<issuer>
<country_code>String</country_code>
<jurisdiction>String</jurisdiction>
<name>String</name>
</issuer>
<type>String</type>
</document_details>
<type>String</type>
</document>
</gpg45_evidence>
</evidence>
<trust_framework>String</trust_framework>
</verification>
</Gpg45>
<Links>
<Self>String</Self>
</Links>
</Data>
</GetClientGpg45Response>