| GET | /clients/{Id}/gpg45/ | Get the GPG 45 (DVS data schema v1.0) projection for a client |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
@DataContract
open class GetClientGpg45 : BaseRequest()
{
@DataMember
@ApiMember(IsRequired=true, ParameterType="path")
open var id:Int? = null
}
@DataContract
open class BaseRequest : IBaseRequest
{
/**
* The authentication credentials
*/
@DataMember
@ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body")
override var authentication:Authentication? = null
}
@DataContract
open class Authentication
{
/**
* 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")
open var apiUserId:String? = null
/**
* 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")
open var apiUserKey:String? = null
/**
* 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")
open var userId:String? = null
}
@DataContract
open class GetClientGpg45Response
{
@DataMember
@SerializedName("data") open var Data:GetClientGpg45Data? = null
}
open class GetClientGpg45Data : BaseResponse()
{
/**
* Links related to this client's GPG 45 projection
*/
@ApiMember(Description="Links related to this client's GPG 45 projection")
open var links:Links? = null
/**
* 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'")
open var gpg45:Gpg45Projection? = null
}
open class BaseResponse : IBaseDataResponse, IHasResponseStatus
{
/**
* The status of the response
*/
@ApiMember(Description="The status of the response")
override var responseStatus:ResponseStatus? = null
}
open class ArrayOfResponseError : ArrayList<ResponseError>()
{
}
open class Links
{
@ApiMember()
open var self:String? = null
}
open class Gpg45Projection
{
/**
* The claimed identity information (GPG 45 'claims')
*/
@ApiMember(Description="The claimed identity information (GPG 45 'claims')")
open var claims:gpg45_claims? = null
/**
* 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")
open var verification:gpg45_verification? = null
}
open class gpg45_claims
{
/**
* The individual's given name(s)
*/
@ApiMember(Description="The individual's given name(s)")
open var given_name:String? = null
/**
* The individual's family / surname
*/
@ApiMember(Description="The individual's family / surname")
open var family_name:String? = null
/**
* The individual's date of birth (ISO 8601, yyyy-MM-dd)
*/
@ApiMember(Description="The individual's date of birth (ISO 8601, yyyy-MM-dd)")
open var birthdate:String? = null
/**
* Countries of citizenship (ISO 3166-1 alpha-3)
*/
@ApiMember(Description="Countries of citizenship (ISO 3166-1 alpha-3)")
open var nationalities:ArrayList<String>? = null
/**
* The individual's address
*/
@ApiMember(Description="The individual's address")
open var address:gpg45_address? = null
/**
* Biometric characteristics of the person making the claim
*/
@ApiMember(Description="Biometric characteristics of the person making the claim")
open var biometric_information:ArrayList<gpg45_biometric_information>? = null
}
open class gpg45_address
{
/**
* Street address lines, most specific first
*/
@ApiMember(Description="Street address lines, most specific first")
open var street:ArrayList<String>? = null
/**
* City / town / district
*/
@ApiMember(Description="City / town / district")
open var locality:String? = null
/**
* Postcode
*/
@ApiMember(Description="Postcode")
open var postal_code:String? = null
/**
* Country code (ISO 3166-1 alpha-3)
*/
@ApiMember(Description="Country code (ISO 3166-1 alpha-3)")
open var country_code:String? = null
}
open class gpg45_biometric_information
{
/**
* The biometric modality: face, fingerprint, voice or iris
*/
@ApiMember(Description="The biometric modality: face, fingerprint, voice or iris")
open var biometric_modality:String? = null
/**
* The captured biometric data
*/
@ApiMember(Description="The captured biometric data")
open var attachments:ArrayList<gpg45_attachment>? = null
}
open class gpg45_attachment
{
/**
* A description of the attachment
*/
@ApiMember(Description="A description of the attachment")
open var desc:String? = null
/**
* The IANA media type of the data (e.g. image/jpeg)
*/
@ApiMember(Description="The IANA media type of the data (e.g. image/jpeg)")
open var content_type:String? = null
/**
* The encoding format: base64 or byte_data
*/
@ApiMember(Description="The encoding format: base64 or byte_data")
open var content_format:String? = null
/**
* The base64-encoded data
*/
@ApiMember(Description="The base64-encoded data")
open var content:String? = null
}
open class gpg45_verification
{
/**
* Always 'uk_dvstf' for the UK DVS trust framework
*/
@ApiMember(Description="Always 'uk_dvstf' for the UK DVS trust framework")
open var trust_framework:String? = null
/**
* The certified service's entry in the DVS register
*/
@ApiMember(Description="The certified service's entry in the DVS register")
open var dvs_registration:gpg45_dvs_registration? = null
/**
* The evidence used to prove the claim
*/
@ApiMember(Description="The evidence used to prove the claim")
open var evidence:ArrayList<gpg45_evidence>? = null
/**
* 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")
open var assurance_level:String? = null
/**
* The assurance policy and procedure followed
*/
@ApiMember(Description="The assurance policy and procedure followed")
open var assurance_process:gpg45_assurance_process? = null
}
open class gpg45_dvs_registration
{
/**
* The service's DVS register reference
*/
@ApiMember(Description="The service's DVS register reference")
open var registration_id:String? = null
/**
* The registered name of the certified service
*/
@ApiMember(Description="The registered name of the certified service")
open var name:String? = null
/**
* Contact email for the certified service
*/
@ApiMember(Description="Contact email for the certified service")
open var contact_email:String? = null
/**
* Website of the certified service
*/
@ApiMember(Description="Website of the certified service")
open var website:String? = null
}
open class gpg45_evidence
{
/**
* The document used to prove the claim
*/
@ApiMember(Description="The document used to prove the claim")
open var document:gpg45_document? = null
}
open class gpg45_document
{
/**
* Always 'document'
*/
@ApiMember(Description="Always 'document'")
@SerializedName("type") open var Type:String? = null
/**
* Details about the document itself
*/
@ApiMember(Description="Details about the document itself")
open var document_details:gpg45_document_details? = null
/**
* Copies of the document
*/
@ApiMember(Description="Copies of the document")
open var attachments:ArrayList<gpg45_attachment>? = null
/**
* The checks performed on the document
*/
@ApiMember(Description="The checks performed on the document")
open var check_details:ArrayList<gpg45_check_details>? = null
}
open class gpg45_document_details
{
/**
* The GPG 45 document_type enumeration value
*/
@ApiMember(Description="The GPG 45 document_type enumeration value")
@SerializedName("type") open var Type:String? = null
/**
* The document's reference / identification number
*/
@ApiMember(Description="The document's reference / identification number")
open var document_number:String? = null
/**
* The date the document was issued (ISO 8601)
*/
@ApiMember(Description="The date the document was issued (ISO 8601)")
open var date_of_issuance:String? = null
/**
* The date the document expires (ISO 8601)
*/
@ApiMember(Description="The date the document expires (ISO 8601)")
open var date_of_expiry:String? = null
/**
* The authority that issued the document
*/
@ApiMember(Description="The authority that issued the document")
open var issuer:gpg45_authority? = null
}
open class gpg45_authority
{
/**
* The name of the authority
*/
@ApiMember(Description="The name of the authority")
open var name:String? = null
/**
* 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)")
open var country_code:String? = null
/**
* The authority's jurisdiction
*/
@ApiMember(Description="The authority's jurisdiction")
open var jurisdiction:String? = null
}
open class gpg45_check_details
{
/**
* 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")
open var check_method:String? = null
/**
* 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")
open var check_id:String? = null
/**
* When the check was performed (ISO 8601 timestamp)
*/
@ApiMember(Description="When the check was performed (ISO 8601 timestamp)")
open var time:String? = null
/**
* The organisation that performed the check
*/
@ApiMember(Description="The organisation that performed the check")
open var organisation:String? = null
}
open class gpg45_assurance_process
{
/**
* Always 'gpg45' for the DVS trust framework
*/
@ApiMember(Description="Always 'gpg45' for the DVS trust framework")
open var policy:String? = null
/**
* 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")
open var procedure:String? = null
/**
* How each assurance process was satisfied
*/
@ApiMember(Description="How each assurance process was satisfied")
open var assurance_details:ArrayList<gpg45_assurance_details>? = null
}
open class gpg45_assurance_details
{
/**
* The type of check: validation, verification, counter_fraud or activity_history
*/
@ApiMember(Description="The type of check: validation, verification, counter_fraud or activity_history")
open var assurance_type:String? = null
/**
* 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")
open var assurance_classification:String? = null
/**
* The checks that produced this assurance, matched by check_id
*/
@ApiMember(Description="The checks that produced this assurance, matched by check_id")
open var evidence_ref:ArrayList<gpg45_evidence_ref>? = null
}
open class gpg45_evidence_ref
{
/**
* The check_id of the check that produced this assurance
*/
@ApiMember(Description="The check_id of the check that produced this assurance")
open var check_id:String? = null
/**
* Additional metadata about how the evidence supports the assurance
*/
@ApiMember(Description="Additional metadata about how the evidence supports the assurance")
open var evidence_ref:gpg45_evidence_metadata? = null
}
open class gpg45_evidence_metadata
{
/**
* The evidence classification, where applicable
*/
@ApiMember(Description="The evidence classification, where applicable")
open var evidence_classification:String? = null
}
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"}}}}