All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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.HotelOffer;
import com.amadeus.shopping.HotelOfferSearch;
import com.amadeus.shopping.HotelOffers;
import com.amadeus.shopping.HotelOffersByHotel;
import com.amadeus.shopping.HotelOffersSearch;
import com.amadeus.shopping.SeatMaps;


/**
 * 

* 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 * /v2/shopping/hotel-offers endpoints. *

*/ public HotelOffers hotelOffers; /** *

* A namespaced client for the * /v3/shopping/hotel-offers endpoints. *

*/ public HotelOffersSearch hotelOffersSearch; /** *

* A namespaced client for the * /v2/shopping/hotel-offers/by-hotel endpoints. *

*/ public HotelOffersByHotel hotelOffersByHotel; /** *

* 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; /** * 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.hotelOffers = new HotelOffers(client); this.hotelOffersSearch = new HotelOffersSearch(client); this.hotelOffersByHotel = new HotelOffersByHotel(client); this.flightOffersSearch = new FlightOffersSearch(client); this.seatMaps = new SeatMaps(client); this.activities = new Activities(client); this.availability = new Availability(client); } /** *

* A namespaced client for the * /v1/shopping/hotel/:hotel_id endpoints. *

*/ public HotelOffer hotelOffer(String hotelId) { return new HotelOffer(client, hotelId); } /** *

* 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); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy