Fare

data class Fare(val fareId: String, val currency: CurrencyCode, val kilometer: List<FareEntry>? = null, val minute: List<FareEntry>? = null, val activeMinute: List<FareEntry>? = null, val idleMinute: List<FareEntry>? = null, val rider: List<FareEntry>? = null, val luggage: List<FareEntry>? = null)(source)

A fare definition with pricing rules.

Constructors

Link copied to clipboard
constructor(fareId: String, currency: CurrencyCode, kilometer: List<FareEntry>? = null, minute: List<FareEntry>? = null, activeMinute: List<FareEntry>? = null, idleMinute: List<FareEntry>? = null, rider: List<FareEntry>? = null, luggage: List<FareEntry>? = null)

Properties

Link copied to clipboard
@SerialName(value = "active_minute")
val activeMinute: List<FareEntry>?

Array of fare objects defining the price of the service per minute, while the vehicle is actively moving. Total cost per rider is the base cost defined in rider, plus the addition of all relevant segments in kilometer, minute, active_minute, and idle_minute.

Link copied to clipboard

The currency of the fare.

Link copied to clipboard
@SerialName(value = "fare_id")
val fareId: String

Unique identifier of the fare.

Link copied to clipboard
@SerialName(value = "idle_minute")
val idleMinute: List<FareEntry>?

Array of fare objects defining the price of the service per minute, while the vehicle is stopped or not moving. Total cost per rider is the base cost defined in rider, plus the addition of all relevant segments in kilometer, minute, active_minute, and idle_minute.

Link copied to clipboard

Array of fare objects defining the price of the service per kilometer. Total cost per rider is the base cost defined in rider, plus the addition of all segments in kilometer, minute, active_minute, and idle_minute.

Link copied to clipboard

Array of fare objects defining the cost of luggage as a surcharge per piece of luggage.

Link copied to clipboard

Array of fare objects defining the price of the service per minute, regardless of whether the vehicle is moving or not. Total cost per rider is the base cost defined in rider, plus the addition of all relevant segments in kilometer, minute, active_minute, and idle_minute.

Link copied to clipboard

Array of fare objects defining the base cost per rider.