Leg |
Leg.carrierCode(String carrierCode) |
The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that
identifies the carrier.
|
Leg |
Leg.classOfTravel(String classOfTravel) |
A one-letter travel class identifier.
|
Leg |
Leg.dateOfTravel(OffsetDateTime dateOfTravel) |
Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure
airport. * minLength: 16 characters * maxLength: 16 characters
|
Leg |
Leg.departureAirportCode(String departureAirportCode) |
The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the
departure airport.
|
Leg |
Leg.departureTax(Long departureTax) |
The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor
units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric *
minLength: 1 * maxLength: 11 * Must not be all zeros.
|
Leg |
Leg.destinationAirportCode(String destinationAirportCode) |
The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the
destination airport.
|
Leg |
Leg.fareBasisCode(String fareBasisCode) |
The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. *
minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all
spaces. * Must not be all zeros.
|
Leg |
Leg.flightNumber(String flightNumber) |
The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with
a space or be all spaces. * Must not be all zeros.
|
static Leg |
Leg.fromJson(String jsonString) |
Create an instance of Leg given an JSON string
|
Leg |
Leg.stopOverCode(String stopOverCode) |
A one-letter code that indicates whether the passenger is entitled to make a stopover.
|