UNPKG

cybersource-rest-client-typescript

Version:
126 lines (104 loc) 4.18 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.3.0 * * Do not edit the class manually. * */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient', 'model/InlineResponse200PlanInformationBillingCycles', 'model/InlineResponse200PlanInformationBillingPeriod'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./InlineResponse200PlanInformationBillingCycles'), require('./InlineResponse200PlanInformationBillingPeriod')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.InlineResponse200PlanInformation = factory(root.CyberSource.ApiClient, root.CyberSource.InlineResponse200PlanInformationBillingCycles, root.CyberSource.InlineResponse200PlanInformationBillingPeriod); } }(this, function(ApiClient, InlineResponse200PlanInformationBillingCycles, InlineResponse200PlanInformationBillingPeriod) { 'use strict'; /** * The InlineResponse200PlanInformation model module. * @module model/InlineResponse200PlanInformation * @version 0.0.1 */ /** * Constructs a new <code>InlineResponse200PlanInformation</code>. * @alias module:model/InlineResponse200PlanInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>InlineResponse200PlanInformation</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/InlineResponse200PlanInformation} obj Optional instance to populate. * @return {module:model/InlineResponse200PlanInformation} The populated <code>InlineResponse200PlanInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'String'); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('billingPeriod')) { obj['billingPeriod'] = InlineResponse200PlanInformationBillingPeriod.constructFromObject(data['billingPeriod']); } if (data.hasOwnProperty('billingCycles')) { obj['billingCycles'] = InlineResponse200PlanInformationBillingCycles.constructFromObject(data['billingCycles']); } } return obj; } /** * Plan code * @member {String} code */ exports.prototype['code'] = undefined; /** * Plan Status: - `DRAFT` - `ACTIVE` - `INACTIVE` * @member {String} status */ exports.prototype['status'] = undefined; /** * Plan name * @member {String} name */ exports.prototype['name'] = undefined; /** * Plan description * @member {String} description */ exports.prototype['description'] = undefined; /** * @member {module:model/InlineResponse200PlanInformationBillingPeriod} billingPeriod */ exports.prototype['billingPeriod'] = undefined; /** * @member {module:model/InlineResponse200PlanInformationBillingCycles} billingCycles */ exports.prototype['billingCycles'] = undefined; return exports; }));