http://maasglobal.com/maas-backend/subscriptions/subscriptionOption.json
MaaS subscription option schema
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Develop | No | Forbidden | Permitted | maas-backend/subscriptions/subscriptionOption.json |
http://maasglobal.com/maas-backend/subscriptions/subscriptionOption.json
http://maasglobal.com/maas-backend/subscriptions/subscription.json
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
active | boolean |
Optional | No | subscription |
addons | addon | Optional | No | subscription |
availability | object |
Optional | No | subscription |
changeState | subscriptionChangeState | Optional | No | subscription |
coupons | coupon | Optional | No | subscription |
customerId | identityId | Optional | No | subscription |
description | string |
Optional | No | subscription |
discounts | array |
Optional | No | subscriptionOption (this schema) |
hidden | boolean |
Optional | No | subscription |
id | identityId | Optional | No | subscription |
level | integer |
Optional | No | subscription |
meta | object |
Optional | No | subscription |
name | string |
Optional | No | subscription |
plan | object |
Optional | No | subscription |
pointCost | point-cost | Optional | No | subscription |
region | region | Optional | No | subscription |
regionDefault | boolean |
Required | No | subscriptionOption (this schema) |
requiredAuthorizations | agencyId | Required | No | subscriptionOption (this schema) |
selectable | boolean |
Optional | No | subscription |
shippingAddress | subscriptionAddress | Optional | No | subscription |
terms | object |
Optional | No | subscription |
topUpId | string |
Optional | No | subscription |
wmpGrant | integer |
Optional | No | subscription |
* |
any | Additional | Yes | this schema allows additional properties |
active
boolean
boolean
addons
Array type: addon
All items must be of the type:
#/definitions/addon
availability
object
object
with following properties:
| Property | Type | Required | | ——– | —- | ——– |
changeState
http://maasglobal.com/core/components/subscriptionChangeState.json
coupons
Array type: coupon
All items must be of the type:
#/definitions/coupon
customerId
http://maasglobal.com/core/components/units.json#/definitions/identityId
description
string
string
discounts
array
Array type: array
hidden
boolean
boolean
id
http://maasglobal.com/core/components/units.json#/definitions/identityId
level
integer
integer
1
Arbitrary metadata on whatever app might need to display
meta
object
object
with following properties:
| Property | Type | Required | | ——– | —- | ——– |
name
string
string
Customer subscription plan
plan
object
object
with following properties:
Property | Type | Required |
---|---|---|
description |
string | Optional |
id |
Required | |
name |
string | Optional |
price |
Optional |
description
string
string
id
#/definitions/subscriptionItemId
name
string
string
price
#/definitions/price
pointCost
http://maasglobal.com/core/components/point-cost.json
region
http://maasglobal.com/core/region.json
Is this subscription option the default one for the region
regionDefault
boolean
boolean
Authorizations needed for the user before this subscription can be fulfilled
requiredAuthorizations
0
items in the arrayArray type: agencyId
All items must be of the type: string
selectable
boolean
boolean
shippingAddress
http://maasglobal.com/maas-backend/subscriptions/subscriptionAddress.json
Terms related to this subscription
terms
object
object
with following properties:
Property | Type | Required | Default |
---|---|---|---|
activated |
Optional | ||
modified |
Optional | ||
scheduledChanges |
boolean | Optional | false |
validity |
object | Required |
activated
http://maasglobal.com/core/components/units.json#/definitions/time
modified
http://maasglobal.com/core/components/units.json#/definitions/time
scheduledChanges
boolean
false
boolean
Subscription validity conditions
validity
object
object
with following properties:
Property | Type | Required |
---|---|---|
endTime |
Required | |
startTime |
Required |
endTime
http://maasglobal.com/core/components/units.json#/definitions/time
startTime
http://maasglobal.com/core/components/units.json#/definitions/time
topUpId
string
string
wmpGrant
integer
integer
0
All of the following requirements need to be fulfilled.
http://maasglobal.com/maas-backend/subscriptions/subscription.json#/definitions/subscriptionBase
#/definitions/subscriptionAdditions