UNPKG

mangopay2-nodejs-sdk

Version:
37 lines (33 loc) 1.2 kB
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, /** * The unique reference generated for the profiling session, used by the fraud prevention solution to produce recommendations for the transaction using the profiling data. */ ProfilingAttemptReference: null }), getReadOnlyProperties: function() { var properties = Transaction.prototype.getReadOnlyProperties(); properties.push('PaymentType', 'ExecutionType'); return properties; } }); module.exports = PayIn;