UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

100 lines (81 loc) 3.92 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/PaymentsProductsPayoutsConfigurationInformationConfigurationsCommonAggregator'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./PaymentsProductsPayoutsConfigurationInformationConfigurationsCommonAggregator')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon = factory(root.CyberSource.ApiClient, root.CyberSource.PaymentsProductsPayoutsConfigurationInformationConfigurationsCommonAggregator); } }(this, function(ApiClient, PaymentsProductsPayoutsConfigurationInformationConfigurationsCommonAggregator) { 'use strict'; /** * The PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon model module. * @module model/PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon * @version 0.0.1 */ /** * Constructs a new <code>PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon</code>. * @alias module:model/PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon</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/PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon} obj Optional instance to populate. * @return {module:model/PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon} The populated <code>PaymentsProductsPayoutsConfigurationInformationConfigurationsCommon</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('paymentTypes')) { obj['paymentTypes'] = ApiClient.convertToType(data['paymentTypes'], ['String']); } if (data.hasOwnProperty('businessApplicationId')) { obj['businessApplicationId'] = ApiClient.convertToType(data['businessApplicationId'], ['String']); } if (data.hasOwnProperty('aggregator')) { obj['aggregator'] = PaymentsProductsPayoutsConfigurationInformationConfigurationsCommonAggregator.constructFromObject(data['aggregator']); } } return obj; } /** * List of card types supported by this merchant. * @member {Array.<String>} paymentTypes */ exports.prototype['paymentTypes'] = undefined; /** * List of supported Business Application Indicators. * @member {Array.<String>} businessApplicationId */ exports.prototype['businessApplicationId'] = undefined; /** * @member {module:model/PaymentsProductsPayoutsConfigurationInformationConfigurationsCommonAggregator} aggregator */ exports.prototype['aggregator'] = undefined; return exports; }));