FlightOrders
in package
A namespaced client for the "/v1/booking/flight-orders" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getBooking()->getFlightOrders();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- post() : FlightOrder
- Flight Create Orders API:
- postWithFlightOffersAndTravelers() : FlightOrder
- Flight Create Orders API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —post()
Flight Create Orders API:
public
post(string $body) : FlightOrder
The Flight Create Orders API allows you to perform flight booking.
$amadeus->getBooking()->getFlightOrders()->post($body);
Parameters
- $body : string
-
the parameters to send to the API as a String
Tags
Return values
FlightOrder —an API resource
postWithFlightOffersAndTravelers()
Flight Create Orders API:
public
postWithFlightOffersAndTravelers(array<string|int, mixed> $flightOffers, array<string|int, mixed> $travelers) : FlightOrder
The Flight Create Orders API allows you to perform flight booking.
$amadeus->getBooking()->getFlightOrders()->post($fightOffer, $travelers);
Parameters
- $flightOffers : array<string|int, mixed>
-
Lists of flight offers as FlightOffer[]
- $travelers : array<string|int, mixed>
-
List of travelers as TravelerElement[]
Tags
Return values
FlightOrder —an API resource