Fare

public struct Fare : Codable, Hashable

Undocumented

  • Undocumented

    See more

    Declaration

    Swift

    public enum Status : String, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum RideType : String, Codable
  • Undocumented

    Declaration

    Swift

    public typealias Identifier = String
  • id

    Undocumented

    Declaration

    Swift

    public let id: Identifier
  • Undocumented

    Declaration

    Swift

    public let name: String
  • Undocumented

    Declaration

    Swift

    public let details: String
  • Price in cents

    Declaration

    Swift

    public let price: Int?
  • Undocumented

    Declaration

    Swift

    public let currencyCode: String?
  • Number of tickets to pre-select, can also be used to define how many tickets to purchase for this fare

    Declaration

    Swift

    public var amount: Int?
  • max

    Maximum number of tickets that can be purchased of this fare

    Declaration

    Swift

    public var max: Int?
  • list of riders under the fare for filtering purposes

    Declaration

    Swift

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

    Declaration

    Swift

    public var rider: TKBooking.Rider?
  • Undocumented

    Declaration

    Swift

    public let status: Status?
  • Undocumented

    Declaration

    Swift

    public let type: RideType?
  • Undocumented

    See more

    Declaration

    Swift

    public enum CodingKeys : String, CodingKey
  • Undocumented

    See more

    Declaration

    Swift

    public enum InputValue : Hashable

Helpers

  • Undocumented

    Declaration

    Swift

    public func priceValue(locale: Locale = .current) -> String?
  • Undocumented

    Declaration

    Swift

    public func noAmount() -> Bool