http://maasglobal.com/core/profile.json
MaaS user profiles as returned by our API
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|---|---|---|---|---|---|---|
| Can be instantiated | Yes | Develop | No | Forbidden | Forbidden | core/profile.json |
http://maasglobal.com/core/profile.json
| Property | Type | Group |
|---|---|---|
| active | boolean |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| addons | string[] |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| availability | integer |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| coupons | string[] |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| description | string |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| level | integer |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| name | string |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| plan | object |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| pointCost | point-cost | http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
| wmpGrant | integer |
http://maasglobal.com/core/profile.json#/definitions/subscriptionInstance |
active
booleanboolean
addons
string[]Array type: string[]
All items must be of the type: string
availability
integerinteger
0coupons
string[]Array type: string[]
All items must be of the type: string
description
stringstring
level
integerinteger
0name
stringstring
plan
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
id |
string | Required |
id
stringstring
pointCost
http://maasglobal.com/core/components/point-cost.jsonwmpGrant
integerinteger
0| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| balances | fare | Required | No | profile (this schema) |
| city | string |
Optional | No | profile (this schema) |
| country | string |
Optional | No | profile (this schema) |
| created | integer |
Optional | No | profile (this schema) |
string |
Optional | No | profile (this schema) | |
| favoriteLocations | place | Required | No | profile (this schema) |
| firstName | string |
Optional | No | profile (this schema) |
| id | integer |
Optional | No | profile (this schema) |
| identityId | complex | Required | No | profile (this schema) |
| lastName | string |
Optional | No | profile (this schema) |
| modified | integer |
Optional | No | profile (this schema) |
| paymentMethod | object |
Required | No | profile (this schema) |
| phone | string |
Required | No | profile (this schema) |
| profileImageUrl | string |
Optional | No | profile (this schema) |
| region | region | Optional | No | profile (this schema) |
| regionId | string |
Optional | No | profile (this schema) |
| subscription | object |
Optional | No | profile (this schema) |
| subscriptionInstance | object |
Required | No | profile (this schema) |
| zipCode | string |
Optional | No | profile (this schema) |
balances
Array type: fare
All items must be of the type:
http://maasglobal.com/core/components/fare.jsonAlphabetic city name
city
stringstring
ISO 3166-1 alpha-2 country code, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
country
stringstring
All instances must conform to this regular expression (test examples here):
^[A-Z]{2,2}$
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
created
integerinteger
14516064009007199254740991Rough validation of a valid e-mail address, see https://davidcel.is/posts/stop-validating-email-addresses-with-regex/
email
stringstring
^.+@.+\..+$
"joe.customer@example.com"
favoriteLocations
Array type: place
All items must be of the type:
http://maasglobal.com/core/components/place.jsonFirst or last name of a customer (e.g. John)
firstName
stringstring
id
integerinteger
0identityId
Any following options needs to be fulfilled.
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}$
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}$
"eu-west-1:4828507e-683f-41bf-9d87-689808fbf958"
"4828507e-683f-41bf-9d87-689808fbf958"
First or last name of a customer (e.g. John)
lastName
stringstring
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
modified
integerinteger
14516064009007199254740991paymentMethod
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
expiry |
integer | Optional |
issuer |
string | Optional |
maskedNumber |
string | Optional |
type |
string | Required |
valid |
boolean | Required |
When this payment method expires
expiry
integer
14516064009007199254740991The card issuer, e.g. ‘Visa’
issuer
stringstring
Typically the credit card number with all but the last four digits obfuscated
maskedNumber
stringstring
type
enumThe value of this property must be equal to one of the known values below.
| Value | Description |
|---|---|
unknown |
|
card |
|
stripe |
Whether the payment method is valid and working
valid
booleanboolean
ITU-T E.164 phone number, see https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch04s03.html
phone
stringstring
All instances must conform to this regular expression
^\+(?:\d){6,14}\d$
"+358401234567"
profileImageUrl
stringstring
region
http://maasglobal.com/core/region.jsonregionId
stringstring
TODO Delete this legacy version of subscription (replaced by subscriptionInstance)
subscription
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
subscriptionInstance
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
active |
boolean | Optional |
addons |
array | Required |
availability |
integer | Optional |
coupons |
array | Required |
description |
string | Optional |
id |
integer | Optional |
level |
integer | Optional |
name |
string | Optional |
plan |
object | Required |
pointCost |
Required | |
wmpGrant |
integer | Optional |
active
booleanboolean
addons
string[]Array type: string[]
All items must be of the type: string
availability
integerinteger
0coupons
string[]Array type: string[]
All items must be of the type: string
description
stringstring
id
integerinteger
0level
integerinteger
0name
stringstring
plan
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
id |
string | Required |
id
stringstring
pointCost
http://maasglobal.com/core/components/point-cost.jsonwmpGrant
integerinteger
0Numeric zip code, see https://en.wikipedia.org/wiki/Postal_code
zipCode
stringstring