Compare commits

..

No commits in common. "6cfbb0db377d0410e167aaf73a2fb47cab09fce4" and "1968bd544e60b6429b3bdf0f962439f9b722d924" have entirely different histories.

5 changed files with 340 additions and 219 deletions

View File

@ -23,13 +23,9 @@
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";
@ -37,7 +33,6 @@ 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>
@ -68,7 +63,7 @@ import { WebsiteSalesRank } from "./model/WebsiteSalesRank";
* </pre>
* </p>
* @module index
* @version 2.0.0
* @version 1.0.0
*/
export {
/**
@ -85,12 +80,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}
@ -100,12 +95,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}
@ -125,12 +120,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}
@ -140,212 +135,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}
@ -355,32 +350,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}
@ -390,72 +385,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}
@ -475,55 +470,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
};

View File

@ -21,50 +21,48 @@
*
*/
/**
* The BrowseNode model module.
* @module model/BrowseNode
* @version 1.0.0
*/
(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';
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 {
/**
* @member {module:model/BrowseNodeAncestor} Ancestor
* The BrowseNode model module.
* @module model/BrowseNode
* @version 1.0.0
*/
public Ancestor?: BrowseNodeAncestor = undefined;
/**
* @member {Array.<module:model/BrowseNodeChild>} Children
* Constructs a new <code>BrowseNode</code>.
* @alias module:model/BrowseNode
* @class
*/
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;
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>BrowseNode</code> from a plain JavaScript object, optionally creating a new instance.
@ -73,32 +71,67 @@ export class BrowseNode {
* @param {module:model/BrowseNode} obj Optional instance to populate.
* @return {module:model/BrowseNode} The populated <code>BrowseNode</code> instance.
*/
public static constructFromObject(data: any, obj?: BrowseNode) {
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new BrowseNode();
obj = obj || new exports();
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;
}));

View File

@ -21,36 +21,45 @@
*
*/
/**
* The BrowseNodeAncestor model module.
* @module model/BrowseNodeAncestor
* @version 1.0.0
*/
(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';
import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>BrowseNodeAncestor</code>.
* @alias module:model/BrowseNodeAncestor
* @class
*/
export class BrowseNodeAncestor {
/**
* @member {module:model/BrowseNodeAncestor} Ancestor
* The BrowseNodeAncestor model module.
* @module model/BrowseNodeAncestor
* @version 1.0.0
*/
public Ancestor?: BrowseNodeAncestor;
/**
* @member {String} ContextFreeName
* Constructs a new <code>BrowseNodeAncestor</code>.
* @alias module:model/BrowseNodeAncestor
* @class
*/
public ContextFreeName?: string;
/**
* @member {String} DisplayName
*/
public DisplayName?: string;
/**
* @member {String} Id
*/
public Id?: string;
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>BrowseNodeAncestor</code> from a plain JavaScript object, optionally creating a new instance.
@ -59,23 +68,46 @@ export class BrowseNodeAncestor {
* @param {module:model/BrowseNodeAncestor} obj Optional instance to populate.
* @return {module:model/BrowseNodeAncestor} The populated <code>BrowseNodeAncestor</code> instance.
*/
public static constructFromObject(data: any, obj?: BrowseNodeAncestor) {
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new BrowseNodeAncestor();
obj = obj || new exports();
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;
}));

View File

@ -21,30 +21,44 @@
*
*/
/**
* The BrowseNodeInfo model module.
* @module model/BrowseNodeInfo
* @version 1.0.0
*/
(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';
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 {
/**
* @member {Array.<module:model/BrowseNode>} BrowseNodes
* The BrowseNodeInfo model module.
* @module model/BrowseNodeInfo
* @version 1.0.0
*/
public BrowseNodes?: BrowseNode;
/**
* @member {module:model/WebsiteSalesRank} WebsiteSalesRank
* Constructs a new <code>BrowseNodeInfo</code>.
* @alias module:model/BrowseNodeInfo
* @class
*/
public WebsiteSalesRank?: WebsiteSalesRank;
var exports = function() {
var _this = this;
};
/**
* 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.
@ -52,18 +66,32 @@ export class BrowseNodeInfo {
* @param {module:model/BrowseNodeInfo} obj Optional instance to populate.
* @return {module:model/BrowseNodeInfo} The populated <code>BrowseNodeInfo</code> instance.
*/
public static constructFromObject(data: any, obj?: BrowseNodeInfo) {
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new BrowseNodeInfo();
obj = obj || new exports();
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;
}));

View File

@ -21,36 +21,46 @@
*
*/
/**
* The WebsiteSalesRank model module.
* @module model/WebsiteSalesRank
* @version 1.0.0
*/
(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';
import { ApiClient } from "../ApiClient";
/**
* Constructs a new <code>WebsiteSalesRank</code>.
* @alias module:model/WebsiteSalesRank
* @class
*/
export class WebsiteSalesRank {
/**
* @member {String} ContextFreeName
* The WebsiteSalesRank model module.
* @module model/WebsiteSalesRank
* @version 1.0.0
*/
public ContextFreeName?: string;
/**
* @member {String} DisplayName
* Constructs a new <code>WebsiteSalesRank</code>.
* @alias module:model/WebsiteSalesRank
* @class
*/
public DisplayName?: string;
/**
* @member {String} Id
*/
public Id?: string;
/**
* @member {Number} SalesRank
*/
public SalesRank?: number;
var exports = function() {
var _this = this;
};
/**
* 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.
@ -58,23 +68,46 @@ export class WebsiteSalesRank {
* @param {module:model/WebsiteSalesRank} obj Optional instance to populate.
* @return {module:model/WebsiteSalesRank} The populated <code>WebsiteSalesRank</code> instance.
*/
public static constructFromObject(data: any, obj?: WebsiteSalesRank) {
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new WebsiteSalesRank();
obj = obj || new exports();
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;
}));