@sp-api-sdk/fulfillment-outbound-api-2020-07-01 4.6.1 → 5.0.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.
Files changed (299) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +1433 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +3505 -0
  5. package/dist/index.d.ts +3505 -0
  6. package/dist/index.js +1374 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/fulfillment-outbound-api.js +0 -963
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/additional-location-info.js +0 -47
  16. package/dist/cjs/api-model/models/address.js +0 -15
  17. package/dist/cjs/api-model/models/amount.js +0 -19
  18. package/dist/cjs/api-model/models/cancel-fulfillment-order-response.js +0 -15
  19. package/dist/cjs/api-model/models/codsettings.js +0 -15
  20. package/dist/cjs/api-model/models/create-fulfillment-order-item.js +0 -15
  21. package/dist/cjs/api-model/models/create-fulfillment-order-request.js +0 -15
  22. package/dist/cjs/api-model/models/create-fulfillment-order-response.js +0 -15
  23. package/dist/cjs/api-model/models/create-fulfillment-return-request.js +0 -15
  24. package/dist/cjs/api-model/models/create-fulfillment-return-response.js +0 -15
  25. package/dist/cjs/api-model/models/create-fulfillment-return-result.js +0 -15
  26. package/dist/cjs/api-model/models/create-return-item.js +0 -15
  27. package/dist/cjs/api-model/models/current-status.js +0 -39
  28. package/dist/cjs/api-model/models/date-range.js +0 -15
  29. package/dist/cjs/api-model/models/delivery-document.js +0 -15
  30. package/dist/cjs/api-model/models/delivery-information.js +0 -15
  31. package/dist/cjs/api-model/models/delivery-message.js +0 -15
  32. package/dist/cjs/api-model/models/delivery-offer.js +0 -15
  33. package/dist/cjs/api-model/models/delivery-policy.js +0 -15
  34. package/dist/cjs/api-model/models/delivery-preferences.js +0 -15
  35. package/dist/cjs/api-model/models/delivery-window.js +0 -15
  36. package/dist/cjs/api-model/models/destination.js +0 -15
  37. package/dist/cjs/api-model/models/drop-off-location.js +0 -26
  38. package/dist/cjs/api-model/models/event-code.js +0 -54
  39. package/dist/cjs/api-model/models/feature-settings.js +0 -20
  40. package/dist/cjs/api-model/models/feature-sku.js +0 -15
  41. package/dist/cjs/api-model/models/feature.js +0 -15
  42. package/dist/cjs/api-model/models/fee.js +0 -22
  43. package/dist/cjs/api-model/models/fulfillment-action.js +0 -23
  44. package/dist/cjs/api-model/models/fulfillment-order-item.js +0 -15
  45. package/dist/cjs/api-model/models/fulfillment-order-status.js +0 -30
  46. package/dist/cjs/api-model/models/fulfillment-order.js +0 -15
  47. package/dist/cjs/api-model/models/fulfillment-policy.js +0 -24
  48. package/dist/cjs/api-model/models/fulfillment-preview-item.js +0 -20
  49. package/dist/cjs/api-model/models/fulfillment-preview-shipment.js +0 -15
  50. package/dist/cjs/api-model/models/fulfillment-preview.js +0 -15
  51. package/dist/cjs/api-model/models/fulfillment-return-item-status.js +0 -23
  52. package/dist/cjs/api-model/models/fulfillment-shipment-item.js +0 -15
  53. package/dist/cjs/api-model/models/fulfillment-shipment-package.js +0 -15
  54. package/dist/cjs/api-model/models/fulfillment-shipment.js +0 -22
  55. package/dist/cjs/api-model/models/get-delivery-offers-product.js +0 -15
  56. package/dist/cjs/api-model/models/get-delivery-offers-request.js +0 -15
  57. package/dist/cjs/api-model/models/get-delivery-offers-response.js +0 -15
  58. package/dist/cjs/api-model/models/get-delivery-offers-result.js +0 -15
  59. package/dist/cjs/api-model/models/get-delivery-offers-terms.js +0 -15
  60. package/dist/cjs/api-model/models/get-feature-inventory-response.js +0 -15
  61. package/dist/cjs/api-model/models/get-feature-inventory-result.js +0 -15
  62. package/dist/cjs/api-model/models/get-feature-sku-response.js +0 -15
  63. package/dist/cjs/api-model/models/get-feature-sku-result.js +0 -15
  64. package/dist/cjs/api-model/models/get-features-response.js +0 -15
  65. package/dist/cjs/api-model/models/get-features-result.js +0 -15
  66. package/dist/cjs/api-model/models/get-fulfillment-order-response.js +0 -15
  67. package/dist/cjs/api-model/models/get-fulfillment-order-result.js +0 -15
  68. package/dist/cjs/api-model/models/get-fulfillment-preview-item.js +0 -15
  69. package/dist/cjs/api-model/models/get-fulfillment-preview-request.js +0 -15
  70. package/dist/cjs/api-model/models/get-fulfillment-preview-response.js +0 -15
  71. package/dist/cjs/api-model/models/get-fulfillment-preview-result.js +0 -15
  72. package/dist/cjs/api-model/models/get-package-tracking-details-response.js +0 -15
  73. package/dist/cjs/api-model/models/index.js +0 -104
  74. package/dist/cjs/api-model/models/invalid-item-reason-code.js +0 -25
  75. package/dist/cjs/api-model/models/invalid-item-reason.js +0 -15
  76. package/dist/cjs/api-model/models/invalid-return-item.js +0 -15
  77. package/dist/cjs/api-model/models/list-all-fulfillment-orders-response.js +0 -15
  78. package/dist/cjs/api-model/models/list-all-fulfillment-orders-result.js +0 -15
  79. package/dist/cjs/api-model/models/list-return-reason-codes-response.js +0 -15
  80. package/dist/cjs/api-model/models/list-return-reason-codes-result.js +0 -15
  81. package/dist/cjs/api-model/models/locker-details.js +0 -15
  82. package/dist/cjs/api-model/models/model-error.js +0 -15
  83. package/dist/cjs/api-model/models/money.js +0 -15
  84. package/dist/cjs/api-model/models/origin.js +0 -15
  85. package/dist/cjs/api-model/models/package-tracking-details.js +0 -15
  86. package/dist/cjs/api-model/models/payment-information.js +0 -15
  87. package/dist/cjs/api-model/models/product-identifier.js +0 -15
  88. package/dist/cjs/api-model/models/reason-code-details.js +0 -15
  89. package/dist/cjs/api-model/models/return-authorization.js +0 -15
  90. package/dist/cjs/api-model/models/return-item-disposition.js +0 -26
  91. package/dist/cjs/api-model/models/return-item.js +0 -15
  92. package/dist/cjs/api-model/models/scheduled-delivery-info.js +0 -15
  93. package/dist/cjs/api-model/models/shipping-speed-category.js +0 -25
  94. package/dist/cjs/api-model/models/submit-fulfillment-order-status-update-request.js +0 -15
  95. package/dist/cjs/api-model/models/submit-fulfillment-order-status-update-response.js +0 -15
  96. package/dist/cjs/api-model/models/tracking-address.js +0 -15
  97. package/dist/cjs/api-model/models/tracking-event.js +0 -15
  98. package/dist/cjs/api-model/models/unfulfillable-preview-item.js +0 -15
  99. package/dist/cjs/api-model/models/update-fulfillment-order-item.js +0 -15
  100. package/dist/cjs/api-model/models/update-fulfillment-order-request.js +0 -15
  101. package/dist/cjs/api-model/models/update-fulfillment-order-response.js +0 -15
  102. package/dist/cjs/api-model/models/variable-precision-address.js +0 -15
  103. package/dist/cjs/api-model/models/weight.js +0 -22
  104. package/dist/cjs/client.js +0 -105
  105. package/dist/cjs/index.js +0 -19
  106. package/dist/es/api-model/api/fulfillment-outbound-api.js +0 -953
  107. package/dist/es/api-model/api.js +0 -14
  108. package/dist/es/api-model/base.js +0 -44
  109. package/dist/es/api-model/common.js +0 -110
  110. package/dist/es/api-model/configuration.js +0 -94
  111. package/dist/es/api-model/index.js +0 -16
  112. package/dist/es/api-model/models/additional-location-info.js +0 -44
  113. package/dist/es/api-model/models/address.js +0 -14
  114. package/dist/es/api-model/models/amount.js +0 -16
  115. package/dist/es/api-model/models/cancel-fulfillment-order-response.js +0 -14
  116. package/dist/es/api-model/models/codsettings.js +0 -14
  117. package/dist/es/api-model/models/create-fulfillment-order-item.js +0 -14
  118. package/dist/es/api-model/models/create-fulfillment-order-request.js +0 -14
  119. package/dist/es/api-model/models/create-fulfillment-order-response.js +0 -14
  120. package/dist/es/api-model/models/create-fulfillment-return-request.js +0 -14
  121. package/dist/es/api-model/models/create-fulfillment-return-response.js +0 -14
  122. package/dist/es/api-model/models/create-fulfillment-return-result.js +0 -14
  123. package/dist/es/api-model/models/create-return-item.js +0 -14
  124. package/dist/es/api-model/models/current-status.js +0 -36
  125. package/dist/es/api-model/models/date-range.js +0 -14
  126. package/dist/es/api-model/models/delivery-document.js +0 -14
  127. package/dist/es/api-model/models/delivery-information.js +0 -14
  128. package/dist/es/api-model/models/delivery-message.js +0 -14
  129. package/dist/es/api-model/models/delivery-offer.js +0 -14
  130. package/dist/es/api-model/models/delivery-policy.js +0 -14
  131. package/dist/es/api-model/models/delivery-preferences.js +0 -14
  132. package/dist/es/api-model/models/delivery-window.js +0 -14
  133. package/dist/es/api-model/models/destination.js +0 -14
  134. package/dist/es/api-model/models/drop-off-location.js +0 -23
  135. package/dist/es/api-model/models/event-code.js +0 -51
  136. package/dist/es/api-model/models/feature-settings.js +0 -17
  137. package/dist/es/api-model/models/feature-sku.js +0 -14
  138. package/dist/es/api-model/models/feature.js +0 -14
  139. package/dist/es/api-model/models/fee.js +0 -19
  140. package/dist/es/api-model/models/fulfillment-action.js +0 -20
  141. package/dist/es/api-model/models/fulfillment-order-item.js +0 -14
  142. package/dist/es/api-model/models/fulfillment-order-status.js +0 -27
  143. package/dist/es/api-model/models/fulfillment-order.js +0 -14
  144. package/dist/es/api-model/models/fulfillment-policy.js +0 -21
  145. package/dist/es/api-model/models/fulfillment-preview-item.js +0 -17
  146. package/dist/es/api-model/models/fulfillment-preview-shipment.js +0 -14
  147. package/dist/es/api-model/models/fulfillment-preview.js +0 -14
  148. package/dist/es/api-model/models/fulfillment-return-item-status.js +0 -20
  149. package/dist/es/api-model/models/fulfillment-shipment-item.js +0 -14
  150. package/dist/es/api-model/models/fulfillment-shipment-package.js +0 -14
  151. package/dist/es/api-model/models/fulfillment-shipment.js +0 -19
  152. package/dist/es/api-model/models/get-delivery-offers-product.js +0 -14
  153. package/dist/es/api-model/models/get-delivery-offers-request.js +0 -14
  154. package/dist/es/api-model/models/get-delivery-offers-response.js +0 -14
  155. package/dist/es/api-model/models/get-delivery-offers-result.js +0 -14
  156. package/dist/es/api-model/models/get-delivery-offers-terms.js +0 -14
  157. package/dist/es/api-model/models/get-feature-inventory-response.js +0 -14
  158. package/dist/es/api-model/models/get-feature-inventory-result.js +0 -14
  159. package/dist/es/api-model/models/get-feature-sku-response.js +0 -14
  160. package/dist/es/api-model/models/get-feature-sku-result.js +0 -14
  161. package/dist/es/api-model/models/get-features-response.js +0 -14
  162. package/dist/es/api-model/models/get-features-result.js +0 -14
  163. package/dist/es/api-model/models/get-fulfillment-order-response.js +0 -14
  164. package/dist/es/api-model/models/get-fulfillment-order-result.js +0 -14
  165. package/dist/es/api-model/models/get-fulfillment-preview-item.js +0 -14
  166. package/dist/es/api-model/models/get-fulfillment-preview-request.js +0 -14
  167. package/dist/es/api-model/models/get-fulfillment-preview-response.js +0 -14
  168. package/dist/es/api-model/models/get-fulfillment-preview-result.js +0 -14
  169. package/dist/es/api-model/models/get-package-tracking-details-response.js +0 -14
  170. package/dist/es/api-model/models/index.js +0 -88
  171. package/dist/es/api-model/models/invalid-item-reason-code.js +0 -22
  172. package/dist/es/api-model/models/invalid-item-reason.js +0 -14
  173. package/dist/es/api-model/models/invalid-return-item.js +0 -14
  174. package/dist/es/api-model/models/list-all-fulfillment-orders-response.js +0 -14
  175. package/dist/es/api-model/models/list-all-fulfillment-orders-result.js +0 -14
  176. package/dist/es/api-model/models/list-return-reason-codes-response.js +0 -14
  177. package/dist/es/api-model/models/list-return-reason-codes-result.js +0 -14
  178. package/dist/es/api-model/models/locker-details.js +0 -14
  179. package/dist/es/api-model/models/model-error.js +0 -14
  180. package/dist/es/api-model/models/money.js +0 -14
  181. package/dist/es/api-model/models/origin.js +0 -14
  182. package/dist/es/api-model/models/package-tracking-details.js +0 -14
  183. package/dist/es/api-model/models/payment-information.js +0 -14
  184. package/dist/es/api-model/models/product-identifier.js +0 -14
  185. package/dist/es/api-model/models/reason-code-details.js +0 -14
  186. package/dist/es/api-model/models/return-authorization.js +0 -14
  187. package/dist/es/api-model/models/return-item-disposition.js +0 -23
  188. package/dist/es/api-model/models/return-item.js +0 -14
  189. package/dist/es/api-model/models/scheduled-delivery-info.js +0 -14
  190. package/dist/es/api-model/models/shipping-speed-category.js +0 -22
  191. package/dist/es/api-model/models/submit-fulfillment-order-status-update-request.js +0 -14
  192. package/dist/es/api-model/models/submit-fulfillment-order-status-update-response.js +0 -14
  193. package/dist/es/api-model/models/tracking-address.js +0 -14
  194. package/dist/es/api-model/models/tracking-event.js +0 -14
  195. package/dist/es/api-model/models/unfulfillable-preview-item.js +0 -14
  196. package/dist/es/api-model/models/update-fulfillment-order-item.js +0 -14
  197. package/dist/es/api-model/models/update-fulfillment-order-request.js +0 -14
  198. package/dist/es/api-model/models/update-fulfillment-order-response.js +0 -14
  199. package/dist/es/api-model/models/variable-precision-address.js +0 -14
  200. package/dist/es/api-model/models/weight.js +0 -19
  201. package/dist/es/client.js +0 -101
  202. package/dist/es/index.js +0 -3
  203. package/dist/types/api-model/api/fulfillment-outbound-api.d.ts +0 -645
  204. package/dist/types/api-model/api.d.ts +0 -12
  205. package/dist/types/api-model/base.d.ts +0 -42
  206. package/dist/types/api-model/common.d.ts +0 -34
  207. package/dist/types/api-model/configuration.d.ts +0 -98
  208. package/dist/types/api-model/index.d.ts +0 -14
  209. package/dist/types/api-model/models/additional-location-info.d.ts +0 -43
  210. package/dist/types/api-model/models/address.d.ts +0 -56
  211. package/dist/types/api-model/models/amount.d.ts +0 -28
  212. package/dist/types/api-model/models/cancel-fulfillment-order-response.d.ts +0 -20
  213. package/dist/types/api-model/models/codsettings.d.ts +0 -25
  214. package/dist/types/api-model/models/create-fulfillment-order-item.d.ts +0 -44
  215. package/dist/types/api-model/models/create-fulfillment-order-request.d.ts +0 -73
  216. package/dist/types/api-model/models/create-fulfillment-order-response.d.ts +0 -20
  217. package/dist/types/api-model/models/create-fulfillment-return-request.d.ts +0 -21
  218. package/dist/types/api-model/models/create-fulfillment-return-response.d.ts +0 -22
  219. package/dist/types/api-model/models/create-fulfillment-return-result.d.ts +0 -31
  220. package/dist/types/api-model/models/create-return-item.d.ts +0 -36
  221. package/dist/types/api-model/models/current-status.d.ts +0 -35
  222. package/dist/types/api-model/models/date-range.d.ts +0 -24
  223. package/dist/types/api-model/models/delivery-document.d.ts +0 -24
  224. package/dist/types/api-model/models/delivery-information.d.ts +0 -23
  225. package/dist/types/api-model/models/delivery-message.d.ts +0 -24
  226. package/dist/types/api-model/models/delivery-offer.d.ts +0 -24
  227. package/dist/types/api-model/models/delivery-policy.d.ts +0 -18
  228. package/dist/types/api-model/models/delivery-preferences.d.ts +0 -22
  229. package/dist/types/api-model/models/delivery-window.d.ts +0 -24
  230. package/dist/types/api-model/models/destination.d.ts +0 -22
  231. package/dist/types/api-model/models/drop-off-location.d.ts +0 -37
  232. package/dist/types/api-model/models/event-code.d.ts +0 -50
  233. package/dist/types/api-model/models/feature-settings.d.ts +0 -29
  234. package/dist/types/api-model/models/feature-sku.d.ts +0 -36
  235. package/dist/types/api-model/models/feature.d.ts +0 -28
  236. package/dist/types/api-model/models/fee.d.ts +0 -29
  237. package/dist/types/api-model/models/fulfillment-action.d.ts +0 -19
  238. package/dist/types/api-model/models/fulfillment-order-item.d.ts +0 -64
  239. package/dist/types/api-model/models/fulfillment-order-status.d.ts +0 -26
  240. package/dist/types/api-model/models/fulfillment-order.d.ts +0 -67
  241. package/dist/types/api-model/models/fulfillment-policy.d.ts +0 -20
  242. package/dist/types/api-model/models/fulfillment-preview-item.d.ts +0 -39
  243. package/dist/types/api-model/models/fulfillment-preview-shipment.d.ts +0 -41
  244. package/dist/types/api-model/models/fulfillment-preview.d.ts +0 -58
  245. package/dist/types/api-model/models/fulfillment-return-item-status.d.ts +0 -19
  246. package/dist/types/api-model/models/fulfillment-shipment-item.d.ts +0 -40
  247. package/dist/types/api-model/models/fulfillment-shipment-package.d.ts +0 -40
  248. package/dist/types/api-model/models/fulfillment-shipment.d.ts +0 -57
  249. package/dist/types/api-model/models/get-delivery-offers-product.d.ts +0 -20
  250. package/dist/types/api-model/models/get-delivery-offers-request.d.ts +0 -20
  251. package/dist/types/api-model/models/get-delivery-offers-response.d.ts +0 -22
  252. package/dist/types/api-model/models/get-delivery-offers-result.d.ts +0 -21
  253. package/dist/types/api-model/models/get-delivery-offers-terms.d.ts +0 -20
  254. package/dist/types/api-model/models/get-feature-inventory-response.d.ts +0 -22
  255. package/dist/types/api-model/models/get-feature-inventory-result.d.ts +0 -33
  256. package/dist/types/api-model/models/get-feature-sku-response.d.ts +0 -22
  257. package/dist/types/api-model/models/get-feature-sku-result.d.ts +0 -48
  258. package/dist/types/api-model/models/get-features-response.d.ts +0 -22
  259. package/dist/types/api-model/models/get-features-result.d.ts +0 -21
  260. package/dist/types/api-model/models/get-fulfillment-order-response.d.ts +0 -22
  261. package/dist/types/api-model/models/get-fulfillment-order-result.d.ts +0 -43
  262. package/dist/types/api-model/models/get-fulfillment-preview-item.d.ts +0 -30
  263. package/dist/types/api-model/models/get-fulfillment-preview-request.d.ts +0 -45
  264. package/dist/types/api-model/models/get-fulfillment-preview-response.d.ts +0 -22
  265. package/dist/types/api-model/models/get-fulfillment-preview-result.d.ts +0 -21
  266. package/dist/types/api-model/models/get-package-tracking-details-response.d.ts +0 -22
  267. package/dist/types/api-model/models/index.d.ts +0 -88
  268. package/dist/types/api-model/models/invalid-item-reason-code.d.ts +0 -21
  269. package/dist/types/api-model/models/invalid-item-reason.d.ts +0 -22
  270. package/dist/types/api-model/models/invalid-return-item.d.ts +0 -26
  271. package/dist/types/api-model/models/list-all-fulfillment-orders-response.d.ts +0 -22
  272. package/dist/types/api-model/models/list-all-fulfillment-orders-result.d.ts +0 -25
  273. package/dist/types/api-model/models/list-return-reason-codes-response.d.ts +0 -22
  274. package/dist/types/api-model/models/list-return-reason-codes-result.d.ts +0 -21
  275. package/dist/types/api-model/models/locker-details.d.ts +0 -24
  276. package/dist/types/api-model/models/model-error.d.ts +0 -28
  277. package/dist/types/api-model/models/money.d.ts +0 -24
  278. package/dist/types/api-model/models/origin.d.ts +0 -20
  279. package/dist/types/api-model/models/package-tracking-details.d.ts +0 -69
  280. package/dist/types/api-model/models/payment-information.d.ts +0 -28
  281. package/dist/types/api-model/models/product-identifier.d.ts +0 -20
  282. package/dist/types/api-model/models/reason-code-details.d.ts +0 -28
  283. package/dist/types/api-model/models/return-authorization.d.ts +0 -34
  284. package/dist/types/api-model/models/return-item-disposition.d.ts +0 -22
  285. package/dist/types/api-model/models/return-item.d.ts +0 -56
  286. package/dist/types/api-model/models/scheduled-delivery-info.d.ts +0 -25
  287. package/dist/types/api-model/models/shipping-speed-category.d.ts +0 -21
  288. package/dist/types/api-model/models/submit-fulfillment-order-status-update-request.d.ts +0 -18
  289. package/dist/types/api-model/models/submit-fulfillment-order-status-update-response.d.ts +0 -20
  290. package/dist/types/api-model/models/tracking-address.d.ts +0 -28
  291. package/dist/types/api-model/models/tracking-event.d.ts +0 -28
  292. package/dist/types/api-model/models/unfulfillable-preview-item.d.ts +0 -32
  293. package/dist/types/api-model/models/update-fulfillment-order-item.d.ts +0 -48
  294. package/dist/types/api-model/models/update-fulfillment-order-request.d.ts +0 -58
  295. package/dist/types/api-model/models/update-fulfillment-order-response.d.ts +0 -20
  296. package/dist/types/api-model/models/variable-precision-address.d.ts +0 -48
  297. package/dist/types/api-model/models/weight.d.ts +0 -31
  298. package/dist/types/client.d.ts +0 -6
  299. package/dist/types/index.d.ts +0 -3
package/dist/index.cjs ADDED
@@ -0,0 +1,1433 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ AdditionalLocationInfo: () => AdditionalLocationInfo,
34
+ AmountUnitOfMeasureEnum: () => AmountUnitOfMeasureEnum,
35
+ CurrentStatus: () => CurrentStatus,
36
+ DropOffLocationTypeEnum: () => DropOffLocationTypeEnum,
37
+ EventCode: () => EventCode,
38
+ FeatureSettingsFeatureFulfillmentPolicyEnum: () => FeatureSettingsFeatureFulfillmentPolicyEnum,
39
+ FeeNameEnum: () => FeeNameEnum,
40
+ FulfillmentAction: () => FulfillmentAction,
41
+ FulfillmentOrderStatus: () => FulfillmentOrderStatus,
42
+ FulfillmentOutboundApi: () => FulfillmentOutboundApi,
43
+ FulfillmentOutboundApiAxiosParamCreator: () => FulfillmentOutboundApiAxiosParamCreator,
44
+ FulfillmentOutboundApiClient: () => FulfillmentOutboundApiClient,
45
+ FulfillmentOutboundApiFactory: () => FulfillmentOutboundApiFactory,
46
+ FulfillmentOutboundApiFp: () => FulfillmentOutboundApiFp,
47
+ FulfillmentPolicy: () => FulfillmentPolicy,
48
+ FulfillmentPreviewItemShippingWeightCalculationMethodEnum: () => FulfillmentPreviewItemShippingWeightCalculationMethodEnum,
49
+ FulfillmentReturnItemStatus: () => FulfillmentReturnItemStatus,
50
+ FulfillmentShipmentFulfillmentShipmentStatusEnum: () => FulfillmentShipmentFulfillmentShipmentStatusEnum,
51
+ InvalidItemReasonCode: () => InvalidItemReasonCode,
52
+ ReturnItemDisposition: () => ReturnItemDisposition,
53
+ ShippingSpeedCategory: () => ShippingSpeedCategory,
54
+ WeightUnitEnum: () => WeightUnitEnum,
55
+ clientRateLimits: () => clientRateLimits
56
+ });
57
+ module.exports = __toCommonJS(index_exports);
58
+
59
+ // src/client.ts
60
+ var import_common2 = require("@sp-api-sdk/common");
61
+
62
+ // src/api-model/api/fulfillment-outbound-api.ts
63
+ var import_axios2 = __toESM(require("axios"), 1);
64
+
65
+ // src/api-model/base.ts
66
+ var import_axios = __toESM(require("axios"), 1);
67
+ var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
68
+ var BaseAPI = class {
69
+ constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
70
+ this.basePath = basePath;
71
+ this.axios = axios;
72
+ if (configuration) {
73
+ this.configuration = configuration;
74
+ this.basePath = configuration.basePath ?? basePath;
75
+ }
76
+ }
77
+ basePath;
78
+ axios;
79
+ configuration;
80
+ };
81
+ var RequiredError = class extends Error {
82
+ constructor(field, msg) {
83
+ super(msg);
84
+ this.field = field;
85
+ this.name = "RequiredError";
86
+ }
87
+ field;
88
+ };
89
+ var operationServerMap = {};
90
+
91
+ // src/api-model/common.ts
92
+ var DUMMY_BASE_URL = "https://example.com";
93
+ var assertParamExists = function(functionName, paramName, paramValue) {
94
+ if (paramValue === null || paramValue === void 0) {
95
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
96
+ }
97
+ };
98
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
99
+ if (parameter == null) return;
100
+ if (typeof parameter === "object") {
101
+ if (Array.isArray(parameter) || parameter instanceof Set) {
102
+ parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
103
+ } else {
104
+ Object.keys(parameter).forEach(
105
+ (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
106
+ );
107
+ }
108
+ } else {
109
+ if (urlSearchParams.has(key)) {
110
+ urlSearchParams.append(key, parameter);
111
+ } else {
112
+ urlSearchParams.set(key, parameter);
113
+ }
114
+ }
115
+ }
116
+ var setSearchParams = function(url, ...objects) {
117
+ const searchParams = new URLSearchParams(url.search);
118
+ setFlattenedQueryParams(searchParams, objects);
119
+ url.search = searchParams.toString();
120
+ };
121
+ var replaceWithSerializableTypeIfNeeded = function(key, value) {
122
+ if (value instanceof Set) {
123
+ return Array.from(value);
124
+ } else {
125
+ return value;
126
+ }
127
+ };
128
+ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
129
+ const nonString = typeof value !== "string";
130
+ const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
131
+ return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
132
+ };
133
+ var toPathString = function(url) {
134
+ return url.pathname + url.search + url.hash;
135
+ };
136
+ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
137
+ return (axios = globalAxios3, basePath = BASE_PATH2) => {
138
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
139
+ return axios.request(axiosRequestArgs);
140
+ };
141
+ };
142
+
143
+ // src/api-model/api/fulfillment-outbound-api.ts
144
+ var FulfillmentOutboundApiAxiosParamCreator = function(configuration) {
145
+ return {
146
+ /**
147
+ * Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
148
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ cancelFulfillmentOrder: async (sellerFulfillmentOrderId, options = {}) => {
153
+ assertParamExists("cancelFulfillmentOrder", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
154
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/cancel`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
+ let baseOptions;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ }
160
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
161
+ const localVarHeaderParameter = {};
162
+ const localVarQueryParameter = {};
163
+ localVarHeaderParameter["Accept"] = "application/json";
164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
167
+ return {
168
+ url: toPathString(localVarUrlObj),
169
+ options: localVarRequestOptions
170
+ };
171
+ },
172
+ /**
173
+ * Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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)
174
+ * @param {CreateFulfillmentOrderRequest} body CreateFulfillmentOrderRequest parameter
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ createFulfillmentOrder: async (body, options = {}) => {
179
+ assertParamExists("createFulfillmentOrder", "body", body);
180
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders`;
181
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
182
+ let baseOptions;
183
+ if (configuration) {
184
+ baseOptions = configuration.baseOptions;
185
+ }
186
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
187
+ const localVarHeaderParameter = {};
188
+ const localVarQueryParameter = {};
189
+ localVarHeaderParameter["Content-Type"] = "application/json";
190
+ localVarHeaderParameter["Accept"] = "application/json";
191
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
194
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
195
+ return {
196
+ url: toPathString(localVarUrlObj),
197
+ options: localVarRequestOptions
198
+ };
199
+ },
200
+ /**
201
+ * Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
202
+ * @param {string} sellerFulfillmentOrderId An identifier the seller assigns to the fulfillment order at the time it was created. The seller uses their own records to find the correct `sellerFulfillmentOrderId` value based on the buyer\'s request to return items.
203
+ * @param {CreateFulfillmentReturnRequest} body The request body of the `createFulfillmentReturn` operation.
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ createFulfillmentReturn: async (sellerFulfillmentOrderId, body, options = {}) => {
208
+ assertParamExists("createFulfillmentReturn", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
209
+ assertParamExists("createFulfillmentReturn", "body", body);
210
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/return`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
211
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ localVarHeaderParameter["Content-Type"] = "application/json";
220
+ localVarHeaderParameter["Accept"] = "application/json,payload";
221
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
224
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
225
+ return {
226
+ url: toPathString(localVarUrlObj),
227
+ options: localVarRequestOptions
228
+ };
229
+ },
230
+ /**
231
+ * Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
232
+ * @param {GetDeliveryOffersRequest} body GetDeliveryOffersRequest parameter
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ deliveryOffers: async (body, options = {}) => {
237
+ assertParamExists("deliveryOffers", "body", body);
238
+ const localVarPath = `/fba/outbound/2020-07-01/deliveryOffers`;
239
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
240
+ let baseOptions;
241
+ if (configuration) {
242
+ baseOptions = configuration.baseOptions;
243
+ }
244
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
245
+ const localVarHeaderParameter = {};
246
+ const localVarQueryParameter = {};
247
+ localVarHeaderParameter["Content-Type"] = "application/json";
248
+ localVarHeaderParameter["Accept"] = "application/json,payload";
249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
252
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
253
+ return {
254
+ url: toPathString(localVarUrlObj),
255
+ options: localVarRequestOptions
256
+ };
257
+ },
258
+ /**
259
+ * Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
260
+ * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
261
+ * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
262
+ * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of `null` will return the first page.
263
+ * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format `yyyy-MM-ddTHH:mm:ss.sssZ`
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ getFeatureInventory: async (marketplaceId, featureName, nextToken, queryStartDate, options = {}) => {
268
+ assertParamExists("getFeatureInventory", "marketplaceId", marketplaceId);
269
+ assertParamExists("getFeatureInventory", "featureName", featureName);
270
+ const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}`.replace("{featureName}", encodeURIComponent(String(featureName)));
271
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
272
+ let baseOptions;
273
+ if (configuration) {
274
+ baseOptions = configuration.baseOptions;
275
+ }
276
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
277
+ const localVarHeaderParameter = {};
278
+ const localVarQueryParameter = {};
279
+ if (marketplaceId !== void 0) {
280
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
281
+ }
282
+ if (nextToken !== void 0) {
283
+ localVarQueryParameter["nextToken"] = nextToken;
284
+ }
285
+ if (queryStartDate !== void 0) {
286
+ localVarQueryParameter["queryStartDate"] = queryStartDate instanceof Date ? queryStartDate.toISOString() : queryStartDate;
287
+ }
288
+ localVarHeaderParameter["Accept"] = "application/json,payload";
289
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
290
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
291
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
292
+ return {
293
+ url: toPathString(localVarUrlObj),
294
+ options: localVarRequestOptions
295
+ };
296
+ },
297
+ /**
298
+ * Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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).
299
+ * @param {string} marketplaceId The marketplace for which to return the count.
300
+ * @param {string} featureName The name of the feature.
301
+ * @param {string} sellerSku Used to identify an item in the given marketplace. `sellerSku` is qualified by the seller\'s `sellerId`, which is included with every operation that you submit.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ getFeatureSKU: async (marketplaceId, featureName, sellerSku, options = {}) => {
306
+ assertParamExists("getFeatureSKU", "marketplaceId", marketplaceId);
307
+ assertParamExists("getFeatureSKU", "featureName", featureName);
308
+ assertParamExists("getFeatureSKU", "sellerSku", sellerSku);
309
+ const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}/{sellerSku}`.replace("{featureName}", encodeURIComponent(String(featureName))).replace("{sellerSku}", encodeURIComponent(String(sellerSku)));
310
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
311
+ let baseOptions;
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ }
315
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
316
+ const localVarHeaderParameter = {};
317
+ const localVarQueryParameter = {};
318
+ if (marketplaceId !== void 0) {
319
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
320
+ }
321
+ localVarHeaderParameter["Accept"] = "application/json,payload";
322
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
323
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
324
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
325
+ return {
326
+ url: toPathString(localVarUrlObj),
327
+ options: localVarRequestOptions
328
+ };
329
+ },
330
+ /**
331
+ * Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
332
+ * @param {string} marketplaceId The marketplace for which to return the list of features.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ getFeatures: async (marketplaceId, options = {}) => {
337
+ assertParamExists("getFeatures", "marketplaceId", marketplaceId);
338
+ const localVarPath = `/fba/outbound/2020-07-01/features`;
339
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
340
+ let baseOptions;
341
+ if (configuration) {
342
+ baseOptions = configuration.baseOptions;
343
+ }
344
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
345
+ const localVarHeaderParameter = {};
346
+ const localVarQueryParameter = {};
347
+ if (marketplaceId !== void 0) {
348
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
349
+ }
350
+ localVarHeaderParameter["Accept"] = "application/json,payload";
351
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
354
+ return {
355
+ url: toPathString(localVarUrlObj),
356
+ options: localVarRequestOptions
357
+ };
358
+ },
359
+ /**
360
+ * Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
361
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ getFulfillmentOrder: async (sellerFulfillmentOrderId, options = {}) => {
366
+ assertParamExists("getFulfillmentOrder", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
367
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
368
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
369
+ let baseOptions;
370
+ if (configuration) {
371
+ baseOptions = configuration.baseOptions;
372
+ }
373
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
374
+ const localVarHeaderParameter = {};
375
+ const localVarQueryParameter = {};
376
+ localVarHeaderParameter["Accept"] = "application/json,payload";
377
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
378
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
379
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
380
+ return {
381
+ url: toPathString(localVarUrlObj),
382
+ options: localVarRequestOptions
383
+ };
384
+ },
385
+ /**
386
+ * Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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 {GetFulfillmentPreviewRequest} body GetFulfillmentPreviewRequest parameter
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ getFulfillmentPreview: async (body, options = {}) => {
392
+ assertParamExists("getFulfillmentPreview", "body", body);
393
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/preview`;
394
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
395
+ let baseOptions;
396
+ if (configuration) {
397
+ baseOptions = configuration.baseOptions;
398
+ }
399
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
400
+ const localVarHeaderParameter = {};
401
+ const localVarQueryParameter = {};
402
+ localVarHeaderParameter["Content-Type"] = "application/json";
403
+ localVarHeaderParameter["Accept"] = "application/json,payload";
404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
406
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
407
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
408
+ return {
409
+ url: toPathString(localVarUrlObj),
410
+ options: localVarRequestOptions
411
+ };
412
+ },
413
+ /**
414
+ * Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
415
+ * @param {number} packageNumber The unencrypted package identifier. You can obtain this value from the `getFulfillmentOrder` operation.
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ getPackageTrackingDetails: async (packageNumber, options = {}) => {
420
+ assertParamExists("getPackageTrackingDetails", "packageNumber", packageNumber);
421
+ const localVarPath = `/fba/outbound/2020-07-01/tracking`;
422
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
423
+ let baseOptions;
424
+ if (configuration) {
425
+ baseOptions = configuration.baseOptions;
426
+ }
427
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
428
+ const localVarHeaderParameter = {};
429
+ const localVarQueryParameter = {};
430
+ if (packageNumber !== void 0) {
431
+ localVarQueryParameter["packageNumber"] = packageNumber;
432
+ }
433
+ localVarHeaderParameter["Accept"] = "application/json,payload";
434
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
435
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
436
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
437
+ return {
438
+ url: toPathString(localVarUrlObj),
439
+ options: localVarRequestOptions
440
+ };
441
+ },
442
+ /**
443
+ * Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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)
444
+ * @param {string} [queryStartDate] A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order.
445
+ * @param {string} [nextToken] A string token returned in the response to your previous request.
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ listAllFulfillmentOrders: async (queryStartDate, nextToken, options = {}) => {
450
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders`;
451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
452
+ let baseOptions;
453
+ if (configuration) {
454
+ baseOptions = configuration.baseOptions;
455
+ }
456
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
457
+ const localVarHeaderParameter = {};
458
+ const localVarQueryParameter = {};
459
+ if (queryStartDate !== void 0) {
460
+ localVarQueryParameter["queryStartDate"] = queryStartDate instanceof Date ? queryStartDate.toISOString() : queryStartDate;
461
+ }
462
+ if (nextToken !== void 0) {
463
+ localVarQueryParameter["nextToken"] = nextToken;
464
+ }
465
+ localVarHeaderParameter["Accept"] = "application/json,payload";
466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
469
+ return {
470
+ url: toPathString(localVarUrlObj),
471
+ options: localVarRequestOptions
472
+ };
473
+ },
474
+ /**
475
+ * Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
476
+ * @param {string} sellerSku The seller SKU for which return reason codes are required.
477
+ * @param {string} [marketplaceId] The marketplace for which the seller wants return reason codes.
478
+ * @param {string} [sellerFulfillmentOrderId] The identifier assigned to the item by the seller when the fulfillment order was created. The service uses this value to determine the marketplace for which the seller wants return reason codes.
479
+ * @param {string} [language] The language that the `TranslatedDescription` property of the `ReasonCodeDetails` response object should be translated into.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ listReturnReasonCodes: async (sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options = {}) => {
484
+ assertParamExists("listReturnReasonCodes", "sellerSku", sellerSku);
485
+ const localVarPath = `/fba/outbound/2020-07-01/returnReasonCodes`;
486
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
487
+ let baseOptions;
488
+ if (configuration) {
489
+ baseOptions = configuration.baseOptions;
490
+ }
491
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
492
+ const localVarHeaderParameter = {};
493
+ const localVarQueryParameter = {};
494
+ if (sellerSku !== void 0) {
495
+ localVarQueryParameter["sellerSku"] = sellerSku;
496
+ }
497
+ if (marketplaceId !== void 0) {
498
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
499
+ }
500
+ if (sellerFulfillmentOrderId !== void 0) {
501
+ localVarQueryParameter["sellerFulfillmentOrderId"] = sellerFulfillmentOrderId;
502
+ }
503
+ if (language !== void 0) {
504
+ localVarQueryParameter["language"] = language;
505
+ }
506
+ localVarHeaderParameter["Accept"] = "application/json,payload";
507
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
508
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
509
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
510
+ return {
511
+ url: toPathString(localVarUrlObj),
512
+ options: localVarRequestOptions
513
+ };
514
+ },
515
+ /**
516
+ * Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
517
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
518
+ * @param {SubmitFulfillmentOrderStatusUpdateRequest} body The identifier assigned to the item by the seller when the fulfillment order was created.
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ submitFulfillmentOrderStatusUpdate: async (sellerFulfillmentOrderId, body, options = {}) => {
523
+ assertParamExists("submitFulfillmentOrderStatusUpdate", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
524
+ assertParamExists("submitFulfillmentOrderStatusUpdate", "body", body);
525
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
526
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
527
+ let baseOptions;
528
+ if (configuration) {
529
+ baseOptions = configuration.baseOptions;
530
+ }
531
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
532
+ const localVarHeaderParameter = {};
533
+ const localVarQueryParameter = {};
534
+ localVarHeaderParameter["Content-Type"] = "application/json";
535
+ localVarHeaderParameter["Accept"] = "application/json";
536
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
537
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
538
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
539
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
540
+ return {
541
+ url: toPathString(localVarUrlObj),
542
+ options: localVarRequestOptions
543
+ };
544
+ },
545
+ /**
546
+ * Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
547
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
548
+ * @param {UpdateFulfillmentOrderRequest} body The request body of the `updateFulfillmentOrder` operation.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ updateFulfillmentOrder: async (sellerFulfillmentOrderId, body, options = {}) => {
553
+ assertParamExists("updateFulfillmentOrder", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
554
+ assertParamExists("updateFulfillmentOrder", "body", body);
555
+ const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
557
+ let baseOptions;
558
+ if (configuration) {
559
+ baseOptions = configuration.baseOptions;
560
+ }
561
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
562
+ const localVarHeaderParameter = {};
563
+ const localVarQueryParameter = {};
564
+ localVarHeaderParameter["Content-Type"] = "application/json";
565
+ localVarHeaderParameter["Accept"] = "application/json";
566
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
567
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
568
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
569
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
570
+ return {
571
+ url: toPathString(localVarUrlObj),
572
+ options: localVarRequestOptions
573
+ };
574
+ }
575
+ };
576
+ };
577
+ var FulfillmentOutboundApiFp = function(configuration) {
578
+ const localVarAxiosParamCreator = FulfillmentOutboundApiAxiosParamCreator(configuration);
579
+ return {
580
+ /**
581
+ * Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
582
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ */
586
+ async cancelFulfillmentOrder(sellerFulfillmentOrderId, options) {
587
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelFulfillmentOrder(sellerFulfillmentOrderId, options);
588
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
589
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.cancelFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
590
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
591
+ },
592
+ /**
593
+ * Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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)
594
+ * @param {CreateFulfillmentOrderRequest} body CreateFulfillmentOrderRequest parameter
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ */
598
+ async createFulfillmentOrder(body, options) {
599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentOrder(body, options);
600
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
601
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.createFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
602
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
603
+ },
604
+ /**
605
+ * Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
606
+ * @param {string} sellerFulfillmentOrderId An identifier the seller assigns to the fulfillment order at the time it was created. The seller uses their own records to find the correct `sellerFulfillmentOrderId` value based on the buyer\'s request to return items.
607
+ * @param {CreateFulfillmentReturnRequest} body The request body of the `createFulfillmentReturn` operation.
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ async createFulfillmentReturn(sellerFulfillmentOrderId, body, options) {
612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentReturn(sellerFulfillmentOrderId, body, options);
613
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
614
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.createFulfillmentReturn"]?.[localVarOperationServerIndex]?.url;
615
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
616
+ },
617
+ /**
618
+ * Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
619
+ * @param {GetDeliveryOffersRequest} body GetDeliveryOffersRequest parameter
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ async deliveryOffers(body, options) {
624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deliveryOffers(body, options);
625
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
626
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.deliveryOffers"]?.[localVarOperationServerIndex]?.url;
627
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
628
+ },
629
+ /**
630
+ * Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
631
+ * @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
632
+ * @param {string} featureName The name of the feature for which to return a list of eligible inventory.
633
+ * @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of `null` will return the first page.
634
+ * @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format `yyyy-MM-ddTHH:mm:ss.sssZ`
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ async getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options) {
639
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options);
640
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
641
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFeatureInventory"]?.[localVarOperationServerIndex]?.url;
642
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
643
+ },
644
+ /**
645
+ * Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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).
646
+ * @param {string} marketplaceId The marketplace for which to return the count.
647
+ * @param {string} featureName The name of the feature.
648
+ * @param {string} sellerSku Used to identify an item in the given marketplace. `sellerSku` is qualified by the seller\'s `sellerId`, which is included with every operation that you submit.
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ async getFeatureSKU(marketplaceId, featureName, sellerSku, options) {
653
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureSKU(marketplaceId, featureName, sellerSku, options);
654
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
655
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFeatureSKU"]?.[localVarOperationServerIndex]?.url;
656
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
657
+ },
658
+ /**
659
+ * Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
660
+ * @param {string} marketplaceId The marketplace for which to return the list of features.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ async getFeatures(marketplaceId, options) {
665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatures(marketplaceId, options);
666
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
667
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFeatures"]?.[localVarOperationServerIndex]?.url;
668
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
669
+ },
670
+ /**
671
+ * Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
672
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ async getFulfillmentOrder(sellerFulfillmentOrderId, options) {
677
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentOrder(sellerFulfillmentOrderId, options);
678
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
679
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
680
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
681
+ },
682
+ /**
683
+ * Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
684
+ * @param {GetFulfillmentPreviewRequest} body GetFulfillmentPreviewRequest parameter
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ */
688
+ async getFulfillmentPreview(body, options) {
689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentPreview(body, options);
690
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
691
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFulfillmentPreview"]?.[localVarOperationServerIndex]?.url;
692
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
693
+ },
694
+ /**
695
+ * Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
696
+ * @param {number} packageNumber The unencrypted package identifier. You can obtain this value from the `getFulfillmentOrder` operation.
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ async getPackageTrackingDetails(packageNumber, options) {
701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPackageTrackingDetails(packageNumber, options);
702
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
703
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getPackageTrackingDetails"]?.[localVarOperationServerIndex]?.url;
704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ },
706
+ /**
707
+ * Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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
+ * @param {string} [queryStartDate] A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order.
709
+ * @param {string} [nextToken] A string token returned in the response to your previous request.
710
+ * @param {*} [options] Override http request option.
711
+ * @throws {RequiredError}
712
+ */
713
+ async listAllFulfillmentOrders(queryStartDate, nextToken, options) {
714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllFulfillmentOrders(queryStartDate, nextToken, options);
715
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
716
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.listAllFulfillmentOrders"]?.[localVarOperationServerIndex]?.url;
717
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
718
+ },
719
+ /**
720
+ * Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
721
+ * @param {string} sellerSku The seller SKU for which return reason codes are required.
722
+ * @param {string} [marketplaceId] The marketplace for which the seller wants return reason codes.
723
+ * @param {string} [sellerFulfillmentOrderId] The identifier assigned to the item by the seller when the fulfillment order was created. The service uses this value to determine the marketplace for which the seller wants return reason codes.
724
+ * @param {string} [language] The language that the `TranslatedDescription` property of the `ReasonCodeDetails` response object should be translated into.
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ async listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options) {
729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options);
730
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
731
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.listReturnReasonCodes"]?.[localVarOperationServerIndex]?.url;
732
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
733
+ },
734
+ /**
735
+ * Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
736
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
737
+ * @param {SubmitFulfillmentOrderStatusUpdateRequest} body The identifier assigned to the item by the seller when the fulfillment order was created.
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ async submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options) {
742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options);
743
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
744
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.submitFulfillmentOrderStatusUpdate"]?.[localVarOperationServerIndex]?.url;
745
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
746
+ },
747
+ /**
748
+ * Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
749
+ * @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
750
+ * @param {UpdateFulfillmentOrderRequest} body The request body of the `updateFulfillmentOrder` operation.
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ */
754
+ async updateFulfillmentOrder(sellerFulfillmentOrderId, body, options) {
755
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateFulfillmentOrder(sellerFulfillmentOrderId, body, options);
756
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
757
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.updateFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
759
+ }
760
+ };
761
+ };
762
+ var FulfillmentOutboundApiFactory = function(configuration, basePath, axios) {
763
+ const localVarFp = FulfillmentOutboundApiFp(configuration);
764
+ return {
765
+ /**
766
+ * Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
767
+ * @param {FulfillmentOutboundApiCancelFulfillmentOrderRequest} requestParameters Request parameters.
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ cancelFulfillmentOrder(requestParameters, options) {
772
+ return localVarFp.cancelFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(axios, basePath));
773
+ },
774
+ /**
775
+ * Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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)
776
+ * @param {FulfillmentOutboundApiCreateFulfillmentOrderRequest} requestParameters Request parameters.
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ createFulfillmentOrder(requestParameters, options) {
781
+ return localVarFp.createFulfillmentOrder(requestParameters.body, options).then((request) => request(axios, basePath));
782
+ },
783
+ /**
784
+ * Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
785
+ * @param {FulfillmentOutboundApiCreateFulfillmentReturnRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ */
789
+ createFulfillmentReturn(requestParameters, options) {
790
+ return localVarFp.createFulfillmentReturn(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(axios, basePath));
791
+ },
792
+ /**
793
+ * Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
794
+ * @param {FulfillmentOutboundApiDeliveryOffersRequest} requestParameters Request parameters.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ deliveryOffers(requestParameters, options) {
799
+ return localVarFp.deliveryOffers(requestParameters.body, options).then((request) => request(axios, basePath));
800
+ },
801
+ /**
802
+ * Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
803
+ * @param {FulfillmentOutboundApiGetFeatureInventoryRequest} requestParameters Request parameters.
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ getFeatureInventory(requestParameters, options) {
808
+ return localVarFp.getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(axios, basePath));
809
+ },
810
+ /**
811
+ * Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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).
812
+ * @param {FulfillmentOutboundApiGetFeatureSKURequest} requestParameters Request parameters.
813
+ * @param {*} [options] Override http request option.
814
+ * @throws {RequiredError}
815
+ */
816
+ getFeatureSKU(requestParameters, options) {
817
+ return localVarFp.getFeatureSKU(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.sellerSku, options).then((request) => request(axios, basePath));
818
+ },
819
+ /**
820
+ * Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
821
+ * @param {FulfillmentOutboundApiGetFeaturesRequest} requestParameters Request parameters.
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ getFeatures(requestParameters, options) {
826
+ return localVarFp.getFeatures(requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
827
+ },
828
+ /**
829
+ * Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
830
+ * @param {FulfillmentOutboundApiGetFulfillmentOrderRequest} requestParameters Request parameters.
831
+ * @param {*} [options] Override http request option.
832
+ * @throws {RequiredError}
833
+ */
834
+ getFulfillmentOrder(requestParameters, options) {
835
+ return localVarFp.getFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(axios, basePath));
836
+ },
837
+ /**
838
+ * Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
839
+ * @param {FulfillmentOutboundApiGetFulfillmentPreviewRequest} requestParameters Request parameters.
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ getFulfillmentPreview(requestParameters, options) {
844
+ return localVarFp.getFulfillmentPreview(requestParameters.body, options).then((request) => request(axios, basePath));
845
+ },
846
+ /**
847
+ * Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
848
+ * @param {FulfillmentOutboundApiGetPackageTrackingDetailsRequest} requestParameters Request parameters.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ getPackageTrackingDetails(requestParameters, options) {
853
+ return localVarFp.getPackageTrackingDetails(requestParameters.packageNumber, options).then((request) => request(axios, basePath));
854
+ },
855
+ /**
856
+ * Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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)
857
+ * @param {FulfillmentOutboundApiListAllFulfillmentOrdersRequest} requestParameters Request parameters.
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ listAllFulfillmentOrders(requestParameters = {}, options) {
862
+ return localVarFp.listAllFulfillmentOrders(requestParameters.queryStartDate, requestParameters.nextToken, options).then((request) => request(axios, basePath));
863
+ },
864
+ /**
865
+ * Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
866
+ * @param {FulfillmentOutboundApiListReturnReasonCodesRequest} requestParameters Request parameters.
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ listReturnReasonCodes(requestParameters, options) {
871
+ return localVarFp.listReturnReasonCodes(requestParameters.sellerSku, requestParameters.marketplaceId, requestParameters.sellerFulfillmentOrderId, requestParameters.language, options).then((request) => request(axios, basePath));
872
+ },
873
+ /**
874
+ * Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
875
+ * @param {FulfillmentOutboundApiSubmitFulfillmentOrderStatusUpdateRequest} requestParameters Request parameters.
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ */
879
+ submitFulfillmentOrderStatusUpdate(requestParameters, options) {
880
+ return localVarFp.submitFulfillmentOrderStatusUpdate(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(axios, basePath));
881
+ },
882
+ /**
883
+ * Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
884
+ * @param {FulfillmentOutboundApiUpdateFulfillmentOrderRequest} requestParameters Request parameters.
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ updateFulfillmentOrder(requestParameters, options) {
889
+ return localVarFp.updateFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(axios, basePath));
890
+ }
891
+ };
892
+ };
893
+ var FulfillmentOutboundApi = class extends BaseAPI {
894
+ /**
895
+ * Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
896
+ * @param {FulfillmentOutboundApiCancelFulfillmentOrderRequest} requestParameters Request parameters.
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ cancelFulfillmentOrder(requestParameters, options) {
901
+ return FulfillmentOutboundApiFp(this.configuration).cancelFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(this.axios, this.basePath));
902
+ }
903
+ /**
904
+ * Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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)
905
+ * @param {FulfillmentOutboundApiCreateFulfillmentOrderRequest} requestParameters Request parameters.
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ createFulfillmentOrder(requestParameters, options) {
910
+ return FulfillmentOutboundApiFp(this.configuration).createFulfillmentOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
911
+ }
912
+ /**
913
+ * Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
914
+ * @param {FulfillmentOutboundApiCreateFulfillmentReturnRequest} requestParameters Request parameters.
915
+ * @param {*} [options] Override http request option.
916
+ * @throws {RequiredError}
917
+ */
918
+ createFulfillmentReturn(requestParameters, options) {
919
+ return FulfillmentOutboundApiFp(this.configuration).createFulfillmentReturn(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
920
+ }
921
+ /**
922
+ * Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
923
+ * @param {FulfillmentOutboundApiDeliveryOffersRequest} requestParameters Request parameters.
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ */
927
+ deliveryOffers(requestParameters, options) {
928
+ return FulfillmentOutboundApiFp(this.configuration).deliveryOffers(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
929
+ }
930
+ /**
931
+ * Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
932
+ * @param {FulfillmentOutboundApiGetFeatureInventoryRequest} requestParameters Request parameters.
933
+ * @param {*} [options] Override http request option.
934
+ * @throws {RequiredError}
935
+ */
936
+ getFeatureInventory(requestParameters, options) {
937
+ return FulfillmentOutboundApiFp(this.configuration).getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(this.axios, this.basePath));
938
+ }
939
+ /**
940
+ * Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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).
941
+ * @param {FulfillmentOutboundApiGetFeatureSKURequest} requestParameters Request parameters.
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ */
945
+ getFeatureSKU(requestParameters, options) {
946
+ return FulfillmentOutboundApiFp(this.configuration).getFeatureSKU(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.sellerSku, options).then((request) => request(this.axios, this.basePath));
947
+ }
948
+ /**
949
+ * Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
950
+ * @param {FulfillmentOutboundApiGetFeaturesRequest} requestParameters Request parameters.
951
+ * @param {*} [options] Override http request option.
952
+ * @throws {RequiredError}
953
+ */
954
+ getFeatures(requestParameters, options) {
955
+ return FulfillmentOutboundApiFp(this.configuration).getFeatures(requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
956
+ }
957
+ /**
958
+ * Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
959
+ * @param {FulfillmentOutboundApiGetFulfillmentOrderRequest} requestParameters Request parameters.
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ */
963
+ getFulfillmentOrder(requestParameters, options) {
964
+ return FulfillmentOutboundApiFp(this.configuration).getFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(this.axios, this.basePath));
965
+ }
966
+ /**
967
+ * Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
968
+ * @param {FulfillmentOutboundApiGetFulfillmentPreviewRequest} requestParameters Request parameters.
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ getFulfillmentPreview(requestParameters, options) {
973
+ return FulfillmentOutboundApiFp(this.configuration).getFulfillmentPreview(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
974
+ }
975
+ /**
976
+ * Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
977
+ * @param {FulfillmentOutboundApiGetPackageTrackingDetailsRequest} requestParameters Request parameters.
978
+ * @param {*} [options] Override http request option.
979
+ * @throws {RequiredError}
980
+ */
981
+ getPackageTrackingDetails(requestParameters, options) {
982
+ return FulfillmentOutboundApiFp(this.configuration).getPackageTrackingDetails(requestParameters.packageNumber, options).then((request) => request(this.axios, this.basePath));
983
+ }
984
+ /**
985
+ * Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table 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 than 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)
986
+ * @param {FulfillmentOutboundApiListAllFulfillmentOrdersRequest} requestParameters Request parameters.
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ listAllFulfillmentOrders(requestParameters = {}, options) {
991
+ return FulfillmentOutboundApiFp(this.configuration).listAllFulfillmentOrders(requestParameters.queryStartDate, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
992
+ }
993
+ /**
994
+ * Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
995
+ * @param {FulfillmentOutboundApiListReturnReasonCodesRequest} requestParameters Request parameters.
996
+ * @param {*} [options] Override http request option.
997
+ * @throws {RequiredError}
998
+ */
999
+ listReturnReasonCodes(requestParameters, options) {
1000
+ return FulfillmentOutboundApiFp(this.configuration).listReturnReasonCodes(requestParameters.sellerSku, requestParameters.marketplaceId, requestParameters.sellerFulfillmentOrderId, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
1001
+ }
1002
+ /**
1003
+ * Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
1004
+ * @param {FulfillmentOutboundApiSubmitFulfillmentOrderStatusUpdateRequest} requestParameters Request parameters.
1005
+ * @param {*} [options] Override http request option.
1006
+ * @throws {RequiredError}
1007
+ */
1008
+ submitFulfillmentOrderStatusUpdate(requestParameters, options) {
1009
+ return FulfillmentOutboundApiFp(this.configuration).submitFulfillmentOrderStatusUpdate(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1010
+ }
1011
+ /**
1012
+ * Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 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 have higher rate and burst values than those shown here. For more information, refer to [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).
1013
+ * @param {FulfillmentOutboundApiUpdateFulfillmentOrderRequest} requestParameters Request parameters.
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ */
1017
+ updateFulfillmentOrder(requestParameters, options) {
1018
+ return FulfillmentOutboundApiFp(this.configuration).updateFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1019
+ }
1020
+ };
1021
+
1022
+ // src/api-model/configuration.ts
1023
+ var Configuration = class {
1024
+ /**
1025
+ * parameter for apiKey security
1026
+ * @param name security name
1027
+ */
1028
+ apiKey;
1029
+ /**
1030
+ * parameter for basic security
1031
+ */
1032
+ username;
1033
+ /**
1034
+ * parameter for basic security
1035
+ */
1036
+ password;
1037
+ /**
1038
+ * parameter for oauth2 security
1039
+ * @param name security name
1040
+ * @param scopes oauth2 scope
1041
+ */
1042
+ accessToken;
1043
+ /**
1044
+ * parameter for aws4 signature security
1045
+ * @param {Object} AWS4Signature - AWS4 Signature security
1046
+ * @param {string} options.region - aws region
1047
+ * @param {string} options.service - name of the service.
1048
+ * @param {string} credentials.accessKeyId - aws access key id
1049
+ * @param {string} credentials.secretAccessKey - aws access key
1050
+ * @param {string} credentials.sessionToken - aws session token
1051
+ * @memberof Configuration
1052
+ */
1053
+ awsv4;
1054
+ /**
1055
+ * override base path
1056
+ */
1057
+ basePath;
1058
+ /**
1059
+ * override server index
1060
+ */
1061
+ serverIndex;
1062
+ /**
1063
+ * base options for axios calls
1064
+ */
1065
+ baseOptions;
1066
+ /**
1067
+ * The FormData constructor that will be used to create multipart form data
1068
+ * requests. You can inject this here so that execution environments that
1069
+ * do not support the FormData class can still run the generated client.
1070
+ *
1071
+ * @type {new () => FormData}
1072
+ */
1073
+ formDataCtor;
1074
+ constructor(param = {}) {
1075
+ this.apiKey = param.apiKey;
1076
+ this.username = param.username;
1077
+ this.password = param.password;
1078
+ this.accessToken = param.accessToken;
1079
+ this.awsv4 = param.awsv4;
1080
+ this.basePath = param.basePath;
1081
+ this.serverIndex = param.serverIndex;
1082
+ this.baseOptions = {
1083
+ ...param.baseOptions,
1084
+ headers: {
1085
+ ...param.baseOptions?.headers
1086
+ }
1087
+ };
1088
+ this.formDataCtor = param.formDataCtor;
1089
+ }
1090
+ /**
1091
+ * Check if the given MIME is a JSON MIME.
1092
+ * JSON MIME examples:
1093
+ * application/json
1094
+ * application/json; charset=UTF8
1095
+ * APPLICATION/JSON
1096
+ * application/vnd.company+json
1097
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
1098
+ * @return True if the given MIME is JSON, false otherwise.
1099
+ */
1100
+ isJsonMime(mime) {
1101
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
1102
+ return mime !== null && jsonMime.test(mime);
1103
+ }
1104
+ };
1105
+
1106
+ // src/api-model/models/additional-location-info.ts
1107
+ var AdditionalLocationInfo = {
1108
+ AsInstructed: "AS_INSTRUCTED",
1109
+ Carport: "CARPORT",
1110
+ CustomerPickup: "CUSTOMER_PICKUP",
1111
+ Deck: "DECK",
1112
+ DoorPerson: "DOOR_PERSON",
1113
+ FrontDesk: "FRONT_DESK",
1114
+ FrontDoor: "FRONT_DOOR",
1115
+ Garage: "GARAGE",
1116
+ Guard: "GUARD",
1117
+ MailRoom: "MAIL_ROOM",
1118
+ MailSlot: "MAIL_SLOT",
1119
+ Mailbox: "MAILBOX",
1120
+ McBoy: "MC_BOY",
1121
+ McGirl: "MC_GIRL",
1122
+ McMan: "MC_MAN",
1123
+ McWoman: "MC_WOMAN",
1124
+ Neighbor: "NEIGHBOR",
1125
+ Office: "OFFICE",
1126
+ Outbuilding: "OUTBUILDING",
1127
+ Patio: "PATIO",
1128
+ Porch: "PORCH",
1129
+ RearDoor: "REAR_DOOR",
1130
+ Receptionist: "RECEPTIONIST",
1131
+ Receiver: "RECEIVER",
1132
+ SecureLocation: "SECURE_LOCATION",
1133
+ SideDoor: "SIDE_DOOR"
1134
+ };
1135
+
1136
+ // src/api-model/models/amount.ts
1137
+ var AmountUnitOfMeasureEnum = {
1138
+ Eaches: "Eaches"
1139
+ };
1140
+
1141
+ // src/api-model/models/current-status.ts
1142
+ var CurrentStatus = {
1143
+ InTransit: "IN_TRANSIT",
1144
+ Delivered: "DELIVERED",
1145
+ Returning: "RETURNING",
1146
+ Returned: "RETURNED",
1147
+ Undeliverable: "UNDELIVERABLE",
1148
+ Delayed: "DELAYED",
1149
+ AvailableForPickup: "AVAILABLE_FOR_PICKUP",
1150
+ CustomerAction: "CUSTOMER_ACTION",
1151
+ Unknown: "UNKNOWN",
1152
+ OutForDelivery: "OUT_FOR_DELIVERY",
1153
+ DeliveryAttempted: "DELIVERY_ATTEMPTED",
1154
+ PickupSuccessful: "PICKUP_SUCCESSFUL",
1155
+ PickupCancelled: "PICKUP_CANCELLED",
1156
+ PickupAttempted: "PICKUP_ATTEMPTED",
1157
+ PickupScheduled: "PICKUP_SCHEDULED",
1158
+ ReturnRequestAccepted: "RETURN_REQUEST_ACCEPTED",
1159
+ RefundIssued: "REFUND_ISSUED",
1160
+ ReturnReceivedInFc: "RETURN_RECEIVED_IN_FC"
1161
+ };
1162
+
1163
+ // src/api-model/models/drop-off-location.ts
1164
+ var DropOffLocationTypeEnum = {
1165
+ FrontDoor: "FRONT_DOOR",
1166
+ DeliveryBox: "DELIVERY_BOX",
1167
+ GasMeterBox: "GAS_METER_BOX",
1168
+ BicycleBasket: "BICYCLE_BASKET",
1169
+ Garage: "GARAGE",
1170
+ Receptionist: "RECEPTIONIST",
1171
+ FallbackNeighborDelivery: "FALLBACK_NEIGHBOR_DELIVERY",
1172
+ DoNotLeaveUnattended: "DO_NOT_LEAVE_UNATTENDED"
1173
+ };
1174
+
1175
+ // src/api-model/models/event-code.ts
1176
+ var EventCode = {
1177
+ Event101: "EVENT_101",
1178
+ Event102: "EVENT_102",
1179
+ Event201: "EVENT_201",
1180
+ Event202: "EVENT_202",
1181
+ Event203: "EVENT_203",
1182
+ Event204: "EVENT_204",
1183
+ Event205: "EVENT_205",
1184
+ Event206: "EVENT_206",
1185
+ Event301: "EVENT_301",
1186
+ Event302: "EVENT_302",
1187
+ Event304: "EVENT_304",
1188
+ Event306: "EVENT_306",
1189
+ Event307: "EVENT_307",
1190
+ Event308: "EVENT_308",
1191
+ Event309: "EVENT_309",
1192
+ Event401: "EVENT_401",
1193
+ Event402: "EVENT_402",
1194
+ Event403: "EVENT_403",
1195
+ Event404: "EVENT_404",
1196
+ Event405: "EVENT_405",
1197
+ Event406: "EVENT_406",
1198
+ Event407: "EVENT_407",
1199
+ Event408: "EVENT_408",
1200
+ Event409: "EVENT_409",
1201
+ Event411: "EVENT_411",
1202
+ Event412: "EVENT_412",
1203
+ Event413: "EVENT_413",
1204
+ Event414: "EVENT_414",
1205
+ Event415: "EVENT_415",
1206
+ Event416: "EVENT_416",
1207
+ Event417: "EVENT_417",
1208
+ Event418: "EVENT_418",
1209
+ Event419: "EVENT_419",
1210
+ Event801: "EVENT_801",
1211
+ Event804: "EVENT_804"
1212
+ };
1213
+
1214
+ // src/api-model/models/feature-settings.ts
1215
+ var FeatureSettingsFeatureFulfillmentPolicyEnum = {
1216
+ Required: "Required",
1217
+ NotRequired: "NotRequired"
1218
+ };
1219
+
1220
+ // src/api-model/models/fee.ts
1221
+ var FeeNameEnum = {
1222
+ FbaPerUnitFulfillmentFee: "FBAPerUnitFulfillmentFee",
1223
+ FbaPerOrderFulfillmentFee: "FBAPerOrderFulfillmentFee",
1224
+ FbaTransportationFee: "FBATransportationFee",
1225
+ FbaFulfillmentCodFee: "FBAFulfillmentCODFee"
1226
+ };
1227
+
1228
+ // src/api-model/models/fulfillment-action.ts
1229
+ var FulfillmentAction = {
1230
+ Ship: "Ship",
1231
+ Hold: "Hold"
1232
+ };
1233
+
1234
+ // src/api-model/models/fulfillment-order-status.ts
1235
+ var FulfillmentOrderStatus = {
1236
+ New: "New",
1237
+ Received: "Received",
1238
+ Planning: "Planning",
1239
+ Processing: "Processing",
1240
+ Cancelled: "Cancelled",
1241
+ Complete: "Complete",
1242
+ CompletePartialled: "CompletePartialled",
1243
+ Unfulfillable: "Unfulfillable",
1244
+ Invalid: "Invalid"
1245
+ };
1246
+
1247
+ // src/api-model/models/fulfillment-policy.ts
1248
+ var FulfillmentPolicy = {
1249
+ FillOrKill: "FillOrKill",
1250
+ FillAll: "FillAll",
1251
+ FillAllAvailable: "FillAllAvailable"
1252
+ };
1253
+
1254
+ // src/api-model/models/fulfillment-preview-item.ts
1255
+ var FulfillmentPreviewItemShippingWeightCalculationMethodEnum = {
1256
+ Package: "Package",
1257
+ Dimensional: "Dimensional"
1258
+ };
1259
+
1260
+ // src/api-model/models/fulfillment-return-item-status.ts
1261
+ var FulfillmentReturnItemStatus = {
1262
+ New: "New",
1263
+ Processed: "Processed"
1264
+ };
1265
+
1266
+ // src/api-model/models/fulfillment-shipment.ts
1267
+ var FulfillmentShipmentFulfillmentShipmentStatusEnum = {
1268
+ Pending: "PENDING",
1269
+ Shipped: "SHIPPED",
1270
+ CancelledByFulfiller: "CANCELLED_BY_FULFILLER",
1271
+ CancelledBySeller: "CANCELLED_BY_SELLER"
1272
+ };
1273
+
1274
+ // src/api-model/models/invalid-item-reason-code.ts
1275
+ var InvalidItemReasonCode = {
1276
+ InvalidValues: "InvalidValues",
1277
+ DuplicateRequest: "DuplicateRequest",
1278
+ NoCompletedShipItems: "NoCompletedShipItems",
1279
+ NoReturnableQuantity: "NoReturnableQuantity"
1280
+ };
1281
+
1282
+ // src/api-model/models/return-item-disposition.ts
1283
+ var ReturnItemDisposition = {
1284
+ Sellable: "Sellable",
1285
+ Defective: "Defective",
1286
+ CustomerDamaged: "CustomerDamaged",
1287
+ CarrierDamaged: "CarrierDamaged",
1288
+ FulfillerDamaged: "FulfillerDamaged"
1289
+ };
1290
+
1291
+ // src/api-model/models/shipping-speed-category.ts
1292
+ var ShippingSpeedCategory = {
1293
+ Standard: "Standard",
1294
+ Expedited: "Expedited",
1295
+ Priority: "Priority",
1296
+ ScheduledDelivery: "ScheduledDelivery"
1297
+ };
1298
+
1299
+ // src/api-model/models/weight.ts
1300
+ var WeightUnitEnum = {
1301
+ Kg: "KG",
1302
+ Kilograms: "KILOGRAMS",
1303
+ Lb: "LB",
1304
+ Pounds: "POUNDS"
1305
+ };
1306
+
1307
+ // src/client.ts
1308
+ var clientRateLimits = [
1309
+ {
1310
+ method: "post",
1311
+ // eslint-disable-next-line prefer-regex-literals
1312
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/preview$"),
1313
+ rate: 2,
1314
+ burst: 30
1315
+ },
1316
+ {
1317
+ method: "post",
1318
+ // eslint-disable-next-line prefer-regex-literals
1319
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/deliveryOffers$"),
1320
+ rate: 5,
1321
+ burst: 30
1322
+ },
1323
+ {
1324
+ method: "get",
1325
+ // eslint-disable-next-line prefer-regex-literals
1326
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders$"),
1327
+ rate: 2,
1328
+ burst: 30
1329
+ },
1330
+ {
1331
+ method: "post",
1332
+ // eslint-disable-next-line prefer-regex-literals
1333
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders$"),
1334
+ rate: 2,
1335
+ burst: 30
1336
+ },
1337
+ {
1338
+ method: "get",
1339
+ // eslint-disable-next-line prefer-regex-literals
1340
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/tracking$"),
1341
+ rate: 2,
1342
+ burst: 30
1343
+ },
1344
+ {
1345
+ method: "get",
1346
+ // eslint-disable-next-line prefer-regex-literals
1347
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/returnReasonCodes$"),
1348
+ rate: 2,
1349
+ burst: 30
1350
+ },
1351
+ {
1352
+ method: "put",
1353
+ // eslint-disable-next-line prefer-regex-literals
1354
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*/return$"),
1355
+ rate: 2,
1356
+ burst: 30
1357
+ },
1358
+ {
1359
+ method: "get",
1360
+ // eslint-disable-next-line prefer-regex-literals
1361
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*$"),
1362
+ rate: 2,
1363
+ burst: 30
1364
+ },
1365
+ {
1366
+ method: "put",
1367
+ // eslint-disable-next-line prefer-regex-literals
1368
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*$"),
1369
+ rate: 2,
1370
+ burst: 30
1371
+ },
1372
+ {
1373
+ method: "put",
1374
+ // eslint-disable-next-line prefer-regex-literals
1375
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*/cancel$"),
1376
+ rate: 2,
1377
+ burst: 30
1378
+ },
1379
+ {
1380
+ method: "get",
1381
+ // eslint-disable-next-line prefer-regex-literals
1382
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/features$"),
1383
+ rate: 2,
1384
+ burst: 30
1385
+ },
1386
+ {
1387
+ method: "get",
1388
+ // eslint-disable-next-line prefer-regex-literals
1389
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/features/inventory/[^/]*$"),
1390
+ rate: 2,
1391
+ burst: 30
1392
+ },
1393
+ {
1394
+ method: "get",
1395
+ // eslint-disable-next-line prefer-regex-literals
1396
+ urlRegex: new RegExp("^/fba/outbound/2020-07-01/features/inventory/[^/]*$"),
1397
+ rate: 2,
1398
+ burst: 30
1399
+ }
1400
+ ];
1401
+ var FulfillmentOutboundApiClient = class extends FulfillmentOutboundApi {
1402
+ constructor(configuration) {
1403
+ const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
1404
+ super(new Configuration(), endpoint, axios);
1405
+ }
1406
+ };
1407
+ // Annotate the CommonJS export names for ESM import in node:
1408
+ 0 && (module.exports = {
1409
+ AdditionalLocationInfo,
1410
+ AmountUnitOfMeasureEnum,
1411
+ CurrentStatus,
1412
+ DropOffLocationTypeEnum,
1413
+ EventCode,
1414
+ FeatureSettingsFeatureFulfillmentPolicyEnum,
1415
+ FeeNameEnum,
1416
+ FulfillmentAction,
1417
+ FulfillmentOrderStatus,
1418
+ FulfillmentOutboundApi,
1419
+ FulfillmentOutboundApiAxiosParamCreator,
1420
+ FulfillmentOutboundApiClient,
1421
+ FulfillmentOutboundApiFactory,
1422
+ FulfillmentOutboundApiFp,
1423
+ FulfillmentPolicy,
1424
+ FulfillmentPreviewItemShippingWeightCalculationMethodEnum,
1425
+ FulfillmentReturnItemStatus,
1426
+ FulfillmentShipmentFulfillmentShipmentStatusEnum,
1427
+ InvalidItemReasonCode,
1428
+ ReturnItemDisposition,
1429
+ ShippingSpeedCategory,
1430
+ WeightUnitEnum,
1431
+ clientRateLimits
1432
+ });
1433
+ //# sourceMappingURL=index.cjs.map