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
Optionally, an object with real time booking details can be provided.
Link copied to clipboard
ID from a service brand defined in service_brands.json.
Link copied to clipboard
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
Currency of the estimated travel cost. Required if estimated_travel_cost is provided.
Link copied to clipboard
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
Wait time in seconds the rider will need to wait in the location before pickup.