cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
100 lines (83 loc) • 4.3 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/Bavsv1accountvalidationsClientReferenceInformation', 'model/Bavsv1accountvalidationsPaymentInformation', 'model/Bavsv1accountvalidationsProcessingInformation'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./Bavsv1accountvalidationsClientReferenceInformation'), require('./Bavsv1accountvalidationsPaymentInformation'), require('./Bavsv1accountvalidationsProcessingInformation'));
} else {
// Browser globals (root is window)
if (!root.CyberSource) {
root.CyberSource = {};
}
root.CyberSource.AccountValidationsRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Bavsv1accountvalidationsClientReferenceInformation, root.CyberSource.Bavsv1accountvalidationsPaymentInformation, root.CyberSource.Bavsv1accountvalidationsProcessingInformation);
}
}(this, function(ApiClient, Bavsv1accountvalidationsClientReferenceInformation, Bavsv1accountvalidationsPaymentInformation, Bavsv1accountvalidationsProcessingInformation) {
'use strict';
/**
* The AccountValidationsRequest model module.
* @module model/AccountValidationsRequest
* @version 0.0.1
*/
/**
* Constructs a new <code>AccountValidationsRequest</code>.
* @alias module:model/AccountValidationsRequest
* @class
* @param processingInformation {module:model/Bavsv1accountvalidationsProcessingInformation}
* @param paymentInformation {module:model/Bavsv1accountvalidationsPaymentInformation}
*/
var exports = function(processingInformation, paymentInformation) {
var _this = this;
_this['processingInformation'] = processingInformation;
_this['paymentInformation'] = paymentInformation;
};
/**
* Constructs a <code>AccountValidationsRequest</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/AccountValidationsRequest} obj Optional instance to populate.
* @return {module:model/AccountValidationsRequest} The populated <code>AccountValidationsRequest</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('clientReferenceInformation')) {
obj['clientReferenceInformation'] = Bavsv1accountvalidationsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']);
}
if (data.hasOwnProperty('processingInformation')) {
obj['processingInformation'] = Bavsv1accountvalidationsProcessingInformation.constructFromObject(data['processingInformation']);
}
if (data.hasOwnProperty('paymentInformation')) {
obj['paymentInformation'] = Bavsv1accountvalidationsPaymentInformation.constructFromObject(data['paymentInformation']);
}
}
return obj;
}
/**
* @member {module:model/Bavsv1accountvalidationsClientReferenceInformation} clientReferenceInformation
*/
exports.prototype['clientReferenceInformation'] = undefined;
/**
* @member {module:model/Bavsv1accountvalidationsProcessingInformation} processingInformation
*/
exports.prototype['processingInformation'] = undefined;
/**
* @member {module:model/Bavsv1accountvalidationsPaymentInformation} paymentInformation
*/
exports.prototype['paymentInformation'] = undefined;
return exports;
}));