UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

138 lines (114 loc) 6.65 kB
/** * 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/Ptsv1pullfundstransferAggregatorInformation', 'model/Ptsv1pullfundstransferBuyerInformation', 'model/Ptsv1pullfundstransferClientReferenceInformation', 'model/Ptsv1pullfundstransferMerchantInformation', 'model/Ptsv1pullfundstransferOrderInformation', 'model/Ptsv1pullfundstransferProcessingInformation', 'model/Ptsv1pullfundstransferRecipientInformation', 'model/Ptsv1pullfundstransferSenderInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Ptsv1pullfundstransferAggregatorInformation'), require('./Ptsv1pullfundstransferBuyerInformation'), require('./Ptsv1pullfundstransferClientReferenceInformation'), require('./Ptsv1pullfundstransferMerchantInformation'), require('./Ptsv1pullfundstransferOrderInformation'), require('./Ptsv1pullfundstransferProcessingInformation'), require('./Ptsv1pullfundstransferRecipientInformation'), require('./Ptsv1pullfundstransferSenderInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.PullFundsRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv1pullfundstransferAggregatorInformation, root.CyberSource.Ptsv1pullfundstransferBuyerInformation, root.CyberSource.Ptsv1pullfundstransferClientReferenceInformation, root.CyberSource.Ptsv1pullfundstransferMerchantInformation, root.CyberSource.Ptsv1pullfundstransferOrderInformation, root.CyberSource.Ptsv1pullfundstransferProcessingInformation, root.CyberSource.Ptsv1pullfundstransferRecipientInformation, root.CyberSource.Ptsv1pullfundstransferSenderInformation); } }(this, function(ApiClient, Ptsv1pullfundstransferAggregatorInformation, Ptsv1pullfundstransferBuyerInformation, Ptsv1pullfundstransferClientReferenceInformation, Ptsv1pullfundstransferMerchantInformation, Ptsv1pullfundstransferOrderInformation, Ptsv1pullfundstransferProcessingInformation, Ptsv1pullfundstransferRecipientInformation, Ptsv1pullfundstransferSenderInformation) { 'use strict'; /** * The PullFundsRequest model module. * @module model/PullFundsRequest * @version 0.0.1 */ /** * Constructs a new <code>PullFundsRequest</code>. * @alias module:model/PullFundsRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PullFundsRequest</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/PullFundsRequest} obj Optional instance to populate. * @return {module:model/PullFundsRequest} The populated <code>PullFundsRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Ptsv1pullfundstransferClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('orderInformation')) { obj['orderInformation'] = Ptsv1pullfundstransferOrderInformation.constructFromObject(data['orderInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Ptsv1pullfundstransferProcessingInformation.constructFromObject(data['processingInformation']); } if (data.hasOwnProperty('recipientInformation')) { obj['recipientInformation'] = Ptsv1pullfundstransferRecipientInformation.constructFromObject(data['recipientInformation']); } if (data.hasOwnProperty('senderInformation')) { obj['senderInformation'] = Ptsv1pullfundstransferSenderInformation.constructFromObject(data['senderInformation']); } if (data.hasOwnProperty('buyerInformation')) { obj['buyerInformation'] = Ptsv1pullfundstransferBuyerInformation.constructFromObject(data['buyerInformation']); } if (data.hasOwnProperty('aggregatorInformation')) { obj['aggregatorInformation'] = Ptsv1pullfundstransferAggregatorInformation.constructFromObject(data['aggregatorInformation']); } if (data.hasOwnProperty('merchantInformation')) { obj['merchantInformation'] = Ptsv1pullfundstransferMerchantInformation.constructFromObject(data['merchantInformation']); } } return obj; } /** * @member {module:model/Ptsv1pullfundstransferClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Ptsv1pullfundstransferOrderInformation} orderInformation */ exports.prototype['orderInformation'] = undefined; /** * @member {module:model/Ptsv1pullfundstransferProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; /** * @member {module:model/Ptsv1pullfundstransferRecipientInformation} recipientInformation */ exports.prototype['recipientInformation'] = undefined; /** * @member {module:model/Ptsv1pullfundstransferSenderInformation} senderInformation */ exports.prototype['senderInformation'] = undefined; /** * @member {module:model/Ptsv1pullfundstransferBuyerInformation} buyerInformation */ exports.prototype['buyerInformation'] = undefined; /** * @member {module:model/Ptsv1pullfundstransferAggregatorInformation} aggregatorInformation */ exports.prototype['aggregatorInformation'] = undefined; /** * @member {module:model/Ptsv1pullfundstransferMerchantInformation} merchantInformation */ exports.prototype['merchantInformation'] = undefined; return exports; }));