diff --git a/src/index.ts b/src/index.ts
index 83b0791..54aa446 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -89,6 +89,8 @@ import { Refinement } from "./model/Refinement";
import { RefinementBin } from "./model/RefinementBin";
import { RentalOfferListing } from "./model/RentalOfferListing";
import { RentalOffers } from "./model/RentalOffers";
+import { SearchItemsRequest } from "./model/SearchItemsRequest";
+import { SearchItemsResponse } from "./model/SearchItemsResponse";
import { SearchRefinements } from "./model/SearchRefinements";
import { SearchResult } from "./model/SearchResult";
import { SingleBooleanValuedAttribute } from "./model/SingleBooleanValuedAttribute";
diff --git a/src/model/SearchItemsRequest.ts b/src/model/SearchItemsRequest.ts
index 7b29608..a2f47d9 100644
--- a/src/model/SearchItemsRequest.ts
+++ b/src/model/SearchItemsRequest.ts
@@ -15,76 +15,155 @@
* permissions and limitations under the License.
*/
- /**
+/**
* ProductAdvertisingAPI
* https://webservices.amazon.com/paapi5/documentation/index.html
*
*/
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- 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);
- } else if (typeof module === 'object' && module.exports) {
- // CommonJS-like environments that support module.exports, like Node.
- 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'));
- } else {
- // Browser globals (root is window)
- if (!root.ProductAdvertisingAPIv1) {
- root.ProductAdvertisingAPIv1 = {};
- }
- 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);
- }
-}(this, function(ApiClient, Availability, Condition, DeliveryFlag, MaxPrice, Merchant, MinPrice, MinReviewsRating, MinSavingPercent, OfferCount, PartnerType, Properties, SearchItemsResource, SortBy) {
- 'use strict';
-
-
+import { ApiClient } from "../ApiClient";
+import { Availability } from "./Availability";
+import { Condition } from "./Condition";
+import { DeliveryFlag } from "./DeliveryFlag";
+import { MaxPrice } from "./MaxPrice";
+import { Merchant } from "./Merchant";
+import { MinPrice } from "./MinPrice";
+import { MinReviewsRating } from "./MinReviewsRating";
+import { MinSavingPercent } from "./MinSavingPercent";
+import { OfferCount } from "./OfferCount";
+import { PartnerType } from "./PartnerType";
+import { Properties } from "./Properties";
+import { SearchItemsResource } from "./SearchItemsResource";
+import { SortBy } from "./SortBy";
+/**
+ * The SearchItemsRequest model module.
+ * @module model/SearchItemsRequest
+ * @version 1.0.0
+ */
+/**
+ * Constructs a new SearchItemsRequest.
+ * @alias module:model/SearchItemsRequest
+ * @class
+ * @param partnerTag {String}
+ * @param partnerType {module:model/PartnerType}
+ */
+export class SearchItemsRequest {
/**
- * The SearchItemsRequest model module.
- * @module model/SearchItemsRequest
- * @version 1.0.0
+ * @member {String} Actor
*/
-
+ public Actor?: string;
/**
- * Constructs a new SearchItemsRequest.
- * @alias module:model/SearchItemsRequest
- * @class
- * @param partnerTag {String}
- * @param partnerType {module:model/PartnerType}
+ * @member {String} Artist
*/
- var exports = function(partnerTag, partnerType) {
- var _this = this;
+ 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.} DeliveryFlags
+ */
+ public DeliveryFlags?: DeliveryFlag[];
+ /**
+ * @member {Number} ItemCount
+ */
+ public ItemCount?: number;
+ /**
+ * @member {Number} ItemPage
+ */
+ public ItemPage?: number;
+ /**
+ * @member {String} Keywords
+ */
+ public Keywords?: string;
+ /**
+ * @member {Array.} 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.} Resources
+ */
+ public Resources?: SearchItemsResource[];
+ /**
+ * @member {String} SearchIndex
+ */
+ public SearchIndex?: string;
+ /**
+ * @member {module:model/SortBy} SortBy
+ */
+ public SortBy?: SortBy;
+ /**
+ * @member {String} Title
+ */
+ public Title?: string;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- _this['PartnerTag'] = partnerTag;
- _this['PartnerType'] = partnerType;
-
-
-
-
-
- };
+ // not sure when I'll need this:
+ // public constructor(partnerTag, partnerType) {
+ // this.PartnerTag = partnerTag;
+ // this.PartnerType = partnerType;
+ // };
/**
* Constructs a SearchItemsRequest from a plain JavaScript object, optionally creating a new instance.
@@ -93,207 +172,92 @@
* @param {module:model/SearchItemsRequest} obj Optional instance to populate.
* @return {module:model/SearchItemsRequest} The populated SearchItemsRequest instance.
*/
- exports.constructFromObject = function(data, obj) {
+ public static constructFromObject(data: any, obj?: SearchItemsRequest) {
if (data) {
- obj = obj || new exports();
+ obj = obj || new SearchItemsRequest();
if (data.hasOwnProperty('Actor')) {
- obj['Actor'] = ApiClient.convertToType(data['Actor'], 'String');
+ obj.Actor = ApiClient.convertToType(data['Actor'], 'String');
}
if (data.hasOwnProperty('Artist')) {
- obj['Artist'] = ApiClient.convertToType(data['Artist'], 'String');
+ obj.Artist = ApiClient.convertToType(data['Artist'], 'String');
}
if (data.hasOwnProperty('Author')) {
- obj['Author'] = ApiClient.convertToType(data['Author'], 'String');
+ obj.Author = ApiClient.convertToType(data['Author'], 'String');
}
if (data.hasOwnProperty('Availability')) {
- obj['Availability'] = Availability.constructFromObject(data['Availability']);
+ obj.Availability = Availability.constructFromObject(data['Availability']);
}
if (data.hasOwnProperty('Brand')) {
- obj['Brand'] = ApiClient.convertToType(data['Brand'], 'String');
+ obj.Brand = ApiClient.convertToType(data['Brand'], 'String');
}
if (data.hasOwnProperty('BrowseNodeId')) {
- obj['BrowseNodeId'] = ApiClient.convertToType(data['BrowseNodeId'], 'String');
+ obj.BrowseNodeId = ApiClient.convertToType(data['BrowseNodeId'], 'String');
}
if (data.hasOwnProperty('Condition')) {
- obj['Condition'] = Condition.constructFromObject(data['Condition']);
+ obj.Condition = Condition.constructFromObject(data['Condition']);
}
if (data.hasOwnProperty('CurrencyOfPreference')) {
- obj['CurrencyOfPreference'] = ApiClient.convertToType(data['CurrencyOfPreference'], 'String');
+ obj.CurrencyOfPreference = ApiClient.convertToType(data['CurrencyOfPreference'], 'String');
}
if (data.hasOwnProperty('DeliveryFlags')) {
- obj['DeliveryFlags'] = ApiClient.convertToType(data['DeliveryFlags'], [DeliveryFlag]);
+ obj.DeliveryFlags = ApiClient.convertToType(data['DeliveryFlags'], [DeliveryFlag]);
}
if (data.hasOwnProperty('ItemCount')) {
- obj['ItemCount'] = ApiClient.convertToType(data['ItemCount'], 'Number');
+ obj.ItemCount = ApiClient.convertToType(data['ItemCount'], 'Number');
}
if (data.hasOwnProperty('ItemPage')) {
- obj['ItemPage'] = ApiClient.convertToType(data['ItemPage'], 'Number');
+ obj.ItemPage = ApiClient.convertToType(data['ItemPage'], 'Number');
}
if (data.hasOwnProperty('Keywords')) {
- obj['Keywords'] = ApiClient.convertToType(data['Keywords'], 'String');
+ obj.Keywords = ApiClient.convertToType(data['Keywords'], 'String');
}
if (data.hasOwnProperty('LanguagesOfPreference')) {
- obj['LanguagesOfPreference'] = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']);
+ obj.LanguagesOfPreference = ApiClient.convertToType(data['LanguagesOfPreference'], ['String']);
}
if (data.hasOwnProperty('Marketplace')) {
- obj['Marketplace'] = ApiClient.convertToType(data['Marketplace'], 'String');
+ obj.Marketplace = ApiClient.convertToType(data['Marketplace'], 'String');
}
if (data.hasOwnProperty('MaxPrice')) {
- obj['MaxPrice'] = MaxPrice.constructFromObject(data['MaxPrice']);
+ obj.MaxPrice = MaxPrice.constructFromObject(data['MaxPrice']);
}
if (data.hasOwnProperty('Merchant')) {
- obj['Merchant'] = Merchant.constructFromObject(data['Merchant']);
+ obj.Merchant = Merchant.constructFromObject(data['Merchant']);
}
if (data.hasOwnProperty('MinPrice')) {
- obj['MinPrice'] = MinPrice.constructFromObject(data['MinPrice']);
+ obj.MinPrice = MinPrice.constructFromObject(data['MinPrice']);
}
if (data.hasOwnProperty('MinReviewsRating')) {
- obj['MinReviewsRating'] = MinReviewsRating.constructFromObject(data['MinReviewsRating']);
+ obj.MinReviewsRating = MinReviewsRating.constructFromObject(data['MinReviewsRating']);
}
if (data.hasOwnProperty('MinSavingPercent')) {
- obj['MinSavingPercent'] = MinSavingPercent.constructFromObject(data['MinSavingPercent']);
+ obj.MinSavingPercent = MinSavingPercent.constructFromObject(data['MinSavingPercent']);
}
if (data.hasOwnProperty('OfferCount')) {
- obj['OfferCount'] = OfferCount.constructFromObject(data['OfferCount']);
+ obj.OfferCount = OfferCount.constructFromObject(data['OfferCount']);
}
if (data.hasOwnProperty('PartnerTag')) {
- obj['PartnerTag'] = ApiClient.convertToType(data['PartnerTag'], 'String');
+ obj.PartnerTag = ApiClient.convertToType(data['PartnerTag'], 'String');
}
if (data.hasOwnProperty('PartnerType')) {
- obj['PartnerType'] = PartnerType.constructFromObject(data['PartnerType']);
+ obj.PartnerType = PartnerType.constructFromObject(data['PartnerType']);
}
if (data.hasOwnProperty('Properties')) {
- obj['Properties'] = Properties.constructFromObject(data['Properties']);
+ obj.Properties = Properties.constructFromObject(data['Properties']);
}
if (data.hasOwnProperty('Resources')) {
- obj['Resources'] = ApiClient.convertToType(data['Resources'], [SearchItemsResource]);
+ obj.Resources = ApiClient.convertToType(data['Resources'], [SearchItemsResource]);
}
if (data.hasOwnProperty('SearchIndex')) {
- obj['SearchIndex'] = ApiClient.convertToType(data['SearchIndex'], 'String');
+ obj.SearchIndex = ApiClient.convertToType(data['SearchIndex'], 'String');
}
if (data.hasOwnProperty('SortBy')) {
- obj['SortBy'] = SortBy.constructFromObject(data['SortBy']);
+ obj.SortBy = SortBy.constructFromObject(data['SortBy']);
}
if (data.hasOwnProperty('Title')) {
- obj['Title'] = ApiClient.convertToType(data['Title'], 'String');
+ obj.Title = ApiClient.convertToType(data['Title'], 'String');
}
}
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.} 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.} 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.} 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;
-}));
-
-
+};
diff --git a/src/model/SearchItemsResponse.ts b/src/model/SearchItemsResponse.ts
index 94f588d..22f3a0d 100644
--- a/src/model/SearchItemsResponse.ts
+++ b/src/model/SearchItemsResponse.ts
@@ -21,43 +21,30 @@
*
*/
-(function(root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- 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';
-
-
+/**
+ * The SearchItemsResponse model module.
+ * @module model/SearchItemsResponse
+ * @version 1.0.0
+ */
+import { ApiClient } from "../ApiClient";
+import { ErrorData } from "./ErrorData";
+import { SearchResult } from "./SearchResult";
+/**
+ * Constructs a new SearchItemsResponse.
+ * @alias module:model/SearchItemsResponse
+ * @class
+ */
+export class SearchItemsResponse {
/**
- * The SearchItemsResponse model module.
- * @module model/SearchItemsResponse
- * @version 1.0.0
+ * @member {module:model/SearchResult} SearchResult
*/
-
+ public SearchResult?: SearchResult;
/**
- * Constructs a new SearchItemsResponse.
- * @alias module:model/SearchItemsResponse
- * @class
+ * @member {Array.} Errors
*/
- var exports = function() {
- var _this = this;
-
-
-
- };
+ public Errors?: ErrorData[];
/**
* Constructs a SearchItemsResponse from a plain JavaScript object, optionally creating a new instance.
@@ -66,32 +53,17 @@
* @param {module:model/SearchItemsResponse} obj Optional instance to populate.
* @return {module:model/SearchItemsResponse} The populated SearchItemsResponse instance.
*/
- exports.constructFromObject = function(data, obj) {
+ public static constructFromObject(data: any, obj?: SearchItemsResponse) {
if (data) {
- obj = obj || new exports();
+ obj = obj || new SearchItemsResponse();
if (data.hasOwnProperty('SearchResult')) {
- obj['SearchResult'] = SearchResult.constructFromObject(data['SearchResult']);
+ obj.SearchResult = SearchResult.constructFromObject(data['SearchResult']);
}
if (data.hasOwnProperty('Errors')) {
- obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
+ obj.Errors = ApiClient.convertToType(data['Errors'], [ErrorData]);
}
}
return obj;
}
-
- /**
- * @member {module:model/SearchResult} SearchResult
- */
- exports.prototype['SearchResult'] = undefined;
- /**
- * @member {Array.} Errors
- */
- exports.prototype['Errors'] = undefined;
-
-
-
- return exports;
-}));
-
-
+};