amadeus4dev/amadeus-node

View on GitHub
src/amadeus/namespaces/ordering/transfer_order.js

Summary

Maintainability
A
1 hr
Test Coverage
import Transfers from './transfer_orders/transfers';

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

export default TransferOrder;