Segment

public Segment Segment(String segmentId, Integer departureArrivalDayDifference, Map<String, FlightsV3Link> links, OfferPrice price, Boolean includesNonFlightLeg, List<Leg> legs, List<FlightsV3BaggageFee> baggageFees, String accountCode, Boolean basicEconomy, Integer seatsLeft, Segment.FareType fareType, Boolean airportChange, Integer totalStops, String flightDuration, String opaqueDepartureTime, String opaqueNumberOfStops)

Parameters

segmentId

Unique identifier for a single flight segment. Shown in case of opaque flight offer as well. Can be alphanumeric or numeric.

departureArrivalDayDifference

This is an indicator (can have values of -1, 0, 1, 2, etc.) which depends on the relative difference between the arrival and departure dates.

links

Container for deeplink URL information.

price
includesNonFlightLeg

True if any Leg associated with this Segment is via a non-flight type of transit (Bus, Train or Boat)

legs

Container information on each flight leg.

baggageFees

Container for baggage fee information of each bag type. The baggage fee can vary for each bag type. The amount can be zero, fixed amount or will be in a range.

accountCode

Lists any Account Code that has been applied to this segment.

basicEconomy

True if the corresponding fare ticket type associated with the segment is Basic Economy

seatsLeft

Remaining number of seats available for this segment offer.

fareType

Type of fare.

airportChange

True if there the Segment is having a different Departure airport compared to the Arrival airport of previous Segment.

totalStops

The total number of stops in this segment(Nullable in case of Opaque Flights)

flightDuration

Total duration of the flight segment (Nullable in case of Opaque Flights)

opaqueDepartureTime

Contains the name of the Fare tagged against the specific fare options.

opaqueNumberOfStops

Departure time range will be shown only for opaque flight offers.