com.amadeus.Shopping Maven / Gradle / Ivy
package com.amadeus;
import com.amadeus.shopping.Activities;
import com.amadeus.shopping.Activity;
import com.amadeus.shopping.Availability;
import com.amadeus.shopping.FlightDates;
import com.amadeus.shopping.FlightDestinations;
import com.amadeus.shopping.FlightOffers;
import com.amadeus.shopping.FlightOffersSearch;
import com.amadeus.shopping.HotelOfferSearch;
import com.amadeus.shopping.HotelOffersSearch;
import com.amadeus.shopping.SeatMaps;
import com.amadeus.shopping.TransferOffers;
/**
*
* A namespaced client for the
* /v2/travel
endpoints.
*
*
*
* Access via the Amadeus client object.
*
*
*
* Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
* amadeus.travel;
*
* @hide
*/
public class Shopping {
private Amadeus client;
/**
*
* A namespaced client for the
* /v1/shopping/flight-dates
endpoints.
*
*/
public FlightDates flightDates;
/**
*
* A namespaced client for the
* /v1/shopping/flight-destinations
endpoints.
*
*/
public FlightDestinations flightDestinations;
/**
*
* A namespaced client for the
* /v1/shopping/flight-offers
endpoints.
*
*/
public FlightOffers flightOffers;
/**
*
* A namespaced client for the
* /v2/shopping/flight-offers
endpoints.
*
*/
public FlightOffersSearch flightOffersSearch;
/**
*
* A namespaced client for the
* /v3/shopping/hotel-offers
endpoints.
*
*/
public HotelOffersSearch hotelOffersSearch;
/**
*
* A namespaced client for the
* /v1/shopping/seatmaps
endpoints.
*
*/
public SeatMaps seatMaps;
/**
*
* A namespaced client for the
* /v1/shopping/activities
endpoints.
*
*/
public Activity activity;
/**
*
* A namespaced client for the
* /v1/shopping/activities
endpoints.
*
*/
public Activities activities;
/**
*
* A namespaced client for the
* /v1/shopping/availability
endpoints.
*
*/
public Availability availability;
/**
*
* A namespaced client for the
* /v1/shopping/transfer-offers
endpoints.
*
*/
public TransferOffers transferOffers;
/**
* Constructor.
* @hide
*/
public Shopping(Amadeus client) {
this.client = client;
this.flightDates = new FlightDates(client);
this.flightDestinations = new FlightDestinations(client);
this.flightOffers = new FlightOffers(client);
this.hotelOffersSearch = new HotelOffersSearch(client);
this.flightOffersSearch = new FlightOffersSearch(client);
this.seatMaps = new SeatMaps(client);
this.activities = new Activities(client);
this.availability = new Availability(client);
this.transferOffers = new TransferOffers(client);
}
/**
*
* A namespaced client for the
* /v3/shopping/hotel/:hotel_id
endpoints.
*
*/
public HotelOfferSearch hotelOfferSearch(String offerId) {
return new HotelOfferSearch(client, offerId);
}
/**
*
* A namespaced client for the
* /v1/shopping/activities/:activity_id
endpoints.
*
*/
public Activity activity(String activityId) {
return new Activity(client, activityId);
}
}