TKQuickBooking

public struct TKQuickBooking : Codable, Hashable

Undocumented

  • 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?
  • true if billing/payments are supported, and bookingURL will return an appropriate response

    Declaration

    Swift

    @DefaultFalse
    public var billingEnabled: Bool { get set }
  • 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?
  • 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?