UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

130 lines (107 loc) 6.3 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/Riskv1authenticationresultsConsumerAuthenticationInformation', 'model/Riskv1authenticationresultsDeviceInformation', 'model/Riskv1authenticationresultsOrderInformation', 'model/Riskv1authenticationresultsPaymentInformation', 'model/Riskv1authenticationsetupsClientReferenceInformation', 'model/Riskv1authenticationsetupsProcessingInformation', 'model/Riskv1decisionsTokenInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Riskv1authenticationresultsConsumerAuthenticationInformation'), require('./Riskv1authenticationresultsDeviceInformation'), require('./Riskv1authenticationresultsOrderInformation'), require('./Riskv1authenticationresultsPaymentInformation'), require('./Riskv1authenticationsetupsClientReferenceInformation'), require('./Riskv1authenticationsetupsProcessingInformation'), require('./Riskv1decisionsTokenInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.ValidateRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Riskv1authenticationresultsConsumerAuthenticationInformation, root.CyberSource.Riskv1authenticationresultsDeviceInformation, root.CyberSource.Riskv1authenticationresultsOrderInformation, root.CyberSource.Riskv1authenticationresultsPaymentInformation, root.CyberSource.Riskv1authenticationsetupsClientReferenceInformation, root.CyberSource.Riskv1authenticationsetupsProcessingInformation, root.CyberSource.Riskv1decisionsTokenInformation); } }(this, function(ApiClient, Riskv1authenticationresultsConsumerAuthenticationInformation, Riskv1authenticationresultsDeviceInformation, Riskv1authenticationresultsOrderInformation, Riskv1authenticationresultsPaymentInformation, Riskv1authenticationsetupsClientReferenceInformation, Riskv1authenticationsetupsProcessingInformation, Riskv1decisionsTokenInformation) { 'use strict'; /** * The ValidateRequest model module. * @module model/ValidateRequest * @version 0.0.1 */ /** * Constructs a new <code>ValidateRequest</code>. * @alias module:model/ValidateRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>ValidateRequest</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/ValidateRequest} obj Optional instance to populate. * @return {module:model/ValidateRequest} The populated <code>ValidateRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Riskv1authenticationsetupsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Riskv1authenticationsetupsProcessingInformation.constructFromObject(data['processingInformation']); } if (data.hasOwnProperty('orderInformation')) { obj['orderInformation'] = Riskv1authenticationresultsOrderInformation.constructFromObject(data['orderInformation']); } if (data.hasOwnProperty('paymentInformation')) { obj['paymentInformation'] = Riskv1authenticationresultsPaymentInformation.constructFromObject(data['paymentInformation']); } if (data.hasOwnProperty('consumerAuthenticationInformation')) { obj['consumerAuthenticationInformation'] = Riskv1authenticationresultsConsumerAuthenticationInformation.constructFromObject(data['consumerAuthenticationInformation']); } if (data.hasOwnProperty('deviceInformation')) { obj['deviceInformation'] = Riskv1authenticationresultsDeviceInformation.constructFromObject(data['deviceInformation']); } if (data.hasOwnProperty('tokenInformation')) { obj['tokenInformation'] = Riskv1decisionsTokenInformation.constructFromObject(data['tokenInformation']); } } return obj; } /** * @member {module:model/Riskv1authenticationsetupsClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Riskv1authenticationsetupsProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; /** * @member {module:model/Riskv1authenticationresultsOrderInformation} orderInformation */ exports.prototype['orderInformation'] = undefined; /** * @member {module:model/Riskv1authenticationresultsPaymentInformation} paymentInformation */ exports.prototype['paymentInformation'] = undefined; /** * @member {module:model/Riskv1authenticationresultsConsumerAuthenticationInformation} consumerAuthenticationInformation */ exports.prototype['consumerAuthenticationInformation'] = undefined; /** * @member {module:model/Riskv1authenticationresultsDeviceInformation} deviceInformation */ exports.prototype['deviceInformation'] = undefined; /** * @member {module:model/Riskv1decisionsTokenInformation} tokenInformation */ exports.prototype['tokenInformation'] = undefined; return exports; }));