cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
91 lines (73 loc) • 3.36 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/Riskv1decisionsProcessorInformationAvs', 'model/Riskv1decisionsProcessorInformationCardVerification'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./Riskv1decisionsProcessorInformationAvs'), require('./Riskv1decisionsProcessorInformationCardVerification'));
} else {
// Browser globals (root is window)
if (!root.CyberSource) {
root.CyberSource = {};
}
root.CyberSource.Riskv1decisionsProcessorInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Riskv1decisionsProcessorInformationAvs, root.CyberSource.Riskv1decisionsProcessorInformationCardVerification);
}
}(this, function(ApiClient, Riskv1decisionsProcessorInformationAvs, Riskv1decisionsProcessorInformationCardVerification) {
'use strict';
/**
* The Riskv1decisionsProcessorInformation model module.
* @module model/Riskv1decisionsProcessorInformation
* @version 0.0.1
*/
/**
* Constructs a new <code>Riskv1decisionsProcessorInformation</code>.
* Contains information related to the payment processor.
* @alias module:model/Riskv1decisionsProcessorInformation
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>Riskv1decisionsProcessorInformation</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/Riskv1decisionsProcessorInformation} obj Optional instance to populate.
* @return {module:model/Riskv1decisionsProcessorInformation} The populated <code>Riskv1decisionsProcessorInformation</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('avs')) {
obj['avs'] = Riskv1decisionsProcessorInformationAvs.constructFromObject(data['avs']);
}
if (data.hasOwnProperty('cardVerification')) {
obj['cardVerification'] = Riskv1decisionsProcessorInformationCardVerification.constructFromObject(data['cardVerification']);
}
}
return obj;
}
/**
* @member {module:model/Riskv1decisionsProcessorInformationAvs} avs
*/
exports.prototype['avs'] = undefined;
/**
* @member {module:model/Riskv1decisionsProcessorInformationCardVerification} cardVerification
*/
exports.prototype['cardVerification'] = undefined;
return exports;
}));