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
boolean
boolean
addons
string[]
Array type: string[]
All items must be of the type: string
availability
integer
integer
0
coupons
string[]
Array type: string[]
All items must be of the type: string
description
string
string
level
integer
integer
0
name
string
string
plan
object
object
with following properties:
Property | Type | Required |
---|---|---|
id |
string | Required |
id
string
string
pointCost
http://maasglobal.com/core/components/point-cost.json
wmpGrant
integer
integer
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.json
Alphabetic city name
city
string
string
ISO 3166-1 alpha-2 country code, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
country
string
string
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
integer
integer
1451606400
9007199254740991
Rough validation of a valid e-mail address, see https://davidcel.is/posts/stop-validating-email-addresses-with-regex/
email
string
string
^.+@.+\..+$
"joe.customer@example.com"
favoriteLocations
Array type: place
All items must be of the type:
http://maasglobal.com/core/components/place.json
First or last name of a customer (e.g. John)
firstName
string
string
id
integer
integer
0
identityId
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
string
string
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
modified
integer
integer
1451606400
9007199254740991
paymentMethod
object
object
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
1451606400
9007199254740991
The card issuer, e.g. ‘Visa’
issuer
string
string
Typically the credit card number with all but the last four digits obfuscated
maskedNumber
string
string
type
enum
The 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
boolean
boolean
ITU-T E.164 phone number, see https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch04s03.html
phone
string
string
All instances must conform to this regular expression
^\+(?:\d){6,14}\d$
"+358401234567"
profileImageUrl
string
string
region
http://maasglobal.com/core/region.json
regionId
string
string
TODO Delete this legacy version of subscription (replaced by subscriptionInstance)
subscription
object
object
with following properties:
| Property | Type | Required | | ——– | —- | ——– |
subscriptionInstance
object
object
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
boolean
boolean
addons
string[]
Array type: string[]
All items must be of the type: string
availability
integer
integer
0
coupons
string[]
Array type: string[]
All items must be of the type: string
description
string
string
id
integer
integer
0
level
integer
integer
0
name
string
string
plan
object
object
with following properties:
Property | Type | Required |
---|---|---|
id |
string | Required |
id
string
string
pointCost
http://maasglobal.com/core/components/point-cost.json
wmpGrant
integer
integer
0
Numeric zip code, see https://en.wikipedia.org/wiki/Postal_code
zipCode
string
string