maas-schemas

product Schema

http://maasglobal.com/core/product.json

Product in core which encapsulates at least an id, name and a tspProductId

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

Schema Hierarchy

product Definitions

Property Type Group
minimumExtra fare http://maasglobal.com/core/product.json#/definitions/preAuthBuffer
percentageExtra number http://maasglobal.com/core/product.json#/definitions/preAuthBuffer

minimumExtra

Minimum amount, expressed as a fare, that will be added as a safety margin to the estimated fare

minimumExtra

minimumExtra Type

percentageExtra

Percentage of the fare which is added as a safety margin when pre-authorizing; e.g. if 20% is added as a safety margin, this value would be 0.2

percentageExtra

percentageExtra Type

number

product Properties

Property Type Required Nullable Defined by
agencyId string Optional No product (this schema)
allowFinishTrip boolean Optional No product (this schema)
description string Optional No product (this schema)
icon string Optional No product (this schema)
id string Required No product (this schema)
name string Required No product (this schema)
preAuthBuffer object Optional No product (this schema)
priority integer Optional No product (this schema)
tspProductId string Required No product (this schema)
* any Additional Yes this schema allows additional properties

agencyId

agencyId

agencyId Type

string

allowFinishTrip

allowFinishTrip

allowFinishTrip Type

boolean

description

description

description Type

string

icon

icon

icon Type

string

id

id

id Type

string

name

name

name Type

string

preAuthBuffer

preAuthBuffer

preAuthBuffer Type

object with following properties:

Property Type Required
minimumExtra   Optional
percentageExtra number Optional

minimumExtra

Minimum amount, expressed as a fare, that will be added as a safety margin to the estimated fare

minimumExtra

minimumExtra Type

percentageExtra

Percentage of the fare which is added as a safety margin when pre-authorizing; e.g. if 20% is added as a safety margin, this value would be 0.2

percentageExtra

percentageExtra Type

number

priority

priority

priority Type

integer

tspProductId

tspProductId

tspProductId Type

string