com.amadeus.Booking Maven / Gradle / Ivy
package com.amadeus;
import com.amadeus.booking.FlightOrder;
import com.amadeus.booking.FlightOrders;
import com.amadeus.booking.HotelBookings;
import com.amadeus.booking.HotelOrders;
public class Booking {
private Amadeus client;
/**
*
* A namespaced client for the
* /v1/booking/flightOrder
endpoints.
*
*/
public FlightOrder flightOrder;
/**
*
* A namespaced client for the
* /v1/booking/flightOrders
endpoints.
*
*/
public FlightOrders flightOrders;
/**
*
* A namespaced client for the
* /v1/booking/hotelBookings
endpoints.
*
*/
public HotelBookings hotelBookings;
/**
*
* A namespaced client for the
* /v2/booking/hotelOrders
endpoints.
*
*/
public HotelOrders hotelOrders;
/**
* Constructor.
* @hide
*/
public Booking(Amadeus client) {
this.client = client;
this.flightOrders = new FlightOrders(client);
this.hotelBookings = new HotelBookings(client);
this.hotelOrders = new HotelOrders(client);
}
public FlightOrder flightOrder(String flightOrderId) {
return new FlightOrder(client, flightOrderId);
}
}