mangopay4-nodejs-sdk
Version:
Mangopay Node.js SDK
45 lines (41 loc) • 1.42 kB
JavaScript
const _ = require('underscore');
const Transaction = require('./Transaction');
const 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,
/**
* AuthenticationResult
*/
AuthenticationResult: null,
/**
* Information about the payment flow and its Beneficiaries.
*/
FlowDescriptor: null
}),
getReadOnlyProperties: function() {
const properties = Transaction.prototype.getReadOnlyProperties();
properties.push('PaymentType', 'ExecutionType');
return properties;
}
});
module.exports = PayIn;