Refactored model/PartnerType. Fixed a couple things in GetBrowseNodesResource.

This commit is contained in:
David Ball 2024-07-17 22:13:53 -04:00
parent 6c28615b36
commit 65ad911dd5
3 changed files with 31 additions and 36 deletions

View File

@ -49,6 +49,7 @@ import { LanguageType } from "./model/LanguageType";
import { MultiValuedAttribute } from "./model/MultiValuedAttribute"; import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
import { OfferPrice } from "./model/OfferPrice"; import { OfferPrice } from "./model/OfferPrice";
import { OfferSavings } from "./model/OfferSavings"; import { OfferSavings } from "./model/OfferSavings";
import { PartnerType } from "./model/PartnerType";
import { PriceType } from "./model/PriceType"; import { PriceType } from "./model/PriceType";
import { Rating } from "./model/Rating"; import { Rating } from "./model/Rating";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute"; import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";

View File

@ -39,6 +39,11 @@ export const enum GetBrowseNodesResourceValues {
Children = "BrowseNodes.Children" Children = "BrowseNodes.Children"
}; };
/**
* Enum class GetBrowseNodesResource.
* @enum {}
* @readonly
*/
export class GetBrowseNodesResource extends String { export class GetBrowseNodesResource extends String {
/** /**
* value: "BrowseNodes.Ancestor" * value: "BrowseNodes.Ancestor"
@ -55,5 +60,5 @@ export class GetBrowseNodesResource extends String {
* @param {Object} data The plain JavaScript object containing the name of the enum value. * @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/GetBrowseNodesResource} The enum <code>GetBrowseNodesResource</code> value. * @return {module:model/GetBrowseNodesResource} The enum <code>GetBrowseNodesResource</code> value.
*/ */
public static constructFromObject(object: string) { return object; } public static constructFromObject(object: GetBrowseNodesResource|GetBrowseNodesResourceValues|string) { return object; }
}; };

View File

@ -21,46 +21,35 @@
* *
*/ */
(function(root, factory) { /**
if (typeof define === 'function' && define.amd) { * Enum class PartnerType.
// AMD. Register as an anonymous module. * @enum {}
define(['ApiClient'], factory); * @readonly
} else if (typeof module === 'object' && module.exports) { */
// CommonJS-like environments that support module.exports, like Node. export enum PartnerTypeValues {
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.PartnerType = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/** /**
* Enum class PartnerType. * value: "Associates"
* @enum {} * @const
* @readonly
*/ */
var exports = { Associates = "Associates"
/** };
* value: "Associates"
* @const
*/
"Associates": "Associates" };
/**
* Enum class PartnerType.
* @enum {}
* @readonly
*/
export class PartnerType extends String {
/**
* value: "Associates"
* @const
*/
public static get Associates() { return PartnerTypeValues.Associates; }
/** /**
* Returns a <code>PartnerType</code> enum value from a Javascript object name. * Returns a <code>PartnerType</code> enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value. * @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/PartnerType} The enum <code>PartnerType</code> value. * @return {module:model/PartnerType} The enum <code>PartnerType</code> value.
*/ */
exports.constructFromObject = function(object) { public constructFromObject(object: PartnerType|PartnerTypeValues|string) { return object; }
return object; };
}
return exports;
}));