maas-schemas

personal-document Schema

http://maasglobal.com/core/personal-document.json

Personal document object

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Develop No Forbidden Forbidden core/personal-document.json

Schema Hierarchy

personal-document Properties

Property Type Required Nullable Defined by
details object Optional No personal-document (this schema)
documentNumber string Required No personal-document (this schema)
identityId complex Optional No personal-document (this schema)
issuingCountry string Required No personal-document (this schema)
media object[] Optional No personal-document (this schema)
nameOnDocument string Required No personal-document (this schema)
status enum Required No personal-document (this schema)
type string Required No personal-document (this schema)
validFrom string Required No personal-document (this schema)
validTo string Required No personal-document (this schema)

details

details

details Type

object with following properties:

Property Type Required
category string Optional

category

category

category Type

string

documentNumber

documentNumber

documentNumber Type

string

identityId

identityId

identityId Type

Any following options needs to be fulfilled.

Option 1

string

All instances must conform to this regular expression

^[aepus]{2}-[\w]{4}-\d:[a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}$

Option 2

string

All instances must conform to this regular expression

^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$

identityId Examples

"eu-west-1:4828507e-683f-41bf-9d87-689808fbf958"
"4828507e-683f-41bf-9d87-689808fbf958"

issuingCountry

issuingCountry

issuingCountry Type

string

media

Media documents related to user personal document.

media

media Type

Array type: object[]

All items must be of the type: object with following properties:

Property Type Required
content string Required
context string Required

content

content

content Type

string

context

context

context Type

string

nameOnDocument

nameOnDocument

nameOnDocument Type

string

status

status

The value of this property must be equal to one of the known values below.

status Known Values

Value Description
PENDING  
APPROVED  
DECLINED  
EXPIRED  
RESUBMISSION_REQUESTED  
ABANDONED  

type

type

type Type

string

validFrom

A date in the form YYYY-MM-DD without a time component

validFrom

validFrom Type

string

All instances must conform to this regular expression (test examples here):

^\d{4}-\d{2}-\d{2}

validTo

A date in the form YYYY-MM-DD without a time component

validTo

validTo Type

string

All instances must conform to this regular expression (test examples here):

^\d{4}-\d{2}-\d{2}