UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

98 lines (79 loc) 4.13 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/Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments', 'model/Tmsv2tokenizeTokenInformationCustomerLinksSelf', 'model/Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments'), require('./Tmsv2tokenizeTokenInformationCustomerLinksSelf'), require('./Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Tmsv2tokenizeTokenInformationCustomerLinks = factory(root.CyberSource.ApiClient, root.CyberSource.Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments, root.CyberSource.Tmsv2tokenizeTokenInformationCustomerLinksSelf, root.CyberSource.Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress); } }(this, function(ApiClient, Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments, Tmsv2tokenizeTokenInformationCustomerLinksSelf, Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress) { 'use strict'; /** * The Tmsv2tokenizeTokenInformationCustomerLinks model module. * @module model/Tmsv2tokenizeTokenInformationCustomerLinks * @version 0.0.1 */ /** * Constructs a new <code>Tmsv2tokenizeTokenInformationCustomerLinks</code>. * @alias module:model/Tmsv2tokenizeTokenInformationCustomerLinks * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Tmsv2tokenizeTokenInformationCustomerLinks</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/Tmsv2tokenizeTokenInformationCustomerLinks} obj Optional instance to populate. * @return {module:model/Tmsv2tokenizeTokenInformationCustomerLinks} The populated <code>Tmsv2tokenizeTokenInformationCustomerLinks</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('self')) { obj['self'] = Tmsv2tokenizeTokenInformationCustomerLinksSelf.constructFromObject(data['self']); } if (data.hasOwnProperty('paymentInstruments')) { obj['paymentInstruments'] = Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.constructFromObject(data['paymentInstruments']); } if (data.hasOwnProperty('shippingAddress')) { obj['shippingAddress'] = Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.constructFromObject(data['shippingAddress']); } } return obj; } /** * @member {module:model/Tmsv2tokenizeTokenInformationCustomerLinksSelf} self */ exports.prototype['self'] = undefined; /** * @member {module:model/Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments} paymentInstruments */ exports.prototype['paymentInstruments'] = undefined; /** * @member {module:model/Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress} shippingAddress */ exports.prototype['shippingAddress'] = undefined; return exports; }));