braintree
Version:
A library for integrating with Braintree.
32 lines (22 loc) • 1.1 kB
JavaScript
//@ sourceMappingURL=disbursement_gateway.map
// Generated by CoffeeScript 1.6.1
var Disbursement, DisbursementGateway, Gateway,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Gateway = require('./gateway').Gateway;
Disbursement = require('./disbursement').Disbursement;
DisbursementGateway = (function(_super) {
__extends(DisbursementGateway, _super);
function DisbursementGateway(gateway) {
this.gateway = gateway;
}
DisbursementGateway.prototype.transactions = function(disbursement, callback) {
var transactionIds;
transactionIds = disbursement.transactionIds;
return this.gateway.transaction.search((function(search) {
return search.ids()["in"](transactionIds);
}), callback);
};
return DisbursementGateway;
})(Gateway);
exports.DisbursementGateway = DisbursementGateway;