diff --git a/src/index.ts b/src/index.ts index 4eba209..c9056fe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,7 @@ import { ApiClient } from "./ApiClient"; import { Availability } from "./model/Availability"; +import { BrowseNodeChild } from "./model/BrowseNodeChild"; import { ByLineInfo } from "./model/ByLineInfo"; import { Classifications } from "./model/Classifications"; import { Condition } from "./model/Condition"; @@ -89,7 +90,7 @@ export { * The BrowseNodeChild model constructor. * @property {module:model/BrowseNodeChild} */ - BrowseNodeChild: BrowseNodeChild, + BrowseNodeChild, /** * The BrowseNodeInfo model constructor. * @property {module:model/BrowseNodeInfo} diff --git a/src/model/BrowseNodeChild.ts b/src/model/BrowseNodeChild.ts index 9cf2241..f1ff633 100644 --- a/src/model/BrowseNodeChild.ts +++ b/src/model/BrowseNodeChild.ts @@ -21,44 +21,32 @@ * */ -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.ProductAdvertisingAPIv1) { - root.ProductAdvertisingAPIv1 = {}; - } - root.ProductAdvertisingAPIv1.BrowseNodeChild = factory(root.ProductAdvertisingAPIv1.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - +/** + * The BrowseNodeChild model module. + * @module model/BrowseNodeChild + * @version 1.0.0 + */ +import { ApiClient } from "../ApiClient"; +/** + * Constructs a new BrowseNodeChild. + * @alias module:model/BrowseNodeChild + * @class + */ +export class BrowseNodeChild { /** - * The BrowseNodeChild model module. - * @module model/BrowseNodeChild - * @version 1.0.0 + * @member {String} ContextFreeName */ - + public ContextFreeName?: string; /** - * Constructs a new BrowseNodeChild. - * @alias module:model/BrowseNodeChild - * @class + * @member {String} DisplayName */ - var exports = function() { - var _this = this; - - - - - }; + public DisplayName?: string; + /** + * @member {String} Id + */ + public Id?: string; /** * Constructs a BrowseNodeChild from a plain JavaScript object, optionally creating a new instance. @@ -67,39 +55,20 @@ * @param {module:model/BrowseNodeChild} obj Optional instance to populate. * @return {module:model/BrowseNodeChild} The populated BrowseNodeChild instance. */ - exports.constructFromObject = function(data, obj) { + public constructFromObject(data: any, obj?: BrowseNodeChild) { if (data) { - obj = obj || new exports(); + obj = obj || new BrowseNodeChild(); if (data.hasOwnProperty('ContextFreeName')) { - obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String'); + obj.ContextFreeName = ApiClient.convertToType(data['ContextFreeName'], 'String'); } if (data.hasOwnProperty('DisplayName')) { - obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); + obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String'); } if (data.hasOwnProperty('Id')) { - obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); + obj.Id = ApiClient.convertToType(data['Id'], 'String'); } } return obj; } - - /** - * @member {String} ContextFreeName - */ - exports.prototype['ContextFreeName'] = undefined; - /** - * @member {String} DisplayName - */ - exports.prototype['DisplayName'] = undefined; - /** - * @member {String} Id - */ - exports.prototype['Id'] = undefined; - - - - return exports; -})); - - +};