UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

155 lines (129 loc) 7.71 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/UnderwritingConfigurationBillingInformation', 'model/UnderwritingConfigurationClientReferenceInformation', 'model/UnderwritingConfigurationDepositInformation', 'model/UnderwritingConfigurationDeviceInformation', 'model/UnderwritingConfigurationFileAttachmentInformation', 'model/UnderwritingConfigurationMerchantApplication', 'model/UnderwritingConfigurationOrganizationInformation', 'model/UnderwritingConfigurationSaleRepresentativeInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./UnderwritingConfigurationBillingInformation'), require('./UnderwritingConfigurationClientReferenceInformation'), require('./UnderwritingConfigurationDepositInformation'), require('./UnderwritingConfigurationDeviceInformation'), require('./UnderwritingConfigurationFileAttachmentInformation'), require('./UnderwritingConfigurationMerchantApplication'), require('./UnderwritingConfigurationOrganizationInformation'), require('./UnderwritingConfigurationSaleRepresentativeInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.UnderwritingConfiguration = factory(root.CyberSource.ApiClient, root.CyberSource.UnderwritingConfigurationBillingInformation, root.CyberSource.UnderwritingConfigurationClientReferenceInformation, root.CyberSource.UnderwritingConfigurationDepositInformation, root.CyberSource.UnderwritingConfigurationDeviceInformation, root.CyberSource.UnderwritingConfigurationFileAttachmentInformation, root.CyberSource.UnderwritingConfigurationMerchantApplication, root.CyberSource.UnderwritingConfigurationOrganizationInformation, root.CyberSource.UnderwritingConfigurationSaleRepresentativeInformation); } }(this, function(ApiClient, UnderwritingConfigurationBillingInformation, UnderwritingConfigurationClientReferenceInformation, UnderwritingConfigurationDepositInformation, UnderwritingConfigurationDeviceInformation, UnderwritingConfigurationFileAttachmentInformation, UnderwritingConfigurationMerchantApplication, UnderwritingConfigurationOrganizationInformation, UnderwritingConfigurationSaleRepresentativeInformation) { 'use strict'; /** * The UnderwritingConfiguration model module. * @module model/UnderwritingConfiguration * @version 0.0.1 */ /** * Constructs a new <code>UnderwritingConfiguration</code>. * Underwriting configuration containing the complete VMES (Visa Merchant Evaluation Service) payload for merchant risk evaluation. * @alias module:model/UnderwritingConfiguration * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>UnderwritingConfiguration</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/UnderwritingConfiguration} obj Optional instance to populate. * @return {module:model/UnderwritingConfiguration} The populated <code>UnderwritingConfiguration</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = UnderwritingConfigurationClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('merchantApplication')) { obj['merchantApplication'] = UnderwritingConfigurationMerchantApplication.constructFromObject(data['merchantApplication']); } if (data.hasOwnProperty('metadata')) { obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); } if (data.hasOwnProperty('metadataExternal')) { obj['metadataExternal'] = ApiClient.convertToType(data['metadataExternal'], Object); } if (data.hasOwnProperty('organizationInformation')) { obj['organizationInformation'] = UnderwritingConfigurationOrganizationInformation.constructFromObject(data['organizationInformation']); } if (data.hasOwnProperty('deviceInformation')) { obj['deviceInformation'] = UnderwritingConfigurationDeviceInformation.constructFromObject(data['deviceInformation']); } if (data.hasOwnProperty('depositInformation')) { obj['depositInformation'] = UnderwritingConfigurationDepositInformation.constructFromObject(data['depositInformation']); } if (data.hasOwnProperty('billingInformation')) { obj['billingInformation'] = UnderwritingConfigurationBillingInformation.constructFromObject(data['billingInformation']); } if (data.hasOwnProperty('saleRepresentativeInformation')) { obj['saleRepresentativeInformation'] = UnderwritingConfigurationSaleRepresentativeInformation.constructFromObject(data['saleRepresentativeInformation']); } if (data.hasOwnProperty('fileAttachmentInformation')) { obj['fileAttachmentInformation'] = UnderwritingConfigurationFileAttachmentInformation.constructFromObject(data['fileAttachmentInformation']); } } return obj; } /** * @member {module:model/UnderwritingConfigurationClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/UnderwritingConfigurationMerchantApplication} merchantApplication */ exports.prototype['merchantApplication'] = undefined; /** * @member {Object} metadata */ exports.prototype['metadata'] = undefined; /** * @member {Object} metadataExternal */ exports.prototype['metadataExternal'] = undefined; /** * @member {module:model/UnderwritingConfigurationOrganizationInformation} organizationInformation */ exports.prototype['organizationInformation'] = undefined; /** * @member {module:model/UnderwritingConfigurationDeviceInformation} deviceInformation */ exports.prototype['deviceInformation'] = undefined; /** * @member {module:model/UnderwritingConfigurationDepositInformation} depositInformation */ exports.prototype['depositInformation'] = undefined; /** * @member {module:model/UnderwritingConfigurationBillingInformation} billingInformation */ exports.prototype['billingInformation'] = undefined; /** * @member {module:model/UnderwritingConfigurationSaleRepresentativeInformation} saleRepresentativeInformation */ exports.prototype['saleRepresentativeInformation'] = undefined; /** * @member {module:model/UnderwritingConfigurationFileAttachmentInformation} fileAttachmentInformation */ exports.prototype['fileAttachmentInformation'] = undefined; return exports; }));