public class FlightOrder
extends java.lang.Object
A namespaced client for the
/v1/booking/flight-orders/:flightOrderId endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.booking.flightOrder;| Constructor and Description |
|---|
FlightOrder(Amadeus client,
java.lang.String flightOfferId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
delete()
Convenience method for calling
delete without any parameters. |
Response |
delete(Params params)
Allows you to cancel a flight order.
|
FlightOrder |
get()
Convenience method for calling
get without any parameters. |
FlightOrder |
get(Params params)
Allows you to manipulate a flight order.
|
public FlightOrder(Amadeus client, java.lang.String flightOfferId)
public FlightOrder get(Params params) throws ResponseException
Allows you to manipulate a flight order. The flightOfferId used is an example for educational purposes. In test enviromnent it's temporary.
FlightOrder order = amadeus.booking.flightOrder.( "eJzTd9f3NjIJdzUGAAp%2fAiY=").get();
params - the parameters to send to the APIResponseException - when an exception occurspublic FlightOrder get() throws ResponseException
get without any parameters.ResponseExceptionget()public Response delete(Params params) throws ResponseException
Allows you to cancel a flight order. The flightOfferId used is an example for educational purposes. In test enviromnent it's temporary.
Response order = amadeus.booking.flightOrder.( "eJzTd9f3NjIJdzUGAAp%2fAiY=").delete();
params - the parameters to send to the APIResponseException - when an exception occurspublic Response delete() throws ResponseException
delete without any parameters.ResponseExceptiondelete()