cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
92 lines (74 loc) • 4.37 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/PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurationsProcessors'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurationsProcessors'));
} else {
// Browser globals (root is window)
if (!root.CyberSource) {
root.CyberSource = {};
}
root.CyberSource.PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations = factory(root.CyberSource.ApiClient, root.CyberSource.PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurationsProcessors);
}
}(this, function(ApiClient, PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurationsProcessors) {
'use strict';
/**
* The PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations model module.
* @module model/PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations
* @version 0.0.1
*/
/**
* Constructs a new <code>PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations</code>.
* @alias module:model/PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations</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/PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations} obj Optional instance to populate.
* @return {module:model/PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations} The populated <code>PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurations</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('merchantCategoryCode')) {
obj['merchantCategoryCode'] = ApiClient.convertToType(data['merchantCategoryCode'], 'String');
}
if (data.hasOwnProperty('processors')) {
obj['processors'] = ApiClient.convertToType(data['processors'], {'String': PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurationsProcessors});
}
}
return obj;
}
/**
* Merchant Category Code (MCC) is a four-digit number assigned to a business by credit card companies when the business first starts accepting credit cards as a form of payment. The MCC is used to classify the business by the type of goods or services it provides.
* @member {String} merchantCategoryCode
*/
exports.prototype['merchantCategoryCode'] = undefined;
/**
* This is a map. The allowed keys are below. Value should be an object containing a sole boolean property - enabled. <table> <tr> <td>klarna</td> </tr> <tr> <td>payPal</td> </tr> <tr> <td>alipay</td> </tr> <tr> <td>bancontact</td> </tr> <tr> <td>giropay</td> </tr> <tr> <td>ideal</td> </tr> </table>
* @member {Object.<String, module:model/PaymentsProductsAlternativePaymentMethodsConfigurationInformationConfigurationsProcessors>} processors
*/
exports.prototype['processors'] = undefined;
return exports;
}));