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 -
The
FlightBookingunique identifierDeclaration
Swift
public let id: String -
The traveler’s ID who added this
FlightBookingDeclaration
Swift
public let travelerId: String -
The booking reference number. Won’t always be available.
Declaration
Swift
public let bookingReferenceNumber: String? -
The date when this
FlightBookingwas addedDeclaration
Swift
public let addedOn: Date -
Declaration
Swift
public init(from decoder: Decoder) throws
FlightBooking Structure Reference