types.js


/**
 * @global
 * @typedef {function(Error?, any=):void} cbType
 *
 */

/**
 * @global
 * @typedef {Object.<string, Object>} ctxType
 */

/**
 * @global
 * @typedef {Object} orderType
 * @property {string} id An identifier for the order.
 * @property {string} tid A transaction id for a captured order.
 * @property {string} user The requesting user.
 * @property {number} units Number of units requested.
 * @property {number} value Total cost in dollars.
 */