amazon-creators-api 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -0
- package/README.md +102 -0
- package/dist/ApiClient.d.ts +273 -0
- package/dist/ApiClient.js +895 -0
- package/dist/api/DefaultApi.d.ts +124 -0
- package/dist/api/DefaultApi.js +409 -0
- package/dist/api/TypedDefaultApi.d.ts +132 -0
- package/dist/api/TypedDefaultApi.js +223 -0
- package/dist/auth/OAuth2Config.d.ts +78 -0
- package/dist/auth/OAuth2Config.js +152 -0
- package/dist/auth/OAuth2TokenManager.d.ts +38 -0
- package/dist/auth/OAuth2TokenManager.js +177 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.js +657 -0
- package/dist/model/AccessDeniedExceptionResponseContent.d.ts +42 -0
- package/dist/model/AccessDeniedExceptionResponseContent.js +139 -0
- package/dist/model/AccessDeniedReason.d.ts +32 -0
- package/dist/model/AccessDeniedReason.js +65 -0
- package/dist/model/Availability.d.ts +27 -0
- package/dist/model/Availability.js +60 -0
- package/dist/model/BrowseNode.d.ts +35 -0
- package/dist/model/BrowseNode.js +184 -0
- package/dist/model/BrowseNodeAncestor.d.ts +32 -0
- package/dist/model/BrowseNodeAncestor.js +129 -0
- package/dist/model/BrowseNodeChild.d.ts +31 -0
- package/dist/model/BrowseNodeChild.js +116 -0
- package/dist/model/BrowseNodeInfo.d.ts +30 -0
- package/dist/model/BrowseNodeInfo.js +128 -0
- package/dist/model/BrowseNodesResult.d.ts +29 -0
- package/dist/model/BrowseNodesResult.js +114 -0
- package/dist/model/ByLineInfo.d.ts +31 -0
- package/dist/model/ByLineInfo.js +141 -0
- package/dist/model/Classifications.d.ts +30 -0
- package/dist/model/Classifications.js +107 -0
- package/dist/model/Condition.d.ts +27 -0
- package/dist/model/Condition.js +60 -0
- package/dist/model/ContentInfo.d.ts +32 -0
- package/dist/model/ContentInfo.js +135 -0
- package/dist/model/ContentRating.d.ts +29 -0
- package/dist/model/ContentRating.js +94 -0
- package/dist/model/Contributor.d.ts +32 -0
- package/dist/model/Contributor.js +128 -0
- package/dist/model/CustomerReviews.d.ts +30 -0
- package/dist/model/CustomerReviews.js +102 -0
- package/dist/model/DealDetails.d.ts +34 -0
- package/dist/model/DealDetails.js +144 -0
- package/dist/model/DeliveryFlag.d.ts +37 -0
- package/dist/model/DeliveryFlag.js +70 -0
- package/dist/model/DimensionBasedAttribute.d.ts +32 -0
- package/dist/model/DimensionBasedAttribute.js +133 -0
- package/dist/model/ErrorData.d.ts +41 -0
- package/dist/model/ErrorData.js +131 -0
- package/dist/model/ExternalIds.d.ts +31 -0
- package/dist/model/ExternalIds.js +120 -0
- package/dist/model/Feed.d.ts +44 -0
- package/dist/model/Feed.js +152 -0
- package/dist/model/GetBrowseNodesRequestContent.d.ts +43 -0
- package/dist/model/GetBrowseNodesRequestContent.js +158 -0
- package/dist/model/GetBrowseNodesResource.d.ts +27 -0
- package/dist/model/GetBrowseNodesResource.js +60 -0
- package/dist/model/GetBrowseNodesResponseContent.d.ts +30 -0
- package/dist/model/GetBrowseNodesResponseContent.js +128 -0
- package/dist/model/GetFeedRequestContent.d.ts +38 -0
- package/dist/model/GetFeedRequestContent.js +114 -0
- package/dist/model/GetFeedResponseContent.d.ts +38 -0
- package/dist/model/GetFeedResponseContent.js +114 -0
- package/dist/model/GetItemsRequestContent.d.ts +45 -0
- package/dist/model/GetItemsRequestContent.js +188 -0
- package/dist/model/GetItemsResource.d.ts +187 -0
- package/dist/model/GetItemsResource.js +220 -0
- package/dist/model/GetItemsResponseContent.d.ts +30 -0
- package/dist/model/GetItemsResponseContent.js +128 -0
- package/dist/model/GetReportRequestContent.d.ts +38 -0
- package/dist/model/GetReportRequestContent.js +114 -0
- package/dist/model/GetReportResponseContent.d.ts +38 -0
- package/dist/model/GetReportResponseContent.js +114 -0
- package/dist/model/GetVariationsRequestContent.d.ts +48 -0
- package/dist/model/GetVariationsRequestContent.js +209 -0
- package/dist/model/GetVariationsResource.d.ts +202 -0
- package/dist/model/GetVariationsResource.js +235 -0
- package/dist/model/GetVariationsResponseContent.d.ts +30 -0
- package/dist/model/GetVariationsResponseContent.js +128 -0
- package/dist/model/ImageSize.d.ts +31 -0
- package/dist/model/ImageSize.js +108 -0
- package/dist/model/ImageType.d.ts +32 -0
- package/dist/model/ImageType.js +133 -0
- package/dist/model/Images.d.ts +30 -0
- package/dist/model/Images.js +127 -0
- package/dist/model/InternalServerExceptionResponseContent.d.ts +40 -0
- package/dist/model/InternalServerExceptionResponseContent.js +128 -0
- package/dist/model/Item.d.ts +38 -0
- package/dist/model/Item.js +228 -0
- package/dist/model/ItemInfo.d.ts +39 -0
- package/dist/model/ItemInfo.js +234 -0
- package/dist/model/ItemsResult.d.ts +29 -0
- package/dist/model/ItemsResult.js +114 -0
- package/dist/model/LanguageType.d.ts +30 -0
- package/dist/model/LanguageType.js +104 -0
- package/dist/model/Languages.d.ts +31 -0
- package/dist/model/Languages.js +138 -0
- package/dist/model/ListFeedsResponseContent.d.ts +29 -0
- package/dist/model/ListFeedsResponseContent.js +112 -0
- package/dist/model/ListReportsResponseContent.d.ts +38 -0
- package/dist/model/ListReportsResponseContent.js +132 -0
- package/dist/model/ManufactureInfo.d.ts +31 -0
- package/dist/model/ManufactureInfo.js +120 -0
- package/dist/model/Money.d.ts +31 -0
- package/dist/model/Money.js +112 -0
- package/dist/model/MultiValuedAttribute.d.ts +31 -0
- package/dist/model/MultiValuedAttribute.js +117 -0
- package/dist/model/OfferAvailabilityV2.d.ts +32 -0
- package/dist/model/OfferAvailabilityV2.js +120 -0
- package/dist/model/OfferConditionV2.d.ts +31 -0
- package/dist/model/OfferConditionV2.js +116 -0
- package/dist/model/OfferListingV2.d.ts +37 -0
- package/dist/model/OfferListingV2.js +189 -0
- package/dist/model/OfferLoyaltyPointsV2.d.ts +29 -0
- package/dist/model/OfferLoyaltyPointsV2.js +88 -0
- package/dist/model/OfferMerchantInfoV2.d.ts +30 -0
- package/dist/model/OfferMerchantInfoV2.js +104 -0
- package/dist/model/OfferPriceV2.d.ts +32 -0
- package/dist/model/OfferPriceV2.js +135 -0
- package/dist/model/OfferSavingBasis.d.ts +31 -0
- package/dist/model/OfferSavingBasis.js +115 -0
- package/dist/model/OfferSavings.d.ts +30 -0
- package/dist/model/OfferSavings.js +102 -0
- package/dist/model/OfferType.d.ts +32 -0
- package/dist/model/OfferType.js +65 -0
- package/dist/model/OffersV2.d.ts +29 -0
- package/dist/model/OffersV2.js +114 -0
- package/dist/model/ProductInfo.d.ts +34 -0
- package/dist/model/ProductInfo.js +162 -0
- package/dist/model/Rating.d.ts +29 -0
- package/dist/model/Rating.js +88 -0
- package/dist/model/Refinement.d.ts +31 -0
- package/dist/model/Refinement.js +138 -0
- package/dist/model/RefinementBin.d.ts +30 -0
- package/dist/model/RefinementBin.js +104 -0
- package/dist/model/ReportMetadata.d.ts +44 -0
- package/dist/model/ReportMetadata.js +152 -0
- package/dist/model/ResourceNotFoundExceptionResponseContent.d.ts +44 -0
- package/dist/model/ResourceNotFoundExceptionResponseContent.js +156 -0
- package/dist/model/SavingBasisType.d.ts +37 -0
- package/dist/model/SavingBasisType.js +70 -0
- package/dist/model/SearchItemsRequestContent.d.ts +51 -0
- package/dist/model/SearchItemsRequestContent.js +343 -0
- package/dist/model/SearchItemsResource.d.ts +192 -0
- package/dist/model/SearchItemsResource.js +225 -0
- package/dist/model/SearchItemsResponseContent.d.ts +30 -0
- package/dist/model/SearchItemsResponseContent.js +128 -0
- package/dist/model/SearchRefinements.d.ts +31 -0
- package/dist/model/SearchRefinements.js +140 -0
- package/dist/model/SearchResult.d.ts +32 -0
- package/dist/model/SearchResult.js +148 -0
- package/dist/model/SingleBooleanValuedAttribute.d.ts +31 -0
- package/dist/model/SingleBooleanValuedAttribute.js +112 -0
- package/dist/model/SingleIntegerValuedAttribute.d.ts +31 -0
- package/dist/model/SingleIntegerValuedAttribute.js +112 -0
- package/dist/model/SingleStringValuedAttribute.d.ts +31 -0
- package/dist/model/SingleStringValuedAttribute.js +116 -0
- package/dist/model/SortBy.d.ts +47 -0
- package/dist/model/SortBy.js +80 -0
- package/dist/model/TechnicalInfo.d.ts +30 -0
- package/dist/model/TechnicalInfo.js +108 -0
- package/dist/model/ThrottleExceptionResponseContent.d.ts +42 -0
- package/dist/model/ThrottleExceptionResponseContent.js +152 -0
- package/dist/model/TradeInInfo.d.ts +30 -0
- package/dist/model/TradeInInfo.js +102 -0
- package/dist/model/TradeInPrice.d.ts +31 -0
- package/dist/model/TradeInPrice.js +112 -0
- package/dist/model/UnauthorizedExceptionReason.d.ts +62 -0
- package/dist/model/UnauthorizedExceptionReason.js +95 -0
- package/dist/model/UnauthorizedExceptionResponseContent.d.ts +41 -0
- package/dist/model/UnauthorizedExceptionResponseContent.js +137 -0
- package/dist/model/UnitBasedAttribute.d.ts +32 -0
- package/dist/model/UnitBasedAttribute.js +124 -0
- package/dist/model/ValidationExceptionField.d.ts +41 -0
- package/dist/model/ValidationExceptionField.js +129 -0
- package/dist/model/ValidationExceptionReason.d.ts +47 -0
- package/dist/model/ValidationExceptionReason.js +80 -0
- package/dist/model/ValidationExceptionResponseContent.d.ts +43 -0
- package/dist/model/ValidationExceptionResponseContent.js +170 -0
- package/dist/model/VariationAttribute.d.ts +30 -0
- package/dist/model/VariationAttribute.js +104 -0
- package/dist/model/VariationDimension.d.ts +32 -0
- package/dist/model/VariationDimension.js +132 -0
- package/dist/model/VariationSummary.d.ts +32 -0
- package/dist/model/VariationSummary.js +146 -0
- package/dist/model/VariationSummaryPrice.d.ts +30 -0
- package/dist/model/VariationSummaryPrice.js +107 -0
- package/dist/model/VariationsResult.d.ts +30 -0
- package/dist/model/VariationsResult.js +128 -0
- package/dist/model/WebsiteSalesRank.d.ts +32 -0
- package/dist/model/WebsiteSalesRank.js +124 -0
- package/package.json +67 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _SingleStringValuedAttribute = _interopRequireDefault(require("./SingleStringValuedAttribute"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
+
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
17
|
+
*
|
|
18
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
19
|
+
* You may not use this file except in compliance with the License.
|
|
20
|
+
* A copy of the License is located at
|
|
21
|
+
*
|
|
22
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
25
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
26
|
+
* express or implied. See the License for the specific language governing
|
|
27
|
+
* permissions and limitations under the License.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The ManufactureInfo model module.
|
|
31
|
+
* @module model/ManufactureInfo
|
|
32
|
+
* @version 1.0.0
|
|
33
|
+
*/
|
|
34
|
+
var ManufactureInfo = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>ManufactureInfo</code>.
|
|
37
|
+
* Container for set of attributes that specifies manufacturing related information of a product.
|
|
38
|
+
* @alias module:model/ManufactureInfo
|
|
39
|
+
*/
|
|
40
|
+
function ManufactureInfo() {
|
|
41
|
+
_classCallCheck(this, ManufactureInfo);
|
|
42
|
+
ManufactureInfo.initialize(this);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(ManufactureInfo, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj) {}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>ManufactureInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/ManufactureInfo} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/ManufactureInfo} The populated <code>ManufactureInfo</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "constructFromObject",
|
|
63
|
+
value: function constructFromObject(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new ManufactureInfo();
|
|
66
|
+
if (data.hasOwnProperty('itemPartNumber')) {
|
|
67
|
+
obj['itemPartNumber'] = _SingleStringValuedAttribute["default"].constructFromObject(data['itemPartNumber']);
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('model')) {
|
|
70
|
+
obj['model'] = _SingleStringValuedAttribute["default"].constructFromObject(data['model']);
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('warranty')) {
|
|
73
|
+
obj['warranty'] = _SingleStringValuedAttribute["default"].constructFromObject(data['warranty']);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Validates the JSON data with respect to <code>ManufactureInfo</code>.
|
|
81
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ManufactureInfo</code>.
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "validateJSON",
|
|
86
|
+
value: function validateJSON(data) {
|
|
87
|
+
// validate the optional field `itemPartNumber`
|
|
88
|
+
if (data['itemPartNumber']) {
|
|
89
|
+
// data not null
|
|
90
|
+
_SingleStringValuedAttribute["default"].validateJSON(data['itemPartNumber']);
|
|
91
|
+
}
|
|
92
|
+
// validate the optional field `model`
|
|
93
|
+
if (data['model']) {
|
|
94
|
+
// data not null
|
|
95
|
+
_SingleStringValuedAttribute["default"].validateJSON(data['model']);
|
|
96
|
+
}
|
|
97
|
+
// validate the optional field `warranty`
|
|
98
|
+
if (data['warranty']) {
|
|
99
|
+
// data not null
|
|
100
|
+
_SingleStringValuedAttribute["default"].validateJSON(data['warranty']);
|
|
101
|
+
}
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
}]);
|
|
105
|
+
}();
|
|
106
|
+
/**
|
|
107
|
+
* @member {module:model/SingleStringValuedAttribute} itemPartNumber
|
|
108
|
+
*/
|
|
109
|
+
ManufactureInfo.prototype['itemPartNumber'] = undefined;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @member {module:model/SingleStringValuedAttribute} model
|
|
113
|
+
*/
|
|
114
|
+
ManufactureInfo.prototype['model'] = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @member {module:model/SingleStringValuedAttribute} warranty
|
|
118
|
+
*/
|
|
119
|
+
ManufactureInfo.prototype['warranty'] = undefined;
|
|
120
|
+
var _default = exports["default"] = ManufactureInfo;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default Money;
|
|
2
|
+
/**
|
|
3
|
+
* The Money model module.
|
|
4
|
+
* @module model/Money
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class Money {
|
|
8
|
+
/**
|
|
9
|
+
* Initializes the fields of this object.
|
|
10
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
11
|
+
* Only for internal use.
|
|
12
|
+
*/
|
|
13
|
+
static initialize(obj: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a <code>Money</code> from a plain JavaScript object, optionally creating a new instance.
|
|
16
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
17
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
18
|
+
* @param {module:model/Money} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/Money} The populated <code>Money</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): Money;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>Money</code>.
|
|
24
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
25
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Money</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
amount: number;
|
|
29
|
+
currency: string;
|
|
30
|
+
displayAmount: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
18
|
+
* You may not use this file except in compliance with the License.
|
|
19
|
+
* A copy of the License is located at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
24
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
25
|
+
* express or implied. See the License for the specific language governing
|
|
26
|
+
* permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The Money model module.
|
|
30
|
+
* @module model/Money
|
|
31
|
+
* @version 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
var Money = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>Money</code>.
|
|
36
|
+
* Used to return the information about the Money value or amount. Consists of the integral value, the currency codes and the formatted price which can be used for display purposes.
|
|
37
|
+
* @alias module:model/Money
|
|
38
|
+
*/
|
|
39
|
+
function Money() {
|
|
40
|
+
_classCallCheck(this, Money);
|
|
41
|
+
Money.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(Money, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>Money</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/Money} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/Money} The populated <code>Money</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new Money();
|
|
65
|
+
if (data.hasOwnProperty('amount')) {
|
|
66
|
+
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('currency')) {
|
|
69
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('displayAmount')) {
|
|
72
|
+
obj['displayAmount'] = _ApiClient["default"].convertToType(data['displayAmount'], 'String');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>Money</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Money</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// ensure the json data is a string
|
|
87
|
+
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
89
|
+
}
|
|
90
|
+
// ensure the json data is a string
|
|
91
|
+
if (data['displayAmount'] && !(typeof data['displayAmount'] === 'string' || data['displayAmount'] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `displayAmount` to be a primitive type in the JSON string but got " + data['displayAmount']);
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
}]);
|
|
97
|
+
}();
|
|
98
|
+
/**
|
|
99
|
+
* @member {Number} amount
|
|
100
|
+
*/
|
|
101
|
+
Money.prototype['amount'] = undefined;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @member {String} currency
|
|
105
|
+
*/
|
|
106
|
+
Money.prototype['currency'] = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @member {String} displayAmount
|
|
110
|
+
*/
|
|
111
|
+
Money.prototype['displayAmount'] = undefined;
|
|
112
|
+
var _default = exports["default"] = Money;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default MultiValuedAttribute;
|
|
2
|
+
/**
|
|
3
|
+
* The MultiValuedAttribute model module.
|
|
4
|
+
* @module model/MultiValuedAttribute
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class MultiValuedAttribute {
|
|
8
|
+
/**
|
|
9
|
+
* Initializes the fields of this object.
|
|
10
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
11
|
+
* Only for internal use.
|
|
12
|
+
*/
|
|
13
|
+
static initialize(obj: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a <code>MultiValuedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
16
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
17
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
18
|
+
* @param {module:model/MultiValuedAttribute} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/MultiValuedAttribute} The populated <code>MultiValuedAttribute</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): MultiValuedAttribute;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>MultiValuedAttribute</code>.
|
|
24
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
25
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>MultiValuedAttribute</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
displayValues: string[];
|
|
29
|
+
label: string;
|
|
30
|
+
locale: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
18
|
+
* You may not use this file except in compliance with the License.
|
|
19
|
+
* A copy of the License is located at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
24
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
25
|
+
* express or implied. See the License for the specific language governing
|
|
26
|
+
* permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The MultiValuedAttribute model module.
|
|
30
|
+
* @module model/MultiValuedAttribute
|
|
31
|
+
* @version 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
var MultiValuedAttribute = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>MultiValuedAttribute</code>.
|
|
36
|
+
* Container for attributes of multi-valued type.
|
|
37
|
+
* @alias module:model/MultiValuedAttribute
|
|
38
|
+
*/
|
|
39
|
+
function MultiValuedAttribute() {
|
|
40
|
+
_classCallCheck(this, MultiValuedAttribute);
|
|
41
|
+
MultiValuedAttribute.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(MultiValuedAttribute, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>MultiValuedAttribute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/MultiValuedAttribute} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/MultiValuedAttribute} The populated <code>MultiValuedAttribute</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new MultiValuedAttribute();
|
|
65
|
+
if (data.hasOwnProperty('displayValues')) {
|
|
66
|
+
obj['displayValues'] = _ApiClient["default"].convertToType(data['displayValues'], ['String']);
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('label')) {
|
|
69
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('locale')) {
|
|
72
|
+
obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>MultiValuedAttribute</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>MultiValuedAttribute</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// ensure the json data is an array
|
|
87
|
+
if (!Array.isArray(data['displayValues'])) {
|
|
88
|
+
throw new Error("Expected the field `displayValues` to be an array in the JSON data but got " + data['displayValues']);
|
|
89
|
+
}
|
|
90
|
+
// ensure the json data is a string
|
|
91
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
93
|
+
}
|
|
94
|
+
// ensure the json data is a string
|
|
95
|
+
if (data['locale'] && !(typeof data['locale'] === 'string' || data['locale'] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `locale` to be a primitive type in the JSON string but got " + data['locale']);
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
}]);
|
|
101
|
+
}();
|
|
102
|
+
/**
|
|
103
|
+
* List of primitive string type.
|
|
104
|
+
* @member {Array.<String>} displayValues
|
|
105
|
+
*/
|
|
106
|
+
MultiValuedAttribute.prototype['displayValues'] = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @member {String} label
|
|
110
|
+
*/
|
|
111
|
+
MultiValuedAttribute.prototype['label'] = undefined;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @member {String} locale
|
|
115
|
+
*/
|
|
116
|
+
MultiValuedAttribute.prototype['locale'] = undefined;
|
|
117
|
+
var _default = exports["default"] = MultiValuedAttribute;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default OfferAvailabilityV2;
|
|
2
|
+
/**
|
|
3
|
+
* The OfferAvailabilityV2 model module.
|
|
4
|
+
* @module model/OfferAvailabilityV2
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class OfferAvailabilityV2 {
|
|
8
|
+
/**
|
|
9
|
+
* Initializes the fields of this object.
|
|
10
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
11
|
+
* Only for internal use.
|
|
12
|
+
*/
|
|
13
|
+
static initialize(obj: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a <code>OfferAvailabilityV2</code> from a plain JavaScript object, optionally creating a new instance.
|
|
16
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
17
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
18
|
+
* @param {module:model/OfferAvailabilityV2} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/OfferAvailabilityV2} The populated <code>OfferAvailabilityV2</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): OfferAvailabilityV2;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>OfferAvailabilityV2</code>.
|
|
24
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
25
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>OfferAvailabilityV2</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
message: string;
|
|
29
|
+
maxOrderQuantity: number;
|
|
30
|
+
minOrderQuantity: number;
|
|
31
|
+
type: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
18
|
+
* You may not use this file except in compliance with the License.
|
|
19
|
+
* A copy of the License is located at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
24
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
25
|
+
* express or implied. See the License for the specific language governing
|
|
26
|
+
* permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The OfferAvailabilityV2 model module.
|
|
30
|
+
* @module model/OfferAvailabilityV2
|
|
31
|
+
* @version 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
var OfferAvailabilityV2 = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>OfferAvailabilityV2</code>.
|
|
36
|
+
* Specifies availability information about an offer.
|
|
37
|
+
* @alias module:model/OfferAvailabilityV2
|
|
38
|
+
*/
|
|
39
|
+
function OfferAvailabilityV2() {
|
|
40
|
+
_classCallCheck(this, OfferAvailabilityV2);
|
|
41
|
+
OfferAvailabilityV2.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(OfferAvailabilityV2, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>OfferAvailabilityV2</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/OfferAvailabilityV2} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/OfferAvailabilityV2} The populated <code>OfferAvailabilityV2</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new OfferAvailabilityV2();
|
|
65
|
+
if (data.hasOwnProperty('message')) {
|
|
66
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('maxOrderQuantity')) {
|
|
69
|
+
obj['maxOrderQuantity'] = _ApiClient["default"].convertToType(data['maxOrderQuantity'], 'Number');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('minOrderQuantity')) {
|
|
72
|
+
obj['minOrderQuantity'] = _ApiClient["default"].convertToType(data['minOrderQuantity'], 'Number');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('type')) {
|
|
75
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Validates the JSON data with respect to <code>OfferAvailabilityV2</code>.
|
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>OfferAvailabilityV2</code>.
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "validateJSON",
|
|
88
|
+
value: function validateJSON(data) {
|
|
89
|
+
// ensure the json data is a string
|
|
90
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
91
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
92
|
+
}
|
|
93
|
+
// ensure the json data is a string
|
|
94
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
95
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
}]);
|
|
100
|
+
}();
|
|
101
|
+
/**
|
|
102
|
+
* @member {String} message
|
|
103
|
+
*/
|
|
104
|
+
OfferAvailabilityV2.prototype['message'] = undefined;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @member {Number} maxOrderQuantity
|
|
108
|
+
*/
|
|
109
|
+
OfferAvailabilityV2.prototype['maxOrderQuantity'] = undefined;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @member {Number} minOrderQuantity
|
|
113
|
+
*/
|
|
114
|
+
OfferAvailabilityV2.prototype['minOrderQuantity'] = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @member {String} type
|
|
118
|
+
*/
|
|
119
|
+
OfferAvailabilityV2.prototype['type'] = undefined;
|
|
120
|
+
var _default = exports["default"] = OfferAvailabilityV2;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default OfferConditionV2;
|
|
2
|
+
/**
|
|
3
|
+
* The OfferConditionV2 model module.
|
|
4
|
+
* @module model/OfferConditionV2
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare class OfferConditionV2 {
|
|
8
|
+
/**
|
|
9
|
+
* Initializes the fields of this object.
|
|
10
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
11
|
+
* Only for internal use.
|
|
12
|
+
*/
|
|
13
|
+
static initialize(obj: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a <code>OfferConditionV2</code> from a plain JavaScript object, optionally creating a new instance.
|
|
16
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
17
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
18
|
+
* @param {module:model/OfferConditionV2} obj Optional instance to populate.
|
|
19
|
+
* @return {module:model/OfferConditionV2} The populated <code>OfferConditionV2</code> instance.
|
|
20
|
+
*/
|
|
21
|
+
static constructFromObject(data: any, obj: any): OfferConditionV2;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the JSON data with respect to <code>OfferConditionV2</code>.
|
|
24
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
25
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>OfferConditionV2</code>.
|
|
26
|
+
*/
|
|
27
|
+
static validateJSON(data: any): boolean;
|
|
28
|
+
value: string;
|
|
29
|
+
subCondition: string;
|
|
30
|
+
conditionNote: string;
|
|
31
|
+
}
|