maas-schemas

contact Schema

http://maasglobal.com/maas-backend/subscriptions/contact.json

MaaS contact (customer and user) schema

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Cannot be instantiated Yes Develop No Forbidden Permitted maas-backend/subscriptions/contact.json

contact Definitions

Property Type Group
address address http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
city city http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
country country http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
cvv string http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/creditCardPaymentMethod
email email http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
expiryMonth integer http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/creditCardPaymentMethod
expiryYear integer http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/creditCardPaymentMethod
firstName personalName http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
identityId identityId http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
lastName personalName http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
number string http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/creditCardPaymentMethod
phone phone http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase
token string http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/stripePaymentMethod
type enum http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/creditCardPaymentMethod
valid boolean http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/paymentMethodResponse
zipCode zipCode http://maasglobal.com/maas-backend/subscriptions/contact.json#/definitions/contactBase

address

address

address Type

city

city

city Type

country

country

country Type

cvv

cvv

cvv Type

string

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

^[0-9]{3,4}$

email

email

email Type

expiryMonth

expiryMonth

expiryMonth Type

integer

expiryYear

expiryYear

expiryYear Type

integer

firstName

firstName

firstName Type

identityId

identityId

identityId Type

lastName

lastName

lastName Type

number

Credit card numbers, see http://www.regular-expressions.info/creditcard.html

number

number Type

string

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

^(?:4[0-9]{12}(?:[0-9]{3})?|(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|6(?:011|5[0-9]{2})[0-9]{12}|(?:2131|1800|35\d{3})\d{11})$

phone

phone

phone Type

token

Stripe based payment method

token

token Type

string

type

type

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

type Known Values

Value Description
card  

valid

Whether the payment method is valid and working

valid

valid Type

boolean

zipCode

zipCode

zipCode Type