maas-schemas

subscriptionOption Schema

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

Schema Hierarchy

subscriptionOption Properties

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

active

active Type

boolean

addons

addons

addons Type

Array type: addon

All items must be of the type:

availability

availability

availability Type

object with following properties:

| Property | Type | Required | | ——– | —- | ——– |

changeState

changeState

changeState Type

coupons

coupons

coupons Type

Array type: coupon

All items must be of the type:

customerId

customerId

customerId Type

description

description

description Type

string

discounts

discounts

discounts Type

Array type: array

hidden

hidden

hidden Type

boolean

id

id

id Type

level

level

level Type

integer

meta

Arbitrary metadata on whatever app might need to display

meta

meta Type

object with following properties:

| Property | Type | Required | | ——– | —- | ——– |

name

name

name Type

string

plan

Customer subscription plan

plan

plan Type

object with following properties:

Property Type Required
description string Optional
id   Required
name string Optional
price   Optional

description

description

description Type

string

id

id

id Type

name

name

name Type

string

price

price

price Type

pointCost

pointCost

pointCost Type

region

region

region Type

regionDefault

Is this subscription option the default one for the region

regionDefault

regionDefault Type

boolean

requiredAuthorizations

Authorizations needed for the user before this subscription can be fulfilled

requiredAuthorizations

requiredAuthorizations Type

Array type: agencyId

All items must be of the type: string

selectable

selectable

selectable Type

boolean

shippingAddress

shippingAddress

shippingAddress Type

terms

Terms related to this subscription

terms

terms Type

object with following properties:

Property Type Required Default
activated   Optional  
modified   Optional  
scheduledChanges boolean Optional false
validity object Required  

activated

activated

activated Type

modified

modified

modified Type

scheduledChanges

scheduledChanges

scheduledChanges Type

boolean

validity

Subscription validity conditions

validity

validity Type

object with following properties:

Property Type Required
endTime   Required
startTime   Required

endTime

endTime

endTime Type

startTime

startTime

startTime Type

topUpId

topUpId

topUpId Type

string

wmpGrant

wmpGrant

wmpGrant Type

integer

All of the following requirements need to be fulfilled.

Requirement 1

Requirement 2