amadeus4dev/amadeus-node

View on GitHub
src/amadeus/namespaces/ordering/transfer_orders/transfers.js

Summary

Maintainability
A
1 hr
Test Coverage
import Cancellation from './transfers/cancellation';

/**
 * A namespaced client for the
 * `/v1/ordering/transfer-orders/XXXXX/transfers` endpoints
 *
 * Access via the {@link Amadeus} object
 *
 * ```js
 * let amadeus = new Amadeus();
 * amadeus.ordering.transferOrders('XXX').transfers;
 * ```
 *
 * @param {Client} client
 */
class Transfers {
  constructor(client, orderId) {
    this.client = client;
    this.orderId = orderId;
    this.cancellation = new Cancellation(client, orderId);
  }
}

export default Transfers;