| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"data":{"links":{"self":"String"},"gpg45":{"claims":{"given_name":"String","family_name":"String","birthdate":"String","nationalities":["String"],"address":{"street":["String"],"locality":"String","postal_code":"String","country_code":"String"},"biometric_information":[{"biometric_modality":"String","attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}]}]},"verification":{"trust_framework":"String","dvs_registration":{"registration_id":"String","name":"String","contact_email":"String","website":"String"},"evidence":[{"document":{"type":"String","document_details":{"type":"String","document_number":"String","date_of_issuance":"String","date_of_expiry":"String","issuer":{"name":"String","country_code":"String","jurisdiction":"String"}},"attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}],"check_details":[{"check_method":"String","check_id":"String","time":"String","organisation":"String"}]}}],"assurance_level":"String","assurance_process":{"policy":"String","procedure":"String","assurance_details":[{"assurance_type":"String","assurance_classification":"String","evidence_ref":[{"check_id":"String","evidence_ref":{"evidence_classification":"String"}}]}]}}},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}