AvailableOption

public struct AvailableOption : Codable, Hashable

Subset of a TKQuickBooking, if it returned a subset of options to choose

  • Localised identifying this booking option

    Declaration

    Swift

    public let title: 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
  • Undocumented

    Declaration

    Swift

    @DefaultCodable
    <TKQuickBooking.BookingResponseKind> public var bookingResponseKind: BookingResponseKind { get set }
  • Localised string for doing booking

    Declaration

    Swift

    public let bookingTitle: String
  • Warning to show why bookingTitle is disabled.

    Declaration

    Swift

    public let warningMessage: String?
  • Undocumented

    Declaration

    Swift

    @DefaultEmptyArray
    public var fares: [TKBooking.Fare] { get set }
  • true if only a single fare is allowed to be selected

    Declaration

    Swift

    @DefaultFalse
    public var singleFareOnly: Bool { get set }