public class HotelOffer
extends java.lang.Object
A namespaced client for the
/v2/shopping/hotel-offers/:offer_id endpoints.
Access via the Amadeus client object
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.shopping.HotelOffer(offerId);
| Constructor and Description |
|---|
HotelOffer(Amadeus client,
java.lang.String offerId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HotelOffer |
get()
Convenience method for calling
get without any parameters. |
HotelOffer |
get(Params params)
Returns details for a specific offer.
|
public HotelOffer(Amadeus client, java.lang.String offerId)
public HotelOffer get(Params params) throws ResponseException
Returns details for a specific offer.
amadeus.shopping.HotelOffer("XXX").get();params - the parameters to send to the APIResponseException - when an exception occurspublic HotelOffer get() throws ResponseException
get without any parameters.ResponseExceptioncom.amadeus.resources.HotelOffer#get()