Shopping
in package
A namespaced client for the "/shopping" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getShopping();
Table of Contents
- $activities : Activities
- A namespaced client for the "/v1/shopping/activities" endpoints.
- $amadeus : Amadeus
- $availability : Availability
- A namespaced client for the "/v1/shopping/availability" endpoints.
- $flightDates : FlightDates
- A namespaced client for the "/v1/shopping/flight-dates" endpoints.
- $flightDestinations : FlightDestinations
- A namespaced client for the "/v1/shopping/flight-destinations" endpoints.
- $flightOffers : FlightOffers
- A namespaced client for the "/v2/shopping/flight-offers" endpoints.
- $hotelOffers : HotelOffers
- A namespaced client for the "/v3/shopping/hotel-offers" endpoints.
- __construct() : mixed
- getActivities() : Activities
- Get a namespaced client for the "/v1/shopping/activities" endpoints.
- getActivity() : Activity
- Get a namespaced client for the "/v1/shopping/activities/:activity_id" endpoints.
- getAvailability() : Availability
- Get a namespaced client for the "/v1/shopping/availability" endpoints.
- getFlightDates() : FlightDates
- Get a namespaced client for the "/v1/shopping/flight-dates" endpoints.
- getFlightDestinations() : FlightDestinations
- Get a namespaced client for the "/v1/shopping/flight-destinations" endpoints.
- getFlightOffers() : FlightOffers
- Get a namespaced client for the "/v2/shopping/flight-offers" endpoints.
- getHotelOffer() : HotelOffer
- Get a namespaced client for the "/v3/shopping/hotel-offers/:offer_id" endpoints.
- getHotelOffers() : HotelOffers
- Get a namespaced client for the "/v3/shopping/hotel-offers" endpoints.
Properties
$activities
A namespaced client for the "/v1/shopping/activities" endpoints.
private
Activities
$activities
$amadeus
private
Amadeus
$amadeus
$availability
A namespaced client for the "/v1/shopping/availability" endpoints.
private
Availability
$availability
$flightDates
A namespaced client for the "/v1/shopping/flight-dates" endpoints.
private
FlightDates
$flightDates
$flightDestinations
A namespaced client for the "/v1/shopping/flight-destinations" endpoints.
private
FlightDestinations
$flightDestinations
$flightOffers
A namespaced client for the "/v2/shopping/flight-offers" endpoints.
private
FlightOffers
$flightOffers
$hotelOffers
A namespaced client for the "/v3/shopping/hotel-offers" endpoints.
private
HotelOffers
$hotelOffers
Methods
__construct()
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —getActivities()
Get a namespaced client for the "/v1/shopping/activities" endpoints.
public
getActivities() : Activities
Return values
Activities —getActivity()
Get a namespaced client for the "/v1/shopping/activities/:activity_id" endpoints.
public
getActivity(string $activityId) : Activity
Parameters
- $activityId : string
Return values
Activity —getAvailability()
Get a namespaced client for the "/v1/shopping/availability" endpoints.
public
getAvailability() : Availability
Return values
Availability —getFlightDates()
Get a namespaced client for the "/v1/shopping/flight-dates" endpoints.
public
getFlightDates() : FlightDates
Return values
FlightDates —getFlightDestinations()
Get a namespaced client for the "/v1/shopping/flight-destinations" endpoints.
public
getFlightDestinations() : FlightDestinations
Return values
FlightDestinations —getFlightOffers()
Get a namespaced client for the "/v2/shopping/flight-offers" endpoints.
public
getFlightOffers() : FlightOffers
Return values
FlightOffers —getHotelOffer()
Get a namespaced client for the "/v3/shopping/hotel-offers/:offer_id" endpoints.
public
getHotelOffer(string $offerId) : HotelOffer
Parameters
- $offerId : string
Return values
HotelOffer —getHotelOffers()
Get a namespaced client for the "/v3/shopping/hotel-offers" endpoints.
public
getHotelOffers() : HotelOffers