UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

122 lines (100 loc) 5.46 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/GetAllPlansResponseOrderInformation', 'model/Rbsv1subscriptionsClientReferenceInformation', 'model/Rbsv1subscriptionsPaymentInformation', 'model/Rbsv1subscriptionsPlanInformation', 'model/Rbsv1subscriptionsProcessingInformation', 'model/Rbsv1subscriptionsSubscriptionInformation'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./GetAllPlansResponseOrderInformation'), require('./Rbsv1subscriptionsClientReferenceInformation'), require('./Rbsv1subscriptionsPaymentInformation'), require('./Rbsv1subscriptionsPlanInformation'), require('./Rbsv1subscriptionsProcessingInformation'), require('./Rbsv1subscriptionsSubscriptionInformation')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.CreateSubscriptionRequest = factory(root.CyberSource.ApiClient, root.CyberSource.GetAllPlansResponseOrderInformation, root.CyberSource.Rbsv1subscriptionsClientReferenceInformation, root.CyberSource.Rbsv1subscriptionsPaymentInformation, root.CyberSource.Rbsv1subscriptionsPlanInformation, root.CyberSource.Rbsv1subscriptionsProcessingInformation, root.CyberSource.Rbsv1subscriptionsSubscriptionInformation); } }(this, function(ApiClient, GetAllPlansResponseOrderInformation, Rbsv1subscriptionsClientReferenceInformation, Rbsv1subscriptionsPaymentInformation, Rbsv1subscriptionsPlanInformation, Rbsv1subscriptionsProcessingInformation, Rbsv1subscriptionsSubscriptionInformation) { 'use strict'; /** * The CreateSubscriptionRequest model module. * @module model/CreateSubscriptionRequest * @version 0.0.1 */ /** * Constructs a new <code>CreateSubscriptionRequest</code>. * @alias module:model/CreateSubscriptionRequest * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>CreateSubscriptionRequest</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/CreateSubscriptionRequest} obj Optional instance to populate. * @return {module:model/CreateSubscriptionRequest} The populated <code>CreateSubscriptionRequest</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('clientReferenceInformation')) { obj['clientReferenceInformation'] = Rbsv1subscriptionsClientReferenceInformation.constructFromObject(data['clientReferenceInformation']); } if (data.hasOwnProperty('processingInformation')) { obj['processingInformation'] = Rbsv1subscriptionsProcessingInformation.constructFromObject(data['processingInformation']); } if (data.hasOwnProperty('planInformation')) { obj['planInformation'] = Rbsv1subscriptionsPlanInformation.constructFromObject(data['planInformation']); } if (data.hasOwnProperty('subscriptionInformation')) { obj['subscriptionInformation'] = Rbsv1subscriptionsSubscriptionInformation.constructFromObject(data['subscriptionInformation']); } if (data.hasOwnProperty('paymentInformation')) { obj['paymentInformation'] = Rbsv1subscriptionsPaymentInformation.constructFromObject(data['paymentInformation']); } if (data.hasOwnProperty('orderInformation')) { obj['orderInformation'] = GetAllPlansResponseOrderInformation.constructFromObject(data['orderInformation']); } } return obj; } /** * @member {module:model/Rbsv1subscriptionsClientReferenceInformation} clientReferenceInformation */ exports.prototype['clientReferenceInformation'] = undefined; /** * @member {module:model/Rbsv1subscriptionsProcessingInformation} processingInformation */ exports.prototype['processingInformation'] = undefined; /** * @member {module:model/Rbsv1subscriptionsPlanInformation} planInformation */ exports.prototype['planInformation'] = undefined; /** * @member {module:model/Rbsv1subscriptionsSubscriptionInformation} subscriptionInformation */ exports.prototype['subscriptionInformation'] = undefined; /** * @member {module:model/Rbsv1subscriptionsPaymentInformation} paymentInformation */ exports.prototype['paymentInformation'] = undefined; /** * @member {module:model/GetAllPlansResponseOrderInformation} orderInformation */ exports.prototype['orderInformation'] = undefined; return exports; }));