maas-schemas

fare Schema

http://maasglobal.com/core/components/fare.json

A fare/price as billed to the user in WMPs or in tokens

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Develop No Forbidden Forbidden core/components/fare.json

fare Properties

Property Type Required Nullable Defined by
amount integer Required Yes fare (this schema)
currency enum Required No fare (this schema)
originalAmount integer Optional Yes fare (this schema)
productionAmount integer Optional Yes fare (this schema)
tokenId string Optional No fare (this schema)
type enum Optional No fare (this schema)

amount

amount

amount Type

integer, nullable

currency

currency

The value of this property must be equal to one of the known values below.

currency Known Values

Value Description
WMP  
TOKEN  

originalAmount

originalAmount

originalAmount Type

integer, nullable

productionAmount

productionAmount

productionAmount Type

integer, nullable

tokenId

tokenId

tokenId Type

string

All instances must conform to this regular expression (test examples here):

^[a-z]+(-[a-z]+)*-[a-z0-9_]+$

type

type

The value of this property must be equal to one of the known values below.

type Known Values

Value Description
charge  
refund