mangopay2-nodejs-sdk
Version:
Mangopay Node.js SDK
33 lines (29 loc) • 950 B
JavaScript
var _ = require('underscore');
var Transaction = require('./Transaction');
var PayIn = Transaction.extend({
defaults: _.extend({}, Transaction.prototype.defaults, {
CreditedWalletId: null,
/**
* PaymentType (CARD, BANK_WIRE, DIRECT_DEBIT, PREAUTHORIZED)
*/
PaymentType: null,
/**
* One of PayInPaymentDetails implementations, depending on PaymentType
*/
PaymentDetails: null,
/**
* ExecutionType (WEB, DIRECT, EXTERNAL_INSTRUCTION)
*/
ExecutionType: null,
/**
* One of PayInExecutionDetails implementations, depending on ExecutionType
*/
ExecutionDetails: null
}),
getReadOnlyProperties: function() {
var properties = Transaction.prototype.getReadOnlyProperties();
properties.push('PaymentType', 'ExecutionType');
return properties;
}
});
module.exports = PayIn;