Leg

public Leg Leg(FlightsV3Airport departureAirport, FlightsV3Airport arrivalAirport, OffsetDateTime departureDateTime, OffsetDateTime arrivalDateTime, String flightNumber, String marketingAirlineCode, String flightDuration, Boolean seatMapAvailable, String bookingCode, Leg.CabinClass cabinClass, String statusCode, Map<String, FlightsV3Link> links, String marketingAirlineName, String operatingAirlineCode, String operatingAirlineName, String equipmentCode, String flightOnTimePercentage, String equipmentName, String connectionTime, String operationalDisclosure, FlightsV3Distance flightDistance, Boolean equipmentChange, List<String> loungeKeys, String fareBasisCode, List<String> mealOptions, Amenities amenities)

Parameters

departureAirport
arrivalAirport
departureDateTime

Flight departure date and time in ISO 8601 format

arrivalDateTime

Flight landing date and time in ISO 8601 format

flightNumber

Flight Number assigned by Carrier.

marketingAirlineCode

The two-letter code of the Airline that is marketing the flight.

flightDuration

The total travel duration for this leg, expressed in ISO 8601 standard.

seatMapAvailable

If True seat map is available

bookingCode

Carrier-specific code used for booking (class of service).

cabinClass

Class of service for the air leg.

statusCode

Air segment status.

links

Container for deeplink URL information.

marketingAirlineName

The display name of the Airline that is marketing the flight.

operatingAirlineCode

The two-letter code of the Airline actually operating the plane.

operatingAirlineName

The display name of the airline actually operating the plane.

equipmentCode

IATA Equipment type codes.

flightOnTimePercentage

Percentage of time that this flight on time.

equipmentName

The name of equipment that is scheduled for the flight.

connectionTime

Connection time between current leg flight landed time to next flight departure time, expressed in ISO 8601 standard.

operationalDisclosure

OperationalDisclosure.

flightDistance
equipmentChange

True if the upcoming travel Leg will have different equipment (airplane) compared to the previous Leg.

loungeKeys

List of keys referring to lounge details for the particular leg.

fareBasisCode

Fare Basis Code for the corresponding Leg of Flight Offer.

mealOptions

Different meal options available in this particular Leg.

amenities