maas-schemas

pricing Schema

http://maasglobal.com/maas-backend/subscriptions/pricing.json

MaaS pricing schema

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Develop No Forbidden Forbidden maas-backend/subscriptions/pricing.json

Schema Hierarchy

pricing Definitions

Property Type Group
description string http://maasglobal.com/maas-backend/subscriptions/pricing.json#/definitions/discount
discount cost http://maasglobal.com/maas-backend/subscriptions/pricing.json#/definitions/discount
id subscriptionItemId http://maasglobal.com/maas-backend/subscriptions/pricing.json#/definitions/lineItem
quantity integer http://maasglobal.com/maas-backend/subscriptions/pricing.json#/definitions/lineItem
type string http://maasglobal.com/maas-backend/subscriptions/pricing.json#/definitions/lineItem
unitPrice cost http://maasglobal.com/maas-backend/subscriptions/pricing.json#/definitions/lineItem
validity object http://maasglobal.com/maas-backend/subscriptions/pricing.json#/definitions/terms

description

description

description Type

string

discount

Price of one unit after all taxes & discounts

discount

discount Type

id

id

id Type

quantity

quantity

quantity Type

integer

type

type

type Type

string

unitPrice

Price of one unit after all taxes & discounts

unitPrice

unitPrice Type

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

pricing Properties

Property Type Required Nullable Defined by
discounts discount Optional No pricing (this schema)
lineItems lineItem Required No pricing (this schema)
terms object Optional No pricing (this schema)
total cost Required No pricing (this schema)

discounts

discounts

discounts Type

Array type: discount

All items must be of the type:

lineItems

lineItems

lineItems Type

Array type: lineItem

All items must be of the type:

terms

Terms related to this subscription

terms

terms Type

object with following properties:

Property Type Required
validity object Required

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

total

Sum of the quantity * unitPrice - sum of discounts

total

total Type