cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
144 lines (121 loc) • 7.81 kB
JavaScript
/**
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.38
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/Ptsv1pullfundstransferProcessingInformationFundingOptions', 'model/Ptsv1pullfundstransferProcessingInformationPayoutsOptions', 'model/Ptsv1pullfundstransferProcessingInformationRecurringOptions'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./Ptsv1pullfundstransferProcessingInformationFundingOptions'), require('./Ptsv1pullfundstransferProcessingInformationPayoutsOptions'), require('./Ptsv1pullfundstransferProcessingInformationRecurringOptions'));
} else {
// Browser globals (root is window)
if (!root.CyberSource) {
root.CyberSource = {};
}
root.CyberSource.Ptsv1pullfundstransferProcessingInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv1pullfundstransferProcessingInformationFundingOptions, root.CyberSource.Ptsv1pullfundstransferProcessingInformationPayoutsOptions, root.CyberSource.Ptsv1pullfundstransferProcessingInformationRecurringOptions);
}
}(this, function(ApiClient, Ptsv1pullfundstransferProcessingInformationFundingOptions, Ptsv1pullfundstransferProcessingInformationPayoutsOptions, Ptsv1pullfundstransferProcessingInformationRecurringOptions) {
'use strict';
/**
* The Ptsv1pullfundstransferProcessingInformation model module.
* @module model/Ptsv1pullfundstransferProcessingInformation
* @version 0.0.1
*/
/**
* Constructs a new <code>Ptsv1pullfundstransferProcessingInformation</code>.
* @alias module:model/Ptsv1pullfundstransferProcessingInformation
* @class
* @param businessApplicationId {String} Payouts transaction type. Possible Values: - `AA` = Account to account - `PP` = Person to person - `TU` = Top-up for enhanced prepaid loads - `WT` = Wallet transfer - `BI` = Bank-Initiated - `FT` = Funds Transfer - `FD` = Funds Disbursement - `MP` = Merchant Payment - `PD` = Payroll Disbursement - `LA` = Liquid Assets
*/
var exports = function(businessApplicationId) {
var _this = this;
_this['businessApplicationId'] = businessApplicationId;
};
/**
* Constructs a <code>Ptsv1pullfundstransferProcessingInformation</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Ptsv1pullfundstransferProcessingInformation} obj Optional instance to populate.
* @return {module:model/Ptsv1pullfundstransferProcessingInformation} The populated <code>Ptsv1pullfundstransferProcessingInformation</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('commerceIndicator')) {
obj['commerceIndicator'] = ApiClient.convertToType(data['commerceIndicator'], 'String');
}
if (data.hasOwnProperty('fundingOptions')) {
obj['fundingOptions'] = Ptsv1pullfundstransferProcessingInformationFundingOptions.constructFromObject(data['fundingOptions']);
}
if (data.hasOwnProperty('recurringOptions')) {
obj['recurringOptions'] = Ptsv1pullfundstransferProcessingInformationRecurringOptions.constructFromObject(data['recurringOptions']);
}
if (data.hasOwnProperty('businessApplicationId')) {
obj['businessApplicationId'] = ApiClient.convertToType(data['businessApplicationId'], 'String');
}
if (data.hasOwnProperty('purposeOfPayment')) {
obj['purposeOfPayment'] = ApiClient.convertToType(data['purposeOfPayment'], 'String');
}
if (data.hasOwnProperty('payoutsOptions')) {
obj['payoutsOptions'] = Ptsv1pullfundstransferProcessingInformationPayoutsOptions.constructFromObject(data['payoutsOptions']);
}
if (data.hasOwnProperty('languageCode')) {
obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String');
}
if (data.hasOwnProperty('accountVerificationCode')) {
obj['accountVerificationCode'] = ApiClient.convertToType(data['accountVerificationCode'], ['String']);
}
}
return obj;
}
/**
* Type of transaction. This field identifies the level of security used in an electronic commerce transaction over an open network (for example, the internet). Values for a Payouts transaction: `INTERNET`, `RECURRING`, `RECURRING_INTERNET`, `VBV_FAILURE`, `VBV_ATTEMPTED`, `VBV`, `SPA_FAILURE`, `SPA_ATTEMPTED`, `SPA` If no value is entered this field will set a default value = `INTERNET`.
* @member {String} commerceIndicator
*/
exports.prototype['commerceIndicator'] = undefined;
/**
* @member {module:model/Ptsv1pullfundstransferProcessingInformationFundingOptions} fundingOptions
*/
exports.prototype['fundingOptions'] = undefined;
/**
* @member {module:model/Ptsv1pullfundstransferProcessingInformationRecurringOptions} recurringOptions
*/
exports.prototype['recurringOptions'] = undefined;
/**
* Payouts transaction type. Possible Values: - `AA` = Account to account - `PP` = Person to person - `TU` = Top-up for enhanced prepaid loads - `WT` = Wallet transfer - `BI` = Bank-Initiated - `FT` = Funds Transfer - `FD` = Funds Disbursement - `MP` = Merchant Payment - `PD` = Payroll Disbursement - `LA` = Liquid Assets
* @member {String} businessApplicationId
*/
exports.prototype['businessApplicationId'] = undefined;
/**
* Visa Direct Purpose of payment is required in certain markets to clearly identify the purpose of the payment based on the standard values defined for respective market.
* @member {String} purposeOfPayment
*/
exports.prototype['purposeOfPayment'] = undefined;
/**
* @member {module:model/Ptsv1pullfundstransferProcessingInformationPayoutsOptions} payoutsOptions
*/
exports.prototype['payoutsOptions'] = undefined;
/**
* Contains the ISO 639-2 defined language Code
* @member {String} languageCode
*/
exports.prototype['languageCode'] = undefined;
/**
* Account verification code will inform what Payment Account Verification should be performed. With this array of codes, a merchant can choose à la carte what verifications to run. This field is optional, and the default is 1 if it is not passed in. This means that a full validation of the fields will be performed. Valid verification codes: - `1` = Full Account Verification (Card Account, CVN, CAVV, TAVV, Address, Name, eMail, Phone, Identity) - `2` = Card Account Verification - `3` = Address Verification - `4` = Card Authentication Method (CAM) (Cryptogram) - `5` = Cardholder Authentication Verification (CAVV) - `6` = Cardholder Identity Verification - `7` = CVV2 Verification - `8` = eMail Verification - `9` = Name Verification - `10` = Phone Verification
* @member {Array.<String>} accountVerificationCode
*/
exports.prototype['accountVerificationCode'] = undefined;
return exports;
}));