RealtimeBooking

data class RealtimeBooking(val brandId: String, val waitTime: WholeSeconds, val travelTime: WholeSeconds? = null, val travelCost: Double? = null, val travelCostCurrency: CurrencyCode? = null, val bookingDetail: BookingDetail? = null)(source)

Real-time booking information for a specific service brand.

Constructors

Link copied to clipboard
constructor(brandId: String, waitTime: WholeSeconds, travelTime: WholeSeconds? = null, travelCost: Double? = null, travelCostCurrency: CurrencyCode? = null, bookingDetail: BookingDetail? = null)

Properties

Link copied to clipboard
@SerialName(value = "booking_detail")
val bookingDetail: BookingDetail?

Optionally, an object with real time booking details can be provided.

Link copied to clipboard
@SerialName(value = "brand_id")
val brandId: String

ID from a service brand defined in service_brands.json.

Link copied to clipboard
@SerialName(value = "travel_cost")
val travelCost: Double?

The estimated fare cost of the trip from the pickup to dropoff location. Cannot be provided if a drop off location is not provided.

Link copied to clipboard
@SerialName(value = "travel_cost_currency")
val travelCostCurrency: CurrencyCode?

Currency of the estimated travel cost. Required if estimated_travel_cost is provided.

Link copied to clipboard
@SerialName(value = "travel_time")
val travelTime: WholeSeconds?

The estimated travel time in seconds from the pickup to dropoff location. Cannot be provided if a drop off location is not provided.

Link copied to clipboard
@SerialName(value = "wait_time")
val waitTime: WholeSeconds

Wait time in seconds the rider will need to wait in the location before pickup.