Refactored model/BrowseNodeAncestor.

This commit is contained in:
David Ball 2024-07-17 21:06:12 -04:00
parent 1968bd544e
commit cfa998e30a
2 changed files with 33 additions and 64 deletions

View File

@ -23,6 +23,7 @@
import { ApiClient } from "./ApiClient"; import { ApiClient } from "./ApiClient";
import { Availability } from "./model/Availability"; import { Availability } from "./model/Availability";
import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor";
import { BrowseNodeChild } from "./model/BrowseNodeChild"; import { BrowseNodeChild } from "./model/BrowseNodeChild";
import { ByLineInfo } from "./model/ByLineInfo"; import { ByLineInfo } from "./model/ByLineInfo";
import { Classifications } from "./model/Classifications"; import { Classifications } from "./model/Classifications";
@ -85,7 +86,7 @@ export {
* The BrowseNodeAncestor model constructor. * The BrowseNodeAncestor model constructor.
* @property {module:model/BrowseNodeAncestor} * @property {module:model/BrowseNodeAncestor}
*/ */
BrowseNodeAncestor: BrowseNodeAncestor, BrowseNodeAncestor,
/** /**
* The BrowseNodeChild model constructor. * The BrowseNodeChild model constructor.
* @property {module:model/BrowseNodeChild} * @property {module:model/BrowseNodeChild}

View File

@ -21,45 +21,36 @@
* *
*/ */
(function(root, factory) { /**
if (typeof define === 'function' && define.amd) { * The BrowseNodeAncestor model module.
// AMD. Register as an anonymous module. * @module model/BrowseNodeAncestor
define(['ApiClient'], factory); * @version 1.0.0
} 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.BrowseNodeAncestor = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient, BrowseNodeAncestor) {
'use strict';
import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>BrowseNodeAncestor</code>.
* @alias module:model/BrowseNodeAncestor
* @class
*/
export class BrowseNodeAncestor {
/** /**
* The BrowseNodeAncestor model module. * @member {module:model/BrowseNodeAncestor} Ancestor
* @module model/BrowseNodeAncestor
* @version 1.0.0
*/ */
public Ancestor?: BrowseNodeAncestor;
/** /**
* Constructs a new <code>BrowseNodeAncestor</code>. * @member {String} ContextFreeName
* @alias module:model/BrowseNodeAncestor
* @class
*/ */
var exports = function() { public ContextFreeName?: string;
var _this = this; /**
* @member {String} DisplayName
*/
public DisplayName?: string;
/**
* @member {String} Id
}; */
public Id?: string;
/** /**
* Constructs a <code>BrowseNodeAncestor</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>BrowseNodeAncestor</code> from a plain JavaScript object, optionally creating a new instance.
@ -68,46 +59,23 @@
* @param {module:model/BrowseNodeAncestor} obj Optional instance to populate. * @param {module:model/BrowseNodeAncestor} obj Optional instance to populate.
* @return {module:model/BrowseNodeAncestor} The populated <code>BrowseNodeAncestor</code> instance. * @return {module:model/BrowseNodeAncestor} The populated <code>BrowseNodeAncestor</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public static constructFromObject(data: any, obj?: BrowseNodeAncestor) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new BrowseNodeAncestor();
if (data.hasOwnProperty('Ancestor')) { if (data.hasOwnProperty('Ancestor')) {
obj['Ancestor'] = this.constructFromObject(data['Ancestor']); obj.Ancestor = this.constructFromObject(data['Ancestor']);
} }
if (data.hasOwnProperty('ContextFreeName')) { if (data.hasOwnProperty('ContextFreeName')) {
obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String'); obj.ContextFreeName = ApiClient.convertToType(data['ContextFreeName'], 'String');
} }
if (data.hasOwnProperty('DisplayName')) { if (data.hasOwnProperty('DisplayName')) {
obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String'); obj.DisplayName = ApiClient.convertToType(data['DisplayName'], 'String');
} }
if (data.hasOwnProperty('Id')) { if (data.hasOwnProperty('Id')) {
obj['Id'] = ApiClient.convertToType(data['Id'], 'String'); obj.Id = ApiClient.convertToType(data['Id'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {module:model/BrowseNodeAncestor} Ancestor
*/
exports.prototype['Ancestor'] = undefined;
/**
* @member {String} ContextFreeName
*/
exports.prototype['ContextFreeName'] = undefined;
/**
* @member {String} DisplayName
*/
exports.prototype['DisplayName'] = undefined;
/**
* @member {String} Id
*/
exports.prototype['Id'] = undefined;
return exports;
}));