TKQuickBooking

public struct TKQuickBooking : Codable, Hashable

Undocumented

  • Undocumented

    See more

    Declaration

    Swift

    public enum BookingResponseKind : String, Codable, DefaultCodableStrategy
  • Localised identifying this booking option

    Declaration

    Swift

    public let title: String
  • Localised description

    Declaration

    Swift

    public let subtitle: String?
  • Undocumented

    Declaration

    Swift

    public var input: [TKBooking.BookingInput]
  • Undocumented

    Declaration

    Swift

    @DefaultEmptyArray
    public var fares: [TKBooking.Fare] { get set }
  • Undocumented

    Declaration

    Swift

    @DefaultEmptyArray
    public var riders: [TKBooking.Rider] { get set }
  • Current selected rider filter

    Declaration

    Swift

    public var rider: TKBooking.Rider?
  • URL to book this option or request more details. See bookingURLResponse for what kind of URL this is.

    Declaration

    Swift

    public let bookingURL: URL
  • Localised string for doing booking

    Declaration

    Swift

    public let bookingTitle: String
  • Undocumented

    Declaration

    Swift

    public var bookingResponseKind: BookingResponseKind { get }
  • URL for secondary booking flow for booking this option. This will typically let you customise the booking or pick from more options, compared to the primary bookingURL.

    Declaration

    Swift

    public let secondaryBookingURL: URL?
  • Localised string for secondary booking action

    Declaration

    Swift

    public let secondaryBookingTitle: String?
  • URL to fetch updated trip that’s using this booking options. Only present if there would be a change to the trip.

    Declaration

    Swift

    public let tripUpdateURL: URL?
  • Optional URL for image identifying this booking option

    Declaration

    Swift

    public let imageURL: URL?
  • Undocumented

    Declaration

    Swift

    public var price: TKQuickBookingPrice? { get }
  • Localised human-friendly string, e.g., “$10”

    Declaration

    Swift

    public let priceString: String?
  • Undocumented

    Declaration

    Swift

    public let surgeString: String?
  • Undocumented

    Declaration

    Swift

    public let surgeImageURL: URL?
  • eta

    Optional ETA for this option. This is the expected waiting time.

    Declaration

    Swift

    public let eta: TimeInterval?
  • Subset of a TKQuickBooking, if it returned a subset of options to choose

    See more

    Declaration

    Swift

    public struct AvailableOption : Codable, Hashable
  • Alternative to AvailableOption but not available due to warningMessage.

    See more

    Declaration

    Swift

    public struct UnavailableOption : Codable, Hashable