Compare commits

..

No commits in common. "6496104e30d4a8bc91a902a120ac3159edd9a71c" and "e82b52eb2e0bdadd198ec4a36071053e88814dc2" have entirely different histories.

10 changed files with 1118 additions and 932 deletions

View File

@ -48,7 +48,6 @@ import { GetBrowseNodesResource } from "./model/GetBrowseNodesResource";
import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse"; import { GetBrowseNodesResponse } from "./model/GetBrowseNodesResponse";
import { GetItemsRequest } from "./model/GetItemsRequest"; import { GetItemsRequest } from "./model/GetItemsRequest";
import { GetItemsResource } from "./model/GetItemsResource"; import { GetItemsResource } from "./model/GetItemsResource";
import { GetVariationsResource } from "./model/GetVariationsResource";
import { ImageSize } from "./model/ImageSize"; import { ImageSize } from "./model/ImageSize";
import { ImageType } from "./model/ImageType"; import { ImageType } from "./model/ImageType";
import { Images } from "./model/Images"; import { Images } from "./model/Images";
@ -61,8 +60,6 @@ import { ManufactureInfo } from "./model/ManufactureInfo";
import { MaxPrice } from "./model/MaxPrice"; import { MaxPrice } from "./model/MaxPrice";
import { Merchant } from "./model/Merchant"; import { Merchant } from "./model/Merchant";
import { MinPrice } from "./model/MinPrice"; import { MinPrice } from "./model/MinPrice";
import { MinReviewsRating } from "./model/MinReviewsRating";
import { MinSavingPercent } from "./model/MinSavingPercent";
import { MultiValuedAttribute } from "./model/MultiValuedAttribute"; import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
import { OfferAvailability } from "./model/OfferAvailability"; import { OfferAvailability } from "./model/OfferAvailability";
import { OfferCondition } from "./model/OfferCondition"; import { OfferCondition } from "./model/OfferCondition";
@ -92,15 +89,10 @@ import { Refinement } from "./model/Refinement";
import { RefinementBin } from "./model/RefinementBin"; import { RefinementBin } from "./model/RefinementBin";
import { RentalOfferListing } from "./model/RentalOfferListing"; import { RentalOfferListing } from "./model/RentalOfferListing";
import { RentalOffers } from "./model/RentalOffers"; import { RentalOffers } from "./model/RentalOffers";
import { SearchItemsRequest } from "./model/SearchItemsRequest";
import { SearchItemsResource } from "./model/SearchItemsResource";
import { SearchItemsResponse } from "./model/SearchItemsResponse";
import { SearchRefinements } from "./model/SearchRefinements"; import { SearchRefinements } from "./model/SearchRefinements";
import { SearchResult } from "./model/SearchResult";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute"; import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute"; import { SingleIntegerValuedAttribute } from "./model/SingleIntegerValuedAttribute";
import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute"; import { SingleStringValuedAttribute } from "./model/SingleStringValuedAttribute";
import { SortBy } from "./model/SortBy";
import { TechnicalInfo } from "./model/TechnicalInfo"; import { TechnicalInfo } from "./model/TechnicalInfo";
import { TradeInInfo } from "./model/TradeInInfo"; import { TradeInInfo } from "./model/TradeInInfo";
import { TradeInPrice } from "./model/TradeInPrice"; import { TradeInPrice } from "./model/TradeInPrice";

View File

@ -337,7 +337,6 @@ export class GetItemsResource {
const self = this; const self = this;
Object.keys(GetItemsResourceValues).forEach((key: string) => self[key] = GetItemsResource[key]); Object.keys(GetItemsResourceValues).forEach((key: string) => self[key] = GetItemsResource[key]);
} }
/** /**
* Returns a <code>GetItemsResource</code> enum value from a Javascript object name. * Returns a <code>GetItemsResource</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.

View File

@ -21,341 +21,351 @@
* *
*/ */
/** (function(root, factory) {
* Enum class GetVariationsResource. if (typeof define === 'function' && define.amd) {
* @enum {} // AMD. Register as an anonymous module.
* @readonly define(['ApiClient'], factory);
*/ } else if (typeof module === 'object' && module.exports) {
export const GetVariationsResourceValues = { // CommonJS-like environments that support module.exports, like Node.
/** module.exports = factory(require('../ApiClient'));
* value: "BrowseNodeInfo.BrowseNodes" } else {
* @const // Browser globals (root is window)
*/ if (!root.ProductAdvertisingAPIv1) {
"BrowseNodeInfo.BrowseNodes": "BrowseNodeInfo.BrowseNodes", root.ProductAdvertisingAPIv1 = {};
/** }
* value: "BrowseNodeInfo.BrowseNodes.Ancestor" root.ProductAdvertisingAPIv1.GetVariationsResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
* @const
*/
"BrowseNodeInfo.BrowseNodes.Ancestor": "BrowseNodeInfo.BrowseNodes.Ancestor",
/**
* value: "BrowseNodeInfo.BrowseNodes.SalesRank"
* @const
*/
"BrowseNodeInfo.BrowseNodes.SalesRank": "BrowseNodeInfo.BrowseNodes.SalesRank",
/**
* value: "BrowseNodeInfo.WebsiteSalesRank"
* @const
*/
"BrowseNodeInfo.WebsiteSalesRank": "BrowseNodeInfo.WebsiteSalesRank",
/**
* value: "CustomerReviews.Count"
* @const
*/
"CustomerReviews.Count": "CustomerReviews.Count",
/**
* value: "CustomerReviews.StarRating"
* @const
*/
"CustomerReviews.StarRating": "CustomerReviews.StarRating",
/**
* value: "Images.Primary.Small"
* @const
*/
"Images.Primary.Small": "Images.Primary.Small",
/**
* value: "Images.Primary.Medium"
* @const
*/
"Images.Primary.Medium": "Images.Primary.Medium",
/**
* value: "Images.Primary.Large"
* @const
*/
"Images.Primary.Large": "Images.Primary.Large",
/**
* value: "Images.Variants.Small"
* @const
*/
"Images.Variants.Small": "Images.Variants.Small",
/**
* value: "Images.Variants.Medium"
* @const
*/
"Images.Variants.Medium": "Images.Variants.Medium",
/**
* value: "Images.Variants.Large"
* @const
*/
"Images.Variants.Large": "Images.Variants.Large",
/**
* value: "ItemInfo.ByLineInfo"
* @const
*/
"ItemInfo.ByLineInfo": "ItemInfo.ByLineInfo",
/**
* value: "ItemInfo.ContentInfo"
* @const
*/
"ItemInfo.ContentInfo": "ItemInfo.ContentInfo",
/**
* value: "ItemInfo.ContentRating"
* @const
*/
"ItemInfo.ContentRating": "ItemInfo.ContentRating",
/**
* value: "ItemInfo.Classifications"
* @const
*/
"ItemInfo.Classifications": "ItemInfo.Classifications",
/**
* value: "ItemInfo.ExternalIds"
* @const
*/
"ItemInfo.ExternalIds": "ItemInfo.ExternalIds",
/**
* value: "ItemInfo.Features"
* @const
*/
"ItemInfo.Features": "ItemInfo.Features",
/**
* value: "ItemInfo.ManufactureInfo"
* @const
*/
"ItemInfo.ManufactureInfo": "ItemInfo.ManufactureInfo",
/**
* value: "ItemInfo.ProductInfo"
* @const
*/
"ItemInfo.ProductInfo": "ItemInfo.ProductInfo",
/**
* value: "ItemInfo.TechnicalInfo"
* @const
*/
"ItemInfo.TechnicalInfo": "ItemInfo.TechnicalInfo",
/**
* value: "ItemInfo.Title"
* @const
*/
"ItemInfo.Title": "ItemInfo.Title",
/**
* value: "ItemInfo.TradeInInfo"
* @const
*/
"ItemInfo.TradeInInfo": "ItemInfo.TradeInInfo",
/**
* value: "Offers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MaxOrderQuantity": "Offers.Listings.Availability.MaxOrderQuantity",
/**
* value: "Offers.Listings.Availability.Message"
* @const
*/
"Offers.Listings.Availability.Message": "Offers.Listings.Availability.Message",
/**
* value: "Offers.Listings.Availability.MinOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MinOrderQuantity": "Offers.Listings.Availability.MinOrderQuantity",
/**
* value: "Offers.Listings.Availability.Type"
* @const
*/
"Offers.Listings.Availability.Type": "Offers.Listings.Availability.Type",
/**
* value: "Offers.Listings.Condition"
* @const
*/
"Offers.Listings.Condition": "Offers.Listings.Condition",
/**
* value: "Offers.Listings.Condition.ConditionNote"
* @const
*/
"Offers.Listings.Condition.ConditionNote": "Offers.Listings.Condition.ConditionNote",
/**
* value: "Offers.Listings.Condition.SubCondition"
* @const
*/
"Offers.Listings.Condition.SubCondition": "Offers.Listings.Condition.SubCondition",
/**
* value: "Offers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"Offers.Listings.DeliveryInfo.IsAmazonFulfilled": "Offers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "Offers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsFreeShippingEligible": "Offers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "Offers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsPrimeEligible": "Offers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "Offers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"Offers.Listings.DeliveryInfo.ShippingCharges": "Offers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "Offers.Listings.IsBuyBoxWinner"
* @const
*/
"Offers.Listings.IsBuyBoxWinner": "Offers.Listings.IsBuyBoxWinner",
/**
* value: "Offers.Listings.LoyaltyPoints.Points"
* @const
*/
"Offers.Listings.LoyaltyPoints.Points": "Offers.Listings.LoyaltyPoints.Points",
/**
* value: "Offers.Listings.MerchantInfo"
* @const
*/
"Offers.Listings.MerchantInfo": "Offers.Listings.MerchantInfo",
/**
* value: "Offers.Listings.Price"
* @const
*/
"Offers.Listings.Price": "Offers.Listings.Price",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimeExclusive"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimeExclusive": "Offers.Listings.ProgramEligibility.IsPrimeExclusive",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimePantry"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimePantry": "Offers.Listings.ProgramEligibility.IsPrimePantry",
/**
* value: "Offers.Listings.Promotions"
* @const
*/
"Offers.Listings.Promotions": "Offers.Listings.Promotions",
/**
* value: "Offers.Listings.SavingBasis"
* @const
*/
"Offers.Listings.SavingBasis": "Offers.Listings.SavingBasis",
/**
* value: "Offers.Summaries.HighestPrice"
* @const
*/
"Offers.Summaries.HighestPrice": "Offers.Summaries.HighestPrice",
/**
* value: "Offers.Summaries.LowestPrice"
* @const
*/
"Offers.Summaries.LowestPrice": "Offers.Summaries.LowestPrice",
/**
* value: "Offers.Summaries.OfferCount"
* @const
*/
"Offers.Summaries.OfferCount": "Offers.Summaries.OfferCount",
/**
* value: "ParentASIN"
* @const
*/
"ParentASIN": "ParentASIN",
/**
* value: "RentalOffers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MaxOrderQuantity": "RentalOffers.Listings.Availability.MaxOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Message"
* @const
*/
"RentalOffers.Listings.Availability.Message": "RentalOffers.Listings.Availability.Message",
/**
* value: "RentalOffers.Listings.Availability.MinOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MinOrderQuantity": "RentalOffers.Listings.Availability.MinOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Type"
* @const
*/
"RentalOffers.Listings.Availability.Type": "RentalOffers.Listings.Availability.Type",
/**
* value: "RentalOffers.Listings.BasePrice"
* @const
*/
"RentalOffers.Listings.BasePrice": "RentalOffers.Listings.BasePrice",
/**
* value: "RentalOffers.Listings.Condition"
* @const
*/
"RentalOffers.Listings.Condition": "RentalOffers.Listings.Condition",
/**
* value: "RentalOffers.Listings.Condition.ConditionNote"
* @const
*/
"RentalOffers.Listings.Condition.ConditionNote": "RentalOffers.Listings.Condition.ConditionNote",
/**
* value: "RentalOffers.Listings.Condition.SubCondition"
* @const
*/
"RentalOffers.Listings.Condition.SubCondition": "RentalOffers.Listings.Condition.SubCondition",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled": "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible": "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsPrimeEligible": "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.ShippingCharges": "RentalOffers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "RentalOffers.Listings.MerchantInfo"
* @const
*/
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo",
/**
* value: "VariationSummary.Price.HighestPrice"
* @const
*/
"VariationSummary.Price.HighestPrice": "VariationSummary.Price.HighestPrice",
/**
* value: "VariationSummary.Price.LowestPrice"
* @const
*/
"VariationSummary.Price.LowestPrice": "VariationSummary.Price.LowestPrice",
/**
* value: "VariationSummary.VariationDimension"
* @const
*/
"VariationSummary.VariationDimension": "VariationSummary.VariationDimension"
};
/**
* Enum class GetVariationsResource.
* @enum {}
* @readonly
*/
export class GetVariationsResource {
[key: string]: any;
public constructor() {
const self = this;
Object.keys(GetVariationsResourceValues).forEach((key: string) => self[key] = GetVariationsResourceValues[key]);
} }
}(this, function(ApiClient) {
'use strict';
/**
* Enum class GetVariationsResource.
* @enum {}
* @readonly
*/
var exports = {
/**
* value: "BrowseNodeInfo.BrowseNodes"
* @const
*/
"BrowseNodeInfo.BrowseNodes": "BrowseNodeInfo.BrowseNodes",
/**
* value: "BrowseNodeInfo.BrowseNodes.Ancestor"
* @const
*/
"BrowseNodeInfo.BrowseNodes.Ancestor": "BrowseNodeInfo.BrowseNodes.Ancestor",
/**
* value: "BrowseNodeInfo.BrowseNodes.SalesRank"
* @const
*/
"BrowseNodeInfo.BrowseNodes.SalesRank": "BrowseNodeInfo.BrowseNodes.SalesRank",
/**
* value: "BrowseNodeInfo.WebsiteSalesRank"
* @const
*/
"BrowseNodeInfo.WebsiteSalesRank": "BrowseNodeInfo.WebsiteSalesRank",
/**
* value: "CustomerReviews.Count"
* @const
*/
"CustomerReviews.Count": "CustomerReviews.Count",
/**
* value: "CustomerReviews.StarRating"
* @const
*/
"CustomerReviews.StarRating": "CustomerReviews.StarRating",
/**
* value: "Images.Primary.Small"
* @const
*/
"Images.Primary.Small": "Images.Primary.Small",
/**
* value: "Images.Primary.Medium"
* @const
*/
"Images.Primary.Medium": "Images.Primary.Medium",
/**
* value: "Images.Primary.Large"
* @const
*/
"Images.Primary.Large": "Images.Primary.Large",
/**
* value: "Images.Variants.Small"
* @const
*/
"Images.Variants.Small": "Images.Variants.Small",
/**
* value: "Images.Variants.Medium"
* @const
*/
"Images.Variants.Medium": "Images.Variants.Medium",
/**
* value: "Images.Variants.Large"
* @const
*/
"Images.Variants.Large": "Images.Variants.Large",
/**
* value: "ItemInfo.ByLineInfo"
* @const
*/
"ItemInfo.ByLineInfo": "ItemInfo.ByLineInfo",
/**
* value: "ItemInfo.ContentInfo"
* @const
*/
"ItemInfo.ContentInfo": "ItemInfo.ContentInfo",
/**
* value: "ItemInfo.ContentRating"
* @const
*/
"ItemInfo.ContentRating": "ItemInfo.ContentRating",
/**
* value: "ItemInfo.Classifications"
* @const
*/
"ItemInfo.Classifications": "ItemInfo.Classifications",
/**
* value: "ItemInfo.ExternalIds"
* @const
*/
"ItemInfo.ExternalIds": "ItemInfo.ExternalIds",
/**
* value: "ItemInfo.Features"
* @const
*/
"ItemInfo.Features": "ItemInfo.Features",
/**
* value: "ItemInfo.ManufactureInfo"
* @const
*/
"ItemInfo.ManufactureInfo": "ItemInfo.ManufactureInfo",
/**
* value: "ItemInfo.ProductInfo"
* @const
*/
"ItemInfo.ProductInfo": "ItemInfo.ProductInfo",
/**
* value: "ItemInfo.TechnicalInfo"
* @const
*/
"ItemInfo.TechnicalInfo": "ItemInfo.TechnicalInfo",
/**
* value: "ItemInfo.Title"
* @const
*/
"ItemInfo.Title": "ItemInfo.Title",
/**
* value: "ItemInfo.TradeInInfo"
* @const
*/
"ItemInfo.TradeInInfo": "ItemInfo.TradeInInfo",
/**
* value: "Offers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MaxOrderQuantity": "Offers.Listings.Availability.MaxOrderQuantity",
/**
* value: "Offers.Listings.Availability.Message"
* @const
*/
"Offers.Listings.Availability.Message": "Offers.Listings.Availability.Message",
/**
* value: "Offers.Listings.Availability.MinOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MinOrderQuantity": "Offers.Listings.Availability.MinOrderQuantity",
/**
* value: "Offers.Listings.Availability.Type"
* @const
*/
"Offers.Listings.Availability.Type": "Offers.Listings.Availability.Type",
/**
* value: "Offers.Listings.Condition"
* @const
*/
"Offers.Listings.Condition": "Offers.Listings.Condition",
/**
* value: "Offers.Listings.Condition.ConditionNote"
* @const
*/
"Offers.Listings.Condition.ConditionNote": "Offers.Listings.Condition.ConditionNote",
/**
* value: "Offers.Listings.Condition.SubCondition"
* @const
*/
"Offers.Listings.Condition.SubCondition": "Offers.Listings.Condition.SubCondition",
/**
* value: "Offers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"Offers.Listings.DeliveryInfo.IsAmazonFulfilled": "Offers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "Offers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsFreeShippingEligible": "Offers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "Offers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsPrimeEligible": "Offers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "Offers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"Offers.Listings.DeliveryInfo.ShippingCharges": "Offers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "Offers.Listings.IsBuyBoxWinner"
* @const
*/
"Offers.Listings.IsBuyBoxWinner": "Offers.Listings.IsBuyBoxWinner",
/**
* value: "Offers.Listings.LoyaltyPoints.Points"
* @const
*/
"Offers.Listings.LoyaltyPoints.Points": "Offers.Listings.LoyaltyPoints.Points",
/**
* value: "Offers.Listings.MerchantInfo"
* @const
*/
"Offers.Listings.MerchantInfo": "Offers.Listings.MerchantInfo",
/**
* value: "Offers.Listings.Price"
* @const
*/
"Offers.Listings.Price": "Offers.Listings.Price",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimeExclusive"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimeExclusive": "Offers.Listings.ProgramEligibility.IsPrimeExclusive",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimePantry"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimePantry": "Offers.Listings.ProgramEligibility.IsPrimePantry",
/**
* value: "Offers.Listings.Promotions"
* @const
*/
"Offers.Listings.Promotions": "Offers.Listings.Promotions",
/**
* value: "Offers.Listings.SavingBasis"
* @const
*/
"Offers.Listings.SavingBasis": "Offers.Listings.SavingBasis",
/**
* value: "Offers.Summaries.HighestPrice"
* @const
*/
"Offers.Summaries.HighestPrice": "Offers.Summaries.HighestPrice",
/**
* value: "Offers.Summaries.LowestPrice"
* @const
*/
"Offers.Summaries.LowestPrice": "Offers.Summaries.LowestPrice",
/**
* value: "Offers.Summaries.OfferCount"
* @const
*/
"Offers.Summaries.OfferCount": "Offers.Summaries.OfferCount",
/**
* value: "ParentASIN"
* @const
*/
"ParentASIN": "ParentASIN",
/**
* value: "RentalOffers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MaxOrderQuantity": "RentalOffers.Listings.Availability.MaxOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Message"
* @const
*/
"RentalOffers.Listings.Availability.Message": "RentalOffers.Listings.Availability.Message",
/**
* value: "RentalOffers.Listings.Availability.MinOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MinOrderQuantity": "RentalOffers.Listings.Availability.MinOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Type"
* @const
*/
"RentalOffers.Listings.Availability.Type": "RentalOffers.Listings.Availability.Type",
/**
* value: "RentalOffers.Listings.BasePrice"
* @const
*/
"RentalOffers.Listings.BasePrice": "RentalOffers.Listings.BasePrice",
/**
* value: "RentalOffers.Listings.Condition"
* @const
*/
"RentalOffers.Listings.Condition": "RentalOffers.Listings.Condition",
/**
* value: "RentalOffers.Listings.Condition.ConditionNote"
* @const
*/
"RentalOffers.Listings.Condition.ConditionNote": "RentalOffers.Listings.Condition.ConditionNote",
/**
* value: "RentalOffers.Listings.Condition.SubCondition"
* @const
*/
"RentalOffers.Listings.Condition.SubCondition": "RentalOffers.Listings.Condition.SubCondition",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled": "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible": "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsPrimeEligible": "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.ShippingCharges": "RentalOffers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "RentalOffers.Listings.MerchantInfo"
* @const
*/
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo",
/**
* value: "VariationSummary.Price.HighestPrice"
* @const
*/
"VariationSummary.Price.HighestPrice": "VariationSummary.Price.HighestPrice",
/**
* value: "VariationSummary.Price.LowestPrice"
* @const
*/
"VariationSummary.Price.LowestPrice": "VariationSummary.Price.LowestPrice",
/**
* value: "VariationSummary.VariationDimension"
* @const
*/
"VariationSummary.VariationDimension": "VariationSummary.VariationDimension" };
/** /**
* Returns a <code>GetVariationsResource</code> enum value from a Javascript object name. * Returns a <code>GetVariationsResource</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/GetVariationsResource} The enum <code>GetVariationsResource</code> value. * @return {module:model/GetVariationsResource} The enum <code>GetVariationsResource</code> value.
*/ */
public static constructFromObject(object: any) { return object; } exports.constructFromObject = function(object) {
}; return object;
}
return exports;
}));

View File

@ -21,18 +21,42 @@
* *
*/ */
/** (function(root, factory) {
* The MinReviewsRating model module. if (typeof define === 'function' && define.amd) {
* @module model/MinReviewsRating // AMD. Register as an anonymous module.
* @version 1.0.0 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.MinReviewsRating = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The MinReviewsRating model module.
* @module model/MinReviewsRating
* @version 1.0.0
*/
/**
* Constructs a new <code>MinReviewsRating</code>.
* @alias module:model/MinReviewsRating
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a new <code>MinReviewsRating</code>.
* @alias module:model/MinReviewsRating
* @class
*/
export class MinReviewsRating {
/** /**
* Constructs a <code>MinReviewsRating</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>MinReviewsRating</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.
@ -40,5 +64,14 @@ export class MinReviewsRating {
* @param {module:model/MinReviewsRating} obj Optional instance to populate. * @param {module:model/MinReviewsRating} obj Optional instance to populate.
* @return {module:model/MinReviewsRating} The populated <code>MinReviewsRating</code> instance. * @return {module:model/MinReviewsRating} The populated <code>MinReviewsRating</code> instance.
*/ */
public static constructFromObject(data: any, _obj?: MinReviewsRating) { return data; } exports.constructFromObject = function(data, obj) {
}; return data;
}
return exports;
}));

View File

@ -21,18 +21,42 @@
* *
*/ */
/** (function(root, factory) {
* The MinSavingPercent model module. if (typeof define === 'function' && define.amd) {
* @module model/MinSavingPercent // AMD. Register as an anonymous module.
* @version 1.0.0 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.MinSavingPercent = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The MinSavingPercent model module.
* @module model/MinSavingPercent
* @version 1.0.0
*/
/**
* Constructs a new <code>MinSavingPercent</code>.
* @alias module:model/MinSavingPercent
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a new <code>MinSavingPercent</code>.
* @alias module:model/MinSavingPercent
* @class
*/
export class MinSavingPercent {
/** /**
* Constructs a <code>MinSavingPercent</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>MinSavingPercent</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.
@ -40,5 +64,14 @@ export class MinSavingPercent {
* @param {module:model/MinSavingPercent} obj Optional instance to populate. * @param {module:model/MinSavingPercent} obj Optional instance to populate.
* @return {module:model/MinSavingPercent} The populated <code>MinSavingPercent</code> instance. * @return {module:model/MinSavingPercent} The populated <code>MinSavingPercent</code> instance.
*/ */
public static constructFromObject(data: any, _obj?: MinSavingPercent) { return data; } exports.constructFromObject = function(data, obj) {
}; return data;
}
return exports;
}));

View File

@ -15,155 +15,76 @@
* permissions and limitations under the License. * permissions and limitations under the License.
*/ */
/** /**
* ProductAdvertisingAPI * ProductAdvertisingAPI
* https://webservices.amazon.com/paapi5/documentation/index.html * https://webservices.amazon.com/paapi5/documentation/index.html
* *
*/ */
import { ApiClient } from "../ApiClient"; (function(root, factory) {
import { Availability } from "./Availability"; if (typeof define === 'function' && define.amd) {
import { Condition } from "./Condition"; // AMD. Register as an anonymous module.
import { DeliveryFlag } from "./DeliveryFlag"; define(['ApiClient', 'model/Availability', 'model/Condition', 'model/DeliveryFlag', 'model/MaxPrice', 'model/Merchant', 'model/MinPrice', 'model/MinReviewsRating', 'model/MinSavingPercent', 'model/OfferCount', 'model/PartnerType', 'model/Properties', 'model/SearchItemsResource', 'model/SortBy'], factory);
import { MaxPrice } from "./MaxPrice"; } else if (typeof module === 'object' && module.exports) {
import { Merchant } from "./Merchant"; // CommonJS-like environments that support module.exports, like Node.
import { MinPrice } from "./MinPrice"; module.exports = factory(require('../ApiClient'), require('./Availability'), require('./Condition'), require('./DeliveryFlag'), require('./MaxPrice'), require('./Merchant'), require('./MinPrice'), require('./MinReviewsRating'), require('./MinSavingPercent'), require('./OfferCount'), require('./PartnerType'), require('./Properties'), require('./SearchItemsResource'), require('./SortBy'));
import { MinReviewsRating } from "./MinReviewsRating"; } else {
import { MinSavingPercent } from "./MinSavingPercent"; // Browser globals (root is window)
import { OfferCount } from "./OfferCount"; if (!root.ProductAdvertisingAPIv1) {
import { PartnerType } from "./PartnerType"; root.ProductAdvertisingAPIv1 = {};
import { Properties } from "./Properties"; }
import { SearchItemsResource } from "./SearchItemsResource"; root.ProductAdvertisingAPIv1.SearchItemsRequest = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Availability, root.ProductAdvertisingAPIv1.Condition, root.ProductAdvertisingAPIv1.DeliveryFlag, root.ProductAdvertisingAPIv1.MaxPrice, root.ProductAdvertisingAPIv1.Merchant, root.ProductAdvertisingAPIv1.MinPrice, root.ProductAdvertisingAPIv1.MinReviewsRating, root.ProductAdvertisingAPIv1.MinSavingPercent, root.ProductAdvertisingAPIv1.OfferCount, root.ProductAdvertisingAPIv1.PartnerType, root.ProductAdvertisingAPIv1.Properties, root.ProductAdvertisingAPIv1.SearchItemsResource, root.ProductAdvertisingAPIv1.SortBy);
import { SortBy } from "./SortBy"; }
}(this, function(ApiClient, Availability, Condition, DeliveryFlag, MaxPrice, Merchant, MinPrice, MinReviewsRating, MinSavingPercent, OfferCount, PartnerType, Properties, SearchItemsResource, SortBy) {
'use strict';
/**
* The SearchItemsRequest model module.
* @module model/SearchItemsRequest
* @version 1.0.0
*/
/**
* Constructs a new <code>SearchItemsRequest</code>.
* @alias module:model/SearchItemsRequest
* @class
* @param partnerTag {String}
* @param partnerType {module:model/PartnerType}
*/
export class SearchItemsRequest {
/**
* @member {String} Actor
*/
public Actor?: string;
/**
* @member {String} Artist
*/
public Artist?: string;
/**
* @member {String} Author
*/
public Author?: string;
/**
* @member {module:model/Availability} Availability
*/
public Availability?: Availability;
/**
* @member {String} Brand
*/
public Brand?: string;
/**
* @member {String} BrowseNodeId
*/
public BrowseNodeId?: string;
/**
* @member {module:model/Condition} Condition
*/
public Condition?: Condition;
/**
* @member {String} CurrencyOfPreference
*/
public CurrencyOfPreference?: string;
/**
* @member {Array.<module:model/DeliveryFlag>} DeliveryFlags
*/
public DeliveryFlags?: DeliveryFlag[];
/**
* @member {Number} ItemCount
*/
public ItemCount?: number;
/**
* @member {Number} ItemPage
*/
public ItemPage?: number;
/**
* @member {String} Keywords
*/
public Keywords?: string;
/**
* @member {Array.<String>} LanguagesOfPreference
*/
public LanguagesOfPreference?: string[];
/**
* @member {String} Marketplace
*/
public Marketplace?: string;
/**
* @member {module:model/MaxPrice} MaxPrice
*/
public MaxPrice?: MaxPrice;
/**
* @member {module:model/Merchant} Merchant
*/
public Merchant?: Merchant;
/**
* @member {module:model/MinPrice} MinPrice
*/
public MinPrice?: MinPrice;
/**
* @member {module:model/MinReviewsRating} MinReviewsRating
*/
public MinReviewsRating?: MinReviewsRating;
/**
* @member {module:model/MinSavingPercent} MinSavingPercent
*/
public MinSavingPercent?: MinSavingPercent;
/**
* @member {module:model/OfferCount} OfferCount
*/
public OfferCount?: OfferCount;
/**
* @member {String} PartnerTag
*/
public PartnerTag?: string;
/**
* @member {module:model/PartnerType} PartnerType
*/
public PartnerType?: PartnerType;
/**
* @member {module:model/Properties} Properties
*/
public Properties?: Properties;
/**
* @member {Array.<module:model/SearchItemsResource>} Resources
*/
public Resources?: SearchItemsResource[];
/**
* @member {String} SearchIndex
*/
public SearchIndex?: string;
/**
* @member {module:model/SortBy} SortBy
*/
public SortBy?: SortBy;
/**
* @member {String} Title
*/
public Title?: string;
// not sure when I'll need this:
// public constructor(partnerTag, partnerType) { /**
// this.PartnerTag = partnerTag; * The SearchItemsRequest model module.
// this.PartnerType = partnerType; * @module model/SearchItemsRequest
// }; * @version 1.0.0
*/
/**
* Constructs a new <code>SearchItemsRequest</code>.
* @alias module:model/SearchItemsRequest
* @class
* @param partnerTag {String}
* @param partnerType {module:model/PartnerType}
*/
var exports = function(partnerTag, partnerType) {
var _this = this;
_this['PartnerTag'] = partnerTag;
_this['PartnerType'] = partnerType;
};
/** /**
* Constructs a <code>SearchItemsRequest</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>SearchItemsRequest</code> from a plain JavaScript object, optionally creating a new instance.
@ -172,92 +93,207 @@ export class SearchItemsRequest {
* @param {module:model/SearchItemsRequest} obj Optional instance to populate. * @param {module:model/SearchItemsRequest} obj Optional instance to populate.
* @return {module:model/SearchItemsRequest} The populated <code>SearchItemsRequest</code> instance. * @return {module:model/SearchItemsRequest} The populated <code>SearchItemsRequest</code> instance.
*/ */
public static constructFromObject(data: any, obj?: SearchItemsRequest) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new SearchItemsRequest(); obj = obj || new exports();
if (data.hasOwnProperty('Actor')) { if (data.hasOwnProperty('Actor')) {
obj.Actor = ApiClient.convertToType(data['Actor'], 'String'); obj['Actor'] = ApiClient.convertToType(data['Actor'], 'String');
} }
if (data.hasOwnProperty('Artist')) { if (data.hasOwnProperty('Artist')) {
obj.Artist = ApiClient.convertToType(data['Artist'], 'String'); obj['Artist'] = ApiClient.convertToType(data['Artist'], 'String');
} }
if (data.hasOwnProperty('Author')) { if (data.hasOwnProperty('Author')) {
obj.Author = ApiClient.convertToType(data['Author'], 'String'); obj['Author'] = ApiClient.convertToType(data['Author'], 'String');
} }
if (data.hasOwnProperty('Availability')) { if (data.hasOwnProperty('Availability')) {
obj.Availability = Availability.constructFromObject(data['Availability']); obj['Availability'] = Availability.constructFromObject(data['Availability']);
} }
if (data.hasOwnProperty('Brand')) { if (data.hasOwnProperty('Brand')) {
obj.Brand = ApiClient.convertToType(data['Brand'], 'String'); obj['Brand'] = ApiClient.convertToType(data['Brand'], 'String');
} }
if (data.hasOwnProperty('BrowseNodeId')) { if (data.hasOwnProperty('BrowseNodeId')) {
obj.BrowseNodeId = ApiClient.convertToType(data['BrowseNodeId'], 'String'); obj['BrowseNodeId'] = ApiClient.convertToType(data['BrowseNodeId'], 'String');
} }
if (data.hasOwnProperty('Condition')) { if (data.hasOwnProperty('Condition')) {
obj.Condition = Condition.constructFromObject(data['Condition']); obj['Condition'] = Condition.constructFromObject(data['Condition']);
} }
if (data.hasOwnProperty('CurrencyOfPreference')) { if (data.hasOwnProperty('CurrencyOfPreference')) {
obj.CurrencyOfPreference = ApiClient.convertToType(data['CurrencyOfPreference'], 'String'); obj['CurrencyOfPreference'] = ApiClient.convertToType(data['CurrencyOfPreference'], 'String');
} }
if (data.hasOwnProperty('DeliveryFlags')) { if (data.hasOwnProperty('DeliveryFlags')) {
obj.DeliveryFlags = ApiClient.convertToType(data['DeliveryFlags'], [DeliveryFlag]); obj['DeliveryFlags'] = ApiClient.convertToType(data['DeliveryFlags'], [DeliveryFlag]);
} }
if (data.hasOwnProperty('ItemCount')) { if (data.hasOwnProperty('ItemCount')) {
obj.ItemCount = ApiClient.convertToType(data['ItemCount'], 'Number'); obj['ItemCount'] = ApiClient.convertToType(data['ItemCount'], 'Number');
} }
if (data.hasOwnProperty('ItemPage')) { if (data.hasOwnProperty('ItemPage')) {
obj.ItemPage = ApiClient.convertToType(data['ItemPage'], 'Number'); obj['ItemPage'] = ApiClient.convertToType(data['ItemPage'], 'Number');
} }
if (data.hasOwnProperty('Keywords')) { if (data.hasOwnProperty('Keywords')) {
obj.Keywords = ApiClient.convertToType(data['Keywords'], 'String'); obj['Keywords'] = ApiClient.convertToType(data['Keywords'], 'String');
} }
if (data.hasOwnProperty('LanguagesOfPreference')) { if (data.hasOwnProperty('LanguagesOfPreference')) {
obj.LanguagesOfPreference = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']); obj['LanguagesOfPreference'] = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']);
} }
if (data.hasOwnProperty('Marketplace')) { if (data.hasOwnProperty('Marketplace')) {
obj.Marketplace = ApiClient.convertToType(data['Marketplace'], 'String'); obj['Marketplace'] = ApiClient.convertToType(data['Marketplace'], 'String');
} }
if (data.hasOwnProperty('MaxPrice')) { if (data.hasOwnProperty('MaxPrice')) {
obj.MaxPrice = MaxPrice.constructFromObject(data['MaxPrice']); obj['MaxPrice'] = MaxPrice.constructFromObject(data['MaxPrice']);
} }
if (data.hasOwnProperty('Merchant')) { if (data.hasOwnProperty('Merchant')) {
obj.Merchant = Merchant.constructFromObject(data['Merchant']); obj['Merchant'] = Merchant.constructFromObject(data['Merchant']);
} }
if (data.hasOwnProperty('MinPrice')) { if (data.hasOwnProperty('MinPrice')) {
obj.MinPrice = MinPrice.constructFromObject(data['MinPrice']); obj['MinPrice'] = MinPrice.constructFromObject(data['MinPrice']);
} }
if (data.hasOwnProperty('MinReviewsRating')) { if (data.hasOwnProperty('MinReviewsRating')) {
obj.MinReviewsRating = MinReviewsRating.constructFromObject(data['MinReviewsRating']); obj['MinReviewsRating'] = MinReviewsRating.constructFromObject(data['MinReviewsRating']);
} }
if (data.hasOwnProperty('MinSavingPercent')) { if (data.hasOwnProperty('MinSavingPercent')) {
obj.MinSavingPercent = MinSavingPercent.constructFromObject(data['MinSavingPercent']); obj['MinSavingPercent'] = MinSavingPercent.constructFromObject(data['MinSavingPercent']);
} }
if (data.hasOwnProperty('OfferCount')) { if (data.hasOwnProperty('OfferCount')) {
obj.OfferCount = OfferCount.constructFromObject(data['OfferCount']); obj['OfferCount'] = OfferCount.constructFromObject(data['OfferCount']);
} }
if (data.hasOwnProperty('PartnerTag')) { if (data.hasOwnProperty('PartnerTag')) {
obj.PartnerTag = ApiClient.convertToType(data['PartnerTag'], 'String'); obj['PartnerTag'] = ApiClient.convertToType(data['PartnerTag'], 'String');
} }
if (data.hasOwnProperty('PartnerType')) { if (data.hasOwnProperty('PartnerType')) {
obj.PartnerType = PartnerType.constructFromObject(data['PartnerType']); obj['PartnerType'] = PartnerType.constructFromObject(data['PartnerType']);
} }
if (data.hasOwnProperty('Properties')) { if (data.hasOwnProperty('Properties')) {
obj.Properties = Properties.constructFromObject(data['Properties']); obj['Properties'] = Properties.constructFromObject(data['Properties']);
} }
if (data.hasOwnProperty('Resources')) { if (data.hasOwnProperty('Resources')) {
obj.Resources = ApiClient.convertToType(data['Resources'], [SearchItemsResource]); obj['Resources'] = ApiClient.convertToType(data['Resources'], [SearchItemsResource]);
} }
if (data.hasOwnProperty('SearchIndex')) { if (data.hasOwnProperty('SearchIndex')) {
obj.SearchIndex = ApiClient.convertToType(data['SearchIndex'], 'String'); obj['SearchIndex'] = ApiClient.convertToType(data['SearchIndex'], 'String');
} }
if (data.hasOwnProperty('SortBy')) { if (data.hasOwnProperty('SortBy')) {
obj.SortBy = SortBy.constructFromObject(data['SortBy']); obj['SortBy'] = SortBy.constructFromObject(data['SortBy']);
} }
if (data.hasOwnProperty('Title')) { if (data.hasOwnProperty('Title')) {
obj.Title = ApiClient.convertToType(data['Title'], 'String'); obj['Title'] = ApiClient.convertToType(data['Title'], 'String');
} }
} }
return obj; return obj;
} }
};
/**
* @member {String} Actor
*/
exports.prototype['Actor'] = undefined;
/**
* @member {String} Artist
*/
exports.prototype['Artist'] = undefined;
/**
* @member {String} Author
*/
exports.prototype['Author'] = undefined;
/**
* @member {module:model/Availability} Availability
*/
exports.prototype['Availability'] = undefined;
/**
* @member {String} Brand
*/
exports.prototype['Brand'] = undefined;
/**
* @member {String} BrowseNodeId
*/
exports.prototype['BrowseNodeId'] = undefined;
/**
* @member {module:model/Condition} Condition
*/
exports.prototype['Condition'] = undefined;
/**
* @member {String} CurrencyOfPreference
*/
exports.prototype['CurrencyOfPreference'] = undefined;
/**
* @member {Array.<module:model/DeliveryFlag>} DeliveryFlags
*/
exports.prototype['DeliveryFlags'] = undefined;
/**
* @member {Number} ItemCount
*/
exports.prototype['ItemCount'] = undefined;
/**
* @member {Number} ItemPage
*/
exports.prototype['ItemPage'] = undefined;
/**
* @member {String} Keywords
*/
exports.prototype['Keywords'] = undefined;
/**
* @member {Array.<String>} LanguagesOfPreference
*/
exports.prototype['LanguagesOfPreference'] = undefined;
/**
* @member {String} Marketplace
*/
exports.prototype['Marketplace'] = undefined;
/**
* @member {module:model/MaxPrice} MaxPrice
*/
exports.prototype['MaxPrice'] = undefined;
/**
* @member {module:model/Merchant} Merchant
*/
exports.prototype['Merchant'] = undefined;
/**
* @member {module:model/MinPrice} MinPrice
*/
exports.prototype['MinPrice'] = undefined;
/**
* @member {module:model/MinReviewsRating} MinReviewsRating
*/
exports.prototype['MinReviewsRating'] = undefined;
/**
* @member {module:model/MinSavingPercent} MinSavingPercent
*/
exports.prototype['MinSavingPercent'] = undefined;
/**
* @member {module:model/OfferCount} OfferCount
*/
exports.prototype['OfferCount'] = undefined;
/**
* @member {String} PartnerTag
*/
exports.prototype['PartnerTag'] = undefined;
/**
* @member {module:model/PartnerType} PartnerType
*/
exports.prototype['PartnerType'] = undefined;
/**
* @member {module:model/Properties} Properties
*/
exports.prototype['Properties'] = undefined;
/**
* @member {Array.<module:model/SearchItemsResource>} Resources
*/
exports.prototype['Resources'] = undefined;
/**
* @member {String} SearchIndex
*/
exports.prototype['SearchIndex'] = undefined;
/**
* @member {module:model/SortBy} SortBy
*/
exports.prototype['SortBy'] = undefined;
/**
* @member {String} Title
*/
exports.prototype['Title'] = undefined;
return exports;
}));

View File

@ -21,326 +21,341 @@
* *
*/ */
/** (function(root, factory) {
* Enum class SearchItemsResource. if (typeof define === 'function' && define.amd) {
* @enum {} // AMD. Register as an anonymous module.
* @readonly define(['ApiClient'], factory);
*/ } else if (typeof module === 'object' && module.exports) {
export const SearchItemsResourceValues = { // CommonJS-like environments that support module.exports, like Node.
/** module.exports = factory(require('../ApiClient'));
* value: "BrowseNodeInfo.BrowseNodes" } else {
* @const // Browser globals (root is window)
*/ if (!root.ProductAdvertisingAPIv1) {
"BrowseNodeInfo.BrowseNodes": "BrowseNodeInfo.BrowseNodes", root.ProductAdvertisingAPIv1 = {};
/** }
* value: "BrowseNodeInfo.BrowseNodes.Ancestor" root.ProductAdvertisingAPIv1.SearchItemsResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
* @const
*/
"BrowseNodeInfo.BrowseNodes.Ancestor": "BrowseNodeInfo.BrowseNodes.Ancestor",
/**
* value: "BrowseNodeInfo.BrowseNodes.SalesRank"
* @const
*/
"BrowseNodeInfo.BrowseNodes.SalesRank": "BrowseNodeInfo.BrowseNodes.SalesRank",
/**
* value: "BrowseNodeInfo.WebsiteSalesRank"
* @const
*/
"BrowseNodeInfo.WebsiteSalesRank": "BrowseNodeInfo.WebsiteSalesRank",
/**
* value: "CustomerReviews.Count"
* @const
*/
"CustomerReviews.Count": "CustomerReviews.Count",
/**
* value: "CustomerReviews.StarRating"
* @const
*/
"CustomerReviews.StarRating": "CustomerReviews.StarRating",
/**
* value: "Images.Primary.Small"
* @const
*/
"Images.Primary.Small": "Images.Primary.Small",
/**
* value: "Images.Primary.Medium"
* @const
*/
"Images.Primary.Medium": "Images.Primary.Medium",
/**
* value: "Images.Primary.Large"
* @const
*/
"Images.Primary.Large": "Images.Primary.Large",
/**
* value: "Images.Variants.Small"
* @const
*/
"Images.Variants.Small": "Images.Variants.Small",
/**
* value: "Images.Variants.Medium"
* @const
*/
"Images.Variants.Medium": "Images.Variants.Medium",
/**
* value: "Images.Variants.Large"
* @const
*/
"Images.Variants.Large": "Images.Variants.Large",
/**
* value: "ItemInfo.ByLineInfo"
* @const
*/
"ItemInfo.ByLineInfo": "ItemInfo.ByLineInfo",
/**
* value: "ItemInfo.ContentInfo"
* @const
*/
"ItemInfo.ContentInfo": "ItemInfo.ContentInfo",
/**
* value: "ItemInfo.ContentRating"
* @const
*/
"ItemInfo.ContentRating": "ItemInfo.ContentRating",
/**
* value: "ItemInfo.Classifications"
* @const
*/
"ItemInfo.Classifications": "ItemInfo.Classifications",
/**
* value: "ItemInfo.ExternalIds"
* @const
*/
"ItemInfo.ExternalIds": "ItemInfo.ExternalIds",
/**
* value: "ItemInfo.Features"
* @const
*/
"ItemInfo.Features": "ItemInfo.Features",
/**
* value: "ItemInfo.ManufactureInfo"
* @const
*/
"ItemInfo.ManufactureInfo": "ItemInfo.ManufactureInfo",
/**
* value: "ItemInfo.ProductInfo"
* @const
*/
"ItemInfo.ProductInfo": "ItemInfo.ProductInfo",
/**
* value: "ItemInfo.TechnicalInfo"
* @const
*/
"ItemInfo.TechnicalInfo": "ItemInfo.TechnicalInfo",
/**
* value: "ItemInfo.Title"
* @const
*/
"ItemInfo.Title": "ItemInfo.Title",
/**
* value: "ItemInfo.TradeInInfo"
* @const
*/
"ItemInfo.TradeInInfo": "ItemInfo.TradeInInfo",
/**
* value: "Offers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MaxOrderQuantity": "Offers.Listings.Availability.MaxOrderQuantity",
/**
* value: "Offers.Listings.Availability.Message"
* @const
*/
"Offers.Listings.Availability.Message": "Offers.Listings.Availability.Message",
/**
* value: "Offers.Listings.Availability.MinOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MinOrderQuantity": "Offers.Listings.Availability.MinOrderQuantity",
/**
* value: "Offers.Listings.Availability.Type"
* @const
*/
"Offers.Listings.Availability.Type": "Offers.Listings.Availability.Type",
/**
* value: "Offers.Listings.Condition"
* @const
*/
"Offers.Listings.Condition": "Offers.Listings.Condition",
/**
* value: "Offers.Listings.Condition.ConditionNote"
* @const
*/
"Offers.Listings.Condition.ConditionNote": "Offers.Listings.Condition.ConditionNote",
/**
* value: "Offers.Listings.Condition.SubCondition"
* @const
*/
"Offers.Listings.Condition.SubCondition": "Offers.Listings.Condition.SubCondition",
/**
* value: "Offers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"Offers.Listings.DeliveryInfo.IsAmazonFulfilled": "Offers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "Offers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsFreeShippingEligible": "Offers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "Offers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsPrimeEligible": "Offers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "Offers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"Offers.Listings.DeliveryInfo.ShippingCharges": "Offers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "Offers.Listings.IsBuyBoxWinner"
* @const
*/
"Offers.Listings.IsBuyBoxWinner": "Offers.Listings.IsBuyBoxWinner",
/**
* value: "Offers.Listings.LoyaltyPoints.Points"
* @const
*/
"Offers.Listings.LoyaltyPoints.Points": "Offers.Listings.LoyaltyPoints.Points",
/**
* value: "Offers.Listings.MerchantInfo"
* @const
*/
"Offers.Listings.MerchantInfo": "Offers.Listings.MerchantInfo",
/**
* value: "Offers.Listings.Price"
* @const
*/
"Offers.Listings.Price": "Offers.Listings.Price",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimeExclusive"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimeExclusive": "Offers.Listings.ProgramEligibility.IsPrimeExclusive",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimePantry"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimePantry": "Offers.Listings.ProgramEligibility.IsPrimePantry",
/**
* value: "Offers.Listings.Promotions"
* @const
*/
"Offers.Listings.Promotions": "Offers.Listings.Promotions",
/**
* value: "Offers.Listings.SavingBasis"
* @const
*/
"Offers.Listings.SavingBasis": "Offers.Listings.SavingBasis",
/**
* value: "Offers.Summaries.HighestPrice"
* @const
*/
"Offers.Summaries.HighestPrice": "Offers.Summaries.HighestPrice",
/**
* value: "Offers.Summaries.LowestPrice"
* @const
*/
"Offers.Summaries.LowestPrice": "Offers.Summaries.LowestPrice",
/**
* value: "Offers.Summaries.OfferCount"
* @const
*/
"Offers.Summaries.OfferCount": "Offers.Summaries.OfferCount",
/**
* value: "ParentASIN"
* @const
*/
"ParentASIN": "ParentASIN",
/**
* value: "RentalOffers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MaxOrderQuantity": "RentalOffers.Listings.Availability.MaxOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Message"
* @const
*/
"RentalOffers.Listings.Availability.Message": "RentalOffers.Listings.Availability.Message",
/**
* value: "RentalOffers.Listings.Availability.MinOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MinOrderQuantity": "RentalOffers.Listings.Availability.MinOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Type"
* @const
*/
"RentalOffers.Listings.Availability.Type": "RentalOffers.Listings.Availability.Type",
/**
* value: "RentalOffers.Listings.BasePrice"
* @const
*/
"RentalOffers.Listings.BasePrice": "RentalOffers.Listings.BasePrice",
/**
* value: "RentalOffers.Listings.Condition"
* @const
*/
"RentalOffers.Listings.Condition": "RentalOffers.Listings.Condition",
/**
* value: "RentalOffers.Listings.Condition.ConditionNote"
* @const
*/
"RentalOffers.Listings.Condition.ConditionNote": "RentalOffers.Listings.Condition.ConditionNote",
/**
* value: "RentalOffers.Listings.Condition.SubCondition"
* @const
*/
"RentalOffers.Listings.Condition.SubCondition": "RentalOffers.Listings.Condition.SubCondition",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled": "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible": "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsPrimeEligible": "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.ShippingCharges": "RentalOffers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "RentalOffers.Listings.MerchantInfo"
* @const
*/
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo",
/**
* value: "SearchRefinements"
* @const
*/
"SearchRefinements": "SearchRefinements"
};
export class SearchItemsResource {
[key: string]: any;
public constructor() {
const self = this;
Object.keys(SearchItemsResourceValues).forEach((key: string) => self[key] = SearchItemsResourceValues[key]);
} }
}(this, function(ApiClient) {
'use strict';
/**
* Enum class SearchItemsResource.
* @enum {}
* @readonly
*/
var exports = {
/**
* value: "BrowseNodeInfo.BrowseNodes"
* @const
*/
"BrowseNodeInfo.BrowseNodes": "BrowseNodeInfo.BrowseNodes",
/**
* value: "BrowseNodeInfo.BrowseNodes.Ancestor"
* @const
*/
"BrowseNodeInfo.BrowseNodes.Ancestor": "BrowseNodeInfo.BrowseNodes.Ancestor",
/**
* value: "BrowseNodeInfo.BrowseNodes.SalesRank"
* @const
*/
"BrowseNodeInfo.BrowseNodes.SalesRank": "BrowseNodeInfo.BrowseNodes.SalesRank",
/**
* value: "BrowseNodeInfo.WebsiteSalesRank"
* @const
*/
"BrowseNodeInfo.WebsiteSalesRank": "BrowseNodeInfo.WebsiteSalesRank",
/**
* value: "CustomerReviews.Count"
* @const
*/
"CustomerReviews.Count": "CustomerReviews.Count",
/**
* value: "CustomerReviews.StarRating"
* @const
*/
"CustomerReviews.StarRating": "CustomerReviews.StarRating",
/**
* value: "Images.Primary.Small"
* @const
*/
"Images.Primary.Small": "Images.Primary.Small",
/**
* value: "Images.Primary.Medium"
* @const
*/
"Images.Primary.Medium": "Images.Primary.Medium",
/**
* value: "Images.Primary.Large"
* @const
*/
"Images.Primary.Large": "Images.Primary.Large",
/**
* value: "Images.Variants.Small"
* @const
*/
"Images.Variants.Small": "Images.Variants.Small",
/**
* value: "Images.Variants.Medium"
* @const
*/
"Images.Variants.Medium": "Images.Variants.Medium",
/**
* value: "Images.Variants.Large"
* @const
*/
"Images.Variants.Large": "Images.Variants.Large",
/**
* value: "ItemInfo.ByLineInfo"
* @const
*/
"ItemInfo.ByLineInfo": "ItemInfo.ByLineInfo",
/**
* value: "ItemInfo.ContentInfo"
* @const
*/
"ItemInfo.ContentInfo": "ItemInfo.ContentInfo",
/**
* value: "ItemInfo.ContentRating"
* @const
*/
"ItemInfo.ContentRating": "ItemInfo.ContentRating",
/**
* value: "ItemInfo.Classifications"
* @const
*/
"ItemInfo.Classifications": "ItemInfo.Classifications",
/**
* value: "ItemInfo.ExternalIds"
* @const
*/
"ItemInfo.ExternalIds": "ItemInfo.ExternalIds",
/**
* value: "ItemInfo.Features"
* @const
*/
"ItemInfo.Features": "ItemInfo.Features",
/**
* value: "ItemInfo.ManufactureInfo"
* @const
*/
"ItemInfo.ManufactureInfo": "ItemInfo.ManufactureInfo",
/**
* value: "ItemInfo.ProductInfo"
* @const
*/
"ItemInfo.ProductInfo": "ItemInfo.ProductInfo",
/**
* value: "ItemInfo.TechnicalInfo"
* @const
*/
"ItemInfo.TechnicalInfo": "ItemInfo.TechnicalInfo",
/**
* value: "ItemInfo.Title"
* @const
*/
"ItemInfo.Title": "ItemInfo.Title",
/**
* value: "ItemInfo.TradeInInfo"
* @const
*/
"ItemInfo.TradeInInfo": "ItemInfo.TradeInInfo",
/**
* value: "Offers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MaxOrderQuantity": "Offers.Listings.Availability.MaxOrderQuantity",
/**
* value: "Offers.Listings.Availability.Message"
* @const
*/
"Offers.Listings.Availability.Message": "Offers.Listings.Availability.Message",
/**
* value: "Offers.Listings.Availability.MinOrderQuantity"
* @const
*/
"Offers.Listings.Availability.MinOrderQuantity": "Offers.Listings.Availability.MinOrderQuantity",
/**
* value: "Offers.Listings.Availability.Type"
* @const
*/
"Offers.Listings.Availability.Type": "Offers.Listings.Availability.Type",
/**
* value: "Offers.Listings.Condition"
* @const
*/
"Offers.Listings.Condition": "Offers.Listings.Condition",
/**
* value: "Offers.Listings.Condition.ConditionNote"
* @const
*/
"Offers.Listings.Condition.ConditionNote": "Offers.Listings.Condition.ConditionNote",
/**
* value: "Offers.Listings.Condition.SubCondition"
* @const
*/
"Offers.Listings.Condition.SubCondition": "Offers.Listings.Condition.SubCondition",
/**
* value: "Offers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"Offers.Listings.DeliveryInfo.IsAmazonFulfilled": "Offers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "Offers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsFreeShippingEligible": "Offers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "Offers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"Offers.Listings.DeliveryInfo.IsPrimeEligible": "Offers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "Offers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"Offers.Listings.DeliveryInfo.ShippingCharges": "Offers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "Offers.Listings.IsBuyBoxWinner"
* @const
*/
"Offers.Listings.IsBuyBoxWinner": "Offers.Listings.IsBuyBoxWinner",
/**
* value: "Offers.Listings.LoyaltyPoints.Points"
* @const
*/
"Offers.Listings.LoyaltyPoints.Points": "Offers.Listings.LoyaltyPoints.Points",
/**
* value: "Offers.Listings.MerchantInfo"
* @const
*/
"Offers.Listings.MerchantInfo": "Offers.Listings.MerchantInfo",
/**
* value: "Offers.Listings.Price"
* @const
*/
"Offers.Listings.Price": "Offers.Listings.Price",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimeExclusive"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimeExclusive": "Offers.Listings.ProgramEligibility.IsPrimeExclusive",
/**
* value: "Offers.Listings.ProgramEligibility.IsPrimePantry"
* @const
*/
"Offers.Listings.ProgramEligibility.IsPrimePantry": "Offers.Listings.ProgramEligibility.IsPrimePantry",
/**
* value: "Offers.Listings.Promotions"
* @const
*/
"Offers.Listings.Promotions": "Offers.Listings.Promotions",
/**
* value: "Offers.Listings.SavingBasis"
* @const
*/
"Offers.Listings.SavingBasis": "Offers.Listings.SavingBasis",
/**
* value: "Offers.Summaries.HighestPrice"
* @const
*/
"Offers.Summaries.HighestPrice": "Offers.Summaries.HighestPrice",
/**
* value: "Offers.Summaries.LowestPrice"
* @const
*/
"Offers.Summaries.LowestPrice": "Offers.Summaries.LowestPrice",
/**
* value: "Offers.Summaries.OfferCount"
* @const
*/
"Offers.Summaries.OfferCount": "Offers.Summaries.OfferCount",
/**
* value: "ParentASIN"
* @const
*/
"ParentASIN": "ParentASIN",
/**
* value: "RentalOffers.Listings.Availability.MaxOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MaxOrderQuantity": "RentalOffers.Listings.Availability.MaxOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Message"
* @const
*/
"RentalOffers.Listings.Availability.Message": "RentalOffers.Listings.Availability.Message",
/**
* value: "RentalOffers.Listings.Availability.MinOrderQuantity"
* @const
*/
"RentalOffers.Listings.Availability.MinOrderQuantity": "RentalOffers.Listings.Availability.MinOrderQuantity",
/**
* value: "RentalOffers.Listings.Availability.Type"
* @const
*/
"RentalOffers.Listings.Availability.Type": "RentalOffers.Listings.Availability.Type",
/**
* value: "RentalOffers.Listings.BasePrice"
* @const
*/
"RentalOffers.Listings.BasePrice": "RentalOffers.Listings.BasePrice",
/**
* value: "RentalOffers.Listings.Condition"
* @const
*/
"RentalOffers.Listings.Condition": "RentalOffers.Listings.Condition",
/**
* value: "RentalOffers.Listings.Condition.ConditionNote"
* @const
*/
"RentalOffers.Listings.Condition.ConditionNote": "RentalOffers.Listings.Condition.ConditionNote",
/**
* value: "RentalOffers.Listings.Condition.SubCondition"
* @const
*/
"RentalOffers.Listings.Condition.SubCondition": "RentalOffers.Listings.Condition.SubCondition",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled": "RentalOffers.Listings.DeliveryInfo.IsAmazonFulfilled",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible": "RentalOffers.Listings.DeliveryInfo.IsFreeShippingEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.IsPrimeEligible": "RentalOffers.Listings.DeliveryInfo.IsPrimeEligible",
/**
* value: "RentalOffers.Listings.DeliveryInfo.ShippingCharges"
* @const
*/
"RentalOffers.Listings.DeliveryInfo.ShippingCharges": "RentalOffers.Listings.DeliveryInfo.ShippingCharges",
/**
* value: "RentalOffers.Listings.MerchantInfo"
* @const
*/
"RentalOffers.Listings.MerchantInfo": "RentalOffers.Listings.MerchantInfo",
/**
* value: "SearchRefinements"
* @const
*/
"SearchRefinements": "SearchRefinements" };
/** /**
* Returns a <code>SearchItemsResource</code> enum value from a Javascript object name. * Returns a <code>SearchItemsResource</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/SearchItemsResource} The enum <code>SearchItemsResource</code> value. * @return {module:model/SearchItemsResource} The enum <code>SearchItemsResource</code> value.
*/ */
public static constructFromObject(object: any) { return object; } exports.constructFromObject = function(object) {
}; return object;
}
return exports;
}));

View File

@ -21,30 +21,43 @@
* *
*/ */
/** (function(root, factory) {
* The SearchItemsResponse model module. if (typeof define === 'function' && define.amd) {
* @module model/SearchItemsResponse // AMD. Register as an anonymous module.
* @version 1.0.0 define(['ApiClient', 'model/ErrorData', 'model/SearchResult'], factory);
*/ } else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./ErrorData'), require('./SearchResult'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.SearchItemsResponse = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData, root.ProductAdvertisingAPIv1.SearchResult);
}
}(this, function(ApiClient, ErrorData, SearchResult) {
'use strict';
import { ApiClient } from "../ApiClient";
import { ErrorData } from "./ErrorData";
import { SearchResult } from "./SearchResult";
/**
* Constructs a new <code>SearchItemsResponse</code>.
* @alias module:model/SearchItemsResponse
* @class
*/
export class SearchItemsResponse {
/** /**
* @member {module:model/SearchResult} SearchResult * The SearchItemsResponse model module.
* @module model/SearchItemsResponse
* @version 1.0.0
*/ */
public SearchResult?: SearchResult;
/** /**
* @member {Array.<module:model/ErrorData>} Errors * Constructs a new <code>SearchItemsResponse</code>.
* @alias module:model/SearchItemsResponse
* @class
*/ */
public Errors?: ErrorData[]; var exports = function() {
var _this = this;
};
/** /**
* Constructs a <code>SearchItemsResponse</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>SearchItemsResponse</code> from a plain JavaScript object, optionally creating a new instance.
@ -53,17 +66,32 @@ export class SearchItemsResponse {
* @param {module:model/SearchItemsResponse} obj Optional instance to populate. * @param {module:model/SearchItemsResponse} obj Optional instance to populate.
* @return {module:model/SearchItemsResponse} The populated <code>SearchItemsResponse</code> instance. * @return {module:model/SearchItemsResponse} The populated <code>SearchItemsResponse</code> instance.
*/ */
public static constructFromObject(data: any, obj?: SearchItemsResponse) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new SearchItemsResponse(); obj = obj || new exports();
if (data.hasOwnProperty('SearchResult')) { if (data.hasOwnProperty('SearchResult')) {
obj.SearchResult = SearchResult.constructFromObject(data['SearchResult']); obj['SearchResult'] = SearchResult.constructFromObject(data['SearchResult']);
} }
if (data.hasOwnProperty('Errors')) { if (data.hasOwnProperty('Errors')) {
obj.Errors = ApiClient.convertToType(data['Errors'], [ErrorData]); obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
} }
} }
return obj; return obj;
} }
};
/**
* @member {module:model/SearchResult} SearchResult
*/
exports.prototype['SearchResult'] = undefined;
/**
* @member {Array.<module:model/ErrorData>} Errors
*/
exports.prototype['Errors'] = undefined;
return exports;
}));

View File

@ -21,38 +21,45 @@
* *
*/ */
/** (function(root, factory) {
* The SearchResult model module. if (typeof define === 'function' && define.amd) {
* @module model/SearchResult // AMD. Register as an anonymous module.
* @version 1.0.0 define(['ApiClient', 'model/Item', 'model/SearchRefinements'], factory);
*/ } else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./Item'), require('./SearchRefinements'));
} else {
// Browser globals (root is window)
if (!root.ProductAdvertisingAPIv1) {
root.ProductAdvertisingAPIv1 = {};
}
root.ProductAdvertisingAPIv1.SearchResult = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Item, root.ProductAdvertisingAPIv1.SearchRefinements);
}
}(this, function(ApiClient, Item, SearchRefinements) {
'use strict';
import { ApiClient } from "../ApiClient";
import { Item } from "./Item";
import { SearchRefinements } from "./SearchRefinements";
/**
* Constructs a new <code>SearchResult</code>.
* @alias module:model/SearchResult
* @class
*/
export class SearchResult {
/** /**
* @member {Number} TotalResultCount * The SearchResult model module.
* @module model/SearchResult
* @version 1.0.0
*/ */
public TotalResultCount?: number;
/** /**
* @member {String} SearchURL * Constructs a new <code>SearchResult</code>.
* @alias module:model/SearchResult
* @class
*/ */
public SearchURL?: string; var exports = function() {
/** var _this = this;
* @member {Array.<module:model/Item>} Items
*/
public Items?: Item[];
/**
* @member {module:model/SearchRefinements} SearchRefinements
*/ };
public SearchRefinements?: SearchRefinements;
/** /**
* Constructs a <code>SearchResult</code> from a plain JavaScript object, optionally creating a new instance. * Constructs a <code>SearchResult</code> from a plain JavaScript object, optionally creating a new instance.
@ -61,23 +68,46 @@ export class SearchResult {
* @param {module:model/SearchResult} obj Optional instance to populate. * @param {module:model/SearchResult} obj Optional instance to populate.
* @return {module:model/SearchResult} The populated <code>SearchResult</code> instance. * @return {module:model/SearchResult} The populated <code>SearchResult</code> instance.
*/ */
public static constructFromObject(data: any, obj?: SearchResult) { exports.constructFromObject = function(data, obj) {
if (data) { if (data) {
obj = obj || new SearchResult(); obj = obj || new exports();
if (data.hasOwnProperty('TotalResultCount')) { if (data.hasOwnProperty('TotalResultCount')) {
obj.TotalResultCount = ApiClient.convertToType(data['TotalResultCount'], 'Number'); obj['TotalResultCount'] = ApiClient.convertToType(data['TotalResultCount'], 'Number');
} }
if (data.hasOwnProperty('SearchURL')) { if (data.hasOwnProperty('SearchURL')) {
obj.SearchURL = ApiClient.convertToType(data['SearchURL'], 'String'); obj['SearchURL'] = ApiClient.convertToType(data['SearchURL'], 'String');
} }
if (data.hasOwnProperty('Items')) { if (data.hasOwnProperty('Items')) {
obj.Items = ApiClient.convertToType(data['Items'], [Item]); obj['Items'] = ApiClient.convertToType(data['Items'], [Item]);
} }
if (data.hasOwnProperty('SearchRefinements')) { if (data.hasOwnProperty('SearchRefinements')) {
obj.SearchRefinements = SearchRefinements.constructFromObject(data['SearchRefinements']); obj['SearchRefinements'] = SearchRefinements.constructFromObject(data['SearchRefinements']);
} }
} }
return obj; return obj;
} }
};
/**
* @member {Number} TotalResultCount
*/
exports.prototype['TotalResultCount'] = undefined;
/**
* @member {String} SearchURL
*/
exports.prototype['SearchURL'] = undefined;
/**
* @member {Array.<module:model/Item>} Items
*/
exports.prototype['Items'] = undefined;
/**
* @member {module:model/SearchRefinements} SearchRefinements
*/
exports.prototype['SearchRefinements'] = undefined;
return exports;
}));

View File

@ -21,12 +21,30 @@
* *
*/ */
/** (function(root, factory) {
* Enum class SortBy. if (typeof define === 'function' && define.amd) {
* @enum {} // AMD. Register as an anonymous module.
* @readonly define(['ApiClient'], factory);
*/ } else if (typeof module === 'object' && module.exports) {
export const SortByValues = { // 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.SortBy = factory(root.ProductAdvertisingAPIv1.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* Enum class SortBy.
* @enum {}
* @readonly
*/
var exports = {
/** /**
* value: "AvgCustomerReviews" * value: "AvgCustomerReviews"
* @const * @const
@ -56,26 +74,18 @@ export const SortByValues = {
* value: "Relevance" * value: "Relevance"
* @const * @const
*/ */
"Relevance": "Relevance", "Relevance": "Relevance" };
};
/**
* Enum class SortBy.
* @enum {}
* @readonly
*/
export class SortBy {
[key: string]: any;
public constructor() {
const self = this;
Object.keys(SortByValues).forEach((key: string) => self[key] = SortByValues[key]);
}
/** /**
* Returns a <code>SortBy</code> enum value from a Javascript object name. * Returns a <code>SortBy</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/SortBy} The enum <code>SortBy</code> value. * @return {module:model/SortBy} The enum <code>SortBy</code> value.
*/ */
public static constructFromObject(object: any) { return object; } exports.constructFromObject = function(object) {
}; return object;
}
return exports;
}));