maas-schemas

personalData Schema

http://maasglobal.com/maas-backend/customers/personalData.json

MaaS customer personal data schema

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated No Develop No Forbidden Forbidden maas-backend/customers/personalData.json

Schema Hierarchy

personalData Properties

Property Type Required Nullable Defined by
address string Optional No personalData (this schema)
city string Optional No personalData (this schema)
country string Optional No personalData (this schema)
dob complex Optional No personalData (this schema)
email string Optional No personalData (this schema)
firstName string Optional No personalData (this schema)
firstNameLocalized string Optional No personalData (this schema)
honorifics string Optional No personalData (this schema)
lastName string Optional No personalData (this schema)
lastNameLocalized string Optional No personalData (this schema)
phone string Optional No personalData (this schema)
profileImageUrl string Optional No personalData (this schema)
sex string Optional No personalData (this schema)
ssid complex Optional No personalData (this schema)
state string Optional No personalData (this schema)
subscriberType string Optional No personalData (this schema)
zipCode string Optional No personalData (this schema)

address

Street address (and optional number), http://www.bitboost.com/ref/international-address-formats.html

address

address Type

string

city

Alphabetic city name

city

city Type

string

country

ISO 3166-1 alpha-2 country code, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

country

country Type

string

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

^[A-Z]{2,2}$

dob

The customer’s date of birth or boolean indicating if the value is already in DB

dob

dob Type

Any following options needs to be fulfilled.

Option 1

boolean

Option 2

email

Rough validation of a valid e-mail address

email

email Type

string

^.+@.+\..+$

email Example

"joe.customer@example.com"

firstName

First name of the customer (e.g. John)

firstName

firstName Type

string

firstNameLocalized

Localized first name of the customer (e.g. John)

firstNameLocalized

firstNameLocalized Type

string

honorifics

honorifics

honorifics Type

string

lastName

Last name of the customer (e.g. Doe)

lastName

lastName Type

string

lastNameLocalized

Localized last name of the customer (e.g. Doe)

lastNameLocalized

lastNameLocalized Type

string

phone

ITU-T E.164 phone number

phone

phone Type

string

All instances must conform to this regular expression

^\+(?:\d){6,14}\d$

phone Example

"+358401234567"

profileImageUrl

profileImageUrl

profileImageUrl Type

string

sex

sex

sex Type

string

ssid

Social Security ID

ssid

ssid Type

Any following options needs to be fulfilled.

Option 1

boolean

Option 2

state

Alphabetic state name

state

state Type

string

subscriberType

Subscriber Type

subscriberType

subscriberType Type

string

zipCode

Numeric zip code, see https://en.wikipedia.org/wiki/Postal_code

zipCode

zipCode Type

string