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