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

com.amadeus.shopping.Hotel Maven / Gradle / Ivy

package com.amadeus.shopping;

import com.amadeus.Amadeus;
import com.amadeus.shopping.hotel.HotelOffers;
import com.amadeus.shopping.hotel.Offer;

/**
 * 

* A namespaced client for the * /v1/shopping/hotels endpoints. *

* *

* Access via the Amadeus client object. *

* *
 * Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
 * amadeus.shopping.hotel("SMPARCOL");
*/ public class Hotel { private Amadeus client; private String hotelId; /** *

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

*/ public HotelOffers hotelOffers; /** * Constructor. * @hide */ public Hotel(Amadeus client, String hotelId) { this.client = client; this.hotelId = hotelId; this.hotelOffers = new HotelOffers(client, hotelId); } /** *

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

*/ public Offer offer(String offerId) { return new Offer(client, hotelId, offerId); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy