public class FlightOrders
extends java.lang.Object
A namespaced client for the
/v1/booking/flight-orders endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.booking.flightOrders;
| Constructor and Description |
|---|
FlightOrders(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FlightOrder |
post()
Convenience method for calling
post without any parameters. |
FlightOrder |
post(FlightOfferSearch[] flightOffersSearches,
Traveler[] travelers)
The Flight Create Orders API allows you to perform flight booking.
|
FlightOrder |
post(FlightOfferSearch flightOffersSearch,
Traveler[] travelers)
The Flight Create Orders API allows you to perform flight booking.
|
FlightOrder |
post(FlightPrice flightPrice,
Traveler[] travelers)
The Flight Create Orders API allows you to perform flight booking.
|
FlightOrder |
post(com.google.gson.JsonObject body)
The Flight Create Orders API allows you to perform flight booking.
|
FlightOrder |
post(java.lang.String body)
The Flight Create Orders API allows you to perform flight booking.
|
public FlightOrders(Amadeus client)
public FlightOrder post(com.google.gson.JsonObject body) throws ResponseException
The Flight Create Orders API allows you to perform flight booking.
amadeus.booking.flightOrders.post(body);
body - the parameters to send to the API as a JSonObjectResponseException - when an exception occurspublic FlightOrder post(java.lang.String body) throws ResponseException
The Flight Create Orders API allows you to perform flight booking.
amadeus.booking.flightOrders.post(body);
body - the parameters to send to the API as a StringResponseException - when an exception occurspublic FlightOrder post(FlightOfferSearch[] flightOffersSearches, Traveler[] travelers) throws ResponseException
The Flight Create Orders API allows you to perform flight booking.
amadeus.booking.flightOrders.post(object);
flightOffersSearches - List of flight-offers as FlightOfferSearch[]travelers - List of travelers as Traveler[]ResponseException - when an exception occurspublic FlightOrder post(FlightOfferSearch flightOffersSearch, Traveler[] travelers) throws ResponseException
The Flight Create Orders API allows you to perform flight booking.
amadeus.booking.flightOrders.post(flightOfferSearch, traveler);
flightOffersSearch - a flight-offer as FlightOfferSearchtravelers - List of travelers as Traveler[]ResponseException - when an exception occurspublic FlightOrder post(FlightPrice flightPrice, Traveler[] travelers) throws ResponseException
The Flight Create Orders API allows you to perform flight booking.
amadeus.booking.flightOrders.post(flightOfferSearch, traveler);
flightPrice - a flight-offers-pricing as FlightPricetravelers - List of travelers as Traveler[]ResponseException - when an exception occurspublic FlightOrder post() throws ResponseException
post without any parameters.ResponseExceptionpost()