FarePrice (API Reference)
Class FarePrice
Price of a fare.
-
Field Summary
FieldsModifier and TypeFieldDescriptionLocal currency of the price compliant to ISO 4217.booleanTruewhen the fare price is estimated based on best guess and the actual price may differ.doubleMaximum price when the price is ofFarePriceType.RANGEtype.doubleMinimum price when the price is ofFarePriceType.RANGEtype.Type of price represented by this object.When set, the price is paid for a specific duration. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
Type of price represented by this object. Defaults to
FarePriceType.VALUE. -
estimated
public boolean estimatedTruewhen the fare price is estimated based on best guess and the actual price may differ. Defaults tofalse. -
currency
Local currency of the price compliant to ISO 4217. For example, "GBP" for the British pound sterling. Defaults to "EUR" string.
-
minimum
public double minimumMinimum price when the price is of
FarePriceType.RANGEtype. Otherwise, it is equal tomaximum. Defaults to 0. -
maximum
public double maximumMaximum price when the price is of
FarePriceType.RANGEtype. Otherwise, it is equal tominimum. Defaults to 0. -
validityPeriod
When set, the price is paid for a specific duration.
Examples:
3600 seconds - price for one hour
28800 seconds - price for eight hours
86400 seconds - price for one day
Note: When the ticket validity period starts depends on the
Agencyproviding the service. Defaults tonull.
-
-
Constructor Details
-
FarePrice
public FarePrice()Creates a new instance.
-
-
Method Details