| GET | /clients/{Id}/gpg45/ | Get the GPG 45 (DVS data schema v1.0) projection for a client |
|---|
namespace SimplifiedID.Api2.ServiceModel.Operations.Base
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<DataContract>]
[<AllowNullLiteral>]
type ResponseError() =
[<DataMember(Order=1)>]
member val ErrorCode:String = null with get,set
[<DataMember(Order=2)>]
member val FieldName:String = null with get,set
[<DataMember(Order=3)>]
member val Message:String = null with get,set
[<DataMember(Order=4)>]
member val Meta:Dictionary<String, String> = null with get,set
[<AllowNullLiteral>]
type ArrayOfResponseError() =
inherit ResizeArray<ResponseError>()
[<DataContract>]
[<AllowNullLiteral>]
type ResponseStatus() =
[<DataMember(Order=1)>]
member val ErrorCode:String = null with get,set
[<DataMember(Order=2)>]
member val Message:String = null with get,set
[<DataMember(Order=3)>]
member val StackTrace:String = null with get,set
[<DataMember(Order=4)>]
member val Errors:ArrayOfResponseError = null with get,set
[<DataMember(Order=5)>]
member val Meta:Dictionary<String, String> = null with get,set
[<AllowNullLiteral>]
type BaseResponse() =
///<summary>
///The status of the response
///</summary>
[<ApiMember(Description="The status of the response")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type Links() =
[<ApiMember>]
member val Self:String = null with get,set
[<AllowNullLiteral>]
type gpg45_address() =
///<summary>
///Street address lines, most specific first
///</summary>
[<ApiMember(Description="Street address lines, most specific first")>]
member val street:ResizeArray<String> = null with get,set
///<summary>
///City / town / district
///</summary>
[<ApiMember(Description="City / town / district")>]
member val locality:String = null with get,set
///<summary>
///Postcode
///</summary>
[<ApiMember(Description="Postcode")>]
member val postal_code:String = null with get,set
///<summary>
///Country code (ISO 3166-1 alpha-3)
///</summary>
[<ApiMember(Description="Country code (ISO 3166-1 alpha-3)")>]
member val country_code:String = null with get,set
[<AllowNullLiteral>]
type gpg45_attachment() =
///<summary>
///A description of the attachment
///</summary>
[<ApiMember(Description="A description of the attachment")>]
member val desc:String = null with 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)")>]
member val content_type:String = null with get,set
///<summary>
///The encoding format: base64 or byte_data
///</summary>
[<ApiMember(Description="The encoding format: base64 or byte_data")>]
member val content_format:String = null with get,set
///<summary>
///The base64-encoded data
///</summary>
[<ApiMember(Description="The base64-encoded data")>]
member val content:String = null with get,set
[<AllowNullLiteral>]
type gpg45_biometric_information() =
///<summary>
///The biometric modality: face, fingerprint, voice or iris
///</summary>
[<ApiMember(Description="The biometric modality: face, fingerprint, voice or iris")>]
member val biometric_modality:String = null with get,set
///<summary>
///The captured biometric data
///</summary>
[<ApiMember(Description="The captured biometric data")>]
member val attachments:ResizeArray<gpg45_attachment> = null with get,set
[<AllowNullLiteral>]
type gpg45_claims() =
///<summary>
///The individual's given name(s)
///</summary>
[<ApiMember(Description="The individual's given name(s)")>]
member val given_name:String = null with get,set
///<summary>
///The individual's family / surname
///</summary>
[<ApiMember(Description="The individual's family / surname")>]
member val family_name:String = null with 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)")>]
member val birthdate:String = null with get,set
///<summary>
///Countries of citizenship (ISO 3166-1 alpha-3)
///</summary>
[<ApiMember(Description="Countries of citizenship (ISO 3166-1 alpha-3)")>]
member val nationalities:ResizeArray<String> = null with get,set
///<summary>
///The individual's address
///</summary>
[<ApiMember(Description="The individual's address")>]
member val address:gpg45_address = null with get,set
///<summary>
///Biometric characteristics of the person making the claim
///</summary>
[<ApiMember(Description="Biometric characteristics of the person making the claim")>]
member val biometric_information:ResizeArray<gpg45_biometric_information> = null with get,set
[<AllowNullLiteral>]
type gpg45_dvs_registration() =
///<summary>
///The service's DVS register reference
///</summary>
[<ApiMember(Description="The service's DVS register reference")>]
member val registration_id:String = null with get,set
///<summary>
///The registered name of the certified service
///</summary>
[<ApiMember(Description="The registered name of the certified service")>]
member val name:String = null with get,set
///<summary>
///Contact email for the certified service
///</summary>
[<ApiMember(Description="Contact email for the certified service")>]
member val contact_email:String = null with get,set
///<summary>
///Website of the certified service
///</summary>
[<ApiMember(Description="Website of the certified service")>]
member val website:String = null with get,set
[<AllowNullLiteral>]
type gpg45_authority() =
///<summary>
///The name of the authority
///</summary>
[<ApiMember(Description="The name of the authority")>]
member val name:String = null with 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)")>]
member val country_code:String = null with get,set
///<summary>
///The authority's jurisdiction
///</summary>
[<ApiMember(Description="The authority's jurisdiction")>]
member val jurisdiction:String = null with get,set
[<AllowNullLiteral>]
type gpg45_document_details() =
///<summary>
///The GPG 45 document_type enumeration value
///</summary>
[<ApiMember(Description="The GPG 45 document_type enumeration value")>]
member val type:String = null with get,set
///<summary>
///The document's reference / identification number
///</summary>
[<ApiMember(Description="The document's reference / identification number")>]
member val document_number:String = null with get,set
///<summary>
///The date the document was issued (ISO 8601)
///</summary>
[<ApiMember(Description="The date the document was issued (ISO 8601)")>]
member val date_of_issuance:String = null with get,set
///<summary>
///The date the document expires (ISO 8601)
///</summary>
[<ApiMember(Description="The date the document expires (ISO 8601)")>]
member val date_of_expiry:String = null with get,set
///<summary>
///The authority that issued the document
///</summary>
[<ApiMember(Description="The authority that issued the document")>]
member val issuer:gpg45_authority = null with get,set
[<AllowNullLiteral>]
type 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")>]
member val check_method:String = null with 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")>]
member val check_id:String = null with get,set
///<summary>
///When the check was performed (ISO 8601 timestamp)
///</summary>
[<ApiMember(Description="When the check was performed (ISO 8601 timestamp)")>]
member val time:String = null with get,set
///<summary>
///The organisation that performed the check
///</summary>
[<ApiMember(Description="The organisation that performed the check")>]
member val organisation:String = null with get,set
[<AllowNullLiteral>]
type gpg45_document() =
///<summary>
///Always 'document'
///</summary>
[<ApiMember(Description="Always 'document'")>]
member val type:String = null with get,set
///<summary>
///Details about the document itself
///</summary>
[<ApiMember(Description="Details about the document itself")>]
member val document_details:gpg45_document_details = null with get,set
///<summary>
///Copies of the document
///</summary>
[<ApiMember(Description="Copies of the document")>]
member val attachments:ResizeArray<gpg45_attachment> = null with get,set
///<summary>
///The checks performed on the document
///</summary>
[<ApiMember(Description="The checks performed on the document")>]
member val check_details:ResizeArray<gpg45_check_details> = null with get,set
[<AllowNullLiteral>]
type gpg45_evidence() =
///<summary>
///The document used to prove the claim
///</summary>
[<ApiMember(Description="The document used to prove the claim")>]
member val document:gpg45_document = null with get,set
[<AllowNullLiteral>]
type gpg45_evidence_metadata() =
///<summary>
///The evidence classification, where applicable
///</summary>
[<ApiMember(Description="The evidence classification, where applicable")>]
member val evidence_classification:String = null with get,set
[<AllowNullLiteral>]
type 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")>]
member val check_id:String = null with get,set
///<summary>
///Additional metadata about how the evidence supports the assurance
///</summary>
[<ApiMember(Description="Additional metadata about how the evidence supports the assurance")>]
member val evidence_ref:gpg45_evidence_metadata = null with get,set
[<AllowNullLiteral>]
type 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")>]
member val assurance_type:String = null with 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")>]
member val assurance_classification:String = null with 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")>]
member val evidence_ref:ResizeArray<gpg45_evidence_ref> = null with get,set
[<AllowNullLiteral>]
type gpg45_assurance_process() =
///<summary>
///Always 'gpg45' for the DVS trust framework
///</summary>
[<ApiMember(Description="Always 'gpg45' for the DVS trust framework")>]
member val policy:String = null with 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")>]
member val procedure:String = null with get,set
///<summary>
///How each assurance process was satisfied
///</summary>
[<ApiMember(Description="How each assurance process was satisfied")>]
member val assurance_details:ResizeArray<gpg45_assurance_details> = null with get,set
[<AllowNullLiteral>]
type gpg45_verification() =
///<summary>
///Always 'uk_dvstf' for the UK DVS trust framework
///</summary>
[<ApiMember(Description="Always 'uk_dvstf' for the UK DVS trust framework")>]
member val trust_framework:String = null with get,set
///<summary>
///The certified service's entry in the DVS register
///</summary>
[<ApiMember(Description="The certified service's entry in the DVS register")>]
member val dvs_registration:gpg45_dvs_registration = null with get,set
///<summary>
///The evidence used to prove the claim
///</summary>
[<ApiMember(Description="The evidence used to prove the claim")>]
member val evidence:ResizeArray<gpg45_evidence> = null with 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")>]
member val assurance_level:String = null with get,set
///<summary>
///The assurance policy and procedure followed
///</summary>
[<ApiMember(Description="The assurance policy and procedure followed")>]
member val assurance_process:gpg45_assurance_process = null with get,set
[<AllowNullLiteral>]
type Gpg45Projection() =
///<summary>
///The claimed identity information (GPG 45 'claims')
///</summary>
[<ApiMember(Description="The claimed identity information (GPG 45 'claims')")>]
member val claims:gpg45_claims = null with 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")>]
member val verification:gpg45_verification = null with get,set
[<AllowNullLiteral>]
type GetClientGpg45Data() =
inherit BaseResponse()
///<summary>
///Links related to this client's GPG 45 projection
///</summary>
[<ApiMember(Description="Links related to this client's GPG 45 projection")>]
member val Links:Links = null with 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'")>]
member val Gpg45:Gpg45Projection = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetClientGpg45Response() =
[<DataMember>]
member val Data:GetClientGpg45Data = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type 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")>]
member val ApiUserId:String = null with 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")>]
member val ApiUserKey:String = null with 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")>]
member val UserId:String = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type BaseRequest() =
///<summary>
///The authentication credentials
///</summary>
[<DataMember>]
[<ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")>]
member val Authentication:Authentication = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetClientGpg45() =
inherit BaseRequest()
[<DataMember>]
[<ApiMember(IsRequired=true, ParameterType="path")>]
member val Id:Int32 = new Int32() with 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"}}}}