@sp-api-sdk/orders-api-v0 2.2.0 → 2.3.1

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.
Files changed (242) hide show
  1. package/README.md +1 -5
  2. package/dist/cjs/index.js +16 -3
  3. package/dist/cjs/src/api-model/api/orders-v0-api.js +10 -153
  4. package/dist/cjs/src/api-model/api.js +16 -3
  5. package/dist/cjs/src/api-model/base.js +5 -3
  6. package/dist/cjs/src/api-model/common.js +1 -1
  7. package/dist/cjs/src/api-model/configuration.js +1 -1
  8. package/dist/cjs/src/api-model/index.js +18 -5
  9. package/dist/cjs/src/api-model/models/address.js +1 -1
  10. package/dist/cjs/src/api-model/models/automated-shipping-settings.js +1 -1
  11. package/dist/cjs/src/api-model/models/business-hours.js +1 -1
  12. package/dist/cjs/src/api-model/models/buyer-customized-info-detail.js +1 -1
  13. package/dist/cjs/src/api-model/models/buyer-info.js +1 -1
  14. package/dist/cjs/src/api-model/models/buyer-requested-cancel.js +1 -1
  15. package/dist/cjs/src/api-model/models/buyer-tax-info.js +1 -1
  16. package/dist/cjs/src/api-model/models/buyer-tax-information.js +1 -1
  17. package/dist/cjs/src/api-model/models/confirm-shipment-error-response.js +1 -1
  18. package/dist/cjs/src/api-model/models/confirm-shipment-order-item.js +1 -1
  19. package/dist/cjs/src/api-model/models/confirm-shipment-request.js +1 -1
  20. package/dist/cjs/src/api-model/models/delivery-preferences.js +1 -1
  21. package/dist/cjs/src/api-model/models/easy-ship-shipment-status.js +1 -1
  22. package/dist/cjs/src/api-model/models/electronic-invoice-status.js +1 -1
  23. package/dist/cjs/src/api-model/models/exception-dates.js +1 -1
  24. package/dist/cjs/src/api-model/models/fulfillment-instruction.js +1 -1
  25. package/dist/cjs/src/api-model/models/get-order-address-response.js +1 -1
  26. package/dist/cjs/src/api-model/models/get-order-buyer-info-response.js +1 -1
  27. package/dist/cjs/src/api-model/models/get-order-items-buyer-info-response.js +1 -1
  28. package/dist/cjs/src/api-model/models/get-order-items-response.js +1 -1
  29. package/dist/cjs/src/api-model/models/get-order-regulated-info-response.js +1 -1
  30. package/dist/cjs/src/api-model/models/get-order-response.js +1 -1
  31. package/dist/cjs/src/api-model/models/get-orders-response.js +1 -1
  32. package/dist/cjs/src/api-model/models/index.js +72 -73
  33. package/dist/cjs/src/api-model/models/item-buyer-info.js +1 -1
  34. package/dist/cjs/src/api-model/models/marketplace-tax-info.js +1 -1
  35. package/dist/cjs/src/api-model/models/model-error.js +1 -1
  36. package/dist/cjs/src/api-model/models/money.js +1 -1
  37. package/dist/cjs/src/api-model/models/open-interval.js +1 -1
  38. package/dist/cjs/src/api-model/models/open-time-interval.js +1 -1
  39. package/dist/cjs/src/api-model/models/order-address.js +1 -1
  40. package/dist/cjs/src/api-model/models/order-buyer-info.js +1 -1
  41. package/dist/cjs/src/api-model/models/order-item-buyer-info.js +1 -1
  42. package/dist/cjs/src/api-model/models/order-item.js +1 -1
  43. package/dist/cjs/src/api-model/models/order-items-buyer-info-list.js +1 -1
  44. package/dist/cjs/src/api-model/models/order-items-inner.js +1 -1
  45. package/dist/cjs/src/api-model/models/order-items-list.js +1 -1
  46. package/dist/cjs/src/api-model/models/order-regulated-info.js +1 -1
  47. package/dist/cjs/src/api-model/models/order.js +1 -1
  48. package/dist/cjs/src/api-model/models/orders-list.js +1 -1
  49. package/dist/cjs/src/api-model/models/other-delivery-attributes.js +1 -1
  50. package/dist/cjs/src/api-model/models/package-detail.js +1 -1
  51. package/dist/cjs/src/api-model/models/payment-execution-detail-item.js +1 -1
  52. package/dist/cjs/src/api-model/models/points-granted-detail.js +1 -1
  53. package/dist/cjs/src/api-model/models/preferred-delivery-time.js +1 -1
  54. package/dist/cjs/src/api-model/models/product-info-detail.js +1 -1
  55. package/dist/cjs/src/api-model/models/regulated-information-field.js +1 -1
  56. package/dist/cjs/src/api-model/models/regulated-information.js +1 -1
  57. package/dist/cjs/src/api-model/models/regulated-order-verification-status.js +1 -1
  58. package/dist/cjs/src/api-model/models/rejection-reason.js +1 -1
  59. package/dist/cjs/src/api-model/models/shipment-status.js +1 -1
  60. package/dist/cjs/src/api-model/models/tax-classification.js +1 -1
  61. package/dist/cjs/src/api-model/models/tax-collection.js +1 -1
  62. package/dist/cjs/src/api-model/models/update-shipment-status-error-response.js +1 -1
  63. package/dist/cjs/src/api-model/models/update-shipment-status-request.js +1 -1
  64. package/dist/cjs/src/api-model/models/update-verification-status-error-response.js +1 -1
  65. package/dist/cjs/src/api-model/models/update-verification-status-request-body.js +1 -1
  66. package/dist/cjs/src/api-model/models/update-verification-status-request.js +1 -1
  67. package/dist/cjs/src/api-model/models/verification-status.js +1 -1
  68. package/dist/cjs/src/client.js +0 -14
  69. package/dist/es/src/api-model/api/orders-v0-api.js +6 -151
  70. package/dist/es/src/api-model/api.js +1 -1
  71. package/dist/es/src/api-model/base.js +1 -1
  72. package/dist/es/src/api-model/common.js +1 -1
  73. package/dist/es/src/api-model/configuration.js +1 -1
  74. package/dist/es/src/api-model/index.js +1 -1
  75. package/dist/es/src/api-model/models/address.js +1 -1
  76. package/dist/es/src/api-model/models/automated-shipping-settings.js +1 -1
  77. package/dist/es/src/api-model/models/business-hours.js +1 -1
  78. package/dist/es/src/api-model/models/buyer-customized-info-detail.js +1 -1
  79. package/dist/es/src/api-model/models/buyer-info.js +1 -1
  80. package/dist/es/src/api-model/models/buyer-requested-cancel.js +1 -1
  81. package/dist/es/src/api-model/models/buyer-tax-info.js +1 -1
  82. package/dist/es/src/api-model/models/buyer-tax-information.js +1 -1
  83. package/dist/es/src/api-model/models/confirm-shipment-error-response.js +1 -1
  84. package/dist/es/src/api-model/models/confirm-shipment-order-item.js +1 -1
  85. package/dist/es/src/api-model/models/confirm-shipment-request.js +1 -1
  86. package/dist/es/src/api-model/models/delivery-preferences.js +1 -1
  87. package/dist/es/src/api-model/models/easy-ship-shipment-status.js +1 -1
  88. package/dist/es/src/api-model/models/electronic-invoice-status.js +1 -1
  89. package/dist/es/src/api-model/models/exception-dates.js +1 -1
  90. package/dist/es/src/api-model/models/fulfillment-instruction.js +1 -1
  91. package/dist/es/src/api-model/models/get-order-address-response.js +1 -1
  92. package/dist/es/src/api-model/models/get-order-buyer-info-response.js +1 -1
  93. package/dist/es/src/api-model/models/get-order-items-buyer-info-response.js +1 -1
  94. package/dist/es/src/api-model/models/get-order-items-response.js +1 -1
  95. package/dist/es/src/api-model/models/get-order-regulated-info-response.js +1 -1
  96. package/dist/es/src/api-model/models/get-order-response.js +1 -1
  97. package/dist/es/src/api-model/models/get-orders-response.js +1 -1
  98. package/dist/es/src/api-model/models/index.js +0 -14
  99. package/dist/es/src/api-model/models/item-buyer-info.js +1 -1
  100. package/dist/es/src/api-model/models/marketplace-tax-info.js +1 -1
  101. package/dist/es/src/api-model/models/model-error.js +1 -1
  102. package/dist/es/src/api-model/models/money.js +1 -1
  103. package/dist/es/src/api-model/models/open-interval.js +1 -1
  104. package/dist/es/src/api-model/models/open-time-interval.js +1 -1
  105. package/dist/es/src/api-model/models/order-address.js +1 -1
  106. package/dist/es/src/api-model/models/order-buyer-info.js +1 -1
  107. package/dist/es/src/api-model/models/order-item-buyer-info.js +1 -1
  108. package/dist/es/src/api-model/models/order-item.js +1 -1
  109. package/dist/es/src/api-model/models/order-items-buyer-info-list.js +1 -1
  110. package/dist/es/src/api-model/models/order-items-inner.js +1 -1
  111. package/dist/es/src/api-model/models/order-items-list.js +1 -1
  112. package/dist/es/src/api-model/models/order-regulated-info.js +1 -1
  113. package/dist/es/src/api-model/models/order.js +1 -1
  114. package/dist/es/src/api-model/models/orders-list.js +1 -1
  115. package/dist/es/src/api-model/models/other-delivery-attributes.js +1 -1
  116. package/dist/es/src/api-model/models/package-detail.js +1 -1
  117. package/dist/es/src/api-model/models/payment-execution-detail-item.js +1 -1
  118. package/dist/es/src/api-model/models/points-granted-detail.js +1 -1
  119. package/dist/es/src/api-model/models/preferred-delivery-time.js +1 -1
  120. package/dist/es/src/api-model/models/product-info-detail.js +1 -1
  121. package/dist/es/src/api-model/models/regulated-information-field.js +1 -1
  122. package/dist/es/src/api-model/models/regulated-information.js +1 -1
  123. package/dist/es/src/api-model/models/regulated-order-verification-status.js +1 -1
  124. package/dist/es/src/api-model/models/rejection-reason.js +1 -1
  125. package/dist/es/src/api-model/models/shipment-status.js +1 -1
  126. package/dist/es/src/api-model/models/tax-classification.js +1 -1
  127. package/dist/es/src/api-model/models/tax-collection.js +1 -1
  128. package/dist/es/src/api-model/models/update-shipment-status-error-response.js +1 -1
  129. package/dist/es/src/api-model/models/update-shipment-status-request.js +1 -1
  130. package/dist/es/src/api-model/models/update-verification-status-error-response.js +1 -1
  131. package/dist/es/src/api-model/models/update-verification-status-request-body.js +1 -1
  132. package/dist/es/src/api-model/models/update-verification-status-request.js +1 -1
  133. package/dist/es/src/api-model/models/verification-status.js +1 -1
  134. package/dist/es/src/client.js +0 -14
  135. package/dist/types/src/api-model/api/orders-v0-api.d.ts +3 -139
  136. package/dist/types/src/api-model/api.d.ts +1 -1
  137. package/dist/types/src/api-model/base.d.ts +1 -1
  138. package/dist/types/src/api-model/common.d.ts +1 -1
  139. package/dist/types/src/api-model/configuration.d.ts +1 -1
  140. package/dist/types/src/api-model/index.d.ts +1 -1
  141. package/dist/types/src/api-model/models/address.d.ts +1 -1
  142. package/dist/types/src/api-model/models/automated-shipping-settings.d.ts +1 -1
  143. package/dist/types/src/api-model/models/business-hours.d.ts +1 -1
  144. package/dist/types/src/api-model/models/buyer-customized-info-detail.d.ts +1 -1
  145. package/dist/types/src/api-model/models/buyer-info.d.ts +1 -1
  146. package/dist/types/src/api-model/models/buyer-requested-cancel.d.ts +1 -1
  147. package/dist/types/src/api-model/models/buyer-tax-info.d.ts +1 -1
  148. package/dist/types/src/api-model/models/buyer-tax-information.d.ts +1 -1
  149. package/dist/types/src/api-model/models/confirm-shipment-error-response.d.ts +1 -1
  150. package/dist/types/src/api-model/models/confirm-shipment-order-item.d.ts +1 -1
  151. package/dist/types/src/api-model/models/confirm-shipment-request.d.ts +1 -1
  152. package/dist/types/src/api-model/models/delivery-preferences.d.ts +1 -1
  153. package/dist/types/src/api-model/models/easy-ship-shipment-status.d.ts +1 -1
  154. package/dist/types/src/api-model/models/electronic-invoice-status.d.ts +1 -1
  155. package/dist/types/src/api-model/models/exception-dates.d.ts +1 -1
  156. package/dist/types/src/api-model/models/fulfillment-instruction.d.ts +1 -1
  157. package/dist/types/src/api-model/models/get-order-address-response.d.ts +1 -1
  158. package/dist/types/src/api-model/models/get-order-buyer-info-response.d.ts +1 -1
  159. package/dist/types/src/api-model/models/get-order-items-buyer-info-response.d.ts +1 -1
  160. package/dist/types/src/api-model/models/get-order-items-response.d.ts +1 -1
  161. package/dist/types/src/api-model/models/get-order-regulated-info-response.d.ts +1 -1
  162. package/dist/types/src/api-model/models/get-order-response.d.ts +1 -1
  163. package/dist/types/src/api-model/models/get-orders-response.d.ts +1 -1
  164. package/dist/types/src/api-model/models/index.d.ts +0 -14
  165. package/dist/types/src/api-model/models/item-buyer-info.d.ts +1 -1
  166. package/dist/types/src/api-model/models/marketplace-tax-info.d.ts +1 -1
  167. package/dist/types/src/api-model/models/model-error.d.ts +1 -1
  168. package/dist/types/src/api-model/models/money.d.ts +1 -1
  169. package/dist/types/src/api-model/models/open-interval.d.ts +1 -1
  170. package/dist/types/src/api-model/models/open-time-interval.d.ts +1 -1
  171. package/dist/types/src/api-model/models/order-address.d.ts +1 -1
  172. package/dist/types/src/api-model/models/order-buyer-info.d.ts +1 -1
  173. package/dist/types/src/api-model/models/order-item-buyer-info.d.ts +1 -1
  174. package/dist/types/src/api-model/models/order-item.d.ts +1 -8
  175. package/dist/types/src/api-model/models/order-items-buyer-info-list.d.ts +1 -1
  176. package/dist/types/src/api-model/models/order-items-inner.d.ts +1 -1
  177. package/dist/types/src/api-model/models/order-items-list.d.ts +1 -1
  178. package/dist/types/src/api-model/models/order-regulated-info.d.ts +1 -1
  179. package/dist/types/src/api-model/models/order.d.ts +1 -15
  180. package/dist/types/src/api-model/models/orders-list.d.ts +1 -1
  181. package/dist/types/src/api-model/models/other-delivery-attributes.d.ts +1 -1
  182. package/dist/types/src/api-model/models/package-detail.d.ts +1 -1
  183. package/dist/types/src/api-model/models/payment-execution-detail-item.d.ts +1 -1
  184. package/dist/types/src/api-model/models/points-granted-detail.d.ts +1 -1
  185. package/dist/types/src/api-model/models/preferred-delivery-time.d.ts +1 -1
  186. package/dist/types/src/api-model/models/product-info-detail.d.ts +1 -1
  187. package/dist/types/src/api-model/models/regulated-information-field.d.ts +1 -1
  188. package/dist/types/src/api-model/models/regulated-information.d.ts +1 -1
  189. package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +1 -1
  190. package/dist/types/src/api-model/models/rejection-reason.d.ts +1 -1
  191. package/dist/types/src/api-model/models/shipment-status.d.ts +1 -1
  192. package/dist/types/src/api-model/models/tax-classification.d.ts +1 -1
  193. package/dist/types/src/api-model/models/tax-collection.d.ts +1 -1
  194. package/dist/types/src/api-model/models/update-shipment-status-error-response.d.ts +1 -1
  195. package/dist/types/src/api-model/models/update-shipment-status-request.d.ts +1 -1
  196. package/dist/types/src/api-model/models/update-verification-status-error-response.d.ts +1 -1
  197. package/dist/types/src/api-model/models/update-verification-status-request-body.d.ts +1 -1
  198. package/dist/types/src/api-model/models/update-verification-status-request.d.ts +1 -1
  199. package/dist/types/src/api-model/models/verification-status.d.ts +1 -1
  200. package/package.json +4 -15
  201. package/dist/cjs/src/api-model/models/approval-support-data-element.js +0 -15
  202. package/dist/cjs/src/api-model/models/get-order-approvals-response.js +0 -15
  203. package/dist/cjs/src/api-model/models/item-approval-action-changes.js +0 -15
  204. package/dist/cjs/src/api-model/models/item-approval-action.js +0 -21
  205. package/dist/cjs/src/api-model/models/item-approval-context.js +0 -15
  206. package/dist/cjs/src/api-model/models/item-approval-status.js +0 -29
  207. package/dist/cjs/src/api-model/models/item-approval-type.js +0 -24
  208. package/dist/cjs/src/api-model/models/item-approval.js +0 -25
  209. package/dist/cjs/src/api-model/models/item-identifier.js +0 -21
  210. package/dist/cjs/src/api-model/models/order-approvals-response.js +0 -15
  211. package/dist/cjs/src/api-model/models/order-item-approval-request.js +0 -15
  212. package/dist/cjs/src/api-model/models/order-item-approvals.js +0 -15
  213. package/dist/cjs/src/api-model/models/update-items-approvals-error-response.js +0 -15
  214. package/dist/cjs/src/api-model/models/update-order-approvals-request.js +0 -15
  215. package/dist/es/src/api-model/models/approval-support-data-element.js +0 -14
  216. package/dist/es/src/api-model/models/get-order-approvals-response.js +0 -14
  217. package/dist/es/src/api-model/models/item-approval-action-changes.js +0 -14
  218. package/dist/es/src/api-model/models/item-approval-action.js +0 -18
  219. package/dist/es/src/api-model/models/item-approval-context.js +0 -14
  220. package/dist/es/src/api-model/models/item-approval-status.js +0 -26
  221. package/dist/es/src/api-model/models/item-approval-type.js +0 -21
  222. package/dist/es/src/api-model/models/item-approval.js +0 -22
  223. package/dist/es/src/api-model/models/item-identifier.js +0 -18
  224. package/dist/es/src/api-model/models/order-approvals-response.js +0 -14
  225. package/dist/es/src/api-model/models/order-item-approval-request.js +0 -14
  226. package/dist/es/src/api-model/models/order-item-approvals.js +0 -14
  227. package/dist/es/src/api-model/models/update-items-approvals-error-response.js +0 -14
  228. package/dist/es/src/api-model/models/update-order-approvals-request.js +0 -14
  229. package/dist/types/src/api-model/models/approval-support-data-element.d.ts +0 -30
  230. package/dist/types/src/api-model/models/get-order-approvals-response.d.ts +0 -31
  231. package/dist/types/src/api-model/models/item-approval-action-changes.d.ts +0 -38
  232. package/dist/types/src/api-model/models/item-approval-action.d.ts +0 -43
  233. package/dist/types/src/api-model/models/item-approval-context.d.ts +0 -39
  234. package/dist/types/src/api-model/models/item-approval-status.d.ts +0 -25
  235. package/dist/types/src/api-model/models/item-approval-type.d.ts +0 -20
  236. package/dist/types/src/api-model/models/item-approval.d.ts +0 -72
  237. package/dist/types/src/api-model/models/item-identifier.d.ts +0 -36
  238. package/dist/types/src/api-model/models/order-approvals-response.d.ts +0 -31
  239. package/dist/types/src/api-model/models/order-item-approval-request.d.ts +0 -31
  240. package/dist/types/src/api-model/models/order-item-approvals.d.ts +0 -45
  241. package/dist/types/src/api-model/models/update-items-approvals-error-response.d.ts +0 -24
  242. package/dist/types/src/api-model/models/update-order-approvals-request.d.ts +0 -31
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `orders-api-v0`
2
2
 
3
- The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
3
+ The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
4
4
 
5
5
  [![npm version](https://badgen.net/npm/v/@sp-api-sdk/orders-api-v0)](https://www.npmjs.com/package/@sp-api-sdk/orders-api-v0)
6
6
  [![XO code style](https://badgen.net/badge/code%20style/XO/cyan)](https://github.com/xojs/xo)
@@ -13,10 +13,6 @@ Also, see the [generated documentation](https://bizon.github.io/selling-partner-
13
13
 
14
14
  ## Installing
15
15
 
16
- ```sh
17
- yarn add @sp-api-sdk/orders-api-v0
18
- ```
19
-
20
16
  ```sh
21
17
  npm install @sp-api-sdk/orders-api-v0
22
18
  ```
package/dist/cjs/index.js CHANGED
@@ -1,5 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./src/client"), exports);
5
- tslib_1.__exportStar(require("./src/api-model/models"), exports);
17
+ __exportStar(require("./src/client"), exports);
18
+ __exportStar(require("./src/api-model/models"), exports);
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -12,10 +12,12 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
15
18
  Object.defineProperty(exports, "__esModule", { value: true });
16
19
  exports.OrdersV0Api = exports.OrdersV0ApiFactory = exports.OrdersV0ApiFp = exports.OrdersV0ApiAxiosParamCreator = void 0;
17
- const tslib_1 = require("tslib");
18
- const axios_1 = tslib_1.__importDefault(require("axios"));
20
+ const axios_1 = __importDefault(require("axios"));
19
21
  // Some imports not used depending on template conditions
20
22
  // @ts-ignore
21
23
  const common_1 = require("../common");
@@ -176,46 +178,6 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
176
178
  options: localVarRequestOptions,
177
179
  };
178
180
  },
179
- /**
180
- * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
181
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
182
- * @param {string} [nextToken] A string token returned in the response of your previous request.
183
- * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
184
- * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
185
- * @param {*} [options] Override http request option.
186
- * @throws {RequiredError}
187
- */
188
- getOrderItemsApprovals: async (orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options = {}) => {
189
- // verify required parameter 'orderId' is not null or undefined
190
- (0, common_1.assertParamExists)('getOrderItemsApprovals', 'orderId', orderId);
191
- const localVarPath = `/orders/v0/orders/{orderId}/approvals`
192
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
193
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
195
- let baseOptions;
196
- if (configuration) {
197
- baseOptions = configuration.baseOptions;
198
- }
199
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
200
- const localVarHeaderParameter = {};
201
- const localVarQueryParameter = {};
202
- if (nextToken !== undefined) {
203
- localVarQueryParameter['NextToken'] = nextToken;
204
- }
205
- if (itemApprovalTypes) {
206
- localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(base_1.COLLECTION_FORMATS.csv);
207
- }
208
- if (itemApprovalStatus) {
209
- localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(base_1.COLLECTION_FORMATS.csv);
210
- }
211
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
212
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
214
- return {
215
- url: (0, common_1.toPathString)(localVarUrlObj),
216
- options: localVarRequestOptions,
217
- };
218
- },
219
181
  /**
220
182
  * Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
221
183
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -296,12 +258,10 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
296
258
  * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
297
259
  * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
298
260
  * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
299
- * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
300
- * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
301
261
  * @param {*} [options] Override http request option.
302
262
  * @throws {RequiredError}
303
263
  */
304
- getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options = {}) => {
264
+ getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options = {}) => {
305
265
  // verify required parameter 'marketplaceIds' is not null or undefined
306
266
  (0, common_1.assertParamExists)('getOrders', 'marketplaceIds', marketplaceIds);
307
267
  const localVarPath = `/orders/v0/orders`;
@@ -368,12 +328,6 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
368
328
  if (storeChainStoreId !== undefined) {
369
329
  localVarQueryParameter['StoreChainStoreId'] = storeChainStoreId;
370
330
  }
371
- if (itemApprovalTypes) {
372
- localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(base_1.COLLECTION_FORMATS.csv);
373
- }
374
- if (itemApprovalStatus) {
375
- localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(base_1.COLLECTION_FORMATS.csv);
376
- }
377
331
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
378
332
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
379
333
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -382,39 +336,6 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
382
336
  options: localVarRequestOptions,
383
337
  };
384
338
  },
385
- /**
386
- * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
387
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
388
- * @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
389
- * @param {*} [options] Override http request option.
390
- * @throws {RequiredError}
391
- */
392
- updateOrderItemsApprovals: async (orderId, payload, options = {}) => {
393
- // verify required parameter 'orderId' is not null or undefined
394
- (0, common_1.assertParamExists)('updateOrderItemsApprovals', 'orderId', orderId);
395
- // verify required parameter 'payload' is not null or undefined
396
- (0, common_1.assertParamExists)('updateOrderItemsApprovals', 'payload', payload);
397
- const localVarPath = `/orders/v0/orders/{orderId}/approvals`
398
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
399
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
400
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
401
- let baseOptions;
402
- if (configuration) {
403
- baseOptions = configuration.baseOptions;
404
- }
405
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
406
- const localVarHeaderParameter = {};
407
- const localVarQueryParameter = {};
408
- localVarHeaderParameter['Content-Type'] = 'application/json';
409
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
410
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
411
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
412
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
413
- return {
414
- url: (0, common_1.toPathString)(localVarUrlObj),
415
- options: localVarRequestOptions,
416
- };
417
- },
418
339
  /**
419
340
  * Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
420
341
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -543,19 +464,6 @@ const OrdersV0ApiFp = function (configuration) {
543
464
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItems(orderId, nextToken, options);
544
465
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
545
466
  },
546
- /**
547
- * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
548
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
549
- * @param {string} [nextToken] A string token returned in the response of your previous request.
550
- * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
551
- * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
552
- * @param {*} [options] Override http request option.
553
- * @throws {RequiredError}
554
- */
555
- async getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options) {
556
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options);
557
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
558
- },
559
467
  /**
560
468
  * Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
561
469
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -597,24 +505,11 @@ const OrdersV0ApiFp = function (configuration) {
597
505
  * @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
598
506
  * @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
599
507
  * @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
600
- * @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
601
- * @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
602
508
  * @param {*} [options] Override http request option.
603
509
  * @throws {RequiredError}
604
510
  */
605
- async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options) {
606
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options);
607
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
608
- },
609
- /**
610
- * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
611
- * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
612
- * @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- */
616
- async updateOrderItemsApprovals(orderId, payload, options) {
617
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrderItemsApprovals(orderId, payload, options);
511
+ async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options) {
512
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options);
618
513
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
619
514
  },
620
515
  /**
@@ -694,15 +589,6 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
694
589
  getOrderItems(requestParameters, options) {
695
590
  return localVarFp.getOrderItems(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(axios, basePath));
696
591
  },
697
- /**
698
- * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
699
- * @param {OrdersV0ApiGetOrderItemsApprovalsRequest} requestParameters Request parameters.
700
- * @param {*} [options] Override http request option.
701
- * @throws {RequiredError}
702
- */
703
- getOrderItemsApprovals(requestParameters, options) {
704
- return localVarFp.getOrderItemsApprovals(requestParameters.orderId, requestParameters.nextToken, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(axios, basePath));
705
- },
706
592
  /**
707
593
  * Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
708
594
  * @param {OrdersV0ApiGetOrderItemsBuyerInfoRequest} requestParameters Request parameters.
@@ -728,16 +614,7 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
728
614
  * @throws {RequiredError}
729
615
  */
730
616
  getOrders(requestParameters, options) {
731
- return localVarFp.getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(axios, basePath));
732
- },
733
- /**
734
- * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
735
- * @param {OrdersV0ApiUpdateOrderItemsApprovalsRequest} requestParameters Request parameters.
736
- * @param {*} [options] Override http request option.
737
- * @throws {RequiredError}
738
- */
739
- updateOrderItemsApprovals(requestParameters, options) {
740
- return localVarFp.updateOrderItemsApprovals(requestParameters.orderId, requestParameters.payload, options).then((request) => request(axios, basePath));
617
+ return localVarFp.getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, options).then((request) => request(axios, basePath));
741
618
  },
742
619
  /**
743
620
  * Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -817,16 +694,6 @@ class OrdersV0Api extends base_1.BaseAPI {
817
694
  getOrderItems(requestParameters, options) {
818
695
  return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderItems(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
819
696
  }
820
- /**
821
- * Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
822
- * @param {OrdersV0ApiGetOrderItemsApprovalsRequest} requestParameters Request parameters.
823
- * @param {*} [options] Override http request option.
824
- * @throws {RequiredError}
825
- * @memberof OrdersV0Api
826
- */
827
- getOrderItemsApprovals(requestParameters, options) {
828
- return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderItemsApprovals(requestParameters.orderId, requestParameters.nextToken, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(this.axios, this.basePath));
829
- }
830
697
  /**
831
698
  * Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
832
699
  * @param {OrdersV0ApiGetOrderItemsBuyerInfoRequest} requestParameters Request parameters.
@@ -855,17 +722,7 @@ class OrdersV0Api extends base_1.BaseAPI {
855
722
  * @memberof OrdersV0Api
856
723
  */
857
724
  getOrders(requestParameters, options) {
858
- return (0, exports.OrdersV0ApiFp)(this.configuration).getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(this.axios, this.basePath));
859
- }
860
- /**
861
- * Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
862
- * @param {OrdersV0ApiUpdateOrderItemsApprovalsRequest} requestParameters Request parameters.
863
- * @param {*} [options] Override http request option.
864
- * @throws {RequiredError}
865
- * @memberof OrdersV0Api
866
- */
867
- updateOrderItemsApprovals(requestParameters, options) {
868
- return (0, exports.OrdersV0ApiFp)(this.configuration).updateOrderItemsApprovals(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
725
+ return (0, exports.OrdersV0ApiFp)(this.configuration).getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, options).then((request) => request(this.axios, this.basePath));
869
726
  }
870
727
  /**
871
728
  * Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -12,6 +12,19 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
15
29
  Object.defineProperty(exports, "__esModule", { value: true });
16
- const tslib_1 = require("tslib");
17
- tslib_1.__exportStar(require("./api/orders-v0-api"), exports);
30
+ __exportStar(require("./api/orders-v0-api"), exports);
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -12,10 +12,12 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
15
18
  Object.defineProperty(exports, "__esModule", { value: true });
16
19
  exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
17
- const tslib_1 = require("tslib");
18
- const axios_1 = tslib_1.__importDefault(require("axios"));
20
+ const axios_1 = __importDefault(require("axios"));
19
21
  exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
20
22
  /**
21
23
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -12,8 +12,21 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
15
29
  Object.defineProperty(exports, "__esModule", { value: true });
16
- const tslib_1 = require("tslib");
17
- tslib_1.__exportStar(require("./api"), exports);
18
- tslib_1.__exportStar(require("./configuration"), exports);
19
- tslib_1.__exportStar(require("./models"), exports);
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
32
+ __exportStar(require("./models"), exports);
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Selling Partner API for Orders
6
- * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
6
+ * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response.
7
7
  *
8
8
  * The version of the OpenAPI document: v0
9
9
  *