maas-schemas

customer Schema

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

MaaS customer schema

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

Schema Hierarchy

customer Properties

Property Type Required Nullable Defined by
authorizations authorization Required No customer (this schema)
balances fare Required No customer (this schema)
favoriteLocations object[] Optional No customer (this schema)
identityId complex Optional No customer (this schema)
paymentSources paymentSource Required No customer (this schema)
personalData personalData Required No customer (this schema)
personalDocumentConsents agencyId Optional No customer (this schema)
personalDocuments object[] Optional No customer (this schema)
profileImageUrl string Optional No customer (this schema)
region region Required No customer (this schema)

authorizations

authorizations

authorizations Type

Array type: authorization

All items must be of the type:

balances

balances

balances Type

Array type: fare

All items must be of the type:

favoriteLocations

favoriteLocations

favoriteLocations Type

Array type: object[]

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

| Property | Type | Required | | ——– | —- | ——– |

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"

paymentSources

paymentSources

paymentSources Type

Array type: paymentSource

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

Property Type Required
alias   Optional
billingCountry   Optional
billingZip   Optional
cardNumbers string Optional
expiryMonth number Optional
expiryYear number Optional
gatewayName   Required
isDefault boolean Required
isValid boolean Optional
issuer string Optional
paymentSourceId   Required
setupIntentId   Optional
status   Required
type   Required

alias

alias

alias Type

billingCountry

billingCountry

billingCountry Type

billingZip

billingZip

billingZip Type

cardNumbers

cardNumbers

cardNumbers Type

string

expiryMonth

expiryMonth

expiryMonth Type

number

expiryYear

expiryYear

expiryYear Type

number

gatewayName

gatewayName

gatewayName Type

isDefault

isDefault

isDefault Type

boolean

isValid

isValid

isValid Type

boolean

issuer

issuer

issuer Type

string

paymentSourceId

paymentSourceId

paymentSourceId Type

setupIntentId

setupIntentId

setupIntentId Type

status

status

status Type

type

type

type Type

Payment source

personalData

personalData

personalData Type

personalDocumentConsents

personalDocumentConsents

personalDocumentConsents Type

Array type: agencyId

All items must be of the type: string

personalDocuments

personalDocuments

personalDocuments Type

Array type: object[]

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

Property Type Required
status   Required
type   Required

status

status

status Type

type

type

type Type

profileImageUrl

profileImageUrl

profileImageUrl Type

string

region

region

region Type