UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

138 lines (114 loc) 6.25 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/Ptsv2payoutsAggregatorInformation', 'model/Ptsv2payoutsClientReferenceInformation', 'model/Ptsv2payoutsMerchantInformation', 'model/Ptsv2payoutsOrderInformation', 'model/Ptsv2payoutsPaymentInformation', 'model/Ptsv2payoutsProcessingInformation', 'model/Ptsv2payoutsRecipientInformation', 'model/Ptsv2payoutsSenderInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Ptsv2payoutsAggregatorInformation'), require('./Ptsv2payoutsClientReferenceInformation'), require('./Ptsv2payoutsMerchantInformation'), require('./Ptsv2payoutsOrderInformation'), require('./Ptsv2payoutsPaymentInformation'), require('./Ptsv2payoutsProcessingInformation'), require('./Ptsv2payoutsRecipientInformation'), require('./Ptsv2payoutsSenderInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.OctCreatePaymentRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2payoutsAggregatorInformation, root.CyberSource.Ptsv2payoutsClientReferenceInformation, root.CyberSource.Ptsv2payoutsMerchantInformation, root.CyberSource.Ptsv2payoutsOrderInformation, root.CyberSource.Ptsv2payoutsPaymentInformation, root.CyberSource.Ptsv2payoutsProcessingInformation, root.CyberSource.Ptsv2payoutsRecipientInformation, root.CyberSource.Ptsv2payoutsSenderInformation); } }(this, function(ApiClient, Ptsv2payoutsAggregatorInformation, Ptsv2payoutsClientReferenceInformation, Ptsv2payoutsMerchantInformation, Ptsv2payoutsOrderInformation, Ptsv2payoutsPaymentInformation, Ptsv2payoutsProcessingInformation, Ptsv2payoutsRecipientInformation, Ptsv2payoutsSenderInformation) { 'use strict'; /** * The OctCreatePaymentRequest model module. * @module model/OctCreatePaymentRequest * @version 0.0.1 */ /** * Constructs a new <code>OctCreatePaymentRequest</code>. * @alias module:model/OctCreatePaymentRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>OctCreatePaymentRequest</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/OctCreatePaymentRequest} obj Optional instance to populate. * @return {module:model/OctCreatePaymentRequest} The populated <code>OctCreatePaymentRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Ptsv2payoutsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('orderInformation')) { obj['orderInformation'] = Ptsv2payoutsOrderInformation.constructFromObject(data['orderInformation']); } if (data.hasOwnProperty('merchantInformation')) { obj['merchantInformation'] = Ptsv2payoutsMerchantInformation.constructFromObject(data['merchantInformation']); } if (data.hasOwnProperty('recipientInformation')) { obj['recipientInformation'] = Ptsv2payoutsRecipientInformation.constructFromObject(data['recipientInformation']); } if (data.hasOwnProperty('senderInformation')) { obj['senderInformation'] = Ptsv2payoutsSenderInformation.constructFromObject(data['senderInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Ptsv2payoutsProcessingInformation.constructFromObject(data['processingInformation']); } if (data.hasOwnProperty('paymentInformation')) { obj['paymentInformation'] = Ptsv2payoutsPaymentInformation.constructFromObject(data['paymentInformation']); } if (data.hasOwnProperty('aggregatorInformation')) { obj['aggregatorInformation'] = Ptsv2payoutsAggregatorInformation.constructFromObject(data['aggregatorInformation']); } } return obj; } /** * @member {module:model/Ptsv2payoutsClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Ptsv2payoutsOrderInformation} orderInformation */ exports.prototype['orderInformation'] = undefined; /** * @member {module:model/Ptsv2payoutsMerchantInformation} merchantInformation */ exports.prototype['merchantInformation'] = undefined; /** * @member {module:model/Ptsv2payoutsRecipientInformation} recipientInformation */ exports.prototype['recipientInformation'] = undefined; /** * @member {module:model/Ptsv2payoutsSenderInformation} senderInformation */ exports.prototype['senderInformation'] = undefined; /** * @member {module:model/Ptsv2payoutsProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; /** * @member {module:model/Ptsv2payoutsPaymentInformation} paymentInformation */ exports.prototype['paymentInformation'] = undefined; /** * @member {module:model/Ptsv2payoutsAggregatorInformation} aggregatorInformation */ exports.prototype['aggregatorInformation'] = undefined; return exports; }));