com.amadeus.Ordering Maven / Gradle / Ivy
package com.amadeus;
import com.amadeus.ordering.TransferOrder;
import com.amadeus.ordering.TransferOrders;
/**
*
* A namespaced client for the
* /v1/ordering
endpoints.
*
*
*
* Access via the Amadeus client object.
*
*
*
* Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
* amadeus.ordering;
*
* @hide
*/
public class Ordering {
private Amadeus client;
/**
*
* A namespaced client for the
* /v1/ordering/transfer-orders
endpoints.
*
*/
public TransferOrders transferOrders;
/**
*
* A namespaced client for the
* /v1/ordering/transafer-orders/:orderId
endpoints.
*
*/
public TransferOrder transferOrder(String orderId) {
return new TransferOrder(client, orderId);
}
/**
* Constructor.
* @hide
*/
public Ordering(Amadeus client) {
this.transferOrders = new TransferOrders(client);
this.client = client;
}
}