UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

130 lines (107 loc) 5.9 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/Boardingv1registrationsDocumentInformation', 'model/Boardingv1registrationsOrganizationInformation', 'model/Boardingv1registrationsProductInformation', 'model/Boardingv1registrationsRegistrationInformation', 'model/InlineResponse2002IntegrationInformation', 'model/InlineResponse2013ProductInformationSetups'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Boardingv1registrationsDocumentInformation'), require('./Boardingv1registrationsOrganizationInformation'), require('./Boardingv1registrationsProductInformation'), require('./Boardingv1registrationsRegistrationInformation'), require('./InlineResponse2002IntegrationInformation'), require('./InlineResponse2013ProductInformationSetups')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.InlineResponse2002 = factory(root.CyberSource.ApiClient, root.CyberSource.Boardingv1registrationsDocumentInformation, root.CyberSource.Boardingv1registrationsOrganizationInformation, root.CyberSource.Boardingv1registrationsProductInformation, root.CyberSource.Boardingv1registrationsRegistrationInformation, root.CyberSource.InlineResponse2002IntegrationInformation, root.CyberSource.InlineResponse2013ProductInformationSetups); } }(this, function(ApiClient, Boardingv1registrationsDocumentInformation, Boardingv1registrationsOrganizationInformation, Boardingv1registrationsProductInformation, Boardingv1registrationsRegistrationInformation, InlineResponse2002IntegrationInformation, InlineResponse2013ProductInformationSetups) { 'use strict'; /** * The InlineResponse2002 model module. * @module model/InlineResponse2002 * @version 0.0.1 */ /** * Constructs a new <code>InlineResponse2002</code>. * @alias module:model/InlineResponse2002 * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>InlineResponse2002</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/InlineResponse2002} obj Optional instance to populate. * @return {module:model/InlineResponse2002} The populated <code>InlineResponse2002</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('registrationInformation')) { obj['registrationInformation'] = Boardingv1registrationsRegistrationInformation.constructFromObject(data['registrationInformation']); } if (data.hasOwnProperty('integrationInformation')) { obj['integrationInformation'] = InlineResponse2002IntegrationInformation.constructFromObject(data['integrationInformation']); } if (data.hasOwnProperty('organizationInformation')) { obj['organizationInformation'] = Boardingv1registrationsOrganizationInformation.constructFromObject(data['organizationInformation']); } if (data.hasOwnProperty('productInformation')) { obj['productInformation'] = Boardingv1registrationsProductInformation.constructFromObject(data['productInformation']); } if (data.hasOwnProperty('productInformationSetups')) { obj['productInformationSetups'] = ApiClient.convertToType(data['productInformationSetups'], [InlineResponse2013ProductInformationSetups]); } if (data.hasOwnProperty('documentInformation')) { obj['documentInformation'] = Boardingv1registrationsDocumentInformation.constructFromObject(data['documentInformation']); } if (data.hasOwnProperty('details')) { obj['details'] = ApiClient.convertToType(data['details'], {'String': [Object]}); } } return obj; } /** * @member {module:model/Boardingv1registrationsRegistrationInformation} registrationInformation */ exports.prototype['registrationInformation'] = undefined; /** * @member {module:model/InlineResponse2002IntegrationInformation} integrationInformation */ exports.prototype['integrationInformation'] = undefined; /** * @member {module:model/Boardingv1registrationsOrganizationInformation} organizationInformation */ exports.prototype['organizationInformation'] = undefined; /** * @member {module:model/Boardingv1registrationsProductInformation} productInformation */ exports.prototype['productInformation'] = undefined; /** * @member {Array.<module:model/InlineResponse2013ProductInformationSetups>} productInformationSetups */ exports.prototype['productInformationSetups'] = undefined; /** * @member {module:model/Boardingv1registrationsDocumentInformation} documentInformation */ exports.prototype['documentInformation'] = undefined; /** * @member {Object.<String, Array.<Object>>} details */ exports.prototype['details'] = undefined; return exports; }));