├── .gitignore
├── CHANGELOG.md
├── COPYING.txt
├── LICENSE.txt
├── NOTICE.txt
├── README.md
├── package.json
├── sampleGetBrowseNodesApi.js
├── sampleGetItemsApi.js
├── sampleGetVariationsApi.js
├── sampleSearchItemsApi.js
└── src
├── ApiClient.js
├── api
└── DefaultApi.js
├── auth
└── sigv4.js
├── index.js
└── model
├── Availability.js
├── BrowseNode.js
├── BrowseNodeAncestor.js
├── BrowseNodeChild.js
├── BrowseNodeChildren.js
├── BrowseNodeInfo.js
├── BrowseNodesResult.js
├── ByLineInfo.js
├── Classifications.js
├── Condition.js
├── ContentInfo.js
├── ContentRating.js
├── Contributor.js
├── DeliveryFlag.js
├── DimensionBasedAttribute.js
├── DurationPrice.js
├── ErrorData.js
├── ExternalIds.js
├── GetBrowseNodesRequest.js
├── GetBrowseNodesResource.js
├── GetBrowseNodesResponse.js
├── GetItemsRequest.js
├── GetItemsResource.js
├── GetItemsResponse.js
├── GetVariationsRequest.js
├── GetVariationsResource.js
├── GetVariationsResponse.js
├── ImageSize.js
├── ImageType.js
├── Images.js
├── Item.js
├── ItemIdType.js
├── ItemInfo.js
├── ItemsResult.js
├── LanguageType.js
├── Languages.js
├── ManufactureInfo.js
├── MaxPrice.js
├── Merchant.js
├── MinPrice.js
├── MinReviewsRating.js
├── MinSavingPercent.js
├── MultiValuedAttribute.js
├── OfferAvailability.js
├── OfferCondition.js
├── OfferCount.js
├── OfferDeliveryInfo.js
├── OfferListing.js
├── OfferLoyaltyPoints.js
├── OfferMerchantInfo.js
├── OfferPrice.js
├── OfferProgramEligibility.js
├── OfferPromotion.js
├── OfferSavings.js
├── OfferShippingCharge.js
├── OfferSubCondition.js
├── OfferSummary.js
├── Offers.js
├── PartnerType.js
├── Price.js
├── ProductAdvertisingAPIClientException.js
├── ProductAdvertisingAPIServiceException.js
├── ProductInfo.js
├── Properties.js
├── Refinement.js
├── RefinementBin.js
├── RentalOfferListing.js
├── RentalOffers.js
├── SearchItemsRequest.js
├── SearchItemsResource.js
├── SearchItemsResponse.js
├── SearchRefinements.js
├── SearchResult.js
├── SingleBooleanValuedAttribute.js
├── SingleIntegerValuedAttribute.js
├── SingleStringValuedAttribute.js
├── SortBy.js
├── TechnicalInfo.js
├── TradeInInfo.js
├── TradeInPrice.js
├── UnitBasedAttribute.js
├── VariationAttribute.js
├── VariationDimension.js
├── VariationSummary.js
├── VariationsResult.js
└── WebsiteSalesRank.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # Sketch temporary file
2 | ~*.sketch
3 |
4 | # Generated files
5 | dist/
6 |
7 | # Logs
8 | logs
9 | *.log
10 |
11 | # Runtime data
12 | pids
13 | *.pid
14 | *.seed
15 |
16 | # Directory for instrumented libs generated by jscoverage/JSCover
17 | lib-cov
18 |
19 | # Coverage directory used by tools like nyc and istanbul
20 | .nyc_output
21 | coverage
22 |
23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24 | .grunt
25 |
26 | # Compiled binary addons (http://nodejs.org/api/addons.html)
27 | build/Release
28 |
29 | # Dependency directory
30 | # Commenting this out is preferred by some people, see
31 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
32 | node_modules
33 |
34 | # Users Environment Variables
35 | .lock-wscript
36 |
37 | # OS files
38 | .DS_Store
39 |
40 | # Babel-compiled files
41 | lib
42 |
43 | # Ignore package manager lock files
44 | package-lock.json
45 | yarn.lock
46 |
47 | # Ignore IDE
48 | .idea
49 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog for Product Advertising API 5.0 NodeJS SDK
2 |
3 |
4 |
5 | ## 1.0.0
6 | * Initial Version of Product Advertising API 5.0 NodeJS SDK
--------------------------------------------------------------------------------
/NOTICE.txt:
--------------------------------------------------------------------------------
1 | Product Advertising API 5.0 SDK for NodeJS
2 | Copyright 2019-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "paapi5-nodejs-sdk",
3 | "version": "1.1.0",
4 | "description": "ProductAdvertisingAPI 5.0 NodeJS SDK",
5 | "main": "src/index.js",
6 | "author": {
7 | "name": "Product Advertising API",
8 | "email": "",
9 | "url": "https://webservices.amazon.com/paapi5/documentation/index.html"
10 | },
11 | "homepage": "https://github.com/wusoma/paapi5-nodejs-sdk",
12 | "license": "Apache-2.0",
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/wusoma/paapi5-nodejs-sdk"
16 | },
17 | "browser": {
18 | "fs": false
19 | },
20 | "dependencies": {
21 | "superagent": "^3.8.3",
22 | "crypto-js": "^3.1.9-1"
23 | },
24 | "devDependencies": {
25 | "mocha": "~2.3.4",
26 | "sinon": "1.17.3",
27 | "expect.js": "~0.3.1"
28 | },
29 | "keywords": [
30 | "amazon",
31 | "pa-api",
32 | "paapi",
33 | "ProductAdvertisingAPI"
34 | ],
35 | "_resolved": "https://registry.npmjs.org/paapi5-nodejs-sdk/-/paapi5-nodejs-sdk-1.0.1.tgz",
36 | "_integrity": "sha512-mUAkbJBUTorNCxLRDzzsEL1HO9+Oh5sEArmndex81JXIzlMQLbmPjCKw6rbWXYSUJCswRKBPHf3ZqnSfZOJACg==",
37 | "_from": "paapi5-nodejs-sdk@1.0.1"
38 | }
39 |
--------------------------------------------------------------------------------
/src/model/Availability.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Availability = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class Availability.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "Available"
48 | * @const
49 | */
50 | "Available": "Available",
51 | /**
52 | * value: "IncludeOutOfStock"
53 | * @const
54 | */
55 | "IncludeOutOfStock": "IncludeOutOfStock" };
56 |
57 | /**
58 | * Returns a Availability
enum value from a Javascript object name.
59 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
60 | * @return {module:model/Availability} The enum Availability
value.
61 | */
62 | exports.constructFromObject = function(object) {
63 | return object;
64 | }
65 |
66 | return exports;
67 | }));
68 |
69 |
70 |
--------------------------------------------------------------------------------
/src/model/BrowseNodeAncestor.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.BrowseNodeAncestor = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient, BrowseNodeAncestor) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The BrowseNodeAncestor model module.
44 | * @module model/BrowseNodeAncestor
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new BrowseNodeAncestor
.
50 | * @alias module:model/BrowseNodeAncestor
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a BrowseNodeAncestor
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/BrowseNodeAncestor} obj Optional instance to populate.
67 | * @return {module:model/BrowseNodeAncestor} The populated BrowseNodeAncestor
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('Ancestor')) {
74 | obj['Ancestor'] = this.constructFromObject(data['Ancestor']);
75 | }
76 | if (data.hasOwnProperty('ContextFreeName')) {
77 | obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String');
78 | }
79 | if (data.hasOwnProperty('DisplayName')) {
80 | obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
81 | }
82 | if (data.hasOwnProperty('Id')) {
83 | obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {module:model/BrowseNodeAncestor} Ancestor
91 | */
92 | exports.prototype['Ancestor'] = undefined;
93 | /**
94 | * @member {String} ContextFreeName
95 | */
96 | exports.prototype['ContextFreeName'] = undefined;
97 | /**
98 | * @member {String} DisplayName
99 | */
100 | exports.prototype['DisplayName'] = undefined;
101 | /**
102 | * @member {String} Id
103 | */
104 | exports.prototype['Id'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/BrowseNodeChild.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.BrowseNodeChild = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The BrowseNodeChild model module.
44 | * @module model/BrowseNodeChild
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new BrowseNodeChild
.
50 | * @alias module:model/BrowseNodeChild
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a BrowseNodeChild
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/BrowseNodeChild} obj Optional instance to populate.
66 | * @return {module:model/BrowseNodeChild} The populated BrowseNodeChild
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('ContextFreeName')) {
73 | obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String');
74 | }
75 | if (data.hasOwnProperty('DisplayName')) {
76 | obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
77 | }
78 | if (data.hasOwnProperty('Id')) {
79 | obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {String} ContextFreeName
87 | */
88 | exports.prototype['ContextFreeName'] = undefined;
89 | /**
90 | * @member {String} DisplayName
91 | */
92 | exports.prototype['DisplayName'] = undefined;
93 | /**
94 | * @member {String} Id
95 | */
96 | exports.prototype['Id'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/BrowseNodeChildren.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/BrowseNodeChild'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./BrowseNodeChild'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.BrowseNodeChildren = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNodeChild);
35 | }
36 | }(this, function(ApiClient, BrowseNodeChild) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The BrowseNodeChildren model module.
44 | * @module model/BrowseNodeChildren
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new BrowseNodeChildren
.
50 | * @alias module:model/BrowseNodeChildren
51 | * @class
52 | * @extends Array
53 | */
54 | var exports = function() {
55 | var _this = this;
56 | _this = new Array();
57 | Object.setPrototypeOf(_this, exports);
58 |
59 | return _this;
60 | };
61 |
62 | /**
63 | * Constructs a BrowseNodeChildren
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/BrowseNodeChildren} obj Optional instance to populate.
67 | * @return {module:model/BrowseNodeChildren} The populated BrowseNodeChildren
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 | ApiClient.constructFromObject(data, obj, 'BrowseNodeChild');
73 |
74 | }
75 | return obj;
76 | }
77 |
78 |
79 |
80 |
81 | return exports;
82 | }));
83 |
84 |
85 |
--------------------------------------------------------------------------------
/src/model/BrowseNodeInfo.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/BrowseNode', 'model/WebsiteSalesRank'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./BrowseNode'), require('./WebsiteSalesRank'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.BrowseNodeInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNode, root.ProductAdvertisingAPIv1.WebsiteSalesRank);
35 | }
36 | }(this, function(ApiClient, BrowseNode, WebsiteSalesRank) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The BrowseNodeInfo model module.
44 | * @module model/BrowseNodeInfo
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new BrowseNodeInfo
.
50 | * @alias module:model/BrowseNodeInfo
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a BrowseNodeInfo
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/BrowseNodeInfo} obj Optional instance to populate.
65 | * @return {module:model/BrowseNodeInfo} The populated BrowseNodeInfo
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('BrowseNodes')) {
72 | obj['BrowseNodes'] = ApiClient.convertToType(data['BrowseNodes'], [BrowseNode]);
73 | }
74 | if (data.hasOwnProperty('WebsiteSalesRank')) {
75 | obj['WebsiteSalesRank'] = WebsiteSalesRank.constructFromObject(data['WebsiteSalesRank']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {Array.} BrowseNodes
83 | */
84 | exports.prototype['BrowseNodes'] = undefined;
85 | /**
86 | * @member {module:model/WebsiteSalesRank} WebsiteSalesRank
87 | */
88 | exports.prototype['WebsiteSalesRank'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/BrowseNodesResult.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/BrowseNode'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./BrowseNode'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.BrowseNodesResult = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNode);
35 | }
36 | }(this, function(ApiClient, BrowseNode) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The BrowseNodesResult model module.
44 | * @module model/BrowseNodesResult
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new BrowseNodesResult
.
50 | * @alias module:model/BrowseNodesResult
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a BrowseNodesResult
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/BrowseNodesResult} obj Optional instance to populate.
64 | * @return {module:model/BrowseNodesResult} The populated BrowseNodesResult
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('BrowseNodes')) {
71 | obj['BrowseNodes'] = ApiClient.convertToType(data['BrowseNodes'], [BrowseNode]);
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {Array.} BrowseNodes
79 | */
80 | exports.prototype['BrowseNodes'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/ByLineInfo.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/Contributor', 'model/SingleStringValuedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./Contributor'), require('./SingleStringValuedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ByLineInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Contributor, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
35 | }
36 | }(this, function(ApiClient, Contributor, SingleStringValuedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ByLineInfo model module.
44 | * @module model/ByLineInfo
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ByLineInfo
.
50 | * @alias module:model/ByLineInfo
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a ByLineInfo
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/ByLineInfo} obj Optional instance to populate.
66 | * @return {module:model/ByLineInfo} The populated ByLineInfo
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('Brand')) {
73 | obj['Brand'] = SingleStringValuedAttribute.constructFromObject(data['Brand']);
74 | }
75 | if (data.hasOwnProperty('Contributors')) {
76 | obj['Contributors'] = ApiClient.convertToType(data['Contributors'], [Contributor]);
77 | }
78 | if (data.hasOwnProperty('Manufacturer')) {
79 | obj['Manufacturer'] = SingleStringValuedAttribute.constructFromObject(data['Manufacturer']);
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {module:model/SingleStringValuedAttribute} Brand
87 | */
88 | exports.prototype['Brand'] = undefined;
89 | /**
90 | * @member {Array.} Contributors
91 | */
92 | exports.prototype['Contributors'] = undefined;
93 | /**
94 | * @member {module:model/SingleStringValuedAttribute} Manufacturer
95 | */
96 | exports.prototype['Manufacturer'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/Classifications.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/SingleStringValuedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./SingleStringValuedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Classifications = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
35 | }
36 | }(this, function(ApiClient, SingleStringValuedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Classifications model module.
44 | * @module model/Classifications
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Classifications
.
50 | * @alias module:model/Classifications
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a Classifications
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/Classifications} obj Optional instance to populate.
65 | * @return {module:model/Classifications} The populated Classifications
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Binding')) {
72 | obj['Binding'] = SingleStringValuedAttribute.constructFromObject(data['Binding']);
73 | }
74 | if (data.hasOwnProperty('ProductGroup')) {
75 | obj['ProductGroup'] = SingleStringValuedAttribute.constructFromObject(data['ProductGroup']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {module:model/SingleStringValuedAttribute} Binding
83 | */
84 | exports.prototype['Binding'] = undefined;
85 | /**
86 | * @member {module:model/SingleStringValuedAttribute} ProductGroup
87 | */
88 | exports.prototype['ProductGroup'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/Condition.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Condition = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class Condition.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "Any"
48 | * @const
49 | */
50 | "Any": "Any",
51 | /**
52 | * value: "Collectible"
53 | * @const
54 | */
55 | "Collectible": "Collectible",
56 | /**
57 | * value: "New"
58 | * @const
59 | */
60 | "New": "New",
61 | /**
62 | * value: "Refurbished"
63 | * @const
64 | */
65 | "Refurbished": "Refurbished",
66 | /**
67 | * value: "Used"
68 | * @const
69 | */
70 | "Used": "Used" };
71 |
72 | /**
73 | * Returns a Condition
enum value from a Javascript object name.
74 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
75 | * @return {module:model/Condition} The enum Condition
value.
76 | */
77 | exports.constructFromObject = function(object) {
78 | return object;
79 | }
80 |
81 | return exports;
82 | }));
83 |
84 |
85 |
--------------------------------------------------------------------------------
/src/model/ContentRating.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/SingleStringValuedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./SingleStringValuedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ContentRating = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
35 | }
36 | }(this, function(ApiClient, SingleStringValuedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ContentRating model module.
44 | * @module model/ContentRating
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ContentRating
.
50 | * @alias module:model/ContentRating
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a ContentRating
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/ContentRating} obj Optional instance to populate.
64 | * @return {module:model/ContentRating} The populated ContentRating
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('AudienceRating')) {
71 | obj['AudienceRating'] = SingleStringValuedAttribute.constructFromObject(data['AudienceRating']);
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {module:model/SingleStringValuedAttribute} AudienceRating
79 | */
80 | exports.prototype['AudienceRating'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/Contributor.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Contributor = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Contributor model module.
44 | * @module model/Contributor
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Contributor
.
50 | * @alias module:model/Contributor
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a Contributor
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/Contributor} obj Optional instance to populate.
66 | * @return {module:model/Contributor} The populated Contributor
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('Locale')) {
73 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
74 | }
75 | if (data.hasOwnProperty('Name')) {
76 | obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
77 | }
78 | if (data.hasOwnProperty('Role')) {
79 | obj['Role'] = ApiClient.convertToType(data['Role'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {String} Locale
87 | */
88 | exports.prototype['Locale'] = undefined;
89 | /**
90 | * @member {String} Name
91 | */
92 | exports.prototype['Name'] = undefined;
93 | /**
94 | * @member {String} Role
95 | */
96 | exports.prototype['Role'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/DeliveryFlag.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.DeliveryFlag = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class DeliveryFlag.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "AmazonGlobal"
48 | * @const
49 | */
50 | "AmazonGlobal": "AmazonGlobal",
51 | /**
52 | * value: "FreeShipping"
53 | * @const
54 | */
55 | "FreeShipping": "FreeShipping",
56 | /**
57 | * value: "FulfilledByAmazon"
58 | * @const
59 | */
60 | "FulfilledByAmazon": "FulfilledByAmazon",
61 | /**
62 | * value: "Prime"
63 | * @const
64 | */
65 | "Prime": "Prime" };
66 |
67 | /**
68 | * Returns a DeliveryFlag
enum value from a Javascript object name.
69 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
70 | * @return {module:model/DeliveryFlag} The enum DeliveryFlag
value.
71 | */
72 | exports.constructFromObject = function(object) {
73 | return object;
74 | }
75 |
76 | return exports;
77 | }));
78 |
79 |
80 |
--------------------------------------------------------------------------------
/src/model/DimensionBasedAttribute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/UnitBasedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./UnitBasedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.DimensionBasedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.UnitBasedAttribute);
35 | }
36 | }(this, function(ApiClient, UnitBasedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The DimensionBasedAttribute model module.
44 | * @module model/DimensionBasedAttribute
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new DimensionBasedAttribute
.
50 | * @alias module:model/DimensionBasedAttribute
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a DimensionBasedAttribute
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/DimensionBasedAttribute} obj Optional instance to populate.
67 | * @return {module:model/DimensionBasedAttribute} The populated DimensionBasedAttribute
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('Height')) {
74 | obj['Height'] = UnitBasedAttribute.constructFromObject(data['Height']);
75 | }
76 | if (data.hasOwnProperty('Length')) {
77 | obj['Length'] = UnitBasedAttribute.constructFromObject(data['Length']);
78 | }
79 | if (data.hasOwnProperty('Weight')) {
80 | obj['Weight'] = UnitBasedAttribute.constructFromObject(data['Weight']);
81 | }
82 | if (data.hasOwnProperty('Width')) {
83 | obj['Width'] = UnitBasedAttribute.constructFromObject(data['Width']);
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {module:model/UnitBasedAttribute} Height
91 | */
92 | exports.prototype['Height'] = undefined;
93 | /**
94 | * @member {module:model/UnitBasedAttribute} Length
95 | */
96 | exports.prototype['Length'] = undefined;
97 | /**
98 | * @member {module:model/UnitBasedAttribute} Weight
99 | */
100 | exports.prototype['Weight'] = undefined;
101 | /**
102 | * @member {module:model/UnitBasedAttribute} Width
103 | */
104 | exports.prototype['Width'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/DurationPrice.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/OfferPrice', 'model/UnitBasedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./OfferPrice'), require('./UnitBasedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.DurationPrice = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferPrice, root.ProductAdvertisingAPIv1.UnitBasedAttribute);
35 | }
36 | }(this, function(ApiClient, OfferPrice, UnitBasedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The DurationPrice model module.
44 | * @module model/DurationPrice
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new DurationPrice
.
50 | * @alias module:model/DurationPrice
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a DurationPrice
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/DurationPrice} obj Optional instance to populate.
65 | * @return {module:model/DurationPrice} The populated DurationPrice
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Price')) {
72 | obj['Price'] = OfferPrice.constructFromObject(data['Price']);
73 | }
74 | if (data.hasOwnProperty('Duration')) {
75 | obj['Duration'] = UnitBasedAttribute.constructFromObject(data['Duration']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {module:model/OfferPrice} Price
83 | */
84 | exports.prototype['Price'] = undefined;
85 | /**
86 | * @member {module:model/UnitBasedAttribute} Duration
87 | */
88 | exports.prototype['Duration'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/ErrorData.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ErrorData = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ErrorData model module.
44 | * @module model/ErrorData
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ErrorData
.
50 | * @alias module:model/ErrorData
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a ErrorData
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/ErrorData} obj Optional instance to populate.
65 | * @return {module:model/ErrorData} The populated ErrorData
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Code')) {
72 | obj['Code'] = ApiClient.convertToType(data['Code'], 'String');
73 | }
74 | if (data.hasOwnProperty('Message')) {
75 | obj['Message'] = ApiClient.convertToType(data['Message'], 'String');
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {String} Code
83 | */
84 | exports.prototype['Code'] = undefined;
85 | /**
86 | * @member {String} Message
87 | */
88 | exports.prototype['Message'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/ExternalIds.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/MultiValuedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./MultiValuedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ExternalIds = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.MultiValuedAttribute);
35 | }
36 | }(this, function(ApiClient, MultiValuedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ExternalIds model module.
44 | * @module model/ExternalIds
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ExternalIds
.
50 | * @alias module:model/ExternalIds
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a ExternalIds
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/ExternalIds} obj Optional instance to populate.
66 | * @return {module:model/ExternalIds} The populated ExternalIds
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('EANs')) {
73 | obj['EANs'] = MultiValuedAttribute.constructFromObject(data['EANs']);
74 | }
75 | if (data.hasOwnProperty('ISBNs')) {
76 | obj['ISBNs'] = MultiValuedAttribute.constructFromObject(data['ISBNs']);
77 | }
78 | if (data.hasOwnProperty('UPCs')) {
79 | obj['UPCs'] = MultiValuedAttribute.constructFromObject(data['UPCs']);
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {module:model/MultiValuedAttribute} EANs
87 | */
88 | exports.prototype['EANs'] = undefined;
89 | /**
90 | * @member {module:model/MultiValuedAttribute} ISBNs
91 | */
92 | exports.prototype['ISBNs'] = undefined;
93 | /**
94 | * @member {module:model/MultiValuedAttribute} UPCs
95 | */
96 | exports.prototype['UPCs'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/GetBrowseNodesResource.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.GetBrowseNodesResource = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class GetBrowseNodesResource.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "BrowseNodes.Ancestor"
48 | * @const
49 | */
50 | "Ancestor": "BrowseNodes.Ancestor",
51 | /**
52 | * value: "BrowseNodes.Children"
53 | * @const
54 | */
55 | "Children": "BrowseNodes.Children" };
56 |
57 | /**
58 | * Returns a GetBrowseNodesResource
enum value from a Javascript object name.
59 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
60 | * @return {module:model/GetBrowseNodesResource} The enum GetBrowseNodesResource
value.
61 | */
62 | exports.constructFromObject = function(object) {
63 | return object;
64 | }
65 |
66 | return exports;
67 | }));
68 |
69 |
70 |
--------------------------------------------------------------------------------
/src/model/GetBrowseNodesResponse.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/BrowseNodesResult', 'model/ErrorData'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./BrowseNodesResult'), require('./ErrorData'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.GetBrowseNodesResponse = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.BrowseNodesResult, root.ProductAdvertisingAPIv1.ErrorData);
35 | }
36 | }(this, function(ApiClient, BrowseNodesResult, ErrorData) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The GetBrowseNodesResponse model module.
44 | * @module model/GetBrowseNodesResponse
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new GetBrowseNodesResponse
.
50 | * @alias module:model/GetBrowseNodesResponse
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a GetBrowseNodesResponse
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/GetBrowseNodesResponse} obj Optional instance to populate.
65 | * @return {module:model/GetBrowseNodesResponse} The populated GetBrowseNodesResponse
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('BrowseNodesResult')) {
72 | obj['BrowseNodesResult'] = BrowseNodesResult.constructFromObject(data['BrowseNodesResult']);
73 | }
74 | if (data.hasOwnProperty('Errors')) {
75 | obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {module:model/BrowseNodesResult} BrowseNodesResult
83 | */
84 | exports.prototype['BrowseNodesResult'] = undefined;
85 | /**
86 | * @member {Array.} Errors
87 | */
88 | exports.prototype['Errors'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/GetItemsResponse.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/ErrorData', 'model/ItemsResult'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./ErrorData'), require('./ItemsResult'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.GetItemsResponse = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData, root.ProductAdvertisingAPIv1.ItemsResult);
35 | }
36 | }(this, function(ApiClient, ErrorData, ItemsResult) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The GetItemsResponse model module.
44 | * @module model/GetItemsResponse
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new GetItemsResponse
.
50 | * @alias module:model/GetItemsResponse
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a GetItemsResponse
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/GetItemsResponse} obj Optional instance to populate.
65 | * @return {module:model/GetItemsResponse} The populated GetItemsResponse
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Errors')) {
72 | obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
73 | }
74 | if (data.hasOwnProperty('ItemsResult')) {
75 | obj['ItemsResult'] = ItemsResult.constructFromObject(data['ItemsResult']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {Array.} Errors
83 | */
84 | exports.prototype['Errors'] = undefined;
85 | /**
86 | * @member {module:model/ItemsResult} ItemsResult
87 | */
88 | exports.prototype['ItemsResult'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/GetVariationsResponse.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/ErrorData', 'model/VariationsResult'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./ErrorData'), require('./VariationsResult'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.GetVariationsResponse = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData, root.ProductAdvertisingAPIv1.VariationsResult);
35 | }
36 | }(this, function(ApiClient, ErrorData, VariationsResult) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The GetVariationsResponse model module.
44 | * @module model/GetVariationsResponse
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new GetVariationsResponse
.
50 | * @alias module:model/GetVariationsResponse
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a GetVariationsResponse
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/GetVariationsResponse} obj Optional instance to populate.
65 | * @return {module:model/GetVariationsResponse} The populated GetVariationsResponse
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Errors')) {
72 | obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
73 | }
74 | if (data.hasOwnProperty('VariationsResult')) {
75 | obj['VariationsResult'] = VariationsResult.constructFromObject(data['VariationsResult']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {Array.} Errors
83 | */
84 | exports.prototype['Errors'] = undefined;
85 | /**
86 | * @member {module:model/VariationsResult} VariationsResult
87 | */
88 | exports.prototype['VariationsResult'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/ImageSize.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ImageSize = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ImageSize model module.
44 | * @module model/ImageSize
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ImageSize
.
50 | * @alias module:model/ImageSize
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a ImageSize
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/ImageSize} obj Optional instance to populate.
66 | * @return {module:model/ImageSize} The populated ImageSize
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('URL')) {
73 | obj['URL'] = ApiClient.convertToType(data['URL'], 'String');
74 | }
75 | if (data.hasOwnProperty('Height')) {
76 | obj['Height'] = ApiClient.convertToType(data['Height'], 'Number');
77 | }
78 | if (data.hasOwnProperty('Width')) {
79 | obj['Width'] = ApiClient.convertToType(data['Width'], 'Number');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {String} URL
87 | */
88 | exports.prototype['URL'] = undefined;
89 | /**
90 | * @member {Number} Height
91 | */
92 | exports.prototype['Height'] = undefined;
93 | /**
94 | * @member {Number} Width
95 | */
96 | exports.prototype['Width'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/ImageType.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/ImageSize'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./ImageSize'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ImageType = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ImageSize);
35 | }
36 | }(this, function(ApiClient, ImageSize) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ImageType model module.
44 | * @module model/ImageType
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ImageType
.
50 | * @alias module:model/ImageType
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a ImageType
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/ImageType} obj Optional instance to populate.
66 | * @return {module:model/ImageType} The populated ImageType
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('Small')) {
73 | obj['Small'] = ImageSize.constructFromObject(data['Small']);
74 | }
75 | if (data.hasOwnProperty('Medium')) {
76 | obj['Medium'] = ImageSize.constructFromObject(data['Medium']);
77 | }
78 | if (data.hasOwnProperty('Large')) {
79 | obj['Large'] = ImageSize.constructFromObject(data['Large']);
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {module:model/ImageSize} Small
87 | */
88 | exports.prototype['Small'] = undefined;
89 | /**
90 | * @member {module:model/ImageSize} Medium
91 | */
92 | exports.prototype['Medium'] = undefined;
93 | /**
94 | * @member {module:model/ImageSize} Large
95 | */
96 | exports.prototype['Large'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/Images.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/ImageType'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./ImageType'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Images = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ImageType);
35 | }
36 | }(this, function(ApiClient, ImageType) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Images model module.
44 | * @module model/Images
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Images
.
50 | * @alias module:model/Images
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a Images
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/Images} obj Optional instance to populate.
65 | * @return {module:model/Images} The populated Images
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Primary')) {
72 | obj['Primary'] = ImageType.constructFromObject(data['Primary']);
73 | }
74 | if (data.hasOwnProperty('Variants')) {
75 | obj['Variants'] = ApiClient.convertToType(data['Variants'], [ImageType]);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {module:model/ImageType} Primary
83 | */
84 | exports.prototype['Primary'] = undefined;
85 | /**
86 | * @member {Array.} Variants
87 | */
88 | exports.prototype['Variants'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/ItemIdType.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ItemIdType = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class ItemIdType.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "ASIN"
48 | * @const
49 | */
50 | "ASIN": "ASIN" };
51 |
52 | /**
53 | * Returns a ItemIdType
enum value from a Javascript object name.
54 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
55 | * @return {module:model/ItemIdType} The enum ItemIdType
value.
56 | */
57 | exports.constructFromObject = function(object) {
58 | return object;
59 | }
60 |
61 | return exports;
62 | }));
63 |
64 |
65 |
--------------------------------------------------------------------------------
/src/model/ItemsResult.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/Item'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./Item'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ItemsResult = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Item);
35 | }
36 | }(this, function(ApiClient, Item) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ItemsResult model module.
44 | * @module model/ItemsResult
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ItemsResult
.
50 | * @alias module:model/ItemsResult
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a ItemsResult
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/ItemsResult} obj Optional instance to populate.
64 | * @return {module:model/ItemsResult} The populated ItemsResult
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('Items')) {
71 | obj['Items'] = ApiClient.convertToType(data['Items'], [Item]);
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {Array.} Items
79 | */
80 | exports.prototype['Items'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/LanguageType.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.LanguageType = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The LanguageType model module.
44 | * @module model/LanguageType
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new LanguageType
.
50 | * @alias module:model/LanguageType
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a LanguageType
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/LanguageType} obj Optional instance to populate.
65 | * @return {module:model/LanguageType} The populated LanguageType
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('DisplayValue')) {
72 | obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'String');
73 | }
74 | if (data.hasOwnProperty('Type')) {
75 | obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {String} DisplayValue
83 | */
84 | exports.prototype['DisplayValue'] = undefined;
85 | /**
86 | * @member {String} Type
87 | */
88 | exports.prototype['Type'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/Languages.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/LanguageType'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./LanguageType'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Languages = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.LanguageType);
35 | }
36 | }(this, function(ApiClient, LanguageType) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Languages model module.
44 | * @module model/Languages
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Languages
.
50 | * @alias module:model/Languages
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a Languages
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/Languages} obj Optional instance to populate.
66 | * @return {module:model/Languages} The populated Languages
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('DisplayValues')) {
73 | obj['DisplayValues'] = ApiClient.convertToType(data['DisplayValues'], [LanguageType]);
74 | }
75 | if (data.hasOwnProperty('Label')) {
76 | obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
77 | }
78 | if (data.hasOwnProperty('Locale')) {
79 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {Array.} DisplayValues
87 | */
88 | exports.prototype['DisplayValues'] = undefined;
89 | /**
90 | * @member {String} Label
91 | */
92 | exports.prototype['Label'] = undefined;
93 | /**
94 | * @member {String} Locale
95 | */
96 | exports.prototype['Locale'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/ManufactureInfo.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/SingleStringValuedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./SingleStringValuedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ManufactureInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.SingleStringValuedAttribute);
35 | }
36 | }(this, function(ApiClient, SingleStringValuedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ManufactureInfo model module.
44 | * @module model/ManufactureInfo
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ManufactureInfo
.
50 | * @alias module:model/ManufactureInfo
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a ManufactureInfo
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/ManufactureInfo} obj Optional instance to populate.
66 | * @return {module:model/ManufactureInfo} The populated ManufactureInfo
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('ItemPartNumber')) {
73 | obj['ItemPartNumber'] = SingleStringValuedAttribute.constructFromObject(data['ItemPartNumber']);
74 | }
75 | if (data.hasOwnProperty('Model')) {
76 | obj['Model'] = SingleStringValuedAttribute.constructFromObject(data['Model']);
77 | }
78 | if (data.hasOwnProperty('Warranty')) {
79 | obj['Warranty'] = SingleStringValuedAttribute.constructFromObject(data['Warranty']);
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {module:model/SingleStringValuedAttribute} ItemPartNumber
87 | */
88 | exports.prototype['ItemPartNumber'] = undefined;
89 | /**
90 | * @member {module:model/SingleStringValuedAttribute} Model
91 | */
92 | exports.prototype['Model'] = undefined;
93 | /**
94 | * @member {module:model/SingleStringValuedAttribute} Warranty
95 | */
96 | exports.prototype['Warranty'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/MaxPrice.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.MaxPrice = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The MaxPrice model module.
44 | * @module model/MaxPrice
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new MaxPrice
.
50 | * @alias module:model/MaxPrice
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 | };
57 |
58 | /**
59 | * Constructs a MaxPrice
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/MaxPrice} obj Optional instance to populate.
63 | * @return {module:model/MaxPrice} The populated MaxPrice
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | return data;
67 | }
68 |
69 |
70 |
71 |
72 | return exports;
73 | }));
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/model/Merchant.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Merchant = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class Merchant.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "All"
48 | * @const
49 | */
50 | "All": "All",
51 | /**
52 | * value: "Amazon"
53 | * @const
54 | */
55 | "Amazon": "Amazon" };
56 |
57 | /**
58 | * Returns a Merchant
enum value from a Javascript object name.
59 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
60 | * @return {module:model/Merchant} The enum Merchant
value.
61 | */
62 | exports.constructFromObject = function(object) {
63 | return object;
64 | }
65 |
66 | return exports;
67 | }));
68 |
69 |
70 |
--------------------------------------------------------------------------------
/src/model/MinPrice.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.MinPrice = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The MinPrice model module.
44 | * @module model/MinPrice
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new MinPrice
.
50 | * @alias module:model/MinPrice
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 | };
57 |
58 | /**
59 | * Constructs a MinPrice
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/MinPrice} obj Optional instance to populate.
63 | * @return {module:model/MinPrice} The populated MinPrice
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | return data;
67 | }
68 |
69 |
70 |
71 |
72 | return exports;
73 | }));
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/model/MinReviewsRating.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.MinReviewsRating = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The MinReviewsRating model module.
44 | * @module model/MinReviewsRating
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new MinReviewsRating
.
50 | * @alias module:model/MinReviewsRating
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 | };
57 |
58 | /**
59 | * Constructs a MinReviewsRating
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/MinReviewsRating} obj Optional instance to populate.
63 | * @return {module:model/MinReviewsRating} The populated MinReviewsRating
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | return data;
67 | }
68 |
69 |
70 |
71 |
72 | return exports;
73 | }));
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/model/MinSavingPercent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.MinSavingPercent = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The MinSavingPercent model module.
44 | * @module model/MinSavingPercent
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new MinSavingPercent
.
50 | * @alias module:model/MinSavingPercent
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 | };
57 |
58 | /**
59 | * Constructs a MinSavingPercent
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/MinSavingPercent} obj Optional instance to populate.
63 | * @return {module:model/MinSavingPercent} The populated MinSavingPercent
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | return data;
67 | }
68 |
69 |
70 |
71 |
72 | return exports;
73 | }));
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/model/MultiValuedAttribute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.MultiValuedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The MultiValuedAttribute model module.
44 | * @module model/MultiValuedAttribute
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new MultiValuedAttribute
.
50 | * @alias module:model/MultiValuedAttribute
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a MultiValuedAttribute
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/MultiValuedAttribute} obj Optional instance to populate.
66 | * @return {module:model/MultiValuedAttribute} The populated MultiValuedAttribute
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('DisplayValues')) {
73 | obj['DisplayValues'] = ApiClient.convertToType(data['DisplayValues'], ['String']);
74 | }
75 | if (data.hasOwnProperty('Label')) {
76 | obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
77 | }
78 | if (data.hasOwnProperty('Locale')) {
79 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {Array.} DisplayValues
87 | */
88 | exports.prototype['DisplayValues'] = undefined;
89 | /**
90 | * @member {String} Label
91 | */
92 | exports.prototype['Label'] = undefined;
93 | /**
94 | * @member {String} Locale
95 | */
96 | exports.prototype['Locale'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/OfferAvailability.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferAvailability = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferAvailability model module.
44 | * @module model/OfferAvailability
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferAvailability
.
50 | * @alias module:model/OfferAvailability
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a OfferAvailability
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/OfferAvailability} obj Optional instance to populate.
67 | * @return {module:model/OfferAvailability} The populated OfferAvailability
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('MaxOrderQuantity')) {
74 | obj['MaxOrderQuantity'] = ApiClient.convertToType(data['MaxOrderQuantity'], 'Number');
75 | }
76 | if (data.hasOwnProperty('Message')) {
77 | obj['Message'] = ApiClient.convertToType(data['Message'], 'String');
78 | }
79 | if (data.hasOwnProperty('MinOrderQuantity')) {
80 | obj['MinOrderQuantity'] = ApiClient.convertToType(data['MinOrderQuantity'], 'Number');
81 | }
82 | if (data.hasOwnProperty('Type')) {
83 | obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {Number} MaxOrderQuantity
91 | */
92 | exports.prototype['MaxOrderQuantity'] = undefined;
93 | /**
94 | * @member {String} Message
95 | */
96 | exports.prototype['Message'] = undefined;
97 | /**
98 | * @member {Number} MinOrderQuantity
99 | */
100 | exports.prototype['MinOrderQuantity'] = undefined;
101 | /**
102 | * @member {String} Type
103 | */
104 | exports.prototype['Type'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/OfferCount.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferCount = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferCount model module.
44 | * @module model/OfferCount
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferCount
.
50 | * @alias module:model/OfferCount
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 | };
57 |
58 | /**
59 | * Constructs a OfferCount
from a plain JavaScript object, optionally creating a new instance.
60 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
61 | * @param {Object} data The plain JavaScript object bearing properties of interest.
62 | * @param {module:model/OfferCount} obj Optional instance to populate.
63 | * @return {module:model/OfferCount} The populated OfferCount
instance.
64 | */
65 | exports.constructFromObject = function(data, obj) {
66 | return data;
67 | }
68 |
69 |
70 |
71 |
72 | return exports;
73 | }));
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/model/OfferLoyaltyPoints.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferLoyaltyPoints = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferLoyaltyPoints model module.
44 | * @module model/OfferLoyaltyPoints
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferLoyaltyPoints
.
50 | * @alias module:model/OfferLoyaltyPoints
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a OfferLoyaltyPoints
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/OfferLoyaltyPoints} obj Optional instance to populate.
64 | * @return {module:model/OfferLoyaltyPoints} The populated OfferLoyaltyPoints
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('Points')) {
71 | obj['Points'] = ApiClient.convertToType(data['Points'], 'Number');
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {Number} Points
79 | */
80 | exports.prototype['Points'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/OfferMerchantInfo.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferMerchantInfo = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferMerchantInfo model module.
44 | * @module model/OfferMerchantInfo
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferMerchantInfo
.
50 | * @alias module:model/OfferMerchantInfo
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a OfferMerchantInfo
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/OfferMerchantInfo} obj Optional instance to populate.
66 | * @return {module:model/OfferMerchantInfo} The populated OfferMerchantInfo
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('DefaultShippingCountry')) {
73 | obj['DefaultShippingCountry'] = ApiClient.convertToType(data['DefaultShippingCountry'], 'String');
74 | }
75 | if (data.hasOwnProperty('Id')) {
76 | obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
77 | }
78 | if (data.hasOwnProperty('Name')) {
79 | obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {String} DefaultShippingCountry
87 | */
88 | exports.prototype['DefaultShippingCountry'] = undefined;
89 | /**
90 | * @member {String} Id
91 | */
92 | exports.prototype['Id'] = undefined;
93 | /**
94 | * @member {String} Name
95 | */
96 | exports.prototype['Name'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/OfferPrice.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/OfferSavings'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./OfferSavings'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferPrice = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferSavings);
35 | }
36 | }(this, function(ApiClient, OfferSavings) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferPrice model module.
44 | * @module model/OfferPrice
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferPrice
.
50 | * @alias module:model/OfferPrice
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 |
61 | };
62 |
63 | /**
64 | * Constructs a OfferPrice
from a plain JavaScript object, optionally creating a new instance.
65 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
66 | * @param {Object} data The plain JavaScript object bearing properties of interest.
67 | * @param {module:model/OfferPrice} obj Optional instance to populate.
68 | * @return {module:model/OfferPrice} The populated OfferPrice
instance.
69 | */
70 | exports.constructFromObject = function(data, obj) {
71 | if (data) {
72 | obj = obj || new exports();
73 |
74 | if (data.hasOwnProperty('Amount')) {
75 | obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number');
76 | }
77 | if (data.hasOwnProperty('Currency')) {
78 | obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String');
79 | }
80 | if (data.hasOwnProperty('DisplayAmount')) {
81 | obj['DisplayAmount'] = ApiClient.convertToType(data['DisplayAmount'], 'String');
82 | }
83 | if (data.hasOwnProperty('PricePerUnit')) {
84 | obj['PricePerUnit'] = ApiClient.convertToType(data['PricePerUnit'], 'Number');
85 | }
86 | if (data.hasOwnProperty('Savings')) {
87 | obj['Savings'] = OfferSavings.constructFromObject(data['Savings']);
88 | }
89 | }
90 | return obj;
91 | }
92 |
93 | /**
94 | * @member {Number} Amount
95 | */
96 | exports.prototype['Amount'] = undefined;
97 | /**
98 | * @member {String} Currency
99 | */
100 | exports.prototype['Currency'] = undefined;
101 | /**
102 | * @member {String} DisplayAmount
103 | */
104 | exports.prototype['DisplayAmount'] = undefined;
105 | /**
106 | * @member {Number} PricePerUnit
107 | */
108 | exports.prototype['PricePerUnit'] = undefined;
109 | /**
110 | * @member {module:model/OfferSavings} Savings
111 | */
112 | exports.prototype['Savings'] = undefined;
113 |
114 |
115 |
116 | return exports;
117 | }));
118 |
119 |
120 |
--------------------------------------------------------------------------------
/src/model/OfferProgramEligibility.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferProgramEligibility = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferProgramEligibility model module.
44 | * @module model/OfferProgramEligibility
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferProgramEligibility
.
50 | * @alias module:model/OfferProgramEligibility
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a OfferProgramEligibility
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/OfferProgramEligibility} obj Optional instance to populate.
65 | * @return {module:model/OfferProgramEligibility} The populated OfferProgramEligibility
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('IsPrimeExclusive')) {
72 | obj['IsPrimeExclusive'] = ApiClient.convertToType(data['IsPrimeExclusive'], 'Boolean');
73 | }
74 | if (data.hasOwnProperty('IsPrimePantry')) {
75 | obj['IsPrimePantry'] = ApiClient.convertToType(data['IsPrimePantry'], 'Boolean');
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {Boolean} IsPrimeExclusive
83 | */
84 | exports.prototype['IsPrimeExclusive'] = undefined;
85 | /**
86 | * @member {Boolean} IsPrimePantry
87 | */
88 | exports.prototype['IsPrimePantry'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/OfferSavings.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferSavings = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferSavings model module.
44 | * @module model/OfferSavings
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferSavings
.
50 | * @alias module:model/OfferSavings
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 |
61 | };
62 |
63 | /**
64 | * Constructs a OfferSavings
from a plain JavaScript object, optionally creating a new instance.
65 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
66 | * @param {Object} data The plain JavaScript object bearing properties of interest.
67 | * @param {module:model/OfferSavings} obj Optional instance to populate.
68 | * @return {module:model/OfferSavings} The populated OfferSavings
instance.
69 | */
70 | exports.constructFromObject = function(data, obj) {
71 | if (data) {
72 | obj = obj || new exports();
73 |
74 | if (data.hasOwnProperty('Amount')) {
75 | obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number');
76 | }
77 | if (data.hasOwnProperty('Currency')) {
78 | obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String');
79 | }
80 | if (data.hasOwnProperty('DisplayAmount')) {
81 | obj['DisplayAmount'] = ApiClient.convertToType(data['DisplayAmount'], 'String');
82 | }
83 | if (data.hasOwnProperty('Percentage')) {
84 | obj['Percentage'] = ApiClient.convertToType(data['Percentage'], 'Number');
85 | }
86 | if (data.hasOwnProperty('PricePerUnit')) {
87 | obj['PricePerUnit'] = ApiClient.convertToType(data['PricePerUnit'], 'Number');
88 | }
89 | }
90 | return obj;
91 | }
92 |
93 | /**
94 | * @member {Number} Amount
95 | */
96 | exports.prototype['Amount'] = undefined;
97 | /**
98 | * @member {String} Currency
99 | */
100 | exports.prototype['Currency'] = undefined;
101 | /**
102 | * @member {String} DisplayAmount
103 | */
104 | exports.prototype['DisplayAmount'] = undefined;
105 | /**
106 | * @member {Number} Percentage
107 | */
108 | exports.prototype['Percentage'] = undefined;
109 | /**
110 | * @member {Number} PricePerUnit
111 | */
112 | exports.prototype['PricePerUnit'] = undefined;
113 |
114 |
115 |
116 | return exports;
117 | }));
118 |
119 |
120 |
--------------------------------------------------------------------------------
/src/model/OfferShippingCharge.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferShippingCharge = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferShippingCharge model module.
44 | * @module model/OfferShippingCharge
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferShippingCharge
.
50 | * @alias module:model/OfferShippingCharge
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 |
61 | };
62 |
63 | /**
64 | * Constructs a OfferShippingCharge
from a plain JavaScript object, optionally creating a new instance.
65 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
66 | * @param {Object} data The plain JavaScript object bearing properties of interest.
67 | * @param {module:model/OfferShippingCharge} obj Optional instance to populate.
68 | * @return {module:model/OfferShippingCharge} The populated OfferShippingCharge
instance.
69 | */
70 | exports.constructFromObject = function(data, obj) {
71 | if (data) {
72 | obj = obj || new exports();
73 |
74 | if (data.hasOwnProperty('Amount')) {
75 | obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number');
76 | }
77 | if (data.hasOwnProperty('Currency')) {
78 | obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String');
79 | }
80 | if (data.hasOwnProperty('DisplayAmount')) {
81 | obj['DisplayAmount'] = ApiClient.convertToType(data['DisplayAmount'], 'String');
82 | }
83 | if (data.hasOwnProperty('IsRateTaxInclusive')) {
84 | obj['IsRateTaxInclusive'] = ApiClient.convertToType(data['IsRateTaxInclusive'], 'Boolean');
85 | }
86 | if (data.hasOwnProperty('Type')) {
87 | obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
88 | }
89 | }
90 | return obj;
91 | }
92 |
93 | /**
94 | * @member {Number} Amount
95 | */
96 | exports.prototype['Amount'] = undefined;
97 | /**
98 | * @member {String} Currency
99 | */
100 | exports.prototype['Currency'] = undefined;
101 | /**
102 | * @member {String} DisplayAmount
103 | */
104 | exports.prototype['DisplayAmount'] = undefined;
105 | /**
106 | * @member {Boolean} IsRateTaxInclusive
107 | */
108 | exports.prototype['IsRateTaxInclusive'] = undefined;
109 | /**
110 | * @member {String} Type
111 | */
112 | exports.prototype['Type'] = undefined;
113 |
114 |
115 |
116 | return exports;
117 | }));
118 |
119 |
120 |
--------------------------------------------------------------------------------
/src/model/OfferSubCondition.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferSubCondition = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferSubCondition model module.
44 | * @module model/OfferSubCondition
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferSubCondition
.
50 | * @alias module:model/OfferSubCondition
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a OfferSubCondition
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/OfferSubCondition} obj Optional instance to populate.
67 | * @return {module:model/OfferSubCondition} The populated OfferSubCondition
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('DisplayValue')) {
74 | obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'String');
75 | }
76 | if (data.hasOwnProperty('Label')) {
77 | obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
78 | }
79 | if (data.hasOwnProperty('Locale')) {
80 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
81 | }
82 | if (data.hasOwnProperty('Value')) {
83 | obj['Value'] = ApiClient.convertToType(data['Value'], 'String');
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {String} DisplayValue
91 | */
92 | exports.prototype['DisplayValue'] = undefined;
93 | /**
94 | * @member {String} Label
95 | */
96 | exports.prototype['Label'] = undefined;
97 | /**
98 | * @member {String} Locale
99 | */
100 | exports.prototype['Locale'] = undefined;
101 | /**
102 | * @member {String} Value
103 | */
104 | exports.prototype['Value'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/OfferSummary.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/OfferCondition', 'model/OfferPrice'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./OfferCondition'), require('./OfferPrice'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.OfferSummary = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferCondition, root.ProductAdvertisingAPIv1.OfferPrice);
35 | }
36 | }(this, function(ApiClient, OfferCondition, OfferPrice) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The OfferSummary model module.
44 | * @module model/OfferSummary
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new OfferSummary
.
50 | * @alias module:model/OfferSummary
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a OfferSummary
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/OfferSummary} obj Optional instance to populate.
67 | * @return {module:model/OfferSummary} The populated OfferSummary
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('Condition')) {
74 | obj['Condition'] = OfferCondition.constructFromObject(data['Condition']);
75 | }
76 | if (data.hasOwnProperty('HighestPrice')) {
77 | obj['HighestPrice'] = OfferPrice.constructFromObject(data['HighestPrice']);
78 | }
79 | if (data.hasOwnProperty('LowestPrice')) {
80 | obj['LowestPrice'] = OfferPrice.constructFromObject(data['LowestPrice']);
81 | }
82 | if (data.hasOwnProperty('OfferCount')) {
83 | obj['OfferCount'] = ApiClient.convertToType(data['OfferCount'], 'Number');
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {module:model/OfferCondition} Condition
91 | */
92 | exports.prototype['Condition'] = undefined;
93 | /**
94 | * @member {module:model/OfferPrice} HighestPrice
95 | */
96 | exports.prototype['HighestPrice'] = undefined;
97 | /**
98 | * @member {module:model/OfferPrice} LowestPrice
99 | */
100 | exports.prototype['LowestPrice'] = undefined;
101 | /**
102 | * @member {Number} OfferCount
103 | */
104 | exports.prototype['OfferCount'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/Offers.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/OfferListing', 'model/OfferSummary'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./OfferListing'), require('./OfferSummary'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Offers = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferListing, root.ProductAdvertisingAPIv1.OfferSummary);
35 | }
36 | }(this, function(ApiClient, OfferListing, OfferSummary) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Offers model module.
44 | * @module model/Offers
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Offers
.
50 | * @alias module:model/Offers
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a Offers
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/Offers} obj Optional instance to populate.
65 | * @return {module:model/Offers} The populated Offers
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Listings')) {
72 | obj['Listings'] = ApiClient.convertToType(data['Listings'], [OfferListing]);
73 | }
74 | if (data.hasOwnProperty('Summaries')) {
75 | obj['Summaries'] = ApiClient.convertToType(data['Summaries'], [OfferSummary]);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {Array.} Listings
83 | */
84 | exports.prototype['Listings'] = undefined;
85 | /**
86 | * @member {Array.} Summaries
87 | */
88 | exports.prototype['Summaries'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/PartnerType.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.PartnerType = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class PartnerType.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "Associates"
48 | * @const
49 | */
50 | "Associates": "Associates" };
51 |
52 | /**
53 | * Returns a PartnerType
enum value from a Javascript object name.
54 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
55 | * @return {module:model/PartnerType} The enum PartnerType
value.
56 | */
57 | exports.constructFromObject = function(object) {
58 | return object;
59 | }
60 |
61 | return exports;
62 | }));
63 |
64 |
65 |
--------------------------------------------------------------------------------
/src/model/Price.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/OfferPrice'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./OfferPrice'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Price = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferPrice);
35 | }
36 | }(this, function(ApiClient, OfferPrice) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Price model module.
44 | * @module model/Price
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Price
.
50 | * @alias module:model/Price
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a Price
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/Price} obj Optional instance to populate.
65 | * @return {module:model/Price} The populated Price
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('HighestPrice')) {
72 | obj['HighestPrice'] = OfferPrice.constructFromObject(data['HighestPrice']);
73 | }
74 | if (data.hasOwnProperty('LowestPrice')) {
75 | obj['LowestPrice'] = OfferPrice.constructFromObject(data['LowestPrice']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {module:model/OfferPrice} HighestPrice
83 | */
84 | exports.prototype['HighestPrice'] = undefined;
85 | /**
86 | * @member {module:model/OfferPrice} LowestPrice
87 | */
88 | exports.prototype['LowestPrice'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/ProductAdvertisingAPIClientException.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/ErrorData'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./ErrorData'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ProductAdvertisingAPIClientException = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData);
35 | }
36 | }(this, function(ApiClient, ErrorData) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ProductAdvertisingAPIClientException model module.
44 | * @module model/ProductAdvertisingAPIClientException
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ProductAdvertisingAPIClientException
.
50 | * @alias module:model/ProductAdvertisingAPIClientException
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a ProductAdvertisingAPIClientException
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/ProductAdvertisingAPIClientException} obj Optional instance to populate.
64 | * @return {module:model/ProductAdvertisingAPIClientException} The populated ProductAdvertisingAPIClientException
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('Errors')) {
71 | obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {Array.} Errors
79 | */
80 | exports.prototype['Errors'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/ProductAdvertisingAPIServiceException.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.ProductAdvertisingAPIServiceException = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The ProductAdvertisingAPIServiceException model module.
44 | * @module model/ProductAdvertisingAPIServiceException
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new ProductAdvertisingAPIServiceException
.
50 | * @alias module:model/ProductAdvertisingAPIServiceException
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a ProductAdvertisingAPIServiceException
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/ProductAdvertisingAPIServiceException} obj Optional instance to populate.
64 | * @return {module:model/ProductAdvertisingAPIServiceException} The populated ProductAdvertisingAPIServiceException
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('message')) {
71 | obj['message'] = ApiClient.convertToType(data['message'], 'String');
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {String} message
79 | */
80 | exports.prototype['message'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/Properties.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Properties = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Properties model module.
44 | * @module model/Properties
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Properties
.
50 | * @alias module:model/Properties
51 | * @class
52 | * @extends Object
53 | */
54 | var exports = function() {
55 | var _this = this;
56 |
57 | return _this;
58 | };
59 |
60 | /**
61 | * Constructs a Properties
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/Properties} obj Optional instance to populate.
65 | * @return {module:model/Properties} The populated Properties
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 | ApiClient.constructFromObject(data, obj, 'String');
71 |
72 | }
73 | return obj;
74 | }
75 |
76 |
77 |
78 |
79 | return exports;
80 | }));
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/model/Refinement.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/RefinementBin'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./RefinementBin'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.Refinement = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.RefinementBin);
35 | }
36 | }(this, function(ApiClient, RefinementBin) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The Refinement model module.
44 | * @module model/Refinement
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new Refinement
.
50 | * @alias module:model/Refinement
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a Refinement
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/Refinement} obj Optional instance to populate.
66 | * @return {module:model/Refinement} The populated Refinement
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('Bins')) {
73 | obj['Bins'] = ApiClient.convertToType(data['Bins'], [RefinementBin]);
74 | }
75 | if (data.hasOwnProperty('DisplayName')) {
76 | obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
77 | }
78 | if (data.hasOwnProperty('Id')) {
79 | obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {Array.} Bins
87 | */
88 | exports.prototype['Bins'] = undefined;
89 | /**
90 | * @member {String} DisplayName
91 | */
92 | exports.prototype['DisplayName'] = undefined;
93 | /**
94 | * @member {String} Id
95 | */
96 | exports.prototype['Id'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/RefinementBin.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.RefinementBin = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The RefinementBin model module.
44 | * @module model/RefinementBin
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new RefinementBin
.
50 | * @alias module:model/RefinementBin
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a RefinementBin
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/RefinementBin} obj Optional instance to populate.
65 | * @return {module:model/RefinementBin} The populated RefinementBin
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('DisplayName')) {
72 | obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
73 | }
74 | if (data.hasOwnProperty('Id')) {
75 | obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {String} DisplayName
83 | */
84 | exports.prototype['DisplayName'] = undefined;
85 | /**
86 | * @member {String} Id
87 | */
88 | exports.prototype['Id'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/RentalOffers.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/RentalOfferListing'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./RentalOfferListing'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.RentalOffers = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.RentalOfferListing);
35 | }
36 | }(this, function(ApiClient, RentalOfferListing) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The RentalOffers model module.
44 | * @module model/RentalOffers
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new RentalOffers
.
50 | * @alias module:model/RentalOffers
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a RentalOffers
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/RentalOffers} obj Optional instance to populate.
64 | * @return {module:model/RentalOffers} The populated RentalOffers
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('Listings')) {
71 | obj['Listings'] = ApiClient.convertToType(data['Listings'], [RentalOfferListing]);
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {Array.} Listings
79 | */
80 | exports.prototype['Listings'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/SearchItemsResponse.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/ErrorData', 'model/SearchResult'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./ErrorData'), require('./SearchResult'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.SearchItemsResponse = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.ErrorData, root.ProductAdvertisingAPIv1.SearchResult);
35 | }
36 | }(this, function(ApiClient, ErrorData, SearchResult) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The SearchItemsResponse model module.
44 | * @module model/SearchItemsResponse
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new SearchItemsResponse
.
50 | * @alias module:model/SearchItemsResponse
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a SearchItemsResponse
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/SearchItemsResponse} obj Optional instance to populate.
65 | * @return {module:model/SearchItemsResponse} The populated SearchItemsResponse
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('SearchResult')) {
72 | obj['SearchResult'] = SearchResult.constructFromObject(data['SearchResult']);
73 | }
74 | if (data.hasOwnProperty('Errors')) {
75 | obj['Errors'] = ApiClient.convertToType(data['Errors'], [ErrorData]);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {module:model/SearchResult} SearchResult
83 | */
84 | exports.prototype['SearchResult'] = undefined;
85 | /**
86 | * @member {Array.} Errors
87 | */
88 | exports.prototype['Errors'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/SearchRefinements.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/Refinement'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./Refinement'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.SearchRefinements = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Refinement);
35 | }
36 | }(this, function(ApiClient, Refinement) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The SearchRefinements model module.
44 | * @module model/SearchRefinements
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new SearchRefinements
.
50 | * @alias module:model/SearchRefinements
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a SearchRefinements
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/SearchRefinements} obj Optional instance to populate.
66 | * @return {module:model/SearchRefinements} The populated SearchRefinements
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('BrowseNode')) {
73 | obj['BrowseNode'] = Refinement.constructFromObject(data['BrowseNode']);
74 | }
75 | if (data.hasOwnProperty('OtherRefinements')) {
76 | obj['OtherRefinements'] = ApiClient.convertToType(data['OtherRefinements'], [Refinement]);
77 | }
78 | if (data.hasOwnProperty('SearchIndex')) {
79 | obj['SearchIndex'] = Refinement.constructFromObject(data['SearchIndex']);
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {module:model/Refinement} BrowseNode
87 | */
88 | exports.prototype['BrowseNode'] = undefined;
89 | /**
90 | * @member {Array.} OtherRefinements
91 | */
92 | exports.prototype['OtherRefinements'] = undefined;
93 | /**
94 | * @member {module:model/Refinement} SearchIndex
95 | */
96 | exports.prototype['SearchIndex'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/SearchResult.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/Item', 'model/SearchRefinements'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./Item'), require('./SearchRefinements'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.SearchResult = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Item, root.ProductAdvertisingAPIv1.SearchRefinements);
35 | }
36 | }(this, function(ApiClient, Item, SearchRefinements) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The SearchResult model module.
44 | * @module model/SearchResult
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new SearchResult
.
50 | * @alias module:model/SearchResult
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a SearchResult
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/SearchResult} obj Optional instance to populate.
67 | * @return {module:model/SearchResult} The populated SearchResult
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('TotalResultCount')) {
74 | obj['TotalResultCount'] = ApiClient.convertToType(data['TotalResultCount'], 'Number');
75 | }
76 | if (data.hasOwnProperty('SearchURL')) {
77 | obj['SearchURL'] = ApiClient.convertToType(data['SearchURL'], 'String');
78 | }
79 | if (data.hasOwnProperty('Items')) {
80 | obj['Items'] = ApiClient.convertToType(data['Items'], [Item]);
81 | }
82 | if (data.hasOwnProperty('SearchRefinements')) {
83 | obj['SearchRefinements'] = SearchRefinements.constructFromObject(data['SearchRefinements']);
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {Number} TotalResultCount
91 | */
92 | exports.prototype['TotalResultCount'] = undefined;
93 | /**
94 | * @member {String} SearchURL
95 | */
96 | exports.prototype['SearchURL'] = undefined;
97 | /**
98 | * @member {Array.} Items
99 | */
100 | exports.prototype['Items'] = undefined;
101 | /**
102 | * @member {module:model/SearchRefinements} SearchRefinements
103 | */
104 | exports.prototype['SearchRefinements'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/SingleBooleanValuedAttribute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.SingleBooleanValuedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The SingleBooleanValuedAttribute model module.
44 | * @module model/SingleBooleanValuedAttribute
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new SingleBooleanValuedAttribute
.
50 | * @alias module:model/SingleBooleanValuedAttribute
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a SingleBooleanValuedAttribute
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/SingleBooleanValuedAttribute} obj Optional instance to populate.
66 | * @return {module:model/SingleBooleanValuedAttribute} The populated SingleBooleanValuedAttribute
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('DisplayValue')) {
73 | obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'Boolean');
74 | }
75 | if (data.hasOwnProperty('Label')) {
76 | obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
77 | }
78 | if (data.hasOwnProperty('Locale')) {
79 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {Boolean} DisplayValue
87 | */
88 | exports.prototype['DisplayValue'] = undefined;
89 | /**
90 | * @member {String} Label
91 | */
92 | exports.prototype['Label'] = undefined;
93 | /**
94 | * @member {String} Locale
95 | */
96 | exports.prototype['Locale'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/SingleIntegerValuedAttribute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.SingleIntegerValuedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The SingleIntegerValuedAttribute model module.
44 | * @module model/SingleIntegerValuedAttribute
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new SingleIntegerValuedAttribute
.
50 | * @alias module:model/SingleIntegerValuedAttribute
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a SingleIntegerValuedAttribute
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/SingleIntegerValuedAttribute} obj Optional instance to populate.
66 | * @return {module:model/SingleIntegerValuedAttribute} The populated SingleIntegerValuedAttribute
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('DisplayValue')) {
73 | obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'Number');
74 | }
75 | if (data.hasOwnProperty('Label')) {
76 | obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
77 | }
78 | if (data.hasOwnProperty('Locale')) {
79 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {Number} DisplayValue
87 | */
88 | exports.prototype['DisplayValue'] = undefined;
89 | /**
90 | * @member {String} Label
91 | */
92 | exports.prototype['Label'] = undefined;
93 | /**
94 | * @member {String} Locale
95 | */
96 | exports.prototype['Locale'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/SingleStringValuedAttribute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.SingleStringValuedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The SingleStringValuedAttribute model module.
44 | * @module model/SingleStringValuedAttribute
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new SingleStringValuedAttribute
.
50 | * @alias module:model/SingleStringValuedAttribute
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a SingleStringValuedAttribute
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/SingleStringValuedAttribute} obj Optional instance to populate.
66 | * @return {module:model/SingleStringValuedAttribute} The populated SingleStringValuedAttribute
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('DisplayValue')) {
73 | obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'String');
74 | }
75 | if (data.hasOwnProperty('Label')) {
76 | obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
77 | }
78 | if (data.hasOwnProperty('Locale')) {
79 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {String} DisplayValue
87 | */
88 | exports.prototype['DisplayValue'] = undefined;
89 | /**
90 | * @member {String} Label
91 | */
92 | exports.prototype['Label'] = undefined;
93 | /**
94 | * @member {String} Locale
95 | */
96 | exports.prototype['Locale'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/SortBy.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.SortBy = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 | /**
41 | * Enum class SortBy.
42 | * @enum {}
43 | * @readonly
44 | */
45 | var exports = {
46 | /**
47 | * value: "AvgCustomerReviews"
48 | * @const
49 | */
50 | "AvgCustomerReviews": "AvgCustomerReviews",
51 | /**
52 | * value: "Featured"
53 | * @const
54 | */
55 | "Featured": "Featured",
56 | /**
57 | * value: "NewestArrivals"
58 | * @const
59 | */
60 | "NewestArrivals": "NewestArrivals",
61 | /**
62 | * value: "Price:HighToLow"
63 | * @const
64 | */
65 | "Price:HighToLow": "Price:HighToLow",
66 | /**
67 | * value: "Price:LowToHigh"
68 | * @const
69 | */
70 | "Price:LowToHigh": "Price:LowToHigh",
71 | /**
72 | * value: "Relevance"
73 | * @const
74 | */
75 | "Relevance": "Relevance" };
76 |
77 | /**
78 | * Returns a SortBy
enum value from a Javascript object name.
79 | * @param {Object} data The plain JavaScript object containing the name of the enum value.
80 | * @return {module:model/SortBy} The enum SortBy
value.
81 | */
82 | exports.constructFromObject = function(object) {
83 | return object;
84 | }
85 |
86 | return exports;
87 | }));
88 |
89 |
90 |
--------------------------------------------------------------------------------
/src/model/TechnicalInfo.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/MultiValuedAttribute'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./MultiValuedAttribute'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.TechnicalInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.MultiValuedAttribute);
35 | }
36 | }(this, function(ApiClient, MultiValuedAttribute) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The TechnicalInfo model module.
44 | * @module model/TechnicalInfo
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new TechnicalInfo
.
50 | * @alias module:model/TechnicalInfo
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 | };
58 |
59 | /**
60 | * Constructs a TechnicalInfo
from a plain JavaScript object, optionally creating a new instance.
61 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
62 | * @param {Object} data The plain JavaScript object bearing properties of interest.
63 | * @param {module:model/TechnicalInfo} obj Optional instance to populate.
64 | * @return {module:model/TechnicalInfo} The populated TechnicalInfo
instance.
65 | */
66 | exports.constructFromObject = function(data, obj) {
67 | if (data) {
68 | obj = obj || new exports();
69 |
70 | if (data.hasOwnProperty('Formats')) {
71 | obj['Formats'] = MultiValuedAttribute.constructFromObject(data['Formats']);
72 | }
73 | }
74 | return obj;
75 | }
76 |
77 | /**
78 | * @member {module:model/MultiValuedAttribute} Formats
79 | */
80 | exports.prototype['Formats'] = undefined;
81 |
82 |
83 |
84 | return exports;
85 | }));
86 |
87 |
88 |
--------------------------------------------------------------------------------
/src/model/TradeInInfo.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/TradeInPrice'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./TradeInPrice'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.TradeInInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.TradeInPrice);
35 | }
36 | }(this, function(ApiClient, TradeInPrice) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The TradeInInfo model module.
44 | * @module model/TradeInInfo
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new TradeInInfo
.
50 | * @alias module:model/TradeInInfo
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a TradeInInfo
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/TradeInInfo} obj Optional instance to populate.
65 | * @return {module:model/TradeInInfo} The populated TradeInInfo
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('IsEligibleForTradeIn')) {
72 | obj['IsEligibleForTradeIn'] = ApiClient.convertToType(data['IsEligibleForTradeIn'], 'Boolean');
73 | }
74 | if (data.hasOwnProperty('Price')) {
75 | obj['Price'] = TradeInPrice.constructFromObject(data['Price']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {Boolean} IsEligibleForTradeIn
83 | */
84 | exports.prototype['IsEligibleForTradeIn'] = undefined;
85 | /**
86 | * @member {module:model/TradeInPrice} Price
87 | */
88 | exports.prototype['Price'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/TradeInPrice.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.TradeInPrice = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The TradeInPrice model module.
44 | * @module model/TradeInPrice
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new TradeInPrice
.
50 | * @alias module:model/TradeInPrice
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 | };
60 |
61 | /**
62 | * Constructs a TradeInPrice
from a plain JavaScript object, optionally creating a new instance.
63 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
64 | * @param {Object} data The plain JavaScript object bearing properties of interest.
65 | * @param {module:model/TradeInPrice} obj Optional instance to populate.
66 | * @return {module:model/TradeInPrice} The populated TradeInPrice
instance.
67 | */
68 | exports.constructFromObject = function(data, obj) {
69 | if (data) {
70 | obj = obj || new exports();
71 |
72 | if (data.hasOwnProperty('Amount')) {
73 | obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number');
74 | }
75 | if (data.hasOwnProperty('Currency')) {
76 | obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String');
77 | }
78 | if (data.hasOwnProperty('DisplayAmount')) {
79 | obj['DisplayAmount'] = ApiClient.convertToType(data['DisplayAmount'], 'String');
80 | }
81 | }
82 | return obj;
83 | }
84 |
85 | /**
86 | * @member {Number} Amount
87 | */
88 | exports.prototype['Amount'] = undefined;
89 | /**
90 | * @member {String} Currency
91 | */
92 | exports.prototype['Currency'] = undefined;
93 | /**
94 | * @member {String} DisplayAmount
95 | */
96 | exports.prototype['DisplayAmount'] = undefined;
97 |
98 |
99 |
100 | return exports;
101 | }));
102 |
103 |
104 |
--------------------------------------------------------------------------------
/src/model/UnitBasedAttribute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.UnitBasedAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The UnitBasedAttribute model module.
44 | * @module model/UnitBasedAttribute
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new UnitBasedAttribute
.
50 | * @alias module:model/UnitBasedAttribute
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a UnitBasedAttribute
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/UnitBasedAttribute} obj Optional instance to populate.
67 | * @return {module:model/UnitBasedAttribute} The populated UnitBasedAttribute
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('DisplayValue')) {
74 | obj['DisplayValue'] = ApiClient.convertToType(data['DisplayValue'], 'Number');
75 | }
76 | if (data.hasOwnProperty('Label')) {
77 | obj['Label'] = ApiClient.convertToType(data['Label'], 'String');
78 | }
79 | if (data.hasOwnProperty('Locale')) {
80 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
81 | }
82 | if (data.hasOwnProperty('Unit')) {
83 | obj['Unit'] = ApiClient.convertToType(data['Unit'], 'String');
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {Number} DisplayValue
91 | */
92 | exports.prototype['DisplayValue'] = undefined;
93 | /**
94 | * @member {String} Label
95 | */
96 | exports.prototype['Label'] = undefined;
97 | /**
98 | * @member {String} Locale
99 | */
100 | exports.prototype['Locale'] = undefined;
101 | /**
102 | * @member {String} Unit
103 | */
104 | exports.prototype['Unit'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/VariationAttribute.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.VariationAttribute = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The VariationAttribute model module.
44 | * @module model/VariationAttribute
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new VariationAttribute
.
50 | * @alias module:model/VariationAttribute
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a VariationAttribute
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/VariationAttribute} obj Optional instance to populate.
65 | * @return {module:model/VariationAttribute} The populated VariationAttribute
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Name')) {
72 | obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
73 | }
74 | if (data.hasOwnProperty('Value')) {
75 | obj['Value'] = ApiClient.convertToType(data['Value'], 'String');
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {String} Name
83 | */
84 | exports.prototype['Name'] = undefined;
85 | /**
86 | * @member {String} Value
87 | */
88 | exports.prototype['Value'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/VariationDimension.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.VariationDimension = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The VariationDimension model module.
44 | * @module model/VariationDimension
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new VariationDimension
.
50 | * @alias module:model/VariationDimension
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a VariationDimension
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/VariationDimension} obj Optional instance to populate.
67 | * @return {module:model/VariationDimension} The populated VariationDimension
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('DisplayName')) {
74 | obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
75 | }
76 | if (data.hasOwnProperty('Locale')) {
77 | obj['Locale'] = ApiClient.convertToType(data['Locale'], 'String');
78 | }
79 | if (data.hasOwnProperty('Name')) {
80 | obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
81 | }
82 | if (data.hasOwnProperty('Values')) {
83 | obj['Values'] = ApiClient.convertToType(data['Values'], ['String']);
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {String} DisplayName
91 | */
92 | exports.prototype['DisplayName'] = undefined;
93 | /**
94 | * @member {String} Locale
95 | */
96 | exports.prototype['Locale'] = undefined;
97 | /**
98 | * @member {String} Name
99 | */
100 | exports.prototype['Name'] = undefined;
101 | /**
102 | * @member {Array.} Values
103 | */
104 | exports.prototype['Values'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/VariationSummary.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/Price', 'model/VariationDimension'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./Price'), require('./VariationDimension'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.VariationSummary = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Price, root.ProductAdvertisingAPIv1.VariationDimension);
35 | }
36 | }(this, function(ApiClient, Price, VariationDimension) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The VariationSummary model module.
44 | * @module model/VariationSummary
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new VariationSummary
.
50 | * @alias module:model/VariationSummary
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a VariationSummary
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/VariationSummary} obj Optional instance to populate.
67 | * @return {module:model/VariationSummary} The populated VariationSummary
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('PageCount')) {
74 | obj['PageCount'] = ApiClient.convertToType(data['PageCount'], 'Number');
75 | }
76 | if (data.hasOwnProperty('Price')) {
77 | obj['Price'] = Price.constructFromObject(data['Price']);
78 | }
79 | if (data.hasOwnProperty('VariationCount')) {
80 | obj['VariationCount'] = ApiClient.convertToType(data['VariationCount'], 'Number');
81 | }
82 | if (data.hasOwnProperty('VariationDimensions')) {
83 | obj['VariationDimensions'] = ApiClient.convertToType(data['VariationDimensions'], [VariationDimension]);
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {Number} PageCount
91 | */
92 | exports.prototype['PageCount'] = undefined;
93 | /**
94 | * @member {module:model/Price} Price
95 | */
96 | exports.prototype['Price'] = undefined;
97 | /**
98 | * @member {Number} VariationCount
99 | */
100 | exports.prototype['VariationCount'] = undefined;
101 | /**
102 | * @member {Array.} VariationDimensions
103 | */
104 | exports.prototype['VariationDimensions'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/model/VariationsResult.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient', 'model/Item', 'model/VariationSummary'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'), require('./Item'), require('./VariationSummary'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.VariationsResult = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.Item, root.ProductAdvertisingAPIv1.VariationSummary);
35 | }
36 | }(this, function(ApiClient, Item, VariationSummary) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The VariationsResult model module.
44 | * @module model/VariationsResult
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new VariationsResult
.
50 | * @alias module:model/VariationsResult
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 | };
59 |
60 | /**
61 | * Constructs a VariationsResult
from a plain JavaScript object, optionally creating a new instance.
62 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
63 | * @param {Object} data The plain JavaScript object bearing properties of interest.
64 | * @param {module:model/VariationsResult} obj Optional instance to populate.
65 | * @return {module:model/VariationsResult} The populated VariationsResult
instance.
66 | */
67 | exports.constructFromObject = function(data, obj) {
68 | if (data) {
69 | obj = obj || new exports();
70 |
71 | if (data.hasOwnProperty('Items')) {
72 | obj['Items'] = ApiClient.convertToType(data['Items'], [Item]);
73 | }
74 | if (data.hasOwnProperty('VariationSummary')) {
75 | obj['VariationSummary'] = VariationSummary.constructFromObject(data['VariationSummary']);
76 | }
77 | }
78 | return obj;
79 | }
80 |
81 | /**
82 | * @member {Array.} Items
83 | */
84 | exports.prototype['Items'] = undefined;
85 | /**
86 | * @member {module:model/VariationSummary} VariationSummary
87 | */
88 | exports.prototype['VariationSummary'] = undefined;
89 |
90 |
91 |
92 | return exports;
93 | }));
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/model/WebsiteSalesRank.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License").
5 | * You may not use this file except in compliance with the License.
6 | * A copy of the License is located at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * or in the "license" file accompanying this file. This file is distributed
11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 | * express or implied. See the License for the specific language governing
13 | * permissions and limitations under the License.
14 | */
15 |
16 | /**
17 | * ProductAdvertisingAPI
18 | * https://webservices.amazon.com/paapi5/documentation/index.html
19 | *
20 | */
21 |
22 | (function(root, factory) {
23 | if (typeof define === 'function' && define.amd) {
24 | // AMD. Register as an anonymous module.
25 | define(['ApiClient'], factory);
26 | } else if (typeof module === 'object' && module.exports) {
27 | // CommonJS-like environments that support module.exports, like Node.
28 | module.exports = factory(require('../ApiClient'));
29 | } else {
30 | // Browser globals (root is window)
31 | if (!root.ProductAdvertisingAPIv1) {
32 | root.ProductAdvertisingAPIv1 = {};
33 | }
34 | root.ProductAdvertisingAPIv1.WebsiteSalesRank = factory(root.ProductAdvertisingAPIv1.ApiClient);
35 | }
36 | }(this, function(ApiClient) {
37 | 'use strict';
38 |
39 |
40 |
41 |
42 | /**
43 | * The WebsiteSalesRank model module.
44 | * @module model/WebsiteSalesRank
45 | * @version 1.0.0
46 | */
47 |
48 | /**
49 | * Constructs a new WebsiteSalesRank
.
50 | * @alias module:model/WebsiteSalesRank
51 | * @class
52 | */
53 | var exports = function() {
54 | var _this = this;
55 |
56 |
57 |
58 |
59 |
60 | };
61 |
62 | /**
63 | * Constructs a WebsiteSalesRank
from a plain JavaScript object, optionally creating a new instance.
64 | * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
65 | * @param {Object} data The plain JavaScript object bearing properties of interest.
66 | * @param {module:model/WebsiteSalesRank} obj Optional instance to populate.
67 | * @return {module:model/WebsiteSalesRank} The populated WebsiteSalesRank
instance.
68 | */
69 | exports.constructFromObject = function(data, obj) {
70 | if (data) {
71 | obj = obj || new exports();
72 |
73 | if (data.hasOwnProperty('ContextFreeName')) {
74 | obj['ContextFreeName'] = ApiClient.convertToType(data['ContextFreeName'], 'String');
75 | }
76 | if (data.hasOwnProperty('DisplayName')) {
77 | obj['DisplayName'] = ApiClient.convertToType(data['DisplayName'], 'String');
78 | }
79 | if (data.hasOwnProperty('Id')) {
80 | obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
81 | }
82 | if (data.hasOwnProperty('SalesRank')) {
83 | obj['SalesRank'] = ApiClient.convertToType(data['SalesRank'], 'Number');
84 | }
85 | }
86 | return obj;
87 | }
88 |
89 | /**
90 | * @member {String} ContextFreeName
91 | */
92 | exports.prototype['ContextFreeName'] = undefined;
93 | /**
94 | * @member {String} DisplayName
95 | */
96 | exports.prototype['DisplayName'] = undefined;
97 | /**
98 | * @member {String} Id
99 | */
100 | exports.prototype['Id'] = undefined;
101 | /**
102 | * @member {Number} SalesRank
103 | */
104 | exports.prototype['SalesRank'] = undefined;
105 |
106 |
107 |
108 | return exports;
109 | }));
110 |
111 |
112 |
--------------------------------------------------------------------------------