UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

114 lines (93 loc) 5.09 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/Upv1capturecontextsDataOrderInformationAmountDetails', 'model/Upv1capturecontextsDataOrderInformationBillTo', 'model/Upv1capturecontextsDataOrderInformationInvoiceDetails', 'model/Upv1capturecontextsDataOrderInformationLineItems', 'model/Upv1capturecontextsDataOrderInformationShipTo'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Upv1capturecontextsDataOrderInformationAmountDetails'), require('./Upv1capturecontextsDataOrderInformationBillTo'), require('./Upv1capturecontextsDataOrderInformationInvoiceDetails'), require('./Upv1capturecontextsDataOrderInformationLineItems'), require('./Upv1capturecontextsDataOrderInformationShipTo')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Upv1capturecontextsDataOrderInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Upv1capturecontextsDataOrderInformationAmountDetails, root.CyberSource.Upv1capturecontextsDataOrderInformationBillTo, root.CyberSource.Upv1capturecontextsDataOrderInformationInvoiceDetails, root.CyberSource.Upv1capturecontextsDataOrderInformationLineItems, root.CyberSource.Upv1capturecontextsDataOrderInformationShipTo); } }(this, function(ApiClient, Upv1capturecontextsDataOrderInformationAmountDetails, Upv1capturecontextsDataOrderInformationBillTo, Upv1capturecontextsDataOrderInformationInvoiceDetails, Upv1capturecontextsDataOrderInformationLineItems, Upv1capturecontextsDataOrderInformationShipTo) { 'use strict'; /** * The Upv1capturecontextsDataOrderInformation model module. * @module model/Upv1capturecontextsDataOrderInformation * @version 0.0.1 */ /** * Constructs a new <code>Upv1capturecontextsDataOrderInformation</code>. * @alias module:model/Upv1capturecontextsDataOrderInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Upv1capturecontextsDataOrderInformation</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/Upv1capturecontextsDataOrderInformation} obj Optional instance to populate. * @return {module:model/Upv1capturecontextsDataOrderInformation} The populated <code>Upv1capturecontextsDataOrderInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('amountDetails')) { obj['amountDetails'] = Upv1capturecontextsDataOrderInformationAmountDetails.constructFromObject(data['amountDetails']); } if (data.hasOwnProperty('billTo')) { obj['billTo'] = Upv1capturecontextsDataOrderInformationBillTo.constructFromObject(data['billTo']); } if (data.hasOwnProperty('shipTo')) { obj['shipTo'] = Upv1capturecontextsDataOrderInformationShipTo.constructFromObject(data['shipTo']); } if (data.hasOwnProperty('lineItems')) { obj['lineItems'] = Upv1capturecontextsDataOrderInformationLineItems.constructFromObject(data['lineItems']); } if (data.hasOwnProperty('invoiceDetails')) { obj['invoiceDetails'] = Upv1capturecontextsDataOrderInformationInvoiceDetails.constructFromObject(data['invoiceDetails']); } } return obj; } /** * @member {module:model/Upv1capturecontextsDataOrderInformationAmountDetails} amountDetails */ exports.prototype['amountDetails'] = undefined; /** * @member {module:model/Upv1capturecontextsDataOrderInformationBillTo} billTo */ exports.prototype['billTo'] = undefined; /** * @member {module:model/Upv1capturecontextsDataOrderInformationShipTo} shipTo */ exports.prototype['shipTo'] = undefined; /** * @member {module:model/Upv1capturecontextsDataOrderInformationLineItems} lineItems */ exports.prototype['lineItems'] = undefined; /** * @member {module:model/Upv1capturecontextsDataOrderInformationInvoiceDetails} invoiceDetails */ exports.prototype['invoiceDetails'] = undefined; return exports; }));