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
booleanboolean
addons
Array type: addon
All items must be of the type:
#/definitions/addonavailability
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
changeState
http://maasglobal.com/core/components/subscriptionChangeState.jsoncoupons
Array type: coupon
All items must be of the type:
#/definitions/couponcustomerId
http://maasglobal.com/core/components/units.json#/definitions/identityIddescription
stringstring
discounts
arrayArray type: array
hidden
booleanboolean
id
http://maasglobal.com/core/components/units.json#/definitions/identityIdlevel
integerinteger
1Arbitrary metadata on whatever app might need to display
meta
objectobject with following properties:
| Property | Type | Required | | ——– | —- | ——– |
name
stringstring
Customer subscription plan
plan
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
description |
string | Optional |
id |
Required | |
name |
string | Optional |
price |
Optional |
description
stringstring
id
#/definitions/subscriptionItemIdname
stringstring
price
#/definitions/pricepointCost
http://maasglobal.com/core/components/point-cost.jsonregion
http://maasglobal.com/core/region.jsonIs this subscription option the default one for the region
regionDefault
booleanboolean
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
booleanboolean
shippingAddress
http://maasglobal.com/maas-backend/subscriptions/subscriptionAddress.jsonTerms related to this subscription
terms
objectobject 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/timemodified
http://maasglobal.com/core/components/units.json#/definitions/timescheduledChanges
booleanfalseboolean
Subscription validity conditions
validity
objectobject with following properties:
| Property | Type | Required |
|---|---|---|
endTime |
Required | |
startTime |
Required |
endTime
http://maasglobal.com/core/components/units.json#/definitions/timestartTime
http://maasglobal.com/core/components/units.json#/definitions/timetopUpId
stringstring
wmpGrant
integerinteger
0All of the following requirements need to be fulfilled.
http://maasglobal.com/maas-backend/subscriptions/subscription.json#/definitions/subscriptionBase#/definitions/subscriptionAdditions