FlightBooking

public struct FlightBooking : Decodable, Equatable

Represents information about user’s flight booking. When user adds a flight it is stored as a FlightBooking.

  • Declaration

    Swift

    public static func == (lhs: FlightBooking, rhs: FlightBooking) -> Bool
  • id

    The FlightBooking unique identifier

    Declaration

    Swift

    public let id: String
  • The traveler’s ID who added this FlightBooking

    Declaration

    Swift

    public let travelerId: String
  • The Flight for this FlightBooking

    Declaration

    Swift

    public let flight: Flight
  • The booking reference number. Won’t always be available.

    Declaration

    Swift

    public let bookingReferenceNumber: String?
  • The date when this FlightBooking was added

    Declaration

    Swift

    public let addedOn: Date
  • Declaration

    Swift

    public init(from decoder: Decoder) throws