UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

146 lines (121 loc) 6.64 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/Ptsv2intentsClientReferenceInformation', 'model/Ptsv2intentsEventInformation', 'model/Ptsv2intentsMerchantInformation', 'model/Ptsv2intentsOrderInformation', 'model/Ptsv2intentsPaymentInformation', 'model/Ptsv2intentsProcessingInformation', 'model/Ptsv2intentsRecipientInformation', 'model/Ptsv2intentsSenderInformation', 'model/Ptsv2intentsTravelInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Ptsv2intentsClientReferenceInformation'), require('./Ptsv2intentsEventInformation'), require('./Ptsv2intentsMerchantInformation'), require('./Ptsv2intentsOrderInformation'), require('./Ptsv2intentsPaymentInformation'), require('./Ptsv2intentsProcessingInformation'), require('./Ptsv2intentsRecipientInformation'), require('./Ptsv2intentsSenderInformation'), require('./Ptsv2intentsTravelInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.CreateOrderRequest = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv2intentsClientReferenceInformation, root.CyberSource.Ptsv2intentsEventInformation, root.CyberSource.Ptsv2intentsMerchantInformation, root.CyberSource.Ptsv2intentsOrderInformation, root.CyberSource.Ptsv2intentsPaymentInformation, root.CyberSource.Ptsv2intentsProcessingInformation, root.CyberSource.Ptsv2intentsRecipientInformation, root.CyberSource.Ptsv2intentsSenderInformation, root.CyberSource.Ptsv2intentsTravelInformation); } }(this, function(ApiClient, Ptsv2intentsClientReferenceInformation, Ptsv2intentsEventInformation, Ptsv2intentsMerchantInformation, Ptsv2intentsOrderInformation, Ptsv2intentsPaymentInformation, Ptsv2intentsProcessingInformation, Ptsv2intentsRecipientInformation, Ptsv2intentsSenderInformation, Ptsv2intentsTravelInformation) { 'use strict'; /** * The CreateOrderRequest model module. * @module model/CreateOrderRequest * @version 0.0.1 */ /** * Constructs a new <code>CreateOrderRequest</code>. * @alias module:model/CreateOrderRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>CreateOrderRequest</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/CreateOrderRequest} obj Optional instance to populate. * @return {module:model/CreateOrderRequest} The populated <code>CreateOrderRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Ptsv2intentsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Ptsv2intentsProcessingInformation.constructFromObject(data['processingInformation']); } if (data.hasOwnProperty('merchantInformation')) { obj['merchantInformation'] = Ptsv2intentsMerchantInformation.constructFromObject(data['merchantInformation']); } if (data.hasOwnProperty('paymentInformation')) { obj['paymentInformation'] = Ptsv2intentsPaymentInformation.constructFromObject(data['paymentInformation']); } if (data.hasOwnProperty('orderInformation')) { obj['orderInformation'] = Ptsv2intentsOrderInformation.constructFromObject(data['orderInformation']); } if (data.hasOwnProperty('senderInformation')) { obj['senderInformation'] = Ptsv2intentsSenderInformation.constructFromObject(data['senderInformation']); } if (data.hasOwnProperty('eventInformation')) { obj['eventInformation'] = Ptsv2intentsEventInformation.constructFromObject(data['eventInformation']); } if (data.hasOwnProperty('travelInformation')) { obj['travelInformation'] = Ptsv2intentsTravelInformation.constructFromObject(data['travelInformation']); } if (data.hasOwnProperty('recipientInformation')) { obj['recipientInformation'] = Ptsv2intentsRecipientInformation.constructFromObject(data['recipientInformation']); } } return obj; } /** * @member {module:model/Ptsv2intentsClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Ptsv2intentsProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; /** * @member {module:model/Ptsv2intentsMerchantInformation} merchantInformation */ exports.prototype['merchantInformation'] = undefined; /** * @member {module:model/Ptsv2intentsPaymentInformation} paymentInformation */ exports.prototype['paymentInformation'] = undefined; /** * @member {module:model/Ptsv2intentsOrderInformation} orderInformation */ exports.prototype['orderInformation'] = undefined; /** * @member {module:model/Ptsv2intentsSenderInformation} senderInformation */ exports.prototype['senderInformation'] = undefined; /** * @member {module:model/Ptsv2intentsEventInformation} eventInformation */ exports.prototype['eventInformation'] = undefined; /** * @member {module:model/Ptsv2intentsTravelInformation} travelInformation */ exports.prototype['travelInformation'] = undefined; /** * @member {module:model/Ptsv2intentsRecipientInformation} recipientInformation */ exports.prototype['recipientInformation'] = undefined; return exports; }));