TKQuickBooking

public struct TKQuickBooking : Codable, Hashable
  • Localised identifying this booking option

    Declaration

    Swift

    public let title: String
  • Localised description

    Declaration

    Swift

    public let subtitle: String?
  • URL to book this option. If possible, this will book it without further confirmation. These URLs are meant to be used with an instance of BPKBookingViewController, unless bookingURLIsDeepLink returns true.

    Declaration

    Swift

    public let bookingURL: URL
  • Localised string for doing booking

    Declaration

    Swift

    public let bookingTitle: String
  • Whether bookingURL is a deep-link into an external system

    Declaration

    Swift

    public let bookingURLIsDeepLink: Bool
  • 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?
  • Declaration

    Swift

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

    Declaration

    Swift

    public let priceString: String?
  • Declaration

    Swift

    public let surgeString: String?
  • Declaration

    Swift

    public let surgeImageURL: URL?
  • eta

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

    Declaration

    Swift

    public let eta: TimeInterval?