Compare commits
4 Commits
1968bd544e
...
6cfbb0db37
| Author | SHA1 | Date | |
|---|---|---|---|
| 6cfbb0db37 | |||
| dd15339ae3 | |||
| d1c1164e5f | |||
| cfa998e30a |
167
src/index.ts
167
src/index.ts
|
|
@ -23,9 +23,13 @@
|
|||
|
||||
import { ApiClient } from "./ApiClient";
|
||||
import { Availability } from "./model/Availability";
|
||||
import { BrowseNode } from "./model/BrowseNode";
|
||||
import { BrowseNodeAncestor } from "./model/BrowseNodeAncestor";
|
||||
import { BrowseNodeChild } from "./model/BrowseNodeChild";
|
||||
import { BrowseNodeInfo } from "./model/BrowseNodeInfo";
|
||||
import { ByLineInfo } from "./model/ByLineInfo";
|
||||
import { Classifications } from "./model/Classifications";
|
||||
import { DefaultApi } from "./api/DefaultApi";
|
||||
import { Condition } from "./model/Condition";
|
||||
import { Contributor } from "./model/Contributor";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
|
|
@ -33,6 +37,7 @@ import { PriceType } from "./model/PriceType";
|
|||
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
|
||||
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
|
||||
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
|
||||
import { WebsiteSalesRank } from "./model/WebsiteSalesRank";
|
||||
|
||||
/**
|
||||
* ProductAdvertisingAPI 5.0 NodeJS SDK.<br>
|
||||
|
|
@ -63,7 +68,7 @@ import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute
|
|||
* </pre>
|
||||
* </p>
|
||||
* @module index
|
||||
* @version 1.0.0
|
||||
* @version 2.0.0
|
||||
*/
|
||||
export {
|
||||
/**
|
||||
|
|
@ -80,12 +85,12 @@ export {
|
|||
* The BrowseNode model constructor.
|
||||
* @property {module:model/BrowseNode}
|
||||
*/
|
||||
BrowseNode: BrowseNode,
|
||||
BrowseNode,
|
||||
/**
|
||||
* The BrowseNodeAncestor model constructor.
|
||||
* @property {module:model/BrowseNodeAncestor}
|
||||
*/
|
||||
BrowseNodeAncestor: BrowseNodeAncestor,
|
||||
BrowseNodeAncestor,
|
||||
/**
|
||||
* The BrowseNodeChild model constructor.
|
||||
* @property {module:model/BrowseNodeChild}
|
||||
|
|
@ -95,12 +100,12 @@ export {
|
|||
* The BrowseNodeInfo model constructor.
|
||||
* @property {module:model/BrowseNodeInfo}
|
||||
*/
|
||||
BrowseNodeInfo: BrowseNodeInfo,
|
||||
BrowseNodeInfo,
|
||||
/**
|
||||
* The BrowseNodesResult model constructor.
|
||||
* @property {module:model/BrowseNodesResult}
|
||||
*/
|
||||
BrowseNodesResult: BrowseNodesResult,
|
||||
BrowseNodesResult,
|
||||
/**
|
||||
* The ByLineInfo model constructor.
|
||||
* @property {module:model/ByLineInfo}
|
||||
|
|
@ -120,12 +125,12 @@ export {
|
|||
* The ContentInfo model constructor.
|
||||
* @property {module:model/ContentInfo}
|
||||
*/
|
||||
ContentInfo: ContentInfo,
|
||||
ContentInfo,
|
||||
/**
|
||||
* The ContentRating model constructor.
|
||||
* @property {module:model/ContentRating}
|
||||
*/
|
||||
ContentRating: ContentRating,
|
||||
ContentRating,
|
||||
/**
|
||||
* The Contributor model constructor.
|
||||
* @property {module:model/Contributor}
|
||||
|
|
@ -135,212 +140,212 @@ export {
|
|||
* The CustomerReviews model constructor.
|
||||
* @property {module:model/CustomerReviews}
|
||||
*/
|
||||
CustomerReviews: CustomerReviews,
|
||||
CustomerReviews,
|
||||
/**
|
||||
* The DeliveryFlag model constructor.
|
||||
* @property {module:model/DeliveryFlag}
|
||||
*/
|
||||
DeliveryFlag: DeliveryFlag,
|
||||
DeliveryFlag,
|
||||
/**
|
||||
* The DimensionBasedAttribute model constructor.
|
||||
* @property {module:model/DimensionBasedAttribute}
|
||||
*/
|
||||
DimensionBasedAttribute: DimensionBasedAttribute,
|
||||
DimensionBasedAttribute,
|
||||
/**
|
||||
* The DurationPrice model constructor.
|
||||
* @property {module:model/DurationPrice}
|
||||
*/
|
||||
DurationPrice: DurationPrice,
|
||||
DurationPrice,
|
||||
/**
|
||||
* The ErrorData model constructor.
|
||||
* @property {module:model/ErrorData}
|
||||
*/
|
||||
ErrorData: ErrorData,
|
||||
ErrorData,
|
||||
/**
|
||||
* The ExternalIds model constructor.
|
||||
* @property {module:model/ExternalIds}
|
||||
*/
|
||||
ExternalIds: ExternalIds,
|
||||
ExternalIds,
|
||||
/**
|
||||
* The GetBrowseNodesRequest model constructor.
|
||||
* @property {module:model/GetBrowseNodesRequest}
|
||||
*/
|
||||
GetBrowseNodesRequest: GetBrowseNodesRequest,
|
||||
GetBrowseNodesRequest,
|
||||
/**
|
||||
* The GetBrowseNodesResource model constructor.
|
||||
* @property {module:model/GetBrowseNodesResource}
|
||||
*/
|
||||
GetBrowseNodesResource: GetBrowseNodesResource,
|
||||
GetBrowseNodesResource,
|
||||
/**
|
||||
* The GetBrowseNodesResponse model constructor.
|
||||
* @property {module:model/GetBrowseNodesResponse}
|
||||
*/
|
||||
GetBrowseNodesResponse: GetBrowseNodesResponse,
|
||||
GetBrowseNodesResponse,
|
||||
/**
|
||||
* The GetItemsRequest model constructor.
|
||||
* @property {module:model/GetItemsRequest}
|
||||
*/
|
||||
GetItemsRequest: GetItemsRequest,
|
||||
GetItemsRequest,
|
||||
/**
|
||||
* The GetItemsResource model constructor.
|
||||
* @property {module:model/GetItemsResource}
|
||||
*/
|
||||
GetItemsResource: GetItemsResource,
|
||||
GetItemsResource,
|
||||
/**
|
||||
* The GetItemsResponse model constructor.
|
||||
* @property {module:model/GetItemsResponse}
|
||||
*/
|
||||
GetItemsResponse: GetItemsResponse,
|
||||
GetItemsResponse,
|
||||
/**
|
||||
* The GetVariationsRequest model constructor.
|
||||
* @property {module:model/GetVariationsRequest}
|
||||
*/
|
||||
GetVariationsRequest: GetVariationsRequest,
|
||||
GetVariationsRequest,
|
||||
/**
|
||||
* The GetVariationsResource model constructor.
|
||||
* @property {module:model/GetVariationsResource}
|
||||
*/
|
||||
GetVariationsResource: GetVariationsResource,
|
||||
GetVariationsResource,
|
||||
/**
|
||||
* The GetVariationsResponse model constructor.
|
||||
* @property {module:model/GetVariationsResponse}
|
||||
*/
|
||||
GetVariationsResponse: GetVariationsResponse,
|
||||
GetVariationsResponse,
|
||||
/**
|
||||
* The ImageSize model constructor.
|
||||
* @property {module:model/ImageSize}
|
||||
*/
|
||||
ImageSize: ImageSize,
|
||||
ImageSize,
|
||||
/**
|
||||
* The ImageType model constructor.
|
||||
* @property {module:model/ImageType}
|
||||
*/
|
||||
ImageType: ImageType,
|
||||
ImageType,
|
||||
/**
|
||||
* The Images model constructor.
|
||||
* @property {module:model/Images}
|
||||
*/
|
||||
Images: Images,
|
||||
Images,
|
||||
/**
|
||||
* The Item model constructor.
|
||||
* @property {module:model/Item}
|
||||
*/
|
||||
Item: Item,
|
||||
Item,
|
||||
/**
|
||||
* The ItemIdType model constructor.
|
||||
* @property {module:model/ItemIdType}
|
||||
*/
|
||||
ItemIdType: ItemIdType,
|
||||
ItemIdType,
|
||||
/**
|
||||
* The ItemInfo model constructor.
|
||||
* @property {module:model/ItemInfo}
|
||||
*/
|
||||
ItemInfo: ItemInfo,
|
||||
ItemInfo,
|
||||
/**
|
||||
* The ItemsResult model constructor.
|
||||
* @property {module:model/ItemsResult}
|
||||
*/
|
||||
ItemsResult: ItemsResult,
|
||||
ItemsResult,
|
||||
/**
|
||||
* The LanguageType model constructor.
|
||||
* @property {module:model/LanguageType}
|
||||
*/
|
||||
LanguageType: LanguageType,
|
||||
LanguageType,
|
||||
/**
|
||||
* The Languages model constructor.
|
||||
* @property {module:model/Languages}
|
||||
*/
|
||||
Languages: Languages,
|
||||
Languages,
|
||||
/**
|
||||
* The ManufactureInfo model constructor.
|
||||
* @property {module:model/ManufactureInfo}
|
||||
*/
|
||||
ManufactureInfo: ManufactureInfo,
|
||||
ManufactureInfo,
|
||||
/**
|
||||
* The MaxPrice model constructor.
|
||||
* @property {module:model/MaxPrice}
|
||||
*/
|
||||
MaxPrice: MaxPrice,
|
||||
MaxPrice,
|
||||
/**
|
||||
* The Merchant model constructor.
|
||||
* @property {module:model/Merchant}
|
||||
*/
|
||||
Merchant: Merchant,
|
||||
Merchant,
|
||||
/**
|
||||
* The MinPrice model constructor.
|
||||
* @property {module:model/MinPrice}
|
||||
*/
|
||||
MinPrice: MinPrice,
|
||||
MinPrice,
|
||||
/**
|
||||
* The MinReviewsRating model constructor.
|
||||
* @property {module:model/MinReviewsRating}
|
||||
*/
|
||||
MinReviewsRating: MinReviewsRating,
|
||||
MinReviewsRating,
|
||||
/**
|
||||
* The MinSavingPercent model constructor.
|
||||
* @property {module:model/MinSavingPercent}
|
||||
*/
|
||||
MinSavingPercent: MinSavingPercent,
|
||||
MinSavingPercent,
|
||||
/**
|
||||
* The MultiValuedAttribute model constructor.
|
||||
* @property {module:model/MultiValuedAttribute}
|
||||
*/
|
||||
MultiValuedAttribute: MultiValuedAttribute,
|
||||
MultiValuedAttribute,
|
||||
/**
|
||||
* The OfferAvailability model constructor.
|
||||
* @property {module:model/OfferAvailability}
|
||||
*/
|
||||
OfferAvailability: OfferAvailability,
|
||||
OfferAvailability,
|
||||
/**
|
||||
* The OfferCondition model constructor.
|
||||
* @property {module:model/OfferCondition}
|
||||
*/
|
||||
OfferCondition: OfferCondition,
|
||||
OfferCondition,
|
||||
/**
|
||||
* The OfferConditionNote model constructor.
|
||||
* @property {module:model/OfferConditionNote}
|
||||
*/
|
||||
OfferConditionNote: OfferConditionNote,
|
||||
OfferConditionNote,
|
||||
/**
|
||||
* The OfferCount model constructor.
|
||||
* @property {module:model/OfferCount}
|
||||
*/
|
||||
OfferCount: OfferCount,
|
||||
OfferCount,
|
||||
/**
|
||||
* The OfferDeliveryInfo model constructor.
|
||||
* @property {module:model/OfferDeliveryInfo}
|
||||
*/
|
||||
OfferDeliveryInfo: OfferDeliveryInfo,
|
||||
OfferDeliveryInfo,
|
||||
/**
|
||||
* The OfferListing model constructor.
|
||||
* @property {module:model/OfferListing}
|
||||
*/
|
||||
OfferListing: OfferListing,
|
||||
OfferListing,
|
||||
/**
|
||||
* The OfferLoyaltyPoints model constructor.
|
||||
* @property {module:model/OfferLoyaltyPoints}
|
||||
*/
|
||||
OfferLoyaltyPoints: OfferLoyaltyPoints,
|
||||
OfferLoyaltyPoints,
|
||||
/**
|
||||
* The OfferMerchantInfo model constructor.
|
||||
* @property {module:model/OfferMerchantInfo}
|
||||
*/
|
||||
OfferMerchantInfo: OfferMerchantInfo,
|
||||
OfferMerchantInfo,
|
||||
/**
|
||||
* The OfferPrice model constructor.
|
||||
* @property {module:model/OfferPrice}
|
||||
*/
|
||||
OfferPrice: OfferPrice,
|
||||
OfferPrice,
|
||||
/**
|
||||
* The OfferProgramEligibility model constructor.
|
||||
* @property {module:model/OfferProgramEligibility}
|
||||
*/
|
||||
OfferProgramEligibility: OfferProgramEligibility,
|
||||
OfferProgramEligibility,
|
||||
/**
|
||||
* The OfferPromotion model constructor.
|
||||
* @property {module:model/OfferPromotion}
|
||||
*/
|
||||
OfferPromotion: OfferPromotion,
|
||||
OfferPromotion,
|
||||
/**
|
||||
* The OfferSavings model constructor.
|
||||
* @property {module:model/OfferSavings}
|
||||
|
|
@ -350,32 +355,32 @@ export {
|
|||
* The OfferShippingCharge model constructor.
|
||||
* @property {module:model/OfferShippingCharge}
|
||||
*/
|
||||
OfferShippingCharge: OfferShippingCharge,
|
||||
OfferShippingCharge,
|
||||
/**
|
||||
* The OfferSubCondition model constructor.
|
||||
* @property {module:model/OfferSubCondition}
|
||||
*/
|
||||
OfferSubCondition: OfferSubCondition,
|
||||
OfferSubCondition,
|
||||
/**
|
||||
* The OfferSummary model constructor.
|
||||
* @property {module:model/OfferSummary}
|
||||
*/
|
||||
OfferSummary: OfferSummary,
|
||||
OfferSummary,
|
||||
/**
|
||||
* The Offers model constructor.
|
||||
* @property {module:model/Offers}
|
||||
*/
|
||||
Offers: Offers,
|
||||
Offers,
|
||||
/**
|
||||
* The PartnerType model constructor.
|
||||
* @property {module:model/PartnerType}
|
||||
*/
|
||||
PartnerType: PartnerType,
|
||||
PartnerType,
|
||||
/**
|
||||
* The Price model constructor.
|
||||
* @property {module:model/Price}
|
||||
*/
|
||||
Price: Price,
|
||||
Price,
|
||||
/**
|
||||
* The PriceType model constructor.
|
||||
* @property {module:model/PriceType}
|
||||
|
|
@ -385,72 +390,72 @@ export {
|
|||
* The ProductAdvertisingAPIClientException model constructor.
|
||||
* @property {module:model/ProductAdvertisingAPIClientException}
|
||||
*/
|
||||
ProductAdvertisingAPIClientException: ProductAdvertisingAPIClientException,
|
||||
ProductAdvertisingAPIClientException,
|
||||
/**
|
||||
* The ProductAdvertisingAPIServiceException model constructor.
|
||||
* @property {module:model/ProductAdvertisingAPIServiceException}
|
||||
*/
|
||||
ProductAdvertisingAPIServiceException: ProductAdvertisingAPIServiceException,
|
||||
ProductAdvertisingAPIServiceException,
|
||||
/**
|
||||
* The ProductInfo model constructor.
|
||||
* @property {module:model/ProductInfo}
|
||||
*/
|
||||
ProductInfo: ProductInfo,
|
||||
ProductInfo,
|
||||
/**
|
||||
* The Properties model constructor.
|
||||
* @property {module:model/Properties}
|
||||
*/
|
||||
Properties: Properties,
|
||||
Properties,
|
||||
/**
|
||||
* The Rating model constructor.
|
||||
* @property {module:model/Rating}
|
||||
*/
|
||||
Rating: Rating,
|
||||
Rating,
|
||||
/**
|
||||
* The Refinement model constructor.
|
||||
* @property {module:model/Refinement}
|
||||
*/
|
||||
Refinement: Refinement,
|
||||
Refinement,
|
||||
/**
|
||||
* The RefinementBin model constructor.
|
||||
* @property {module:model/RefinementBin}
|
||||
*/
|
||||
RefinementBin: RefinementBin,
|
||||
RefinementBin,
|
||||
/**
|
||||
* The RentalOfferListing model constructor.
|
||||
* @property {module:model/RentalOfferListing}
|
||||
*/
|
||||
RentalOfferListing: RentalOfferListing,
|
||||
RentalOfferListing,
|
||||
/**
|
||||
* The RentalOffers model constructor.
|
||||
* @property {module:model/RentalOffers}
|
||||
*/
|
||||
RentalOffers: RentalOffers,
|
||||
RentalOffers,
|
||||
/**
|
||||
* The SearchItemsRequest model constructor.
|
||||
* @property {module:model/SearchItemsRequest}
|
||||
*/
|
||||
SearchItemsRequest: SearchItemsRequest,
|
||||
SearchItemsRequest,
|
||||
/**
|
||||
* The SearchItemsResource model constructor.
|
||||
* @property {module:model/SearchItemsResource}
|
||||
*/
|
||||
SearchItemsResource: SearchItemsResource,
|
||||
SearchItemsResource,
|
||||
/**
|
||||
* The SearchItemsResponse model constructor.
|
||||
* @property {module:model/SearchItemsResponse}
|
||||
*/
|
||||
SearchItemsResponse: SearchItemsResponse,
|
||||
SearchItemsResponse,
|
||||
/**
|
||||
* The SearchRefinements model constructor.
|
||||
* @property {module:model/SearchRefinements}
|
||||
*/
|
||||
SearchRefinements: SearchRefinements,
|
||||
SearchRefinements,
|
||||
/**
|
||||
* The SearchResult model constructor.
|
||||
* @property {module:model/SearchResult}
|
||||
*/
|
||||
SearchResult: SearchResult,
|
||||
SearchResult,
|
||||
/**
|
||||
* The SingleBooleanValuedAttribute model constructor.
|
||||
* @property {module:model/SingleBooleanValuedAttribute}
|
||||
|
|
@ -470,55 +475,55 @@ export {
|
|||
* The SortBy model constructor.
|
||||
* @property {module:model/SortBy}
|
||||
*/
|
||||
SortBy: SortBy,
|
||||
SortBy,
|
||||
/**
|
||||
* The TechnicalInfo model constructor.
|
||||
* @property {module:model/TechnicalInfo}
|
||||
*/
|
||||
TechnicalInfo: TechnicalInfo,
|
||||
TechnicalInfo,
|
||||
/**
|
||||
* The TradeInInfo model constructor.
|
||||
* @property {module:model/TradeInInfo}
|
||||
*/
|
||||
TradeInInfo: TradeInInfo,
|
||||
TradeInInfo,
|
||||
/**
|
||||
* The TradeInPrice model constructor.
|
||||
* @property {module:model/TradeInPrice}
|
||||
*/
|
||||
TradeInPrice: TradeInPrice,
|
||||
TradeInPrice,
|
||||
/**
|
||||
* The UnitBasedAttribute model constructor.
|
||||
* @property {module:model/UnitBasedAttribute}
|
||||
*/
|
||||
UnitBasedAttribute: UnitBasedAttribute,
|
||||
UnitBasedAttribute,
|
||||
/**
|
||||
* The VariationAttribute model constructor.
|
||||
* @property {module:model/VariationAttribute}
|
||||
*/
|
||||
VariationAttribute: VariationAttribute,
|
||||
VariationAttribute,
|
||||
/**
|
||||
* The VariationDimension model constructor.
|
||||
* @property {module:model/VariationDimension}
|
||||
*/
|
||||
VariationDimension: VariationDimension,
|
||||
VariationDimension,
|
||||
/**
|
||||
* The VariationSummary model constructor.
|
||||
* @property {module:model/VariationSummary}
|
||||
*/
|
||||
VariationSummary: VariationSummary,
|
||||
VariationSummary,
|
||||
/**
|
||||
* The VariationsResult model constructor.
|
||||
* @property {module:model/VariationsResult}
|
||||
*/
|
||||
VariationsResult: VariationsResult,
|
||||
VariationsResult,
|
||||
/**
|
||||
* The WebsiteSalesRank model constructor.
|
||||
* @property {module:model/WebsiteSalesRank}
|
||||
*/
|
||||
WebsiteSalesRank: WebsiteSalesRank,
|
||||
WebsiteSalesRank,
|
||||
/**
|
||||
* The DefaultApi service constructor.
|
||||
* @property {module:api/DefaultApi}
|
||||
*/
|
||||
DefaultApi: DefaultApi
|
||||
};
|
||||
DefaultApi
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,48 +21,50 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/BrowseNodeAncestor', 'model/BrowseNodeChild'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./BrowseNodeAncestor'), require('./BrowseNodeChild'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.BrowseNode = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNodeAncestor, root.ProductAdvertisingAPIv1.BrowseNodeChild);
|
||||
}
|
||||
}(this, function(ApiClient, BrowseNodeAncestor, BrowseNodeChild) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The BrowseNode model module.
|
||||
* @module model/BrowseNode
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { BrowseNodeAncestor } from "./BrowseNodeAncestor";
|
||||
import { BrowseNodeChild } from "./BrowseNodeChild";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>BrowseNode</code>.
|
||||
* @alias module:model/BrowseNode
|
||||
* @class
|
||||
*/
|
||||
export class BrowseNode {
|
||||
/**
|
||||
* The BrowseNode model module.
|
||||
* @module model/BrowseNode
|
||||
* @version 1.0.0
|
||||
* @member {module:model/BrowseNodeAncestor} Ancestor
|
||||
*/
|
||||
|
||||
public Ancestor?: BrowseNodeAncestor = undefined;
|
||||
/**
|
||||
* Constructs a new <code>BrowseNode</code>.
|
||||
* @alias module:model/BrowseNode
|
||||
* @class
|
||||
* @member {Array.<module:model/BrowseNodeChild>} Children
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public Children?: BrowseNodeChild[];
|
||||
/**
|
||||
* @member {String} ContextFreeName
|
||||
*/
|
||||
public ContextFreeName?: string;
|
||||
/**
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
public DisplayName?: string;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
public Id?: string;
|
||||
/**
|
||||
* @member {Boolean} IsRoot
|
||||
*/
|
||||
public IsRoot?: boolean;
|
||||
/**
|
||||
* @member {Number} SalesRank
|
||||
*/
|
||||
public SalesRank?: number;
|
||||
|
||||
/**
|
||||
* Constructs a <code>BrowseNode</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -71,67 +73,32 @@
|
|||
* @param {module:model/BrowseNode} obj Optional instance to populate.
|
||||
* @return {module:model/BrowseNode} The populated <code>BrowseNode</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: BrowseNode) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new BrowseNode();
|
||||
|
||||
if (data.hasOwnProperty('Ancestor')) {
|
||||
obj['Ancestor'] = BrowseNodeAncestor.constructFromObject(data['Ancestor']);
|
||||
obj.Ancestor = BrowseNodeAncestor.constructFromObject(data['Ancestor']);
|
||||
}
|
||||
if (data.hasOwnProperty('Children')) {
|
||||
obj['Children'] = ApiClient.convertToType(data['Children'], [BrowseNodeChild]);
|
||||
obj.Children = ApiClient.convertToType(data['Children'], [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');
|
||||
}
|
||||
if (data.hasOwnProperty('IsRoot')) {
|
||||
obj['IsRoot'] = ApiClient.convertToType(data['IsRoot'], 'Boolean');
|
||||
obj.IsRoot = ApiClient.convertToType(data['IsRoot'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('SalesRank')) {
|
||||
obj['SalesRank'] = ApiClient.convertToType(data['SalesRank'], 'Number');
|
||||
obj.SalesRank = ApiClient.convertToType(data['SalesRank'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/BrowseNodeAncestor} Ancestor
|
||||
*/
|
||||
exports.prototype['Ancestor'] = undefined;
|
||||
/**
|
||||
* @member {Array.<module:model/BrowseNodeChild>} Children
|
||||
*/
|
||||
exports.prototype['Children'] = undefined;
|
||||
/**
|
||||
* @member {String} ContextFreeName
|
||||
*/
|
||||
exports.prototype['ContextFreeName'] = undefined;
|
||||
/**
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
exports.prototype['DisplayName'] = undefined;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
exports.prototype['Id'] = undefined;
|
||||
/**
|
||||
* @member {Boolean} IsRoot
|
||||
*/
|
||||
exports.prototype['IsRoot'] = undefined;
|
||||
/**
|
||||
* @member {Number} SalesRank
|
||||
*/
|
||||
exports.prototype['SalesRank'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
@ -21,45 +21,36 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.BrowseNodeAncestor = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient, BrowseNodeAncestor) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The BrowseNodeAncestor model module.
|
||||
* @module model/BrowseNodeAncestor
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>BrowseNodeAncestor</code>.
|
||||
* @alias module:model/BrowseNodeAncestor
|
||||
* @class
|
||||
*/
|
||||
export class BrowseNodeAncestor {
|
||||
/**
|
||||
* The BrowseNodeAncestor model module.
|
||||
* @module model/BrowseNodeAncestor
|
||||
* @version 1.0.0
|
||||
* @member {module:model/BrowseNodeAncestor} Ancestor
|
||||
*/
|
||||
|
||||
public Ancestor?: BrowseNodeAncestor;
|
||||
/**
|
||||
* Constructs a new <code>BrowseNodeAncestor</code>.
|
||||
* @alias module:model/BrowseNodeAncestor
|
||||
* @class
|
||||
* @member {String} ContextFreeName
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public ContextFreeName?: string;
|
||||
/**
|
||||
* @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.
|
||||
|
|
@ -68,46 +59,23 @@
|
|||
* @param {module:model/BrowseNodeAncestor} obj Optional instance to populate.
|
||||
* @return {module:model/BrowseNodeAncestor} The populated <code>BrowseNodeAncestor</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: BrowseNodeAncestor) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new BrowseNodeAncestor();
|
||||
|
||||
if (data.hasOwnProperty('Ancestor')) {
|
||||
obj['Ancestor'] = this.constructFromObject(data['Ancestor']);
|
||||
obj.Ancestor = this.constructFromObject(data['Ancestor']);
|
||||
}
|
||||
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 {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;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
@ -21,44 +21,30 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/BrowseNode', 'model/WebsiteSalesRank'], factory);
|
||||
} 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';
|
||||
|
||||
|
||||
/**
|
||||
* The BrowseNodeInfo model module.
|
||||
* @module model/BrowseNodeInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
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.
|
||||
* @module model/BrowseNodeInfo
|
||||
* @version 1.0.0
|
||||
* @member {Array.<module:model/BrowseNode>} BrowseNodes
|
||||
*/
|
||||
|
||||
public BrowseNodes?: BrowseNode;
|
||||
/**
|
||||
* Constructs a new <code>BrowseNodeInfo</code>.
|
||||
* @alias module:model/BrowseNodeInfo
|
||||
* @class
|
||||
* @member {module:model/WebsiteSalesRank} WebsiteSalesRank
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
public WebsiteSalesRank?: WebsiteSalesRank;
|
||||
/**
|
||||
* 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.
|
||||
|
|
@ -66,32 +52,18 @@
|
|||
* @param {module:model/BrowseNodeInfo} obj Optional instance to populate.
|
||||
* @return {module:model/BrowseNodeInfo} The populated <code>BrowseNodeInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: BrowseNodeInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new BrowseNodeInfo();
|
||||
|
||||
if (data.hasOwnProperty('BrowseNodes')) {
|
||||
obj['BrowseNodes'] = ApiClient.convertToType(data['BrowseNodes'], [BrowseNode]);
|
||||
obj.BrowseNodes = ApiClient.convertToType(data['BrowseNodes'], [BrowseNode]);
|
||||
}
|
||||
if (data.hasOwnProperty('WebsiteSalesRank')) {
|
||||
obj['WebsiteSalesRank'] = WebsiteSalesRank.constructFromObject(data['WebsiteSalesRank']);
|
||||
obj.WebsiteSalesRank = WebsiteSalesRank.constructFromObject(data['WebsiteSalesRank']);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Array.<module:model/BrowseNode>} BrowseNodes
|
||||
*/
|
||||
exports.prototype['BrowseNodes'] = undefined;
|
||||
/**
|
||||
* @member {module:model/WebsiteSalesRank} WebsiteSalesRank
|
||||
*/
|
||||
exports.prototype['WebsiteSalesRank'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,46 +21,36 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(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.WebsiteSalesRank = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The WebsiteSalesRank model module.
|
||||
* @module model/WebsiteSalesRank
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>WebsiteSalesRank</code>.
|
||||
* @alias module:model/WebsiteSalesRank
|
||||
* @class
|
||||
*/
|
||||
export class WebsiteSalesRank {
|
||||
/**
|
||||
* The WebsiteSalesRank model module.
|
||||
* @module model/WebsiteSalesRank
|
||||
* @version 1.0.0
|
||||
* @member {String} ContextFreeName
|
||||
*/
|
||||
|
||||
public ContextFreeName?: string;
|
||||
/**
|
||||
* Constructs a new <code>WebsiteSalesRank</code>.
|
||||
* @alias module:model/WebsiteSalesRank
|
||||
* @class
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
public DisplayName?: string;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
public Id?: string;
|
||||
/**
|
||||
* @member {Number} SalesRank
|
||||
*/
|
||||
public SalesRank?: number;
|
||||
/**
|
||||
* Constructs a <code>WebsiteSalesRank</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.
|
||||
|
|
@ -68,46 +58,23 @@
|
|||
* @param {module:model/WebsiteSalesRank} obj Optional instance to populate.
|
||||
* @return {module:model/WebsiteSalesRank} The populated <code>WebsiteSalesRank</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: WebsiteSalesRank) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new WebsiteSalesRank();
|
||||
|
||||
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');
|
||||
}
|
||||
if (data.hasOwnProperty('SalesRank')) {
|
||||
obj['SalesRank'] = ApiClient.convertToType(data['SalesRank'], 'Number');
|
||||
obj.SalesRank = ApiClient.convertToType(data['SalesRank'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} ContextFreeName
|
||||
*/
|
||||
exports.prototype['ContextFreeName'] = undefined;
|
||||
/**
|
||||
* @member {String} DisplayName
|
||||
*/
|
||||
exports.prototype['DisplayName'] = undefined;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
exports.prototype['Id'] = undefined;
|
||||
/**
|
||||
* @member {Number} SalesRank
|
||||
*/
|
||||
exports.prototype['SalesRank'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user