Refactored model/BrowseNodeInfo.

This commit is contained in:
David Ball 2024-07-17 21:19:37 -04:00
parent dd15339ae3
commit 6cfbb0db37
2 changed files with 100 additions and 127 deletions

View File

@ -26,6 +26,7 @@ import { Availability } from "./model/Availability";
import { BrowseNode } from "./model/BrowseNode"; import { BrowseNode } from "./model/BrowseNode";
import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor"; import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor";
import { BrowseNodeChild } from "./model/BrowseNodeChild"; import { BrowseNodeChild } from "./model/BrowseNodeChild";
import { BrowseNodeInfo } from "./model/BrowseNodeInfo";
import { ByLineInfo } from "./model/ByLineInfo"; import { ByLineInfo } from "./model/ByLineInfo";
import { Classifications } from "./model/Classifications"; import { Classifications } from "./model/Classifications";
import { DefaultApi } from "./api/DefaultApi"; import { DefaultApi } from "./api/DefaultApi";
@ -99,12 +100,12 @@ export {
* The BrowseNodeInfo model constructor. * The BrowseNodeInfo model constructor.
* @property {module:model/BrowseNodeInfo} * @property {module:model/BrowseNodeInfo}
*/ */
BrowseNodeInfo: BrowseNodeInfo, BrowseNodeInfo,
/** /**
* The BrowseNodesResult model constructor. * The BrowseNodesResult model constructor.
* @property {module:model/BrowseNodesResult} * @property {module:model/BrowseNodesResult}
*/ */
BrowseNodesResult: BrowseNodesResult, BrowseNodesResult,
/** /**
* The ByLineInfo model constructor. * The ByLineInfo model constructor.
* @property {module:model/ByLineInfo} * @property {module:model/ByLineInfo}
@ -124,12 +125,12 @@ export {
* The ContentInfo model constructor. * The ContentInfo model constructor.
* @property {module:model/ContentInfo} * @property {module:model/ContentInfo}
*/ */
ContentInfo: ContentInfo, ContentInfo,
/** /**
* The ContentRating model constructor. * The ContentRating model constructor.
* @property {module:model/ContentRating} * @property {module:model/ContentRating}
*/ */
ContentRating: ContentRating, ContentRating,
/** /**
* The Contributor model constructor. * The Contributor model constructor.
* @property {module:model/Contributor} * @property {module:model/Contributor}
@ -139,212 +140,212 @@ export {
* The CustomerReviews model constructor. * The CustomerReviews model constructor.
* @property {module:model/CustomerReviews} * @property {module:model/CustomerReviews}
*/ */
CustomerReviews: CustomerReviews, CustomerReviews,
/** /**
* The DeliveryFlag model constructor. * The DeliveryFlag model constructor.
* @property {module:model/DeliveryFlag} * @property {module:model/DeliveryFlag}
*/ */
DeliveryFlag: DeliveryFlag, DeliveryFlag,
/** /**
* The DimensionBasedAttribute model constructor. * The DimensionBasedAttribute model constructor.
* @property {module:model/DimensionBasedAttribute} * @property {module:model/DimensionBasedAttribute}
*/ */
DimensionBasedAttribute: DimensionBasedAttribute, DimensionBasedAttribute,
/** /**
* The DurationPrice model constructor. * The DurationPrice model constructor.
* @property {module:model/DurationPrice} * @property {module:model/DurationPrice}
*/ */
DurationPrice: DurationPrice, DurationPrice,
/** /**
* The ErrorData model constructor. * The ErrorData model constructor.
* @property {module:model/ErrorData} * @property {module:model/ErrorData}
*/ */
ErrorData: ErrorData, ErrorData,
/** /**
* The ExternalIds model constructor. * The ExternalIds model constructor.
* @property {module:model/ExternalIds} * @property {module:model/ExternalIds}
*/ */
ExternalIds: ExternalIds, ExternalIds,
/** /**
* The GetBrowseNodesRequest model constructor. * The GetBrowseNodesRequest model constructor.
* @property {module:model/GetBrowseNodesRequest} * @property {module:model/GetBrowseNodesRequest}
*/ */
GetBrowseNodesRequest: GetBrowseNodesRequest, GetBrowseNodesRequest,
/** /**
* The GetBrowseNodesResource model constructor. * The GetBrowseNodesResource model constructor.
* @property {module:model/GetBrowseNodesResource} * @property {module:model/GetBrowseNodesResource}
*/ */
GetBrowseNodesResource: GetBrowseNodesResource, GetBrowseNodesResource,
/** /**
* The GetBrowseNodesResponse model constructor. * The GetBrowseNodesResponse model constructor.
* @property {module:model/GetBrowseNodesResponse} * @property {module:model/GetBrowseNodesResponse}
*/ */
GetBrowseNodesResponse: GetBrowseNodesResponse, GetBrowseNodesResponse,
/** /**
* The GetItemsRequest model constructor. * The GetItemsRequest model constructor.
* @property {module:model/GetItemsRequest} * @property {module:model/GetItemsRequest}
*/ */
GetItemsRequest: GetItemsRequest, GetItemsRequest,
/** /**
* The GetItemsResource model constructor. * The GetItemsResource model constructor.
* @property {module:model/GetItemsResource} * @property {module:model/GetItemsResource}
*/ */
GetItemsResource: GetItemsResource, GetItemsResource,
/** /**
* The GetItemsResponse model constructor. * The GetItemsResponse model constructor.
* @property {module:model/GetItemsResponse} * @property {module:model/GetItemsResponse}
*/ */
GetItemsResponse: GetItemsResponse, GetItemsResponse,
/** /**
* The GetVariationsRequest model constructor. * The GetVariationsRequest model constructor.
* @property {module:model/GetVariationsRequest} * @property {module:model/GetVariationsRequest}
*/ */
GetVariationsRequest: GetVariationsRequest, GetVariationsRequest,
/** /**
* The GetVariationsResource model constructor. * The GetVariationsResource model constructor.
* @property {module:model/GetVariationsResource} * @property {module:model/GetVariationsResource}
*/ */
GetVariationsResource: GetVariationsResource, GetVariationsResource,
/** /**
* The GetVariationsResponse model constructor. * The GetVariationsResponse model constructor.
* @property {module:model/GetVariationsResponse} * @property {module:model/GetVariationsResponse}
*/ */
GetVariationsResponse: GetVariationsResponse, GetVariationsResponse,
/** /**
* The ImageSize model constructor. * The ImageSize model constructor.
* @property {module:model/ImageSize} * @property {module:model/ImageSize}
*/ */
ImageSize: ImageSize, ImageSize,
/** /**
* The ImageType model constructor. * The ImageType model constructor.
* @property {module:model/ImageType} * @property {module:model/ImageType}
*/ */
ImageType: ImageType, ImageType,
/** /**
* The Images model constructor. * The Images model constructor.
* @property {module:model/Images} * @property {module:model/Images}
*/ */
Images: Images, Images,
/** /**
* The Item model constructor. * The Item model constructor.
* @property {module:model/Item} * @property {module:model/Item}
*/ */
Item: Item, Item,
/** /**
* The ItemIdType model constructor. * The ItemIdType model constructor.
* @property {module:model/ItemIdType} * @property {module:model/ItemIdType}
*/ */
ItemIdType: ItemIdType, ItemIdType,
/** /**
* The ItemInfo model constructor. * The ItemInfo model constructor.
* @property {module:model/ItemInfo} * @property {module:model/ItemInfo}
*/ */
ItemInfo: ItemInfo, ItemInfo,
/** /**
* The ItemsResult model constructor. * The ItemsResult model constructor.
* @property {module:model/ItemsResult} * @property {module:model/ItemsResult}
*/ */
ItemsResult: ItemsResult, ItemsResult,
/** /**
* The LanguageType model constructor. * The LanguageType model constructor.
* @property {module:model/LanguageType} * @property {module:model/LanguageType}
*/ */
LanguageType: LanguageType, LanguageType,
/** /**
* The Languages model constructor. * The Languages model constructor.
* @property {module:model/Languages} * @property {module:model/Languages}
*/ */
Languages: Languages, Languages,
/** /**
* The ManufactureInfo model constructor. * The ManufactureInfo model constructor.
* @property {module:model/ManufactureInfo} * @property {module:model/ManufactureInfo}
*/ */
ManufactureInfo: ManufactureInfo, ManufactureInfo,
/** /**
* The MaxPrice model constructor. * The MaxPrice model constructor.
* @property {module:model/MaxPrice} * @property {module:model/MaxPrice}
*/ */
MaxPrice: MaxPrice, MaxPrice,
/** /**
* The Merchant model constructor. * The Merchant model constructor.
* @property {module:model/Merchant} * @property {module:model/Merchant}
*/ */
Merchant: Merchant, Merchant,
/** /**
* The MinPrice model constructor. * The MinPrice model constructor.
* @property {module:model/MinPrice} * @property {module:model/MinPrice}
*/ */
MinPrice: MinPrice, MinPrice,
/** /**
* The MinReviewsRating model constructor. * The MinReviewsRating model constructor.
* @property {module:model/MinReviewsRating} * @property {module:model/MinReviewsRating}
*/ */
MinReviewsRating: MinReviewsRating, MinReviewsRating,
/** /**
* The MinSavingPercent model constructor. * The MinSavingPercent model constructor.
* @property {module:model/MinSavingPercent} * @property {module:model/MinSavingPercent}
*/ */
MinSavingPercent: MinSavingPercent, MinSavingPercent,
/** /**
* The MultiValuedAttribute model constructor. * The MultiValuedAttribute model constructor.
* @property {module:model/MultiValuedAttribute} * @property {module:model/MultiValuedAttribute}
*/ */
MultiValuedAttribute: MultiValuedAttribute, MultiValuedAttribute,
/** /**
* The OfferAvailability model constructor. * The OfferAvailability model constructor.
* @property {module:model/OfferAvailability} * @property {module:model/OfferAvailability}
*/ */
OfferAvailability: OfferAvailability, OfferAvailability,
/** /**
* The OfferCondition model constructor. * The OfferCondition model constructor.
* @property {module:model/OfferCondition} * @property {module:model/OfferCondition}
*/ */
OfferCondition: OfferCondition, OfferCondition,
/** /**
* The OfferConditionNote model constructor. * The OfferConditionNote model constructor.
* @property {module:model/OfferConditionNote} * @property {module:model/OfferConditionNote}
*/ */
OfferConditionNote: OfferConditionNote, OfferConditionNote,
/** /**
* The OfferCount model constructor. * The OfferCount model constructor.
* @property {module:model/OfferCount} * @property {module:model/OfferCount}
*/ */
OfferCount: OfferCount, OfferCount,
/** /**
* The OfferDeliveryInfo model constructor. * The OfferDeliveryInfo model constructor.
* @property {module:model/OfferDeliveryInfo} * @property {module:model/OfferDeliveryInfo}
*/ */
OfferDeliveryInfo: OfferDeliveryInfo, OfferDeliveryInfo,
/** /**
* The OfferListing model constructor. * The OfferListing model constructor.
* @property {module:model/OfferListing} * @property {module:model/OfferListing}
*/ */
OfferListing: OfferListing, OfferListing,
/** /**
* The OfferLoyaltyPoints model constructor. * The OfferLoyaltyPoints model constructor.
* @property {module:model/OfferLoyaltyPoints} * @property {module:model/OfferLoyaltyPoints}
*/ */
OfferLoyaltyPoints: OfferLoyaltyPoints, OfferLoyaltyPoints,
/** /**
* The OfferMerchantInfo model constructor. * The OfferMerchantInfo model constructor.
* @property {module:model/OfferMerchantInfo} * @property {module:model/OfferMerchantInfo}
*/ */
OfferMerchantInfo: OfferMerchantInfo, OfferMerchantInfo,
/** /**
* The OfferPrice model constructor. * The OfferPrice model constructor.
* @property {module:model/OfferPrice} * @property {module:model/OfferPrice}
*/ */
OfferPrice: OfferPrice, OfferPrice,
/** /**
* The OfferProgramEligibility model constructor. * The OfferProgramEligibility model constructor.
* @property {module:model/OfferProgramEligibility} * @property {module:model/OfferProgramEligibility}
*/ */
OfferProgramEligibility: OfferProgramEligibility, OfferProgramEligibility,
/** /**
* The OfferPromotion model constructor. * The OfferPromotion model constructor.
* @property {module:model/OfferPromotion} * @property {module:model/OfferPromotion}
*/ */
OfferPromotion: OfferPromotion, OfferPromotion,
/** /**
* The OfferSavings model constructor. * The OfferSavings model constructor.
* @property {module:model/OfferSavings} * @property {module:model/OfferSavings}
@ -354,32 +355,32 @@ export {
* The OfferShippingCharge model constructor. * The OfferShippingCharge model constructor.
* @property {module:model/OfferShippingCharge} * @property {module:model/OfferShippingCharge}
*/ */
OfferShippingCharge: OfferShippingCharge, OfferShippingCharge,
/** /**
* The OfferSubCondition model constructor. * The OfferSubCondition model constructor.
* @property {module:model/OfferSubCondition} * @property {module:model/OfferSubCondition}
*/ */
OfferSubCondition: OfferSubCondition, OfferSubCondition,
/** /**
* The OfferSummary model constructor. * The OfferSummary model constructor.
* @property {module:model/OfferSummary} * @property {module:model/OfferSummary}
*/ */
OfferSummary: OfferSummary, OfferSummary,
/** /**
* The Offers model constructor. * The Offers model constructor.
* @property {module:model/Offers} * @property {module:model/Offers}
*/ */
Offers: Offers, Offers,
/** /**
* The PartnerType model constructor. * The PartnerType model constructor.
* @property {module:model/PartnerType} * @property {module:model/PartnerType}
*/ */
PartnerType: PartnerType, PartnerType,
/** /**
* The Price model constructor. * The Price model constructor.
* @property {module:model/Price} * @property {module:model/Price}
*/ */
Price: Price, Price,
/** /**
* The PriceType model constructor. * The PriceType model constructor.
* @property {module:model/PriceType} * @property {module:model/PriceType}
@ -389,72 +390,72 @@ export {
* The ProductAdvertisingAPIClientException model constructor. * The ProductAdvertisingAPIClientException model constructor.
* @property {module:model/ProductAdvertisingAPIClientException} * @property {module:model/ProductAdvertisingAPIClientException}
*/ */
ProductAdvertisingAPIClientException: ProductAdvertisingAPIClientException, ProductAdvertisingAPIClientException,
/** /**
* The ProductAdvertisingAPIServiceException model constructor. * The ProductAdvertisingAPIServiceException model constructor.
* @property {module:model/ProductAdvertisingAPIServiceException} * @property {module:model/ProductAdvertisingAPIServiceException}
*/ */
ProductAdvertisingAPIServiceException: ProductAdvertisingAPIServiceException, ProductAdvertisingAPIServiceException,
/** /**
* The ProductInfo model constructor. * The ProductInfo model constructor.
* @property {module:model/ProductInfo} * @property {module:model/ProductInfo}
*/ */
ProductInfo: ProductInfo, ProductInfo,
/** /**
* The Properties model constructor. * The Properties model constructor.
* @property {module:model/Properties} * @property {module:model/Properties}
*/ */
Properties: Properties, Properties,
/** /**
* The Rating model constructor. * The Rating model constructor.
* @property {module:model/Rating} * @property {module:model/Rating}
*/ */
Rating: Rating, Rating,
/** /**
* The Refinement model constructor. * The Refinement model constructor.
* @property {module:model/Refinement} * @property {module:model/Refinement}
*/ */
Refinement: Refinement, Refinement,
/** /**
* The RefinementBin model constructor. * The RefinementBin model constructor.
* @property {module:model/RefinementBin} * @property {module:model/RefinementBin}
*/ */
RefinementBin: RefinementBin, RefinementBin,
/** /**
* The RentalOfferListing model constructor. * The RentalOfferListing model constructor.
* @property {module:model/RentalOfferListing} * @property {module:model/RentalOfferListing}
*/ */
RentalOfferListing: RentalOfferListing, RentalOfferListing,
/** /**
* The RentalOffers model constructor. * The RentalOffers model constructor.
* @property {module:model/RentalOffers} * @property {module:model/RentalOffers}
*/ */
RentalOffers: RentalOffers, RentalOffers,
/** /**
* The SearchItemsRequest model constructor. * The SearchItemsRequest model constructor.
* @property {module:model/SearchItemsRequest} * @property {module:model/SearchItemsRequest}
*/ */
SearchItemsRequest: SearchItemsRequest, SearchItemsRequest,
/** /**
* The SearchItemsResource model constructor. * The SearchItemsResource model constructor.
* @property {module:model/SearchItemsResource} * @property {module:model/SearchItemsResource}
*/ */
SearchItemsResource: SearchItemsResource, SearchItemsResource,
/** /**
* The SearchItemsResponse model constructor. * The SearchItemsResponse model constructor.
* @property {module:model/SearchItemsResponse} * @property {module:model/SearchItemsResponse}
*/ */
SearchItemsResponse: SearchItemsResponse, SearchItemsResponse,
/** /**
* The SearchRefinements model constructor. * The SearchRefinements model constructor.
* @property {module:model/SearchRefinements} * @property {module:model/SearchRefinements}
*/ */
SearchRefinements: SearchRefinements, SearchRefinements,
/** /**
* The SearchResult model constructor. * The SearchResult model constructor.
* @property {module:model/SearchResult} * @property {module:model/SearchResult}
*/ */
SearchResult: SearchResult, SearchResult,
/** /**
* The SingleBooleanValuedAttribute model constructor. * The SingleBooleanValuedAttribute model constructor.
* @property {module:model/SingleBooleanValuedAttribute} * @property {module:model/SingleBooleanValuedAttribute}
@ -474,47 +475,47 @@ export {
* The SortBy model constructor. * The SortBy model constructor.
* @property {module:model/SortBy} * @property {module:model/SortBy}
*/ */
SortBy: SortBy, SortBy,
/** /**
* The TechnicalInfo model constructor. * The TechnicalInfo model constructor.
* @property {module:model/TechnicalInfo} * @property {module:model/TechnicalInfo}
*/ */
TechnicalInfo: TechnicalInfo, TechnicalInfo,
/** /**
* The TradeInInfo model constructor. * The TradeInInfo model constructor.
* @property {module:model/TradeInInfo} * @property {module:model/TradeInInfo}
*/ */
TradeInInfo: TradeInInfo, TradeInInfo,
/** /**
* The TradeInPrice model constructor. * The TradeInPrice model constructor.
* @property {module:model/TradeInPrice} * @property {module:model/TradeInPrice}
*/ */
TradeInPrice: TradeInPrice, TradeInPrice,
/** /**
* The UnitBasedAttribute model constructor. * The UnitBasedAttribute model constructor.
* @property {module:model/UnitBasedAttribute} * @property {module:model/UnitBasedAttribute}
*/ */
UnitBasedAttribute: UnitBasedAttribute, UnitBasedAttribute,
/** /**
* The VariationAttribute model constructor. * The VariationAttribute model constructor.
* @property {module:model/VariationAttribute} * @property {module:model/VariationAttribute}
*/ */
VariationAttribute: VariationAttribute, VariationAttribute,
/** /**
* The VariationDimension model constructor. * The VariationDimension model constructor.
* @property {module:model/VariationDimension} * @property {module:model/VariationDimension}
*/ */
VariationDimension: VariationDimension, VariationDimension,
/** /**
* The VariationSummary model constructor. * The VariationSummary model constructor.
* @property {module:model/VariationSummary} * @property {module:model/VariationSummary}
*/ */
VariationSummary: VariationSummary, VariationSummary,
/** /**
* The VariationsResult model constructor. * The VariationsResult model constructor.
* @property {module:model/VariationsResult} * @property {module:model/VariationsResult}
*/ */
VariationsResult: VariationsResult, VariationsResult,
/** /**
* The WebsiteSalesRank model constructor. * The WebsiteSalesRank model constructor.
* @property {module:model/WebsiteSalesRank} * @property {module:model/WebsiteSalesRank}
@ -525,4 +526,4 @@ export {
* @property {module:api/DefaultApi} * @property {module:api/DefaultApi}
*/ */
DefaultApi DefaultApi
}; };

View File

@ -21,44 +21,30 @@
* *
*/ */
(function(root, factory) { /**
if (typeof define === 'function' && define.amd) { * The BrowseNodeInfo model module.
// AMD. Register as an anonymous module. * @module model/BrowseNodeInfo
define(['ApiClient', 'model/BrowseNode', 'model/WebsiteSalesRank'], 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'), require('./BrowseNode'), require('./WebsiteSalesRank'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.BrowseNodeInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNode, root.ProductAdvertisingAPIv1.WebsiteSalesRank);
}
}(this, function(ApiClient, BrowseNode, WebsiteSalesRank) {
'use strict';
import { ApiClient } from "../ApiClient";
import { BrowseNode } from "./BrowseNode";
import { WebsiteSalesRank } from "./WebsiteSalesRank";
/**
* Constructs a new <code>BrowseNodeInfo</code>.
* @alias module:model/BrowseNodeInfo
* @class
*/
export class BrowseNodeInfo {
/** /**
* The BrowseNodeInfo model module. * @member {Array.<module:model/BrowseNode>} BrowseNodes
* @module model/BrowseNodeInfo
* @version 1.0.0
*/ */
public BrowseNodes?: BrowseNode;
/** /**
* Constructs a new <code>BrowseNodeInfo</code>. * @member {module:model/WebsiteSalesRank} WebsiteSalesRank
* @alias module:model/BrowseNodeInfo
* @class
*/ */
var exports = function() { public WebsiteSalesRank?: WebsiteSalesRank;
var _this = this;
};
/** /**
* Constructs a <code>BrowseNodeInfo</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>BrowseNodeInfo</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. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@ -66,32 +52,18 @@
* @param {module:model/BrowseNodeInfo} obj Optional instance to populate. * @param {module:model/BrowseNodeInfo} obj Optional instance to populate.
* @return {module:model/BrowseNodeInfo} The populated <code>BrowseNodeInfo</code> instance. * @return {module:model/BrowseNodeInfo} The populated <code>BrowseNodeInfo</code> instance.
*/ */
exports.constructFromObject = function(data, obj) { public static constructFromObject(data: any, obj?: BrowseNodeInfo) {
if (data) { if (data) {
obj = obj || new exports(); obj = obj || new BrowseNodeInfo();
if (data.hasOwnProperty('BrowseNodes')) { if (data.hasOwnProperty('BrowseNodes')) {
obj['BrowseNodes'] = ApiClient.convertToType(data['BrowseNodes'], [BrowseNode]); obj.BrowseNodes = ApiClient.convertToType(data['BrowseNodes'], [BrowseNode]);
} }
if (data.hasOwnProperty('WebsiteSalesRank')) { if (data.hasOwnProperty('WebsiteSalesRank')) {
obj['WebsiteSalesRank'] = WebsiteSalesRank.constructFromObject(data['WebsiteSalesRank']); obj.WebsiteSalesRank = WebsiteSalesRank.constructFromObject(data['WebsiteSalesRank']);
} }
} }
return obj; return obj;
} }
/** };
* @member {Array.<module:model/BrowseNode>} BrowseNodes
*/
exports.prototype['BrowseNodes'] = undefined;
/**
* @member {module:model/WebsiteSalesRank} WebsiteSalesRank
*/
exports.prototype['WebsiteSalesRank'] = undefined;
return exports;
}));