UNPKG

mangopay4-nodejs-sdk

Version:

Mangopay Node.js SDK

24 lines (21 loc) • 694 B
const _ = require('underscore'); const Transaction = require('./Transaction'); const PayOut = Transaction.extend({ defaults: _.extend({}, Transaction.prototype.defaults, { DebitedWalletId: null, /** * PaymentType (BANK_WIRE, MERCHANT_EXPENSE, AMAZON_GIFTCARD) */ PaymentType: null, /** * One of PayOutPaymentDetails implementations, depending on PaymentType */ MeanOfPaymentDetails: null }), getReadOnlyProperties: function() { const properties = Transaction.prototype.getReadOnlyProperties(); properties.push('PaymentType'); return properties; } }); module.exports = PayOut;