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 { OfferPrice } from "./model/OfferPrice";
import { OfferSavings } from "./model/OfferSavings";
import { PartnerType } from "./model/PartnerType";
import { PriceType } from "./model/PriceType";
import { Rating } from "./model/Rating";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";

View File

@ -39,6 +39,11 @@ export const enum GetBrowseNodesResourceValues {
Children = "BrowseNodes.Children"
};
/**
* Enum class GetBrowseNodesResource.
* @enum {}
* @readonly
*/
export class GetBrowseNodesResource extends String {
/**
* 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.
* @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) {
// 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.PartnerType = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* Enum class PartnerType.
* @enum {}
* @readonly
*/
export enum PartnerTypeValues {
/**
* Enum class PartnerType.
* @enum {}
* @readonly
* value: "Associates"
* @const
*/
var exports = {
/**
* value: "Associates"
* @const
*/
"Associates": "Associates" };
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.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/PartnerType} The enum <code>PartnerType</code> value.
*/
exports.constructFromObject = function(object) {
return object;
}
return exports;
}));
public constructFromObject(object: PartnerType|PartnerTypeValues|string) { return object; }
};