UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

154 lines (128 loc) 8.11 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/Upv1capturecontextsDataBuyerInformation', 'model/Upv1capturecontextsDataClientReferenceInformation', 'model/Upv1capturecontextsDataConsumerAuthenticationInformation', 'model/Upv1capturecontextsDataDeviceInformation', 'model/Upv1capturecontextsDataMerchantDefinedInformation', 'model/Upv1capturecontextsDataMerchantInformation', 'model/Upv1capturecontextsDataOrderInformation', 'model/Upv1capturecontextsDataPaymentInformation', 'model/Upv1capturecontextsDataProcessingInformation', 'model/Upv1capturecontextsDataRecipientInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Upv1capturecontextsDataBuyerInformation'), require('./Upv1capturecontextsDataClientReferenceInformation'), require('./Upv1capturecontextsDataConsumerAuthenticationInformation'), require('./Upv1capturecontextsDataDeviceInformation'), require('./Upv1capturecontextsDataMerchantDefinedInformation'), require('./Upv1capturecontextsDataMerchantInformation'), require('./Upv1capturecontextsDataOrderInformation'), require('./Upv1capturecontextsDataPaymentInformation'), require('./Upv1capturecontextsDataProcessingInformation'), require('./Upv1capturecontextsDataRecipientInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Upv1capturecontextsData = factory(root.CyberSource.ApiClient, root.CyberSource.Upv1capturecontextsDataBuyerInformation, root.CyberSource.Upv1capturecontextsDataClientReferenceInformation, root.CyberSource.Upv1capturecontextsDataConsumerAuthenticationInformation, root.CyberSource.Upv1capturecontextsDataDeviceInformation, root.CyberSource.Upv1capturecontextsDataMerchantDefinedInformation, root.CyberSource.Upv1capturecontextsDataMerchantInformation, root.CyberSource.Upv1capturecontextsDataOrderInformation, root.CyberSource.Upv1capturecontextsDataPaymentInformation, root.CyberSource.Upv1capturecontextsDataProcessingInformation, root.CyberSource.Upv1capturecontextsDataRecipientInformation); } }(this, function(ApiClient, Upv1capturecontextsDataBuyerInformation, Upv1capturecontextsDataClientReferenceInformation, Upv1capturecontextsDataConsumerAuthenticationInformation, Upv1capturecontextsDataDeviceInformation, Upv1capturecontextsDataMerchantDefinedInformation, Upv1capturecontextsDataMerchantInformation, Upv1capturecontextsDataOrderInformation, Upv1capturecontextsDataPaymentInformation, Upv1capturecontextsDataProcessingInformation, Upv1capturecontextsDataRecipientInformation) { 'use strict'; /** * The Upv1capturecontextsData model module. * @module model/Upv1capturecontextsData * @version 0.0.1 */ /** * Constructs a new <code>Upv1capturecontextsData</code>. * @alias module:model/Upv1capturecontextsData * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Upv1capturecontextsData</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/Upv1capturecontextsData} obj Optional instance to populate. * @return {module:model/Upv1capturecontextsData} The populated <code>Upv1capturecontextsData</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('orderInformation')) { obj['orderInformation'] = Upv1capturecontextsDataOrderInformation.constructFromObject(data['orderInformation']); } if (data.hasOwnProperty('buyerInformation')) { obj['buyerInformation'] = Upv1capturecontextsDataBuyerInformation.constructFromObject(data['buyerInformation']); } if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Upv1capturecontextsDataClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('consumerAuthenticationInformation')) { obj['consumerAuthenticationInformation'] = Upv1capturecontextsDataConsumerAuthenticationInformation.constructFromObject(data['consumerAuthenticationInformation']); } if (data.hasOwnProperty('merchantInformation')) { obj['merchantInformation'] = Upv1capturecontextsDataMerchantInformation.constructFromObject(data['merchantInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Upv1capturecontextsDataProcessingInformation.constructFromObject(data['processingInformation']); } if (data.hasOwnProperty('recipientInformation')) { obj['recipientInformation'] = Upv1capturecontextsDataRecipientInformation.constructFromObject(data['recipientInformation']); } if (data.hasOwnProperty('merchantDefinedInformation')) { obj['merchantDefinedInformation'] = Upv1capturecontextsDataMerchantDefinedInformation.constructFromObject(data['merchantDefinedInformation']); } if (data.hasOwnProperty('deviceInformation')) { obj['deviceInformation'] = Upv1capturecontextsDataDeviceInformation.constructFromObject(data['deviceInformation']); } if (data.hasOwnProperty('paymentInformation')) { obj['paymentInformation'] = Upv1capturecontextsDataPaymentInformation.constructFromObject(data['paymentInformation']); } } return obj; } /** * @member {module:model/Upv1capturecontextsDataOrderInformation} orderInformation */ exports.prototype['orderInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataBuyerInformation} buyerInformation */ exports.prototype['buyerInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataConsumerAuthenticationInformation} consumerAuthenticationInformation */ exports.prototype['consumerAuthenticationInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataMerchantInformation} merchantInformation */ exports.prototype['merchantInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataRecipientInformation} recipientInformation */ exports.prototype['recipientInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataMerchantDefinedInformation} merchantDefinedInformation */ exports.prototype['merchantDefinedInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataDeviceInformation} deviceInformation */ exports.prototype['deviceInformation'] = undefined; /** * @member {module:model/Upv1capturecontextsDataPaymentInformation} paymentInformation */ exports.prototype['paymentInformation'] = undefined; return exports; }));