UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

138 lines (115 loc) 4.36 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'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.ReportingV3PurchaseRefundDetailsGet200ResponseOthers = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The ReportingV3PurchaseRefundDetailsGet200ResponseOthers model module. * @module model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers * @version 0.0.1 */ /** * Constructs a new <code>ReportingV3PurchaseRefundDetailsGet200ResponseOthers</code>. * Other Merchant Details Values. * @alias module:model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>ReportingV3PurchaseRefundDetailsGet200ResponseOthers</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/ReportingV3PurchaseRefundDetailsGet200ResponseOthers} obj Optional instance to populate. * @return {module:model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers} The populated <code>ReportingV3PurchaseRefundDetailsGet200ResponseOthers</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('requestId')) { obj['requestId'] = ApiClient.convertToType(data['requestId'], 'String'); } if (data.hasOwnProperty('merchantData1')) { obj['merchantData1'] = ApiClient.convertToType(data['merchantData1'], 'String'); } if (data.hasOwnProperty('merchantData2')) { obj['merchantData2'] = ApiClient.convertToType(data['merchantData2'], 'String'); } if (data.hasOwnProperty('merchantData3')) { obj['merchantData3'] = ApiClient.convertToType(data['merchantData3'], 'String'); } if (data.hasOwnProperty('merchantData4')) { obj['merchantData4'] = ApiClient.convertToType(data['merchantData4'], 'String'); } if (data.hasOwnProperty('firstName')) { obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String'); } if (data.hasOwnProperty('lastName')) { obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String'); } } return obj; } /** * An unique identification number assigned by CyberSource to identify the submitted request. * @member {String} requestId */ exports.prototype['requestId'] = undefined; /** * Merchant Defined Data * @member {String} merchantData1 */ exports.prototype['merchantData1'] = undefined; /** * Merchant Defined Data * @member {String} merchantData2 */ exports.prototype['merchantData2'] = undefined; /** * Merchant Defined Data * @member {String} merchantData3 */ exports.prototype['merchantData3'] = undefined; /** * Merchant Defined Data * @member {String} merchantData4 */ exports.prototype['merchantData4'] = undefined; /** * First Name * @member {String} firstName */ exports.prototype['firstName'] = undefined; /** * Last Name * @member {String} lastName */ exports.prototype['lastName'] = undefined; return exports; }));