Class FarePrice
Class FarePrice
- java.lang.Object
-
- com.here.sdk.routing.FarePrice
-
public final class FarePrice extends java.lang.ObjectPrice of a fare.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcurrencyLocal currency of the price compliant to ISO 4217.booleanestimatedTruewhen the fare price is estimated based on best guess and the actual price may differ.doublemaximumMaximum price when the price is ofFarePriceType.RANGEtype.doubleminimumMinimum price when the price is ofFarePriceType.RANGEtype.FarePriceTypetypeType of price represented by this object.DurationvalidityPeriodWhen set, the price is paid for a specific duration.
-
Constructor Summary
Constructors Constructor Description FarePrice()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
type
@NonNull public FarePriceType type
Type of price represented by this object. Defaults to
FarePriceType.VALUE.
-
estimated
public boolean estimated
Truewhen the fare price is estimated based on best guess and the actual price may differ. Defaults tofalse.
-
currency
@NonNull public java.lang.String 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 minimum
Minimum price when the price is of
FarePriceType.RANGEtype. Otherwise, it is equal tomaximum. Defaults to 0.
-
maximum
public double maximum
Maximum price when the price is of
FarePriceType.RANGEtype. Otherwise, it is equal tominimum. Defaults to 0.
-
validityPeriod
@Nullable public Duration 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.
-
-