@sp-api-sdk/fulfillment-inbound-api-2024-03-20 3.3.9 → 4.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 (455) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +3287 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +5981 -0
  5. package/dist/index.d.ts +5981 -0
  6. package/dist/index.js +3228 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/fulfillment-inbound-api.js +0 -3131
  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/address-input.js +0 -15
  16. package/dist/cjs/api-model/models/address.js +0 -15
  17. package/dist/cjs/api-model/models/all-owners-constraint.js +0 -22
  18. package/dist/cjs/api-model/models/appointment-slot-time.js +0 -15
  19. package/dist/cjs/api-model/models/appointment-slot.js +0 -15
  20. package/dist/cjs/api-model/models/box-content-information-source.js +0 -24
  21. package/dist/cjs/api-model/models/box-input.js +0 -15
  22. package/dist/cjs/api-model/models/box-requirements.js +0 -15
  23. package/dist/cjs/api-model/models/box-update-input.js +0 -15
  24. package/dist/cjs/api-model/models/box.js +0 -15
  25. package/dist/cjs/api-model/models/cancel-inbound-plan-response.js +0 -15
  26. package/dist/cjs/api-model/models/cancel-self-ship-appointment-request.js +0 -15
  27. package/dist/cjs/api-model/models/cancel-self-ship-appointment-response.js +0 -15
  28. package/dist/cjs/api-model/models/carrier-appointment.js +0 -15
  29. package/dist/cjs/api-model/models/carrier.js +0 -15
  30. package/dist/cjs/api-model/models/compliance-detail.js +0 -15
  31. package/dist/cjs/api-model/models/confirm-delivery-window-options-response.js +0 -15
  32. package/dist/cjs/api-model/models/confirm-packing-option-response.js +0 -15
  33. package/dist/cjs/api-model/models/confirm-placement-option-response.js +0 -15
  34. package/dist/cjs/api-model/models/confirm-shipment-content-update-preview-response.js +0 -15
  35. package/dist/cjs/api-model/models/confirm-transportation-options-request.js +0 -15
  36. package/dist/cjs/api-model/models/confirm-transportation-options-response.js +0 -15
  37. package/dist/cjs/api-model/models/contact-information.js +0 -15
  38. package/dist/cjs/api-model/models/content-update-preview.js +0 -15
  39. package/dist/cjs/api-model/models/create-inbound-plan-request.js +0 -15
  40. package/dist/cjs/api-model/models/create-inbound-plan-response.js +0 -15
  41. package/dist/cjs/api-model/models/create-marketplace-item-labels-request.js +0 -15
  42. package/dist/cjs/api-model/models/create-marketplace-item-labels-response.js +0 -15
  43. package/dist/cjs/api-model/models/currency.js +0 -15
  44. package/dist/cjs/api-model/models/custom-placement-input.js +0 -15
  45. package/dist/cjs/api-model/models/dates.js +0 -15
  46. package/dist/cjs/api-model/models/delivery-window-option.js +0 -15
  47. package/dist/cjs/api-model/models/dimensions.js +0 -15
  48. package/dist/cjs/api-model/models/document-download.js +0 -15
  49. package/dist/cjs/api-model/models/error-list.js +0 -15
  50. package/dist/cjs/api-model/models/freight-information.js +0 -15
  51. package/dist/cjs/api-model/models/generate-delivery-window-options-response.js +0 -15
  52. package/dist/cjs/api-model/models/generate-packing-options-response.js +0 -15
  53. package/dist/cjs/api-model/models/generate-placement-options-request.js +0 -15
  54. package/dist/cjs/api-model/models/generate-placement-options-response.js +0 -15
  55. package/dist/cjs/api-model/models/generate-self-ship-appointment-slots-request.js +0 -15
  56. package/dist/cjs/api-model/models/generate-self-ship-appointment-slots-response.js +0 -15
  57. package/dist/cjs/api-model/models/generate-shipment-content-update-previews-request.js +0 -15
  58. package/dist/cjs/api-model/models/generate-shipment-content-update-previews-response.js +0 -15
  59. package/dist/cjs/api-model/models/generate-transportation-options-request.js +0 -15
  60. package/dist/cjs/api-model/models/generate-transportation-options-response.js +0 -15
  61. package/dist/cjs/api-model/models/get-delivery-challan-document-response.js +0 -15
  62. package/dist/cjs/api-model/models/get-self-ship-appointment-slots-response.js +0 -15
  63. package/dist/cjs/api-model/models/inbound-operation-status.js +0 -15
  64. package/dist/cjs/api-model/models/inbound-plan-summary.js +0 -15
  65. package/dist/cjs/api-model/models/inbound-plan.js +0 -15
  66. package/dist/cjs/api-model/models/incentive.js +0 -15
  67. package/dist/cjs/api-model/models/index.js +0 -156
  68. package/dist/cjs/api-model/models/item-input.js +0 -15
  69. package/dist/cjs/api-model/models/item-label-page-type.js +0 -32
  70. package/dist/cjs/api-model/models/item.js +0 -15
  71. package/dist/cjs/api-model/models/label-owner.js +0 -24
  72. package/dist/cjs/api-model/models/label-print-type.js +0 -23
  73. package/dist/cjs/api-model/models/list-delivery-window-options-response.js +0 -15
  74. package/dist/cjs/api-model/models/list-inbound-plan-boxes-response.js +0 -15
  75. package/dist/cjs/api-model/models/list-inbound-plan-items-response.js +0 -15
  76. package/dist/cjs/api-model/models/list-inbound-plan-pallets-response.js +0 -15
  77. package/dist/cjs/api-model/models/list-inbound-plans-response.js +0 -15
  78. package/dist/cjs/api-model/models/list-item-compliance-details-response.js +0 -15
  79. package/dist/cjs/api-model/models/list-packing-group-boxes-response.js +0 -15
  80. package/dist/cjs/api-model/models/list-packing-group-items-response.js +0 -15
  81. package/dist/cjs/api-model/models/list-packing-options-response.js +0 -15
  82. package/dist/cjs/api-model/models/list-placement-options-response.js +0 -15
  83. package/dist/cjs/api-model/models/list-prep-details-response.js +0 -15
  84. package/dist/cjs/api-model/models/list-shipment-boxes-response.js +0 -15
  85. package/dist/cjs/api-model/models/list-shipment-content-update-previews-response.js +0 -15
  86. package/dist/cjs/api-model/models/list-shipment-items-response.js +0 -15
  87. package/dist/cjs/api-model/models/list-shipment-pallets-response.js +0 -15
  88. package/dist/cjs/api-model/models/list-transportation-options-response.js +0 -15
  89. package/dist/cjs/api-model/models/ltl-tracking-detail-input.js +0 -15
  90. package/dist/cjs/api-model/models/ltl-tracking-detail.js +0 -15
  91. package/dist/cjs/api-model/models/model-error.js +0 -15
  92. package/dist/cjs/api-model/models/msku-prep-detail-input.js +0 -15
  93. package/dist/cjs/api-model/models/msku-prep-detail.js +0 -15
  94. package/dist/cjs/api-model/models/msku-quantity.js +0 -15
  95. package/dist/cjs/api-model/models/operation-problem.js +0 -15
  96. package/dist/cjs/api-model/models/operation-status.js +0 -24
  97. package/dist/cjs/api-model/models/owner-constraint.js +0 -24
  98. package/dist/cjs/api-model/models/package-grouping-input.js +0 -15
  99. package/dist/cjs/api-model/models/packing-configuration.js +0 -15
  100. package/dist/cjs/api-model/models/packing-option-summary.js +0 -15
  101. package/dist/cjs/api-model/models/packing-option.js +0 -15
  102. package/dist/cjs/api-model/models/pagination.js +0 -15
  103. package/dist/cjs/api-model/models/pallet-input.js +0 -15
  104. package/dist/cjs/api-model/models/pallet.js +0 -15
  105. package/dist/cjs/api-model/models/placement-option-summary.js +0 -15
  106. package/dist/cjs/api-model/models/placement-option.js +0 -15
  107. package/dist/cjs/api-model/models/prep-category.js +0 -35
  108. package/dist/cjs/api-model/models/prep-instruction.js +0 -15
  109. package/dist/cjs/api-model/models/prep-owner.js +0 -24
  110. package/dist/cjs/api-model/models/prep-type.js +0 -37
  111. package/dist/cjs/api-model/models/quote.js +0 -15
  112. package/dist/cjs/api-model/models/reason-comment.js +0 -30
  113. package/dist/cjs/api-model/models/region.js +0 -15
  114. package/dist/cjs/api-model/models/requested-updates.js +0 -15
  115. package/dist/cjs/api-model/models/schedule-self-ship-appointment-request.js +0 -15
  116. package/dist/cjs/api-model/models/schedule-self-ship-appointment-response.js +0 -15
  117. package/dist/cjs/api-model/models/selected-delivery-window.js +0 -15
  118. package/dist/cjs/api-model/models/self-ship-appointment-details.js +0 -15
  119. package/dist/cjs/api-model/models/self-ship-appointment-slots-availability.js +0 -15
  120. package/dist/cjs/api-model/models/set-packing-information-request.js +0 -15
  121. package/dist/cjs/api-model/models/set-packing-information-response.js +0 -15
  122. package/dist/cjs/api-model/models/set-prep-details-request.js +0 -15
  123. package/dist/cjs/api-model/models/set-prep-details-response.js +0 -15
  124. package/dist/cjs/api-model/models/shipment-destination.js +0 -15
  125. package/dist/cjs/api-model/models/shipment-source.js +0 -15
  126. package/dist/cjs/api-model/models/shipment-summary.js +0 -15
  127. package/dist/cjs/api-model/models/shipment-transportation-configuration.js +0 -15
  128. package/dist/cjs/api-model/models/shipment.js +0 -15
  129. package/dist/cjs/api-model/models/shipping-configuration.js +0 -15
  130. package/dist/cjs/api-model/models/shipping-requirements.js +0 -15
  131. package/dist/cjs/api-model/models/spd-tracking-detail-input.js +0 -15
  132. package/dist/cjs/api-model/models/spd-tracking-detail.js +0 -15
  133. package/dist/cjs/api-model/models/spd-tracking-item-input.js +0 -15
  134. package/dist/cjs/api-model/models/spd-tracking-item.js +0 -15
  135. package/dist/cjs/api-model/models/stackability.js +0 -23
  136. package/dist/cjs/api-model/models/tax-details.js +0 -15
  137. package/dist/cjs/api-model/models/tax-rate.js +0 -15
  138. package/dist/cjs/api-model/models/tracking-details-input.js +0 -15
  139. package/dist/cjs/api-model/models/tracking-details.js +0 -15
  140. package/dist/cjs/api-model/models/transportation-option.js +0 -15
  141. package/dist/cjs/api-model/models/transportation-selection.js +0 -15
  142. package/dist/cjs/api-model/models/unit-of-measurement.js +0 -23
  143. package/dist/cjs/api-model/models/unit-of-weight.js +0 -23
  144. package/dist/cjs/api-model/models/update-inbound-plan-name-request.js +0 -15
  145. package/dist/cjs/api-model/models/update-item-compliance-details-request.js +0 -15
  146. package/dist/cjs/api-model/models/update-item-compliance-details-response.js +0 -15
  147. package/dist/cjs/api-model/models/update-shipment-name-request.js +0 -15
  148. package/dist/cjs/api-model/models/update-shipment-source-address-request.js +0 -15
  149. package/dist/cjs/api-model/models/update-shipment-source-address-response.js +0 -15
  150. package/dist/cjs/api-model/models/update-shipment-tracking-details-request.js +0 -15
  151. package/dist/cjs/api-model/models/update-shipment-tracking-details-response.js +0 -15
  152. package/dist/cjs/api-model/models/weight-range.js +0 -15
  153. package/dist/cjs/api-model/models/weight.js +0 -15
  154. package/dist/cjs/api-model/models/window-input.js +0 -15
  155. package/dist/cjs/api-model/models/window.js +0 -15
  156. package/dist/cjs/client.js +0 -13
  157. package/dist/cjs/index.js +0 -19
  158. package/dist/es/api-model/api/fulfillment-inbound-api.js +0 -3121
  159. package/dist/es/api-model/api.js +0 -14
  160. package/dist/es/api-model/base.js +0 -44
  161. package/dist/es/api-model/common.js +0 -110
  162. package/dist/es/api-model/configuration.js +0 -94
  163. package/dist/es/api-model/index.js +0 -16
  164. package/dist/es/api-model/models/address-input.js +0 -14
  165. package/dist/es/api-model/models/address.js +0 -14
  166. package/dist/es/api-model/models/all-owners-constraint.js +0 -19
  167. package/dist/es/api-model/models/appointment-slot-time.js +0 -14
  168. package/dist/es/api-model/models/appointment-slot.js +0 -14
  169. package/dist/es/api-model/models/box-content-information-source.js +0 -21
  170. package/dist/es/api-model/models/box-input.js +0 -14
  171. package/dist/es/api-model/models/box-requirements.js +0 -14
  172. package/dist/es/api-model/models/box-update-input.js +0 -14
  173. package/dist/es/api-model/models/box.js +0 -14
  174. package/dist/es/api-model/models/cancel-inbound-plan-response.js +0 -14
  175. package/dist/es/api-model/models/cancel-self-ship-appointment-request.js +0 -14
  176. package/dist/es/api-model/models/cancel-self-ship-appointment-response.js +0 -14
  177. package/dist/es/api-model/models/carrier-appointment.js +0 -14
  178. package/dist/es/api-model/models/carrier.js +0 -14
  179. package/dist/es/api-model/models/compliance-detail.js +0 -14
  180. package/dist/es/api-model/models/confirm-delivery-window-options-response.js +0 -14
  181. package/dist/es/api-model/models/confirm-packing-option-response.js +0 -14
  182. package/dist/es/api-model/models/confirm-placement-option-response.js +0 -14
  183. package/dist/es/api-model/models/confirm-shipment-content-update-preview-response.js +0 -14
  184. package/dist/es/api-model/models/confirm-transportation-options-request.js +0 -14
  185. package/dist/es/api-model/models/confirm-transportation-options-response.js +0 -14
  186. package/dist/es/api-model/models/contact-information.js +0 -14
  187. package/dist/es/api-model/models/content-update-preview.js +0 -14
  188. package/dist/es/api-model/models/create-inbound-plan-request.js +0 -14
  189. package/dist/es/api-model/models/create-inbound-plan-response.js +0 -14
  190. package/dist/es/api-model/models/create-marketplace-item-labels-request.js +0 -14
  191. package/dist/es/api-model/models/create-marketplace-item-labels-response.js +0 -14
  192. package/dist/es/api-model/models/currency.js +0 -14
  193. package/dist/es/api-model/models/custom-placement-input.js +0 -14
  194. package/dist/es/api-model/models/dates.js +0 -14
  195. package/dist/es/api-model/models/delivery-window-option.js +0 -14
  196. package/dist/es/api-model/models/dimensions.js +0 -14
  197. package/dist/es/api-model/models/document-download.js +0 -14
  198. package/dist/es/api-model/models/error-list.js +0 -14
  199. package/dist/es/api-model/models/freight-information.js +0 -14
  200. package/dist/es/api-model/models/generate-delivery-window-options-response.js +0 -14
  201. package/dist/es/api-model/models/generate-packing-options-response.js +0 -14
  202. package/dist/es/api-model/models/generate-placement-options-request.js +0 -14
  203. package/dist/es/api-model/models/generate-placement-options-response.js +0 -14
  204. package/dist/es/api-model/models/generate-self-ship-appointment-slots-request.js +0 -14
  205. package/dist/es/api-model/models/generate-self-ship-appointment-slots-response.js +0 -14
  206. package/dist/es/api-model/models/generate-shipment-content-update-previews-request.js +0 -14
  207. package/dist/es/api-model/models/generate-shipment-content-update-previews-response.js +0 -14
  208. package/dist/es/api-model/models/generate-transportation-options-request.js +0 -14
  209. package/dist/es/api-model/models/generate-transportation-options-response.js +0 -14
  210. package/dist/es/api-model/models/get-delivery-challan-document-response.js +0 -14
  211. package/dist/es/api-model/models/get-self-ship-appointment-slots-response.js +0 -14
  212. package/dist/es/api-model/models/inbound-operation-status.js +0 -14
  213. package/dist/es/api-model/models/inbound-plan-summary.js +0 -14
  214. package/dist/es/api-model/models/inbound-plan.js +0 -14
  215. package/dist/es/api-model/models/incentive.js +0 -14
  216. package/dist/es/api-model/models/index.js +0 -140
  217. package/dist/es/api-model/models/item-input.js +0 -14
  218. package/dist/es/api-model/models/item-label-page-type.js +0 -29
  219. package/dist/es/api-model/models/item.js +0 -14
  220. package/dist/es/api-model/models/label-owner.js +0 -21
  221. package/dist/es/api-model/models/label-print-type.js +0 -20
  222. package/dist/es/api-model/models/list-delivery-window-options-response.js +0 -14
  223. package/dist/es/api-model/models/list-inbound-plan-boxes-response.js +0 -14
  224. package/dist/es/api-model/models/list-inbound-plan-items-response.js +0 -14
  225. package/dist/es/api-model/models/list-inbound-plan-pallets-response.js +0 -14
  226. package/dist/es/api-model/models/list-inbound-plans-response.js +0 -14
  227. package/dist/es/api-model/models/list-item-compliance-details-response.js +0 -14
  228. package/dist/es/api-model/models/list-packing-group-boxes-response.js +0 -14
  229. package/dist/es/api-model/models/list-packing-group-items-response.js +0 -14
  230. package/dist/es/api-model/models/list-packing-options-response.js +0 -14
  231. package/dist/es/api-model/models/list-placement-options-response.js +0 -14
  232. package/dist/es/api-model/models/list-prep-details-response.js +0 -14
  233. package/dist/es/api-model/models/list-shipment-boxes-response.js +0 -14
  234. package/dist/es/api-model/models/list-shipment-content-update-previews-response.js +0 -14
  235. package/dist/es/api-model/models/list-shipment-items-response.js +0 -14
  236. package/dist/es/api-model/models/list-shipment-pallets-response.js +0 -14
  237. package/dist/es/api-model/models/list-transportation-options-response.js +0 -14
  238. package/dist/es/api-model/models/ltl-tracking-detail-input.js +0 -14
  239. package/dist/es/api-model/models/ltl-tracking-detail.js +0 -14
  240. package/dist/es/api-model/models/model-error.js +0 -14
  241. package/dist/es/api-model/models/msku-prep-detail-input.js +0 -14
  242. package/dist/es/api-model/models/msku-prep-detail.js +0 -14
  243. package/dist/es/api-model/models/msku-quantity.js +0 -14
  244. package/dist/es/api-model/models/operation-problem.js +0 -14
  245. package/dist/es/api-model/models/operation-status.js +0 -21
  246. package/dist/es/api-model/models/owner-constraint.js +0 -21
  247. package/dist/es/api-model/models/package-grouping-input.js +0 -14
  248. package/dist/es/api-model/models/packing-configuration.js +0 -14
  249. package/dist/es/api-model/models/packing-option-summary.js +0 -14
  250. package/dist/es/api-model/models/packing-option.js +0 -14
  251. package/dist/es/api-model/models/pagination.js +0 -14
  252. package/dist/es/api-model/models/pallet-input.js +0 -14
  253. package/dist/es/api-model/models/pallet.js +0 -14
  254. package/dist/es/api-model/models/placement-option-summary.js +0 -14
  255. package/dist/es/api-model/models/placement-option.js +0 -14
  256. package/dist/es/api-model/models/prep-category.js +0 -32
  257. package/dist/es/api-model/models/prep-instruction.js +0 -14
  258. package/dist/es/api-model/models/prep-owner.js +0 -21
  259. package/dist/es/api-model/models/prep-type.js +0 -34
  260. package/dist/es/api-model/models/quote.js +0 -14
  261. package/dist/es/api-model/models/reason-comment.js +0 -27
  262. package/dist/es/api-model/models/region.js +0 -14
  263. package/dist/es/api-model/models/requested-updates.js +0 -14
  264. package/dist/es/api-model/models/schedule-self-ship-appointment-request.js +0 -14
  265. package/dist/es/api-model/models/schedule-self-ship-appointment-response.js +0 -14
  266. package/dist/es/api-model/models/selected-delivery-window.js +0 -14
  267. package/dist/es/api-model/models/self-ship-appointment-details.js +0 -14
  268. package/dist/es/api-model/models/self-ship-appointment-slots-availability.js +0 -14
  269. package/dist/es/api-model/models/set-packing-information-request.js +0 -14
  270. package/dist/es/api-model/models/set-packing-information-response.js +0 -14
  271. package/dist/es/api-model/models/set-prep-details-request.js +0 -14
  272. package/dist/es/api-model/models/set-prep-details-response.js +0 -14
  273. package/dist/es/api-model/models/shipment-destination.js +0 -14
  274. package/dist/es/api-model/models/shipment-source.js +0 -14
  275. package/dist/es/api-model/models/shipment-summary.js +0 -14
  276. package/dist/es/api-model/models/shipment-transportation-configuration.js +0 -14
  277. package/dist/es/api-model/models/shipment.js +0 -14
  278. package/dist/es/api-model/models/shipping-configuration.js +0 -14
  279. package/dist/es/api-model/models/shipping-requirements.js +0 -14
  280. package/dist/es/api-model/models/spd-tracking-detail-input.js +0 -14
  281. package/dist/es/api-model/models/spd-tracking-detail.js +0 -14
  282. package/dist/es/api-model/models/spd-tracking-item-input.js +0 -14
  283. package/dist/es/api-model/models/spd-tracking-item.js +0 -14
  284. package/dist/es/api-model/models/stackability.js +0 -20
  285. package/dist/es/api-model/models/tax-details.js +0 -14
  286. package/dist/es/api-model/models/tax-rate.js +0 -14
  287. package/dist/es/api-model/models/tracking-details-input.js +0 -14
  288. package/dist/es/api-model/models/tracking-details.js +0 -14
  289. package/dist/es/api-model/models/transportation-option.js +0 -14
  290. package/dist/es/api-model/models/transportation-selection.js +0 -14
  291. package/dist/es/api-model/models/unit-of-measurement.js +0 -20
  292. package/dist/es/api-model/models/unit-of-weight.js +0 -20
  293. package/dist/es/api-model/models/update-inbound-plan-name-request.js +0 -14
  294. package/dist/es/api-model/models/update-item-compliance-details-request.js +0 -14
  295. package/dist/es/api-model/models/update-item-compliance-details-response.js +0 -14
  296. package/dist/es/api-model/models/update-shipment-name-request.js +0 -14
  297. package/dist/es/api-model/models/update-shipment-source-address-request.js +0 -14
  298. package/dist/es/api-model/models/update-shipment-source-address-response.js +0 -14
  299. package/dist/es/api-model/models/update-shipment-tracking-details-request.js +0 -14
  300. package/dist/es/api-model/models/update-shipment-tracking-details-response.js +0 -14
  301. package/dist/es/api-model/models/weight-range.js +0 -14
  302. package/dist/es/api-model/models/weight.js +0 -14
  303. package/dist/es/api-model/models/window-input.js +0 -14
  304. package/dist/es/api-model/models/window.js +0 -14
  305. package/dist/es/client.js +0 -9
  306. package/dist/es/index.js +0 -3
  307. package/dist/types/api-model/api/fulfillment-inbound-api.d.ts +0 -2231
  308. package/dist/types/api-model/api.d.ts +0 -12
  309. package/dist/types/api-model/base.d.ts +0 -42
  310. package/dist/types/api-model/common.d.ts +0 -34
  311. package/dist/types/api-model/configuration.d.ts +0 -98
  312. package/dist/types/api-model/index.d.ts +0 -14
  313. package/dist/types/api-model/models/address-input.d.ts +0 -60
  314. package/dist/types/api-model/models/address.d.ts +0 -60
  315. package/dist/types/api-model/models/all-owners-constraint.d.ts +0 -18
  316. package/dist/types/api-model/models/appointment-slot-time.d.ts +0 -24
  317. package/dist/types/api-model/models/appointment-slot.d.ts +0 -22
  318. package/dist/types/api-model/models/box-content-information-source.d.ts +0 -20
  319. package/dist/types/api-model/models/box-input.d.ts +0 -31
  320. package/dist/types/api-model/models/box-requirements.d.ts +0 -18
  321. package/dist/types/api-model/models/box-update-input.d.ts +0 -35
  322. package/dist/types/api-model/models/box.d.ts +0 -53
  323. package/dist/types/api-model/models/cancel-inbound-plan-response.d.ts +0 -20
  324. package/dist/types/api-model/models/cancel-self-ship-appointment-request.d.ts +0 -18
  325. package/dist/types/api-model/models/cancel-self-ship-appointment-response.d.ts +0 -20
  326. package/dist/types/api-model/models/carrier-appointment.d.ts +0 -24
  327. package/dist/types/api-model/models/carrier.d.ts +0 -24
  328. package/dist/types/api-model/models/compliance-detail.d.ts +0 -30
  329. package/dist/types/api-model/models/confirm-delivery-window-options-response.d.ts +0 -20
  330. package/dist/types/api-model/models/confirm-packing-option-response.d.ts +0 -20
  331. package/dist/types/api-model/models/confirm-placement-option-response.d.ts +0 -20
  332. package/dist/types/api-model/models/confirm-shipment-content-update-preview-response.d.ts +0 -20
  333. package/dist/types/api-model/models/confirm-transportation-options-request.d.ts +0 -21
  334. package/dist/types/api-model/models/confirm-transportation-options-response.d.ts +0 -20
  335. package/dist/types/api-model/models/contact-information.d.ts +0 -28
  336. package/dist/types/api-model/models/content-update-preview.d.ts +0 -28
  337. package/dist/types/api-model/models/create-inbound-plan-request.d.ts +0 -31
  338. package/dist/types/api-model/models/create-inbound-plan-response.d.ts +0 -24
  339. package/dist/types/api-model/models/create-marketplace-item-labels-request.d.ts +0 -41
  340. package/dist/types/api-model/models/create-marketplace-item-labels-response.d.ts +0 -21
  341. package/dist/types/api-model/models/currency.d.ts +0 -24
  342. package/dist/types/api-model/models/custom-placement-input.d.ts +0 -25
  343. package/dist/types/api-model/models/dates.d.ts +0 -18
  344. package/dist/types/api-model/models/delivery-window-option.d.ts +0 -36
  345. package/dist/types/api-model/models/dimensions.d.ts +0 -30
  346. package/dist/types/api-model/models/document-download.d.ts +0 -28
  347. package/dist/types/api-model/models/error-list.d.ts +0 -20
  348. package/dist/types/api-model/models/freight-information.d.ts +0 -22
  349. package/dist/types/api-model/models/generate-delivery-window-options-response.d.ts +0 -20
  350. package/dist/types/api-model/models/generate-packing-options-response.d.ts +0 -20
  351. package/dist/types/api-model/models/generate-placement-options-request.d.ts +0 -21
  352. package/dist/types/api-model/models/generate-placement-options-response.d.ts +0 -20
  353. package/dist/types/api-model/models/generate-self-ship-appointment-slots-request.d.ts +0 -24
  354. package/dist/types/api-model/models/generate-self-ship-appointment-slots-response.d.ts +0 -20
  355. package/dist/types/api-model/models/generate-shipment-content-update-previews-request.d.ts +0 -26
  356. package/dist/types/api-model/models/generate-shipment-content-update-previews-response.d.ts +0 -20
  357. package/dist/types/api-model/models/generate-transportation-options-request.d.ts +0 -25
  358. package/dist/types/api-model/models/generate-transportation-options-response.d.ts +0 -20
  359. package/dist/types/api-model/models/get-delivery-challan-document-response.d.ts +0 -18
  360. package/dist/types/api-model/models/get-self-ship-appointment-slots-response.d.ts +0 -20
  361. package/dist/types/api-model/models/inbound-operation-status.d.ts +0 -31
  362. package/dist/types/api-model/models/inbound-plan-summary.d.ts +0 -42
  363. package/dist/types/api-model/models/inbound-plan.d.ts +0 -57
  364. package/dist/types/api-model/models/incentive.d.ts +0 -30
  365. package/dist/types/api-model/models/index.d.ts +0 -140
  366. package/dist/types/api-model/models/item-input.d.ts +0 -36
  367. package/dist/types/api-model/models/item-label-page-type.d.ts +0 -28
  368. package/dist/types/api-model/models/item.d.ts +0 -49
  369. package/dist/types/api-model/models/label-owner.d.ts +0 -20
  370. package/dist/types/api-model/models/label-print-type.d.ts +0 -19
  371. package/dist/types/api-model/models/list-delivery-window-options-response.d.ts +0 -23
  372. package/dist/types/api-model/models/list-inbound-plan-boxes-response.d.ts +0 -23
  373. package/dist/types/api-model/models/list-inbound-plan-items-response.d.ts +0 -23
  374. package/dist/types/api-model/models/list-inbound-plan-pallets-response.d.ts +0 -23
  375. package/dist/types/api-model/models/list-inbound-plans-response.d.ts +0 -23
  376. package/dist/types/api-model/models/list-item-compliance-details-response.d.ts +0 -21
  377. package/dist/types/api-model/models/list-packing-group-boxes-response.d.ts +0 -23
  378. package/dist/types/api-model/models/list-packing-group-items-response.d.ts +0 -23
  379. package/dist/types/api-model/models/list-packing-options-response.d.ts +0 -23
  380. package/dist/types/api-model/models/list-placement-options-response.d.ts +0 -23
  381. package/dist/types/api-model/models/list-prep-details-response.d.ts +0 -21
  382. package/dist/types/api-model/models/list-shipment-boxes-response.d.ts +0 -23
  383. package/dist/types/api-model/models/list-shipment-content-update-previews-response.d.ts +0 -23
  384. package/dist/types/api-model/models/list-shipment-items-response.d.ts +0 -23
  385. package/dist/types/api-model/models/list-shipment-pallets-response.d.ts +0 -23
  386. package/dist/types/api-model/models/list-transportation-options-response.d.ts +0 -23
  387. package/dist/types/api-model/models/ltl-tracking-detail-input.d.ts +0 -24
  388. package/dist/types/api-model/models/ltl-tracking-detail.d.ts +0 -24
  389. package/dist/types/api-model/models/model-error.d.ts +0 -28
  390. package/dist/types/api-model/models/msku-prep-detail-input.d.ts +0 -27
  391. package/dist/types/api-model/models/msku-prep-detail.d.ts +0 -32
  392. package/dist/types/api-model/models/msku-quantity.d.ts +0 -24
  393. package/dist/types/api-model/models/operation-problem.d.ts +0 -32
  394. package/dist/types/api-model/models/operation-status.d.ts +0 -20
  395. package/dist/types/api-model/models/owner-constraint.d.ts +0 -20
  396. package/dist/types/api-model/models/package-grouping-input.d.ts +0 -29
  397. package/dist/types/api-model/models/packing-configuration.d.ts +0 -28
  398. package/dist/types/api-model/models/packing-option-summary.d.ts +0 -24
  399. package/dist/types/api-model/models/packing-option.d.ts +0 -51
  400. package/dist/types/api-model/models/pagination.d.ts +0 -20
  401. package/dist/types/api-model/models/pallet-input.d.ts +0 -26
  402. package/dist/types/api-model/models/pallet.d.ts +0 -30
  403. package/dist/types/api-model/models/placement-option-summary.d.ts +0 -24
  404. package/dist/types/api-model/models/placement-option.d.ts +0 -41
  405. package/dist/types/api-model/models/prep-category.d.ts +0 -31
  406. package/dist/types/api-model/models/prep-instruction.d.ts +0 -26
  407. package/dist/types/api-model/models/prep-owner.d.ts +0 -20
  408. package/dist/types/api-model/models/prep-type.d.ts +0 -33
  409. package/dist/types/api-model/models/quote.d.ts +0 -26
  410. package/dist/types/api-model/models/reason-comment.d.ts +0 -26
  411. package/dist/types/api-model/models/region.d.ts +0 -28
  412. package/dist/types/api-model/models/requested-updates.d.ts +0 -26
  413. package/dist/types/api-model/models/schedule-self-ship-appointment-request.d.ts +0 -18
  414. package/dist/types/api-model/models/schedule-self-ship-appointment-response.d.ts +0 -18
  415. package/dist/types/api-model/models/selected-delivery-window.d.ts +0 -36
  416. package/dist/types/api-model/models/self-ship-appointment-details.d.ts +0 -26
  417. package/dist/types/api-model/models/self-ship-appointment-slots-availability.d.ts +0 -25
  418. package/dist/types/api-model/models/set-packing-information-request.d.ts +0 -21
  419. package/dist/types/api-model/models/set-packing-information-response.d.ts +0 -20
  420. package/dist/types/api-model/models/set-prep-details-request.d.ts +0 -25
  421. package/dist/types/api-model/models/set-prep-details-response.d.ts +0 -20
  422. package/dist/types/api-model/models/shipment-destination.d.ts +0 -26
  423. package/dist/types/api-model/models/shipment-source.d.ts +0 -22
  424. package/dist/types/api-model/models/shipment-summary.d.ts +0 -24
  425. package/dist/types/api-model/models/shipment-transportation-configuration.d.ts +0 -31
  426. package/dist/types/api-model/models/shipment.d.ts +0 -63
  427. package/dist/types/api-model/models/shipping-configuration.d.ts +0 -24
  428. package/dist/types/api-model/models/shipping-requirements.d.ts +0 -24
  429. package/dist/types/api-model/models/spd-tracking-detail-input.d.ts +0 -21
  430. package/dist/types/api-model/models/spd-tracking-detail.d.ts +0 -21
  431. package/dist/types/api-model/models/spd-tracking-item-input.d.ts +0 -24
  432. package/dist/types/api-model/models/spd-tracking-item.d.ts +0 -28
  433. package/dist/types/api-model/models/stackability.d.ts +0 -19
  434. package/dist/types/api-model/models/tax-details.d.ts +0 -27
  435. package/dist/types/api-model/models/tax-rate.d.ts +0 -28
  436. package/dist/types/api-model/models/tracking-details-input.d.ts +0 -20
  437. package/dist/types/api-model/models/tracking-details.d.ts +0 -20
  438. package/dist/types/api-model/models/transportation-option.d.ts +0 -42
  439. package/dist/types/api-model/models/transportation-selection.d.ts +0 -26
  440. package/dist/types/api-model/models/unit-of-measurement.d.ts +0 -19
  441. package/dist/types/api-model/models/unit-of-weight.d.ts +0 -19
  442. package/dist/types/api-model/models/update-inbound-plan-name-request.d.ts +0 -20
  443. package/dist/types/api-model/models/update-item-compliance-details-request.d.ts +0 -22
  444. package/dist/types/api-model/models/update-item-compliance-details-response.d.ts +0 -20
  445. package/dist/types/api-model/models/update-shipment-name-request.d.ts +0 -20
  446. package/dist/types/api-model/models/update-shipment-source-address-request.d.ts +0 -18
  447. package/dist/types/api-model/models/update-shipment-source-address-response.d.ts +0 -20
  448. package/dist/types/api-model/models/update-shipment-tracking-details-request.d.ts +0 -18
  449. package/dist/types/api-model/models/update-shipment-tracking-details-response.d.ts +0 -20
  450. package/dist/types/api-model/models/weight-range.d.ts +0 -26
  451. package/dist/types/api-model/models/weight.d.ts +0 -22
  452. package/dist/types/api-model/models/window-input.d.ts +0 -20
  453. package/dist/types/api-model/models/window.d.ts +0 -28
  454. package/dist/types/client.d.ts +0 -6
  455. package/dist/types/index.d.ts +0 -3
package/dist/index.cjs ADDED
@@ -0,0 +1,3287 @@
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
+ AllOwnersConstraint: () => AllOwnersConstraint,
34
+ BoxContentInformationSource: () => BoxContentInformationSource,
35
+ FulfillmentInboundApi: () => FulfillmentInboundApi,
36
+ FulfillmentInboundApiAxiosParamCreator: () => FulfillmentInboundApiAxiosParamCreator,
37
+ FulfillmentInboundApiClient: () => FulfillmentInboundApiClient,
38
+ FulfillmentInboundApiFactory: () => FulfillmentInboundApiFactory,
39
+ FulfillmentInboundApiFp: () => FulfillmentInboundApiFp,
40
+ ItemLabelPageType: () => ItemLabelPageType,
41
+ LabelOwner: () => LabelOwner,
42
+ LabelPrintType: () => LabelPrintType,
43
+ ListInboundPlansSortByEnum: () => ListInboundPlansSortByEnum,
44
+ ListInboundPlansSortOrderEnum: () => ListInboundPlansSortOrderEnum,
45
+ ListInboundPlansStatusEnum: () => ListInboundPlansStatusEnum,
46
+ OperationStatus: () => OperationStatus,
47
+ OwnerConstraint: () => OwnerConstraint,
48
+ PrepCategory: () => PrepCategory,
49
+ PrepOwner: () => PrepOwner,
50
+ PrepType: () => PrepType,
51
+ ReasonComment: () => ReasonComment,
52
+ Stackability: () => Stackability,
53
+ UnitOfMeasurement: () => UnitOfMeasurement,
54
+ UnitOfWeight: () => UnitOfWeight,
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-inbound-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-inbound-api.ts
144
+ var FulfillmentInboundApiAxiosParamCreator = function(configuration) {
145
+ return {
146
+ /**
147
+ * Cancels an Inbound Plan. Charges may apply if the cancellation is performed outside of a void window. The window for Amazon Partnered Carriers is 24 hours for Small Parcel Delivery (SPD) and one hour for Less-Than-Truckload (LTL) carrier shipments.
148
+ * @param {string} inboundPlanId Identifier of an inbound plan.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ cancelInboundPlan: async (inboundPlanId, options = {}) => {
153
+ assertParamExists("cancelInboundPlan", "inboundPlanId", inboundPlanId);
154
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/cancellation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
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
+ * Cancels a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
174
+ * @param {string} inboundPlanId Identifier of an inbound plan.
175
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
176
+ * @param {CancelSelfShipAppointmentRequest} body The body of the request to `cancelSelfShipAppointment`.
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ cancelSelfShipAppointment: async (inboundPlanId, shipmentId, body, options = {}) => {
181
+ assertParamExists("cancelSelfShipAppointment", "inboundPlanId", inboundPlanId);
182
+ assertParamExists("cancelSelfShipAppointment", "shipmentId", shipmentId);
183
+ assertParamExists("cancelSelfShipAppointment", "body", body);
184
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/selfShipAppointmentCancellation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
185
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
186
+ let baseOptions;
187
+ if (configuration) {
188
+ baseOptions = configuration.baseOptions;
189
+ }
190
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
191
+ const localVarHeaderParameter = {};
192
+ const localVarQueryParameter = {};
193
+ localVarHeaderParameter["Content-Type"] = "application/json";
194
+ localVarHeaderParameter["Accept"] = "application/json";
195
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
196
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
197
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
198
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
199
+ return {
200
+ url: toPathString(localVarUrlObj),
201
+ options: localVarRequestOptions
202
+ };
203
+ },
204
+ /**
205
+ * Confirms the delivery window option for chosen shipment within an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new delivery window options cannot be generated, but the chosen delivery window option can be updated before shipment closure. The window is used to provide the expected time when a shipment will arrive at the warehouse. All transportation options which have the program `CONFIRMED_DELIVERY_WINDOW` require a delivery window to be confirmed prior to transportation option confirmation.
206
+ * @param {string} inboundPlanId Identifier of an inbound plan.
207
+ * @param {string} shipmentId The shipment to confirm the delivery window option for.
208
+ * @param {string} deliveryWindowOptionId The id of the delivery window option to be confirmed.
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ confirmDeliveryWindowOptions: async (inboundPlanId, shipmentId, deliveryWindowOptionId, options = {}) => {
213
+ assertParamExists("confirmDeliveryWindowOptions", "inboundPlanId", inboundPlanId);
214
+ assertParamExists("confirmDeliveryWindowOptions", "shipmentId", shipmentId);
215
+ assertParamExists("confirmDeliveryWindowOptions", "deliveryWindowOptionId", deliveryWindowOptionId);
216
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/deliveryWindowOptions/{deliveryWindowOptionId}/confirmation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId))).replace("{deliveryWindowOptionId}", encodeURIComponent(String(deliveryWindowOptionId)));
217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
218
+ let baseOptions;
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ }
222
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
223
+ const localVarHeaderParameter = {};
224
+ const localVarQueryParameter = {};
225
+ localVarHeaderParameter["Accept"] = "application/json";
226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
229
+ return {
230
+ url: toPathString(localVarUrlObj),
231
+ options: localVarRequestOptions
232
+ };
233
+ },
234
+ /**
235
+ * Confirms the packing option for an inbound plan.
236
+ * @param {string} inboundPlanId Identifier of an inbound plan.
237
+ * @param {string} packingOptionId Identifier of a packing option.
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ confirmPackingOption: async (inboundPlanId, packingOptionId, options = {}) => {
242
+ assertParamExists("confirmPackingOption", "inboundPlanId", inboundPlanId);
243
+ assertParamExists("confirmPackingOption", "packingOptionId", packingOptionId);
244
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingOptions/{packingOptionId}/confirmation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{packingOptionId}", encodeURIComponent(String(packingOptionId)));
245
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
246
+ let baseOptions;
247
+ if (configuration) {
248
+ baseOptions = configuration.baseOptions;
249
+ }
250
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
251
+ const localVarHeaderParameter = {};
252
+ const localVarQueryParameter = {};
253
+ localVarHeaderParameter["Accept"] = "application/json";
254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
257
+ return {
258
+ url: toPathString(localVarUrlObj),
259
+ options: localVarRequestOptions
260
+ };
261
+ },
262
+ /**
263
+ * Confirms the placement option for an inbound plan. Once confirmed, it cannot be changed for the Inbound Plan.
264
+ * @param {string} inboundPlanId Identifier of an inbound plan.
265
+ * @param {string} placementOptionId The identifier of a placement option. A placement option represents the shipment splits and destinations of SKUs.
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ confirmPlacementOption: async (inboundPlanId, placementOptionId, options = {}) => {
270
+ assertParamExists("confirmPlacementOption", "inboundPlanId", inboundPlanId);
271
+ assertParamExists("confirmPlacementOption", "placementOptionId", placementOptionId);
272
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/placementOptions/{placementOptionId}/confirmation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{placementOptionId}", encodeURIComponent(String(placementOptionId)));
273
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
274
+ let baseOptions;
275
+ if (configuration) {
276
+ baseOptions = configuration.baseOptions;
277
+ }
278
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
279
+ const localVarHeaderParameter = {};
280
+ const localVarQueryParameter = {};
281
+ localVarHeaderParameter["Accept"] = "application/json";
282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
285
+ return {
286
+ url: toPathString(localVarUrlObj),
287
+ options: localVarRequestOptions
288
+ };
289
+ },
290
+ /**
291
+ * Confirm a shipment content update preview and accept the changes in transportation cost.
292
+ * @param {string} inboundPlanId Identifier of an inbound plan.
293
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
294
+ * @param {string} contentUpdatePreviewId Identifier of a content update preview.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ confirmShipmentContentUpdatePreview: async (inboundPlanId, shipmentId, contentUpdatePreviewId, options = {}) => {
299
+ assertParamExists("confirmShipmentContentUpdatePreview", "inboundPlanId", inboundPlanId);
300
+ assertParamExists("confirmShipmentContentUpdatePreview", "shipmentId", shipmentId);
301
+ assertParamExists("confirmShipmentContentUpdatePreview", "contentUpdatePreviewId", contentUpdatePreviewId);
302
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/contentUpdatePreviews/{contentUpdatePreviewId}/confirmation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId))).replace("{contentUpdatePreviewId}", encodeURIComponent(String(contentUpdatePreviewId)));
303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
304
+ let baseOptions;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ }
308
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
309
+ const localVarHeaderParameter = {};
310
+ const localVarQueryParameter = {};
311
+ localVarHeaderParameter["Accept"] = "application/json";
312
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
315
+ return {
316
+ url: toPathString(localVarUrlObj),
317
+ options: localVarRequestOptions
318
+ };
319
+ },
320
+ /**
321
+ * Confirms all the transportation options for an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new transportation options can not be generated or confirmed for the Inbound Plan.
322
+ * @param {string} inboundPlanId Identifier of an inbound plan.
323
+ * @param {ConfirmTransportationOptionsRequest} body The body of the request to `confirmTransportationOptions`.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ confirmTransportationOptions: async (inboundPlanId, body, options = {}) => {
328
+ assertParamExists("confirmTransportationOptions", "inboundPlanId", inboundPlanId);
329
+ assertParamExists("confirmTransportationOptions", "body", body);
330
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/transportationOptions/confirmation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
332
+ let baseOptions;
333
+ if (configuration) {
334
+ baseOptions = configuration.baseOptions;
335
+ }
336
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
337
+ const localVarHeaderParameter = {};
338
+ const localVarQueryParameter = {};
339
+ localVarHeaderParameter["Content-Type"] = "application/json";
340
+ localVarHeaderParameter["Accept"] = "application/json";
341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
343
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
344
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
345
+ return {
346
+ url: toPathString(localVarUrlObj),
347
+ options: localVarRequestOptions
348
+ };
349
+ },
350
+ /**
351
+ * Creates an inbound plan. An inbound plan contains all the necessary information to send shipments into Amazon\'s fufillment network.
352
+ * @param {CreateInboundPlanRequest} body The body of the request to `createInboundPlan`.
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ createInboundPlan: async (body, options = {}) => {
357
+ assertParamExists("createInboundPlan", "body", body);
358
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans`;
359
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
360
+ let baseOptions;
361
+ if (configuration) {
362
+ baseOptions = configuration.baseOptions;
363
+ }
364
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
365
+ const localVarHeaderParameter = {};
366
+ const localVarQueryParameter = {};
367
+ localVarHeaderParameter["Content-Type"] = "application/json";
368
+ localVarHeaderParameter["Accept"] = "application/json";
369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
372
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
373
+ return {
374
+ url: toPathString(localVarUrlObj),
375
+ options: localVarRequestOptions
376
+ };
377
+ },
378
+ /**
379
+ * For a given marketplace - creates labels for a list of MSKUs.
380
+ * @param {CreateMarketplaceItemLabelsRequest} body The body of the request to `createMarketplaceItemLabels`.
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ createMarketplaceItemLabels: async (body, options = {}) => {
385
+ assertParamExists("createMarketplaceItemLabels", "body", body);
386
+ const localVarPath = `/inbound/fba/2024-03-20/items/labels`;
387
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
388
+ let baseOptions;
389
+ if (configuration) {
390
+ baseOptions = configuration.baseOptions;
391
+ }
392
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
393
+ const localVarHeaderParameter = {};
394
+ const localVarQueryParameter = {};
395
+ localVarHeaderParameter["Content-Type"] = "application/json";
396
+ localVarHeaderParameter["Accept"] = "application/json";
397
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
398
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
399
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
400
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
401
+ return {
402
+ url: toPathString(localVarUrlObj),
403
+ options: localVarRequestOptions
404
+ };
405
+ },
406
+ /**
407
+ * Generates available delivery window options for a given shipment.
408
+ * @param {string} inboundPlanId Identifier of an inbound plan.
409
+ * @param {string} shipmentId The shipment to generate delivery window options for.
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ generateDeliveryWindowOptions: async (inboundPlanId, shipmentId, options = {}) => {
414
+ assertParamExists("generateDeliveryWindowOptions", "inboundPlanId", inboundPlanId);
415
+ assertParamExists("generateDeliveryWindowOptions", "shipmentId", shipmentId);
416
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/deliveryWindowOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
417
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
418
+ let baseOptions;
419
+ if (configuration) {
420
+ baseOptions = configuration.baseOptions;
421
+ }
422
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
423
+ const localVarHeaderParameter = {};
424
+ const localVarQueryParameter = {};
425
+ localVarHeaderParameter["Accept"] = "application/json";
426
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
429
+ return {
430
+ url: toPathString(localVarUrlObj),
431
+ options: localVarRequestOptions
432
+ };
433
+ },
434
+ /**
435
+ * Generates available packing options for the inbound plan.
436
+ * @param {string} inboundPlanId Identifier of an inbound plan.
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ generatePackingOptions: async (inboundPlanId, options = {}) => {
441
+ assertParamExists("generatePackingOptions", "inboundPlanId", inboundPlanId);
442
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
443
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
444
+ let baseOptions;
445
+ if (configuration) {
446
+ baseOptions = configuration.baseOptions;
447
+ }
448
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
449
+ const localVarHeaderParameter = {};
450
+ const localVarQueryParameter = {};
451
+ localVarHeaderParameter["Accept"] = "application/json";
452
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
453
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
454
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
455
+ return {
456
+ url: toPathString(localVarUrlObj),
457
+ options: localVarRequestOptions
458
+ };
459
+ },
460
+ /**
461
+ * Generates placement options for the inbound plan.
462
+ * @param {string} inboundPlanId Identifier of an inbound plan.
463
+ * @param {GeneratePlacementOptionsRequest} body The body of the request to `generatePlacementOptions`.
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ generatePlacementOptions: async (inboundPlanId, body, options = {}) => {
468
+ assertParamExists("generatePlacementOptions", "inboundPlanId", inboundPlanId);
469
+ assertParamExists("generatePlacementOptions", "body", body);
470
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/placementOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
472
+ let baseOptions;
473
+ if (configuration) {
474
+ baseOptions = configuration.baseOptions;
475
+ }
476
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
477
+ const localVarHeaderParameter = {};
478
+ const localVarQueryParameter = {};
479
+ localVarHeaderParameter["Content-Type"] = "application/json";
480
+ localVarHeaderParameter["Accept"] = "application/json";
481
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
482
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
484
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
485
+ return {
486
+ url: toPathString(localVarUrlObj),
487
+ options: localVarRequestOptions
488
+ };
489
+ },
490
+ /**
491
+ * Initiates the process of generating the appointment slots list. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
492
+ * @param {string} inboundPlanId Identifier of an inbound plan.
493
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
494
+ * @param {GenerateSelfShipAppointmentSlotsRequest} body The body of the request to `generateSelfShipAppointmentSlots`.
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ generateSelfShipAppointmentSlots: async (inboundPlanId, shipmentId, body, options = {}) => {
499
+ assertParamExists("generateSelfShipAppointmentSlots", "inboundPlanId", inboundPlanId);
500
+ assertParamExists("generateSelfShipAppointmentSlots", "shipmentId", shipmentId);
501
+ assertParamExists("generateSelfShipAppointmentSlots", "body", body);
502
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/selfShipAppointmentSlots`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
503
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
504
+ let baseOptions;
505
+ if (configuration) {
506
+ baseOptions = configuration.baseOptions;
507
+ }
508
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
509
+ const localVarHeaderParameter = {};
510
+ const localVarQueryParameter = {};
511
+ localVarHeaderParameter["Content-Type"] = "application/json";
512
+ localVarHeaderParameter["Accept"] = "application/json";
513
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
514
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
515
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
516
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
517
+ return {
518
+ url: toPathString(localVarUrlObj),
519
+ options: localVarRequestOptions
520
+ };
521
+ },
522
+ /**
523
+ * Generate a shipment content update preview given a set of intended boxes and/or items for a shipment with a confirmed carrier. The shipment content update preview will be viewable with the updated costs and contents prior to confirmation.
524
+ * @param {string} inboundPlanId Identifier of an inbound plan.
525
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
526
+ * @param {GenerateShipmentContentUpdatePreviewsRequest} body The body of the request to `generateShipmentContentUpdatePreviews`.
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ generateShipmentContentUpdatePreviews: async (inboundPlanId, shipmentId, body, options = {}) => {
531
+ assertParamExists("generateShipmentContentUpdatePreviews", "inboundPlanId", inboundPlanId);
532
+ assertParamExists("generateShipmentContentUpdatePreviews", "shipmentId", shipmentId);
533
+ assertParamExists("generateShipmentContentUpdatePreviews", "body", body);
534
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/contentUpdatePreviews`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
535
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
536
+ let baseOptions;
537
+ if (configuration) {
538
+ baseOptions = configuration.baseOptions;
539
+ }
540
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
541
+ const localVarHeaderParameter = {};
542
+ const localVarQueryParameter = {};
543
+ localVarHeaderParameter["Content-Type"] = "application/json";
544
+ localVarHeaderParameter["Accept"] = "application/json";
545
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
546
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
547
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
548
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
549
+ return {
550
+ url: toPathString(localVarUrlObj),
551
+ options: localVarRequestOptions
552
+ };
553
+ },
554
+ /**
555
+ * Generates available transportation options for a given placement option.
556
+ * @param {string} inboundPlanId Identifier of an inbound plan.
557
+ * @param {GenerateTransportationOptionsRequest} body The body of the request to `generateTransportationOptions`.
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ generateTransportationOptions: async (inboundPlanId, body, options = {}) => {
562
+ assertParamExists("generateTransportationOptions", "inboundPlanId", inboundPlanId);
563
+ assertParamExists("generateTransportationOptions", "body", body);
564
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/transportationOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
565
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
566
+ let baseOptions;
567
+ if (configuration) {
568
+ baseOptions = configuration.baseOptions;
569
+ }
570
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
571
+ const localVarHeaderParameter = {};
572
+ const localVarQueryParameter = {};
573
+ localVarHeaderParameter["Content-Type"] = "application/json";
574
+ localVarHeaderParameter["Accept"] = "application/json";
575
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
576
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
577
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
578
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
579
+ return {
580
+ url: toPathString(localVarUrlObj),
581
+ options: localVarRequestOptions
582
+ };
583
+ },
584
+ /**
585
+ * Provide delivery challan document for PCP transportation in IN marketplace.
586
+ * @param {string} inboundPlanId Identifier of an inbound plan.
587
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ getDeliveryChallanDocument: async (inboundPlanId, shipmentId, options = {}) => {
592
+ assertParamExists("getDeliveryChallanDocument", "inboundPlanId", inboundPlanId);
593
+ assertParamExists("getDeliveryChallanDocument", "shipmentId", shipmentId);
594
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/deliveryChallanDocument`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
595
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
596
+ let baseOptions;
597
+ if (configuration) {
598
+ baseOptions = configuration.baseOptions;
599
+ }
600
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
601
+ const localVarHeaderParameter = {};
602
+ const localVarQueryParameter = {};
603
+ localVarHeaderParameter["Accept"] = "application/json";
604
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
605
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
606
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
607
+ return {
608
+ url: toPathString(localVarUrlObj),
609
+ options: localVarRequestOptions
610
+ };
611
+ },
612
+ /**
613
+ * Gets the status of the processing of an asynchronous API call.
614
+ * @param {string} operationId Identifier of an asynchronous operation.
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ getInboundOperationStatus: async (operationId, options = {}) => {
619
+ assertParamExists("getInboundOperationStatus", "operationId", operationId);
620
+ const localVarPath = `/inbound/fba/2024-03-20/operations/{operationId}`.replace("{operationId}", encodeURIComponent(String(operationId)));
621
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
622
+ let baseOptions;
623
+ if (configuration) {
624
+ baseOptions = configuration.baseOptions;
625
+ }
626
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
627
+ const localVarHeaderParameter = {};
628
+ const localVarQueryParameter = {};
629
+ localVarHeaderParameter["Accept"] = "application/json";
630
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
631
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
632
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
633
+ return {
634
+ url: toPathString(localVarUrlObj),
635
+ options: localVarRequestOptions
636
+ };
637
+ },
638
+ /**
639
+ * Fetches the top level information about an inbound plan.
640
+ * @param {string} inboundPlanId Identifier of an inbound plan.
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ getInboundPlan: async (inboundPlanId, options = {}) => {
645
+ assertParamExists("getInboundPlan", "inboundPlanId", inboundPlanId);
646
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
647
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
648
+ let baseOptions;
649
+ if (configuration) {
650
+ baseOptions = configuration.baseOptions;
651
+ }
652
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
653
+ const localVarHeaderParameter = {};
654
+ const localVarQueryParameter = {};
655
+ localVarHeaderParameter["Accept"] = "application/json";
656
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
657
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
658
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
659
+ return {
660
+ url: toPathString(localVarUrlObj),
661
+ options: localVarRequestOptions
662
+ };
663
+ },
664
+ /**
665
+ * Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
666
+ * @param {string} inboundPlanId Identifier of an inbound plan.
667
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
668
+ * @param {number} [pageSize] The number of self ship appointment slots to return in the response matching the given query.
669
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ getSelfShipAppointmentSlots: async (inboundPlanId, shipmentId, pageSize, paginationToken, options = {}) => {
674
+ assertParamExists("getSelfShipAppointmentSlots", "inboundPlanId", inboundPlanId);
675
+ assertParamExists("getSelfShipAppointmentSlots", "shipmentId", shipmentId);
676
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/selfShipAppointmentSlots`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
677
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
678
+ let baseOptions;
679
+ if (configuration) {
680
+ baseOptions = configuration.baseOptions;
681
+ }
682
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
683
+ const localVarHeaderParameter = {};
684
+ const localVarQueryParameter = {};
685
+ if (pageSize !== void 0) {
686
+ localVarQueryParameter["pageSize"] = pageSize;
687
+ }
688
+ if (paginationToken !== void 0) {
689
+ localVarQueryParameter["paginationToken"] = paginationToken;
690
+ }
691
+ localVarHeaderParameter["Accept"] = "application/json";
692
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
693
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
694
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
695
+ return {
696
+ url: toPathString(localVarUrlObj),
697
+ options: localVarRequestOptions
698
+ };
699
+ },
700
+ /**
701
+ * Provides the full details for a specific shipment within an inbound plan. The `transportationOptionId` inside `acceptedTransportationSelection` can be used to retrieve the transportation details for the shipment.
702
+ * @param {string} inboundPlanId Identifier of an inbound plan.
703
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ getShipment: async (inboundPlanId, shipmentId, options = {}) => {
708
+ assertParamExists("getShipment", "inboundPlanId", inboundPlanId);
709
+ assertParamExists("getShipment", "shipmentId", shipmentId);
710
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
711
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
712
+ let baseOptions;
713
+ if (configuration) {
714
+ baseOptions = configuration.baseOptions;
715
+ }
716
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
717
+ const localVarHeaderParameter = {};
718
+ const localVarQueryParameter = {};
719
+ localVarHeaderParameter["Accept"] = "application/json";
720
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
722
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
723
+ return {
724
+ url: toPathString(localVarUrlObj),
725
+ options: localVarRequestOptions
726
+ };
727
+ },
728
+ /**
729
+ * Retrieve a shipment content update preview which provides a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
730
+ * @param {string} inboundPlanId Identifier of an inbound plan.
731
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
732
+ * @param {string} contentUpdatePreviewId Identifier of a content update preview.
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ */
736
+ getShipmentContentUpdatePreview: async (inboundPlanId, shipmentId, contentUpdatePreviewId, options = {}) => {
737
+ assertParamExists("getShipmentContentUpdatePreview", "inboundPlanId", inboundPlanId);
738
+ assertParamExists("getShipmentContentUpdatePreview", "shipmentId", shipmentId);
739
+ assertParamExists("getShipmentContentUpdatePreview", "contentUpdatePreviewId", contentUpdatePreviewId);
740
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/contentUpdatePreviews/{contentUpdatePreviewId}`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId))).replace("{contentUpdatePreviewId}", encodeURIComponent(String(contentUpdatePreviewId)));
741
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
742
+ let baseOptions;
743
+ if (configuration) {
744
+ baseOptions = configuration.baseOptions;
745
+ }
746
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
747
+ const localVarHeaderParameter = {};
748
+ const localVarQueryParameter = {};
749
+ localVarHeaderParameter["Accept"] = "application/json";
750
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
751
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
752
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
753
+ return {
754
+ url: toPathString(localVarUrlObj),
755
+ options: localVarRequestOptions
756
+ };
757
+ },
758
+ /**
759
+ * Retrieves all delivery window options for a shipment. Delivery window options must first be generated by the `generateDeliveryWindowOptions` operation before becoming available.
760
+ * @param {string} inboundPlanId Identifier of an inbound plan.
761
+ * @param {string} shipmentId The shipment to get delivery window options for.
762
+ * @param {number} [pageSize] The number of delivery window options to return in the response matching the given query.
763
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
764
+ * @param {*} [options] Override http request option.
765
+ * @throws {RequiredError}
766
+ */
767
+ listDeliveryWindowOptions: async (inboundPlanId, shipmentId, pageSize, paginationToken, options = {}) => {
768
+ assertParamExists("listDeliveryWindowOptions", "inboundPlanId", inboundPlanId);
769
+ assertParamExists("listDeliveryWindowOptions", "shipmentId", shipmentId);
770
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/deliveryWindowOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
772
+ let baseOptions;
773
+ if (configuration) {
774
+ baseOptions = configuration.baseOptions;
775
+ }
776
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
777
+ const localVarHeaderParameter = {};
778
+ const localVarQueryParameter = {};
779
+ if (pageSize !== void 0) {
780
+ localVarQueryParameter["pageSize"] = pageSize;
781
+ }
782
+ if (paginationToken !== void 0) {
783
+ localVarQueryParameter["paginationToken"] = paginationToken;
784
+ }
785
+ localVarHeaderParameter["Accept"] = "application/json";
786
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
787
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
788
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
789
+ return {
790
+ url: toPathString(localVarUrlObj),
791
+ options: localVarRequestOptions
792
+ };
793
+ },
794
+ /**
795
+ * Provides a paginated list of box packages in an inbound plan.
796
+ * @param {string} inboundPlanId Identifier of an inbound plan.
797
+ * @param {number} [pageSize] The number of boxes to return in the response matching the given query.
798
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ listInboundPlanBoxes: async (inboundPlanId, pageSize, paginationToken, options = {}) => {
803
+ assertParamExists("listInboundPlanBoxes", "inboundPlanId", inboundPlanId);
804
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/boxes`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
805
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
806
+ let baseOptions;
807
+ if (configuration) {
808
+ baseOptions = configuration.baseOptions;
809
+ }
810
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
811
+ const localVarHeaderParameter = {};
812
+ const localVarQueryParameter = {};
813
+ if (pageSize !== void 0) {
814
+ localVarQueryParameter["pageSize"] = pageSize;
815
+ }
816
+ if (paginationToken !== void 0) {
817
+ localVarQueryParameter["paginationToken"] = paginationToken;
818
+ }
819
+ localVarHeaderParameter["Accept"] = "application/json";
820
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
822
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
823
+ return {
824
+ url: toPathString(localVarUrlObj),
825
+ options: localVarRequestOptions
826
+ };
827
+ },
828
+ /**
829
+ * Provides a paginated list of item packages in an inbound plan.
830
+ * @param {string} inboundPlanId Identifier of an inbound plan.
831
+ * @param {number} [pageSize] The number of items to return in the response matching the given query.
832
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ */
836
+ listInboundPlanItems: async (inboundPlanId, pageSize, paginationToken, options = {}) => {
837
+ assertParamExists("listInboundPlanItems", "inboundPlanId", inboundPlanId);
838
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/items`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
839
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
840
+ let baseOptions;
841
+ if (configuration) {
842
+ baseOptions = configuration.baseOptions;
843
+ }
844
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
845
+ const localVarHeaderParameter = {};
846
+ const localVarQueryParameter = {};
847
+ if (pageSize !== void 0) {
848
+ localVarQueryParameter["pageSize"] = pageSize;
849
+ }
850
+ if (paginationToken !== void 0) {
851
+ localVarQueryParameter["paginationToken"] = paginationToken;
852
+ }
853
+ localVarHeaderParameter["Accept"] = "application/json";
854
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
855
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
856
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
857
+ return {
858
+ url: toPathString(localVarUrlObj),
859
+ options: localVarRequestOptions
860
+ };
861
+ },
862
+ /**
863
+ * Provides a paginated list of pallet packages in an inbound plan. An inbound plan will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
864
+ * @param {string} inboundPlanId Identifier of an inbound plan.
865
+ * @param {number} [pageSize] The number of pallets to return in the response matching the given query.
866
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ listInboundPlanPallets: async (inboundPlanId, pageSize, paginationToken, options = {}) => {
871
+ assertParamExists("listInboundPlanPallets", "inboundPlanId", inboundPlanId);
872
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/pallets`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
874
+ let baseOptions;
875
+ if (configuration) {
876
+ baseOptions = configuration.baseOptions;
877
+ }
878
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
879
+ const localVarHeaderParameter = {};
880
+ const localVarQueryParameter = {};
881
+ if (pageSize !== void 0) {
882
+ localVarQueryParameter["pageSize"] = pageSize;
883
+ }
884
+ if (paginationToken !== void 0) {
885
+ localVarQueryParameter["paginationToken"] = paginationToken;
886
+ }
887
+ localVarHeaderParameter["Accept"] = "application/json";
888
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
889
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
890
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
891
+ return {
892
+ url: toPathString(localVarUrlObj),
893
+ options: localVarRequestOptions
894
+ };
895
+ },
896
+ /**
897
+ * Provides a list of inbound plans with minimal information.
898
+ * @param {number} [pageSize] The number of inbound plans to return in the response matching the given query.
899
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the `pagination` returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
900
+ * @param {ListInboundPlansStatusEnum} [status] The status of an inbound plan.
901
+ * @param {ListInboundPlansSortByEnum} [sortBy] Sort by field.
902
+ * @param {ListInboundPlansSortOrderEnum} [sortOrder] The sort order.
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ listInboundPlans: async (pageSize, paginationToken, status, sortBy, sortOrder, options = {}) => {
907
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans`;
908
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
909
+ let baseOptions;
910
+ if (configuration) {
911
+ baseOptions = configuration.baseOptions;
912
+ }
913
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
914
+ const localVarHeaderParameter = {};
915
+ const localVarQueryParameter = {};
916
+ if (pageSize !== void 0) {
917
+ localVarQueryParameter["pageSize"] = pageSize;
918
+ }
919
+ if (paginationToken !== void 0) {
920
+ localVarQueryParameter["paginationToken"] = paginationToken;
921
+ }
922
+ if (status !== void 0) {
923
+ localVarQueryParameter["status"] = status;
924
+ }
925
+ if (sortBy !== void 0) {
926
+ localVarQueryParameter["sortBy"] = sortBy;
927
+ }
928
+ if (sortOrder !== void 0) {
929
+ localVarQueryParameter["sortOrder"] = sortOrder;
930
+ }
931
+ localVarHeaderParameter["Accept"] = "application/json";
932
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
933
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
934
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
935
+ return {
936
+ url: toPathString(localVarUrlObj),
937
+ options: localVarRequestOptions
938
+ };
939
+ },
940
+ /**
941
+ * List the inbound compliance details for MSKUs in a given marketplace. **Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). The following characters must be double percent encoded: - `%` - `+` - `,` **Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
942
+ * @param {Array<string>} mskus A list of merchant SKUs, a merchant-supplied identifier of a specific SKU.
943
+ * @param {string} marketplaceId The Marketplace ID. For a list of possible values, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ listItemComplianceDetails: async (mskus, marketplaceId, options = {}) => {
948
+ assertParamExists("listItemComplianceDetails", "mskus", mskus);
949
+ assertParamExists("listItemComplianceDetails", "marketplaceId", marketplaceId);
950
+ const localVarPath = `/inbound/fba/2024-03-20/items/compliance`;
951
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
952
+ let baseOptions;
953
+ if (configuration) {
954
+ baseOptions = configuration.baseOptions;
955
+ }
956
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
957
+ const localVarHeaderParameter = {};
958
+ const localVarQueryParameter = {};
959
+ if (mskus) {
960
+ localVarQueryParameter["mskus"] = mskus;
961
+ }
962
+ if (marketplaceId !== void 0) {
963
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
964
+ }
965
+ localVarHeaderParameter["Accept"] = "application/json";
966
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
967
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
968
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
969
+ return {
970
+ url: toPathString(localVarUrlObj),
971
+ options: localVarRequestOptions
972
+ };
973
+ },
974
+ /**
975
+ * Retrieves a page of boxes from a given packing group. These boxes were previously provided through the `setPackingInformation` operation. This API is used for workflows where boxes are packed before Amazon determines shipment splits.
976
+ * @param {string} inboundPlanId Identifier of an inbound plan.
977
+ * @param {string} packingGroupId Identifier of a packing group.
978
+ * @param {number} [pageSize] The number of packing group boxes to return in the response matching the given query.
979
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
980
+ * @param {*} [options] Override http request option.
981
+ * @throws {RequiredError}
982
+ */
983
+ listPackingGroupBoxes: async (inboundPlanId, packingGroupId, pageSize, paginationToken, options = {}) => {
984
+ assertParamExists("listPackingGroupBoxes", "inboundPlanId", inboundPlanId);
985
+ assertParamExists("listPackingGroupBoxes", "packingGroupId", packingGroupId);
986
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingGroups/{packingGroupId}/boxes`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{packingGroupId}", encodeURIComponent(String(packingGroupId)));
987
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
988
+ let baseOptions;
989
+ if (configuration) {
990
+ baseOptions = configuration.baseOptions;
991
+ }
992
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
993
+ const localVarHeaderParameter = {};
994
+ const localVarQueryParameter = {};
995
+ if (pageSize !== void 0) {
996
+ localVarQueryParameter["pageSize"] = pageSize;
997
+ }
998
+ if (paginationToken !== void 0) {
999
+ localVarQueryParameter["paginationToken"] = paginationToken;
1000
+ }
1001
+ localVarHeaderParameter["Accept"] = "application/json";
1002
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1003
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1004
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1005
+ return {
1006
+ url: toPathString(localVarUrlObj),
1007
+ options: localVarRequestOptions
1008
+ };
1009
+ },
1010
+ /**
1011
+ * Retrieves a page of items in a given packing group. Packing options must first be generated by the corresponding operation before packing group items can be listed.
1012
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1013
+ * @param {string} packingGroupId Identifier of a packing group.
1014
+ * @param {number} [pageSize] The number of packing group items to return in the response matching the given query.
1015
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ listPackingGroupItems: async (inboundPlanId, packingGroupId, pageSize, paginationToken, options = {}) => {
1020
+ assertParamExists("listPackingGroupItems", "inboundPlanId", inboundPlanId);
1021
+ assertParamExists("listPackingGroupItems", "packingGroupId", packingGroupId);
1022
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingGroups/{packingGroupId}/items`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{packingGroupId}", encodeURIComponent(String(packingGroupId)));
1023
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1024
+ let baseOptions;
1025
+ if (configuration) {
1026
+ baseOptions = configuration.baseOptions;
1027
+ }
1028
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1029
+ const localVarHeaderParameter = {};
1030
+ const localVarQueryParameter = {};
1031
+ if (pageSize !== void 0) {
1032
+ localVarQueryParameter["pageSize"] = pageSize;
1033
+ }
1034
+ if (paginationToken !== void 0) {
1035
+ localVarQueryParameter["paginationToken"] = paginationToken;
1036
+ }
1037
+ localVarHeaderParameter["Accept"] = "application/json";
1038
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1039
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1040
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1041
+ return {
1042
+ url: toPathString(localVarUrlObj),
1043
+ options: localVarRequestOptions
1044
+ };
1045
+ },
1046
+ /**
1047
+ * Retrieves a list of all packing options for an inbound plan. Packing options must first be generated by the corresponding operation before becoming available.
1048
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1049
+ * @param {number} [pageSize] The number of packing options to return in the response matching the given query.
1050
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1051
+ * @param {*} [options] Override http request option.
1052
+ * @throws {RequiredError}
1053
+ */
1054
+ listPackingOptions: async (inboundPlanId, pageSize, paginationToken, options = {}) => {
1055
+ assertParamExists("listPackingOptions", "inboundPlanId", inboundPlanId);
1056
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
1057
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1058
+ let baseOptions;
1059
+ if (configuration) {
1060
+ baseOptions = configuration.baseOptions;
1061
+ }
1062
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1063
+ const localVarHeaderParameter = {};
1064
+ const localVarQueryParameter = {};
1065
+ if (pageSize !== void 0) {
1066
+ localVarQueryParameter["pageSize"] = pageSize;
1067
+ }
1068
+ if (paginationToken !== void 0) {
1069
+ localVarQueryParameter["paginationToken"] = paginationToken;
1070
+ }
1071
+ localVarHeaderParameter["Accept"] = "application/json";
1072
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1073
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1074
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1075
+ return {
1076
+ url: toPathString(localVarUrlObj),
1077
+ options: localVarRequestOptions
1078
+ };
1079
+ },
1080
+ /**
1081
+ * Provides a list of all placement options for an inbound plan. Placement options must first be generated by the corresponding operation before becoming available.
1082
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1083
+ * @param {number} [pageSize] The number of placement options to return in the response matching the given query.
1084
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1085
+ * @param {*} [options] Override http request option.
1086
+ * @throws {RequiredError}
1087
+ */
1088
+ listPlacementOptions: async (inboundPlanId, pageSize, paginationToken, options = {}) => {
1089
+ assertParamExists("listPlacementOptions", "inboundPlanId", inboundPlanId);
1090
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/placementOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
1091
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1092
+ let baseOptions;
1093
+ if (configuration) {
1094
+ baseOptions = configuration.baseOptions;
1095
+ }
1096
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1097
+ const localVarHeaderParameter = {};
1098
+ const localVarQueryParameter = {};
1099
+ if (pageSize !== void 0) {
1100
+ localVarQueryParameter["pageSize"] = pageSize;
1101
+ }
1102
+ if (paginationToken !== void 0) {
1103
+ localVarQueryParameter["paginationToken"] = paginationToken;
1104
+ }
1105
+ localVarHeaderParameter["Accept"] = "application/json";
1106
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1108
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1109
+ return {
1110
+ url: toPathString(localVarUrlObj),
1111
+ options: localVarRequestOptions
1112
+ };
1113
+ },
1114
+ /**
1115
+ * Get preparation details for a list of MSKUs in a specified marketplace.\\n\\n**Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding).\\n\\nThe following characters must be double percent encoded:\\n\\n- `%`\\n- `+`\\n- `,`\\n\\n**Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
1116
+ * @param {string} marketplaceId The marketplace ID. For a list of possible values, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
1117
+ * @param {Array<string>} mskus A list of merchant SKUs, a merchant-supplied identifier of a specific SKU.
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ listPrepDetails: async (marketplaceId, mskus, options = {}) => {
1122
+ assertParamExists("listPrepDetails", "marketplaceId", marketplaceId);
1123
+ assertParamExists("listPrepDetails", "mskus", mskus);
1124
+ const localVarPath = `/inbound/fba/2024-03-20/items/prepDetails`;
1125
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1126
+ let baseOptions;
1127
+ if (configuration) {
1128
+ baseOptions = configuration.baseOptions;
1129
+ }
1130
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1131
+ const localVarHeaderParameter = {};
1132
+ const localVarQueryParameter = {};
1133
+ if (marketplaceId !== void 0) {
1134
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
1135
+ }
1136
+ if (mskus) {
1137
+ localVarQueryParameter["mskus"] = mskus;
1138
+ }
1139
+ localVarHeaderParameter["Accept"] = "application/json";
1140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1142
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1143
+ return {
1144
+ url: toPathString(localVarUrlObj),
1145
+ options: localVarRequestOptions
1146
+ };
1147
+ },
1148
+ /**
1149
+ * Provides a paginated list of box packages in a shipment.
1150
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1151
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1152
+ * @param {number} [pageSize] The number of boxes to return in the response matching the given query.
1153
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1154
+ * @param {*} [options] Override http request option.
1155
+ * @throws {RequiredError}
1156
+ */
1157
+ listShipmentBoxes: async (inboundPlanId, shipmentId, pageSize, paginationToken, options = {}) => {
1158
+ assertParamExists("listShipmentBoxes", "inboundPlanId", inboundPlanId);
1159
+ assertParamExists("listShipmentBoxes", "shipmentId", shipmentId);
1160
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/boxes`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
1161
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1162
+ let baseOptions;
1163
+ if (configuration) {
1164
+ baseOptions = configuration.baseOptions;
1165
+ }
1166
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1167
+ const localVarHeaderParameter = {};
1168
+ const localVarQueryParameter = {};
1169
+ if (pageSize !== void 0) {
1170
+ localVarQueryParameter["pageSize"] = pageSize;
1171
+ }
1172
+ if (paginationToken !== void 0) {
1173
+ localVarQueryParameter["paginationToken"] = paginationToken;
1174
+ }
1175
+ localVarHeaderParameter["Accept"] = "application/json";
1176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1178
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1179
+ return {
1180
+ url: toPathString(localVarUrlObj),
1181
+ options: localVarRequestOptions
1182
+ };
1183
+ },
1184
+ /**
1185
+ * Retrieve a paginated list of shipment content update previews for a given shipment. The shipment content update preview is a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
1186
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1187
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1188
+ * @param {number} [pageSize] The number of content update previews to return.
1189
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1190
+ * @param {*} [options] Override http request option.
1191
+ * @throws {RequiredError}
1192
+ */
1193
+ listShipmentContentUpdatePreviews: async (inboundPlanId, shipmentId, pageSize, paginationToken, options = {}) => {
1194
+ assertParamExists("listShipmentContentUpdatePreviews", "inboundPlanId", inboundPlanId);
1195
+ assertParamExists("listShipmentContentUpdatePreviews", "shipmentId", shipmentId);
1196
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/contentUpdatePreviews`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
1197
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1198
+ let baseOptions;
1199
+ if (configuration) {
1200
+ baseOptions = configuration.baseOptions;
1201
+ }
1202
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1203
+ const localVarHeaderParameter = {};
1204
+ const localVarQueryParameter = {};
1205
+ if (pageSize !== void 0) {
1206
+ localVarQueryParameter["pageSize"] = pageSize;
1207
+ }
1208
+ if (paginationToken !== void 0) {
1209
+ localVarQueryParameter["paginationToken"] = paginationToken;
1210
+ }
1211
+ localVarHeaderParameter["Accept"] = "application/json";
1212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1214
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1215
+ return {
1216
+ url: toPathString(localVarUrlObj),
1217
+ options: localVarRequestOptions
1218
+ };
1219
+ },
1220
+ /**
1221
+ * Provides a paginated list of item packages in a shipment.
1222
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1223
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1224
+ * @param {number} [pageSize] The number of items to return in the response matching the given query.
1225
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1226
+ * @param {*} [options] Override http request option.
1227
+ * @throws {RequiredError}
1228
+ */
1229
+ listShipmentItems: async (inboundPlanId, shipmentId, pageSize, paginationToken, options = {}) => {
1230
+ assertParamExists("listShipmentItems", "inboundPlanId", inboundPlanId);
1231
+ assertParamExists("listShipmentItems", "shipmentId", shipmentId);
1232
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/items`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
1233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1234
+ let baseOptions;
1235
+ if (configuration) {
1236
+ baseOptions = configuration.baseOptions;
1237
+ }
1238
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1239
+ const localVarHeaderParameter = {};
1240
+ const localVarQueryParameter = {};
1241
+ if (pageSize !== void 0) {
1242
+ localVarQueryParameter["pageSize"] = pageSize;
1243
+ }
1244
+ if (paginationToken !== void 0) {
1245
+ localVarQueryParameter["paginationToken"] = paginationToken;
1246
+ }
1247
+ localVarHeaderParameter["Accept"] = "application/json";
1248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1250
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1251
+ return {
1252
+ url: toPathString(localVarUrlObj),
1253
+ options: localVarRequestOptions
1254
+ };
1255
+ },
1256
+ /**
1257
+ * Provides a paginated list of pallet packages in a shipment. A palletized shipment will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
1258
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1259
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1260
+ * @param {number} [pageSize] The number of pallets to return in the response matching the given query.
1261
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ */
1265
+ listShipmentPallets: async (inboundPlanId, shipmentId, pageSize, paginationToken, options = {}) => {
1266
+ assertParamExists("listShipmentPallets", "inboundPlanId", inboundPlanId);
1267
+ assertParamExists("listShipmentPallets", "shipmentId", shipmentId);
1268
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/pallets`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
1269
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1270
+ let baseOptions;
1271
+ if (configuration) {
1272
+ baseOptions = configuration.baseOptions;
1273
+ }
1274
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1275
+ const localVarHeaderParameter = {};
1276
+ const localVarQueryParameter = {};
1277
+ if (pageSize !== void 0) {
1278
+ localVarQueryParameter["pageSize"] = pageSize;
1279
+ }
1280
+ if (paginationToken !== void 0) {
1281
+ localVarQueryParameter["paginationToken"] = paginationToken;
1282
+ }
1283
+ localVarHeaderParameter["Accept"] = "application/json";
1284
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1285
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1286
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1287
+ return {
1288
+ url: toPathString(localVarUrlObj),
1289
+ options: localVarRequestOptions
1290
+ };
1291
+ },
1292
+ /**
1293
+ * Retrieves all transportation options for a shipment. Transportation options must first be generated by the `generateTransportationOptions` operation before becoming available.
1294
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1295
+ * @param {number} [pageSize] The number of transportation options to return in the response matching the given query.
1296
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1297
+ * @param {string} [placementOptionId] The placement option to get transportation options for. Either &#x60;placementOptionId&#x60; or &#x60;shipmentId&#x60; must be specified.
1298
+ * @param {string} [shipmentId] The shipment to get transportation options for. Either &#x60;placementOptionId&#x60; or &#x60;shipmentId&#x60; must be specified.
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ */
1302
+ listTransportationOptions: async (inboundPlanId, pageSize, paginationToken, placementOptionId, shipmentId, options = {}) => {
1303
+ assertParamExists("listTransportationOptions", "inboundPlanId", inboundPlanId);
1304
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/transportationOptions`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
1305
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1306
+ let baseOptions;
1307
+ if (configuration) {
1308
+ baseOptions = configuration.baseOptions;
1309
+ }
1310
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1311
+ const localVarHeaderParameter = {};
1312
+ const localVarQueryParameter = {};
1313
+ if (pageSize !== void 0) {
1314
+ localVarQueryParameter["pageSize"] = pageSize;
1315
+ }
1316
+ if (paginationToken !== void 0) {
1317
+ localVarQueryParameter["paginationToken"] = paginationToken;
1318
+ }
1319
+ if (placementOptionId !== void 0) {
1320
+ localVarQueryParameter["placementOptionId"] = placementOptionId;
1321
+ }
1322
+ if (shipmentId !== void 0) {
1323
+ localVarQueryParameter["shipmentId"] = shipmentId;
1324
+ }
1325
+ localVarHeaderParameter["Accept"] = "application/json";
1326
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1327
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1328
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1329
+ return {
1330
+ url: toPathString(localVarUrlObj),
1331
+ options: localVarRequestOptions
1332
+ };
1333
+ },
1334
+ /**
1335
+ * Confirms or reschedules a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
1336
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1337
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1338
+ * @param {string} slotId An identifier to a self-ship appointment slot.
1339
+ * @param {ScheduleSelfShipAppointmentRequest} body The body of the request to &#x60;scheduleSelfShipAppointment&#x60;.
1340
+ * @param {*} [options] Override http request option.
1341
+ * @throws {RequiredError}
1342
+ */
1343
+ scheduleSelfShipAppointment: async (inboundPlanId, shipmentId, slotId, body, options = {}) => {
1344
+ assertParamExists("scheduleSelfShipAppointment", "inboundPlanId", inboundPlanId);
1345
+ assertParamExists("scheduleSelfShipAppointment", "shipmentId", shipmentId);
1346
+ assertParamExists("scheduleSelfShipAppointment", "slotId", slotId);
1347
+ assertParamExists("scheduleSelfShipAppointment", "body", body);
1348
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/selfShipAppointmentSlots/{slotId}/schedule`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId))).replace("{slotId}", encodeURIComponent(String(slotId)));
1349
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1350
+ let baseOptions;
1351
+ if (configuration) {
1352
+ baseOptions = configuration.baseOptions;
1353
+ }
1354
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1355
+ const localVarHeaderParameter = {};
1356
+ const localVarQueryParameter = {};
1357
+ localVarHeaderParameter["Content-Type"] = "application/json";
1358
+ localVarHeaderParameter["Accept"] = "application/json";
1359
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1360
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1361
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1362
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1363
+ return {
1364
+ url: toPathString(localVarUrlObj),
1365
+ options: localVarRequestOptions
1366
+ };
1367
+ },
1368
+ /**
1369
+ * Sets packing information for an inbound plan. This should be called after an inbound plan is created to populate the box level information required for planning and transportation estimates.
1370
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1371
+ * @param {SetPackingInformationRequest} body The body of the request to &#x60;setPackingInformation&#x60;.
1372
+ * @param {*} [options] Override http request option.
1373
+ * @throws {RequiredError}
1374
+ */
1375
+ setPackingInformation: async (inboundPlanId, body, options = {}) => {
1376
+ assertParamExists("setPackingInformation", "inboundPlanId", inboundPlanId);
1377
+ assertParamExists("setPackingInformation", "body", body);
1378
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/packingInformation`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
1379
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1380
+ let baseOptions;
1381
+ if (configuration) {
1382
+ baseOptions = configuration.baseOptions;
1383
+ }
1384
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1385
+ const localVarHeaderParameter = {};
1386
+ const localVarQueryParameter = {};
1387
+ localVarHeaderParameter["Content-Type"] = "application/json";
1388
+ localVarHeaderParameter["Accept"] = "application/json";
1389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1391
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1392
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1393
+ return {
1394
+ url: toPathString(localVarUrlObj),
1395
+ options: localVarRequestOptions
1396
+ };
1397
+ },
1398
+ /**
1399
+ * Set the preparation details for a list of MSKUs in a specified marketplace.
1400
+ * @param {SetPrepDetailsRequest} body The body of the request to &#x60;setPrepDetails&#x60;.
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ */
1404
+ setPrepDetails: async (body, options = {}) => {
1405
+ assertParamExists("setPrepDetails", "body", body);
1406
+ const localVarPath = `/inbound/fba/2024-03-20/items/prepDetails`;
1407
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1408
+ let baseOptions;
1409
+ if (configuration) {
1410
+ baseOptions = configuration.baseOptions;
1411
+ }
1412
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1413
+ const localVarHeaderParameter = {};
1414
+ const localVarQueryParameter = {};
1415
+ localVarHeaderParameter["Content-Type"] = "application/json";
1416
+ localVarHeaderParameter["Accept"] = "application/json";
1417
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1419
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1420
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1421
+ return {
1422
+ url: toPathString(localVarUrlObj),
1423
+ options: localVarRequestOptions
1424
+ };
1425
+ },
1426
+ /**
1427
+ * Updates the name of an existing inbound plan.
1428
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1429
+ * @param {UpdateInboundPlanNameRequest} body The body of the request to &#x60;updateInboundPlanName&#x60;.
1430
+ * @param {*} [options] Override http request option.
1431
+ * @throws {RequiredError}
1432
+ */
1433
+ updateInboundPlanName: async (inboundPlanId, body, options = {}) => {
1434
+ assertParamExists("updateInboundPlanName", "inboundPlanId", inboundPlanId);
1435
+ assertParamExists("updateInboundPlanName", "body", body);
1436
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/name`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId)));
1437
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1438
+ let baseOptions;
1439
+ if (configuration) {
1440
+ baseOptions = configuration.baseOptions;
1441
+ }
1442
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1443
+ const localVarHeaderParameter = {};
1444
+ const localVarQueryParameter = {};
1445
+ localVarHeaderParameter["Content-Type"] = "application/json";
1446
+ localVarHeaderParameter["Accept"] = "application/json";
1447
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1448
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1449
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1450
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1451
+ return {
1452
+ url: toPathString(localVarUrlObj),
1453
+ options: localVarRequestOptions
1454
+ };
1455
+ },
1456
+ /**
1457
+ * Update compliance details for a list of MSKUs. The details provided here are only used for the India (IN - A21TJRUUN4KGV) marketplace compliance validation.
1458
+ * @param {string} marketplaceId The Marketplace ID. For a list of possible values, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
1459
+ * @param {UpdateItemComplianceDetailsRequest} body The body of the request to &#x60;updateItemComplianceDetails&#x60;.
1460
+ * @param {*} [options] Override http request option.
1461
+ * @throws {RequiredError}
1462
+ */
1463
+ updateItemComplianceDetails: async (marketplaceId, body, options = {}) => {
1464
+ assertParamExists("updateItemComplianceDetails", "marketplaceId", marketplaceId);
1465
+ assertParamExists("updateItemComplianceDetails", "body", body);
1466
+ const localVarPath = `/inbound/fba/2024-03-20/items/compliance`;
1467
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1468
+ let baseOptions;
1469
+ if (configuration) {
1470
+ baseOptions = configuration.baseOptions;
1471
+ }
1472
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1473
+ const localVarHeaderParameter = {};
1474
+ const localVarQueryParameter = {};
1475
+ if (marketplaceId !== void 0) {
1476
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
1477
+ }
1478
+ localVarHeaderParameter["Content-Type"] = "application/json";
1479
+ localVarHeaderParameter["Accept"] = "application/json";
1480
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1481
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1482
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1483
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1484
+ return {
1485
+ url: toPathString(localVarUrlObj),
1486
+ options: localVarRequestOptions
1487
+ };
1488
+ },
1489
+ /**
1490
+ * Updates the name of an existing shipment.
1491
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1492
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1493
+ * @param {UpdateShipmentNameRequest} body The body of the request to &#x60;updateShipmentName&#x60;.
1494
+ * @param {*} [options] Override http request option.
1495
+ * @throws {RequiredError}
1496
+ */
1497
+ updateShipmentName: async (inboundPlanId, shipmentId, body, options = {}) => {
1498
+ assertParamExists("updateShipmentName", "inboundPlanId", inboundPlanId);
1499
+ assertParamExists("updateShipmentName", "shipmentId", shipmentId);
1500
+ assertParamExists("updateShipmentName", "body", body);
1501
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/name`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
1502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1503
+ let baseOptions;
1504
+ if (configuration) {
1505
+ baseOptions = configuration.baseOptions;
1506
+ }
1507
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1508
+ const localVarHeaderParameter = {};
1509
+ const localVarQueryParameter = {};
1510
+ localVarHeaderParameter["Content-Type"] = "application/json";
1511
+ localVarHeaderParameter["Accept"] = "application/json";
1512
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1514
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1515
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1516
+ return {
1517
+ url: toPathString(localVarUrlObj),
1518
+ options: localVarRequestOptions
1519
+ };
1520
+ },
1521
+ /**
1522
+ * Updates the source address of an existing shipment. The shipment source address can only be updated prior to the confirmation of the shipment carriers. As a result of the updated source address, existing transportation options will be invalidated and will need to be regenerated to capture the potential difference in transportation options and quotes due to the new source address.
1523
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1524
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1525
+ * @param {UpdateShipmentSourceAddressRequest} body The body of the request to &#x60;updateShipmentSourceAddress&#x60;.
1526
+ * @param {*} [options] Override http request option.
1527
+ * @throws {RequiredError}
1528
+ */
1529
+ updateShipmentSourceAddress: async (inboundPlanId, shipmentId, body, options = {}) => {
1530
+ assertParamExists("updateShipmentSourceAddress", "inboundPlanId", inboundPlanId);
1531
+ assertParamExists("updateShipmentSourceAddress", "shipmentId", shipmentId);
1532
+ assertParamExists("updateShipmentSourceAddress", "body", body);
1533
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/sourceAddress`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
1534
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1535
+ let baseOptions;
1536
+ if (configuration) {
1537
+ baseOptions = configuration.baseOptions;
1538
+ }
1539
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1540
+ const localVarHeaderParameter = {};
1541
+ const localVarQueryParameter = {};
1542
+ localVarHeaderParameter["Content-Type"] = "application/json";
1543
+ localVarHeaderParameter["Accept"] = "application/json";
1544
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1545
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1546
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1547
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1548
+ return {
1549
+ url: toPathString(localVarUrlObj),
1550
+ options: localVarRequestOptions
1551
+ };
1552
+ },
1553
+ /**
1554
+ * Updates a shipment\'s tracking details.
1555
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1556
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1557
+ * @param {UpdateShipmentTrackingDetailsRequest} body The body of the request to &#x60;updateShipmentTrackingDetails&#x60;.
1558
+ * @param {*} [options] Override http request option.
1559
+ * @throws {RequiredError}
1560
+ */
1561
+ updateShipmentTrackingDetails: async (inboundPlanId, shipmentId, body, options = {}) => {
1562
+ assertParamExists("updateShipmentTrackingDetails", "inboundPlanId", inboundPlanId);
1563
+ assertParamExists("updateShipmentTrackingDetails", "shipmentId", shipmentId);
1564
+ assertParamExists("updateShipmentTrackingDetails", "body", body);
1565
+ const localVarPath = `/inbound/fba/2024-03-20/inboundPlans/{inboundPlanId}/shipments/{shipmentId}/trackingDetails`.replace("{inboundPlanId}", encodeURIComponent(String(inboundPlanId))).replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
1566
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1567
+ let baseOptions;
1568
+ if (configuration) {
1569
+ baseOptions = configuration.baseOptions;
1570
+ }
1571
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1572
+ const localVarHeaderParameter = {};
1573
+ const localVarQueryParameter = {};
1574
+ localVarHeaderParameter["Content-Type"] = "application/json";
1575
+ localVarHeaderParameter["Accept"] = "application/json";
1576
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1577
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1578
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1579
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1580
+ return {
1581
+ url: toPathString(localVarUrlObj),
1582
+ options: localVarRequestOptions
1583
+ };
1584
+ }
1585
+ };
1586
+ };
1587
+ var FulfillmentInboundApiFp = function(configuration) {
1588
+ const localVarAxiosParamCreator = FulfillmentInboundApiAxiosParamCreator(configuration);
1589
+ return {
1590
+ /**
1591
+ * Cancels an Inbound Plan. Charges may apply if the cancellation is performed outside of a void window. The window for Amazon Partnered Carriers is 24 hours for Small Parcel Delivery (SPD) and one hour for Less-Than-Truckload (LTL) carrier shipments.
1592
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ async cancelInboundPlan(inboundPlanId, options) {
1597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelInboundPlan(inboundPlanId, options);
1598
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1599
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.cancelInboundPlan"]?.[localVarOperationServerIndex]?.url;
1600
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1601
+ },
1602
+ /**
1603
+ * Cancels a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
1604
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1605
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1606
+ * @param {CancelSelfShipAppointmentRequest} body The body of the request to &#x60;cancelSelfShipAppointment&#x60;.
1607
+ * @param {*} [options] Override http request option.
1608
+ * @throws {RequiredError}
1609
+ */
1610
+ async cancelSelfShipAppointment(inboundPlanId, shipmentId, body, options) {
1611
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSelfShipAppointment(inboundPlanId, shipmentId, body, options);
1612
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1613
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.cancelSelfShipAppointment"]?.[localVarOperationServerIndex]?.url;
1614
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1615
+ },
1616
+ /**
1617
+ * Confirms the delivery window option for chosen shipment within an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new delivery window options cannot be generated, but the chosen delivery window option can be updated before shipment closure. The window is used to provide the expected time when a shipment will arrive at the warehouse. All transportation options which have the program `CONFIRMED_DELIVERY_WINDOW` require a delivery window to be confirmed prior to transportation option confirmation.
1618
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1619
+ * @param {string} shipmentId The shipment to confirm the delivery window option for.
1620
+ * @param {string} deliveryWindowOptionId The id of the delivery window option to be confirmed.
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ */
1624
+ async confirmDeliveryWindowOptions(inboundPlanId, shipmentId, deliveryWindowOptionId, options) {
1625
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmDeliveryWindowOptions(inboundPlanId, shipmentId, deliveryWindowOptionId, options);
1626
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1627
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.confirmDeliveryWindowOptions"]?.[localVarOperationServerIndex]?.url;
1628
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1629
+ },
1630
+ /**
1631
+ * Confirms the packing option for an inbound plan.
1632
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1633
+ * @param {string} packingOptionId Identifier of a packing option.
1634
+ * @param {*} [options] Override http request option.
1635
+ * @throws {RequiredError}
1636
+ */
1637
+ async confirmPackingOption(inboundPlanId, packingOptionId, options) {
1638
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPackingOption(inboundPlanId, packingOptionId, options);
1639
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1640
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.confirmPackingOption"]?.[localVarOperationServerIndex]?.url;
1641
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1642
+ },
1643
+ /**
1644
+ * Confirms the placement option for an inbound plan. Once confirmed, it cannot be changed for the Inbound Plan.
1645
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1646
+ * @param {string} placementOptionId The identifier of a placement option. A placement option represents the shipment splits and destinations of SKUs.
1647
+ * @param {*} [options] Override http request option.
1648
+ * @throws {RequiredError}
1649
+ */
1650
+ async confirmPlacementOption(inboundPlanId, placementOptionId, options) {
1651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPlacementOption(inboundPlanId, placementOptionId, options);
1652
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1653
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.confirmPlacementOption"]?.[localVarOperationServerIndex]?.url;
1654
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1655
+ },
1656
+ /**
1657
+ * Confirm a shipment content update preview and accept the changes in transportation cost.
1658
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1659
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1660
+ * @param {string} contentUpdatePreviewId Identifier of a content update preview.
1661
+ * @param {*} [options] Override http request option.
1662
+ * @throws {RequiredError}
1663
+ */
1664
+ async confirmShipmentContentUpdatePreview(inboundPlanId, shipmentId, contentUpdatePreviewId, options) {
1665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmShipmentContentUpdatePreview(inboundPlanId, shipmentId, contentUpdatePreviewId, options);
1666
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1667
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.confirmShipmentContentUpdatePreview"]?.[localVarOperationServerIndex]?.url;
1668
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1669
+ },
1670
+ /**
1671
+ * Confirms all the transportation options for an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new transportation options can not be generated or confirmed for the Inbound Plan.
1672
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1673
+ * @param {ConfirmTransportationOptionsRequest} body The body of the request to &#x60;confirmTransportationOptions&#x60;.
1674
+ * @param {*} [options] Override http request option.
1675
+ * @throws {RequiredError}
1676
+ */
1677
+ async confirmTransportationOptions(inboundPlanId, body, options) {
1678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmTransportationOptions(inboundPlanId, body, options);
1679
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1680
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.confirmTransportationOptions"]?.[localVarOperationServerIndex]?.url;
1681
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1682
+ },
1683
+ /**
1684
+ * Creates an inbound plan. An inbound plan contains all the necessary information to send shipments into Amazon\'s fufillment network.
1685
+ * @param {CreateInboundPlanRequest} body The body of the request to &#x60;createInboundPlan&#x60;.
1686
+ * @param {*} [options] Override http request option.
1687
+ * @throws {RequiredError}
1688
+ */
1689
+ async createInboundPlan(body, options) {
1690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createInboundPlan(body, options);
1691
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1692
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.createInboundPlan"]?.[localVarOperationServerIndex]?.url;
1693
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1694
+ },
1695
+ /**
1696
+ * For a given marketplace - creates labels for a list of MSKUs.
1697
+ * @param {CreateMarketplaceItemLabelsRequest} body The body of the request to &#x60;createMarketplaceItemLabels&#x60;.
1698
+ * @param {*} [options] Override http request option.
1699
+ * @throws {RequiredError}
1700
+ */
1701
+ async createMarketplaceItemLabels(body, options) {
1702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMarketplaceItemLabels(body, options);
1703
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1704
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.createMarketplaceItemLabels"]?.[localVarOperationServerIndex]?.url;
1705
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1706
+ },
1707
+ /**
1708
+ * Generates available delivery window options for a given shipment.
1709
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1710
+ * @param {string} shipmentId The shipment to generate delivery window options for.
1711
+ * @param {*} [options] Override http request option.
1712
+ * @throws {RequiredError}
1713
+ */
1714
+ async generateDeliveryWindowOptions(inboundPlanId, shipmentId, options) {
1715
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateDeliveryWindowOptions(inboundPlanId, shipmentId, options);
1716
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1717
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.generateDeliveryWindowOptions"]?.[localVarOperationServerIndex]?.url;
1718
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1719
+ },
1720
+ /**
1721
+ * Generates available packing options for the inbound plan.
1722
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1723
+ * @param {*} [options] Override http request option.
1724
+ * @throws {RequiredError}
1725
+ */
1726
+ async generatePackingOptions(inboundPlanId, options) {
1727
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generatePackingOptions(inboundPlanId, options);
1728
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1729
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.generatePackingOptions"]?.[localVarOperationServerIndex]?.url;
1730
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1731
+ },
1732
+ /**
1733
+ * Generates placement options for the inbound plan.
1734
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1735
+ * @param {GeneratePlacementOptionsRequest} body The body of the request to &#x60;generatePlacementOptions&#x60;.
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ */
1739
+ async generatePlacementOptions(inboundPlanId, body, options) {
1740
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generatePlacementOptions(inboundPlanId, body, options);
1741
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1742
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.generatePlacementOptions"]?.[localVarOperationServerIndex]?.url;
1743
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1744
+ },
1745
+ /**
1746
+ * Initiates the process of generating the appointment slots list. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
1747
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1748
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1749
+ * @param {GenerateSelfShipAppointmentSlotsRequest} body The body of the request to &#x60;generateSelfShipAppointmentSlots&#x60;.
1750
+ * @param {*} [options] Override http request option.
1751
+ * @throws {RequiredError}
1752
+ */
1753
+ async generateSelfShipAppointmentSlots(inboundPlanId, shipmentId, body, options) {
1754
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateSelfShipAppointmentSlots(inboundPlanId, shipmentId, body, options);
1755
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1756
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.generateSelfShipAppointmentSlots"]?.[localVarOperationServerIndex]?.url;
1757
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1758
+ },
1759
+ /**
1760
+ * Generate a shipment content update preview given a set of intended boxes and/or items for a shipment with a confirmed carrier. The shipment content update preview will be viewable with the updated costs and contents prior to confirmation.
1761
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1762
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1763
+ * @param {GenerateShipmentContentUpdatePreviewsRequest} body The body of the request to &#x60;generateShipmentContentUpdatePreviews&#x60;.
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ */
1767
+ async generateShipmentContentUpdatePreviews(inboundPlanId, shipmentId, body, options) {
1768
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateShipmentContentUpdatePreviews(inboundPlanId, shipmentId, body, options);
1769
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1770
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.generateShipmentContentUpdatePreviews"]?.[localVarOperationServerIndex]?.url;
1771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1772
+ },
1773
+ /**
1774
+ * Generates available transportation options for a given placement option.
1775
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1776
+ * @param {GenerateTransportationOptionsRequest} body The body of the request to &#x60;generateTransportationOptions&#x60;.
1777
+ * @param {*} [options] Override http request option.
1778
+ * @throws {RequiredError}
1779
+ */
1780
+ async generateTransportationOptions(inboundPlanId, body, options) {
1781
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateTransportationOptions(inboundPlanId, body, options);
1782
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1783
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.generateTransportationOptions"]?.[localVarOperationServerIndex]?.url;
1784
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1785
+ },
1786
+ /**
1787
+ * Provide delivery challan document for PCP transportation in IN marketplace.
1788
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1789
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1790
+ * @param {*} [options] Override http request option.
1791
+ * @throws {RequiredError}
1792
+ */
1793
+ async getDeliveryChallanDocument(inboundPlanId, shipmentId, options) {
1794
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDeliveryChallanDocument(inboundPlanId, shipmentId, options);
1795
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1796
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getDeliveryChallanDocument"]?.[localVarOperationServerIndex]?.url;
1797
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1798
+ },
1799
+ /**
1800
+ * Gets the status of the processing of an asynchronous API call.
1801
+ * @param {string} operationId Identifier of an asynchronous operation.
1802
+ * @param {*} [options] Override http request option.
1803
+ * @throws {RequiredError}
1804
+ */
1805
+ async getInboundOperationStatus(operationId, options) {
1806
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundOperationStatus(operationId, options);
1807
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1808
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getInboundOperationStatus"]?.[localVarOperationServerIndex]?.url;
1809
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1810
+ },
1811
+ /**
1812
+ * Fetches the top level information about an inbound plan.
1813
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1814
+ * @param {*} [options] Override http request option.
1815
+ * @throws {RequiredError}
1816
+ */
1817
+ async getInboundPlan(inboundPlanId, options) {
1818
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundPlan(inboundPlanId, options);
1819
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1820
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getInboundPlan"]?.[localVarOperationServerIndex]?.url;
1821
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1822
+ },
1823
+ /**
1824
+ * Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
1825
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1826
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1827
+ * @param {number} [pageSize] The number of self ship appointment slots to return in the response matching the given query.
1828
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1829
+ * @param {*} [options] Override http request option.
1830
+ * @throws {RequiredError}
1831
+ */
1832
+ async getSelfShipAppointmentSlots(inboundPlanId, shipmentId, pageSize, paginationToken, options) {
1833
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSelfShipAppointmentSlots(inboundPlanId, shipmentId, pageSize, paginationToken, options);
1834
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1835
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getSelfShipAppointmentSlots"]?.[localVarOperationServerIndex]?.url;
1836
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1837
+ },
1838
+ /**
1839
+ * Provides the full details for a specific shipment within an inbound plan. The `transportationOptionId` inside `acceptedTransportationSelection` can be used to retrieve the transportation details for the shipment.
1840
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1841
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1842
+ * @param {*} [options] Override http request option.
1843
+ * @throws {RequiredError}
1844
+ */
1845
+ async getShipment(inboundPlanId, shipmentId, options) {
1846
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShipment(inboundPlanId, shipmentId, options);
1847
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1848
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipment"]?.[localVarOperationServerIndex]?.url;
1849
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1850
+ },
1851
+ /**
1852
+ * Retrieve a shipment content update preview which provides a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
1853
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1854
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
1855
+ * @param {string} contentUpdatePreviewId Identifier of a content update preview.
1856
+ * @param {*} [options] Override http request option.
1857
+ * @throws {RequiredError}
1858
+ */
1859
+ async getShipmentContentUpdatePreview(inboundPlanId, shipmentId, contentUpdatePreviewId, options) {
1860
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentContentUpdatePreview(inboundPlanId, shipmentId, contentUpdatePreviewId, options);
1861
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1862
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.getShipmentContentUpdatePreview"]?.[localVarOperationServerIndex]?.url;
1863
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1864
+ },
1865
+ /**
1866
+ * Retrieves all delivery window options for a shipment. Delivery window options must first be generated by the `generateDeliveryWindowOptions` operation before becoming available.
1867
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1868
+ * @param {string} shipmentId The shipment to get delivery window options for.
1869
+ * @param {number} [pageSize] The number of delivery window options to return in the response matching the given query.
1870
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1871
+ * @param {*} [options] Override http request option.
1872
+ * @throws {RequiredError}
1873
+ */
1874
+ async listDeliveryWindowOptions(inboundPlanId, shipmentId, pageSize, paginationToken, options) {
1875
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDeliveryWindowOptions(inboundPlanId, shipmentId, pageSize, paginationToken, options);
1876
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1877
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listDeliveryWindowOptions"]?.[localVarOperationServerIndex]?.url;
1878
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1879
+ },
1880
+ /**
1881
+ * Provides a paginated list of box packages in an inbound plan.
1882
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1883
+ * @param {number} [pageSize] The number of boxes to return in the response matching the given query.
1884
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ */
1888
+ async listInboundPlanBoxes(inboundPlanId, pageSize, paginationToken, options) {
1889
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlanBoxes(inboundPlanId, pageSize, paginationToken, options);
1890
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1891
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listInboundPlanBoxes"]?.[localVarOperationServerIndex]?.url;
1892
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1893
+ },
1894
+ /**
1895
+ * Provides a paginated list of item packages in an inbound plan.
1896
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1897
+ * @param {number} [pageSize] The number of items to return in the response matching the given query.
1898
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ */
1902
+ async listInboundPlanItems(inboundPlanId, pageSize, paginationToken, options) {
1903
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlanItems(inboundPlanId, pageSize, paginationToken, options);
1904
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1905
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listInboundPlanItems"]?.[localVarOperationServerIndex]?.url;
1906
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1907
+ },
1908
+ /**
1909
+ * Provides a paginated list of pallet packages in an inbound plan. An inbound plan will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
1910
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1911
+ * @param {number} [pageSize] The number of pallets to return in the response matching the given query.
1912
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1913
+ * @param {*} [options] Override http request option.
1914
+ * @throws {RequiredError}
1915
+ */
1916
+ async listInboundPlanPallets(inboundPlanId, pageSize, paginationToken, options) {
1917
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlanPallets(inboundPlanId, pageSize, paginationToken, options);
1918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1919
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listInboundPlanPallets"]?.[localVarOperationServerIndex]?.url;
1920
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1921
+ },
1922
+ /**
1923
+ * Provides a list of inbound plans with minimal information.
1924
+ * @param {number} [pageSize] The number of inbound plans to return in the response matching the given query.
1925
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1926
+ * @param {ListInboundPlansStatusEnum} [status] The status of an inbound plan.
1927
+ * @param {ListInboundPlansSortByEnum} [sortBy] Sort by field.
1928
+ * @param {ListInboundPlansSortOrderEnum} [sortOrder] The sort order.
1929
+ * @param {*} [options] Override http request option.
1930
+ * @throws {RequiredError}
1931
+ */
1932
+ async listInboundPlans(pageSize, paginationToken, status, sortBy, sortOrder, options) {
1933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundPlans(pageSize, paginationToken, status, sortBy, sortOrder, options);
1934
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1935
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listInboundPlans"]?.[localVarOperationServerIndex]?.url;
1936
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1937
+ },
1938
+ /**
1939
+ * List the inbound compliance details for MSKUs in a given marketplace. **Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). The following characters must be double percent encoded: - `%` - `+` - `,` **Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
1940
+ * @param {Array<string>} mskus A list of merchant SKUs, a merchant-supplied identifier of a specific SKU.
1941
+ * @param {string} marketplaceId The Marketplace ID. For a list of possible values, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
1942
+ * @param {*} [options] Override http request option.
1943
+ * @throws {RequiredError}
1944
+ */
1945
+ async listItemComplianceDetails(mskus, marketplaceId, options) {
1946
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listItemComplianceDetails(mskus, marketplaceId, options);
1947
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1948
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listItemComplianceDetails"]?.[localVarOperationServerIndex]?.url;
1949
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1950
+ },
1951
+ /**
1952
+ * Retrieves a page of boxes from a given packing group. These boxes were previously provided through the `setPackingInformation` operation. This API is used for workflows where boxes are packed before Amazon determines shipment splits.
1953
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1954
+ * @param {string} packingGroupId Identifier of a packing group.
1955
+ * @param {number} [pageSize] The number of packing group boxes to return in the response matching the given query.
1956
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1957
+ * @param {*} [options] Override http request option.
1958
+ * @throws {RequiredError}
1959
+ */
1960
+ async listPackingGroupBoxes(inboundPlanId, packingGroupId, pageSize, paginationToken, options) {
1961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPackingGroupBoxes(inboundPlanId, packingGroupId, pageSize, paginationToken, options);
1962
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1963
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listPackingGroupBoxes"]?.[localVarOperationServerIndex]?.url;
1964
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1965
+ },
1966
+ /**
1967
+ * Retrieves a page of items in a given packing group. Packing options must first be generated by the corresponding operation before packing group items can be listed.
1968
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1969
+ * @param {string} packingGroupId Identifier of a packing group.
1970
+ * @param {number} [pageSize] The number of packing group items to return in the response matching the given query.
1971
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ async listPackingGroupItems(inboundPlanId, packingGroupId, pageSize, paginationToken, options) {
1976
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPackingGroupItems(inboundPlanId, packingGroupId, pageSize, paginationToken, options);
1977
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1978
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listPackingGroupItems"]?.[localVarOperationServerIndex]?.url;
1979
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1980
+ },
1981
+ /**
1982
+ * Retrieves a list of all packing options for an inbound plan. Packing options must first be generated by the corresponding operation before becoming available.
1983
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1984
+ * @param {number} [pageSize] The number of packing options to return in the response matching the given query.
1985
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
1986
+ * @param {*} [options] Override http request option.
1987
+ * @throws {RequiredError}
1988
+ */
1989
+ async listPackingOptions(inboundPlanId, pageSize, paginationToken, options) {
1990
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPackingOptions(inboundPlanId, pageSize, paginationToken, options);
1991
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1992
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listPackingOptions"]?.[localVarOperationServerIndex]?.url;
1993
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1994
+ },
1995
+ /**
1996
+ * Provides a list of all placement options for an inbound plan. Placement options must first be generated by the corresponding operation before becoming available.
1997
+ * @param {string} inboundPlanId Identifier of an inbound plan.
1998
+ * @param {number} [pageSize] The number of placement options to return in the response matching the given query.
1999
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
2000
+ * @param {*} [options] Override http request option.
2001
+ * @throws {RequiredError}
2002
+ */
2003
+ async listPlacementOptions(inboundPlanId, pageSize, paginationToken, options) {
2004
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlacementOptions(inboundPlanId, pageSize, paginationToken, options);
2005
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2006
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listPlacementOptions"]?.[localVarOperationServerIndex]?.url;
2007
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2008
+ },
2009
+ /**
2010
+ * Get preparation details for a list of MSKUs in a specified marketplace.\\n\\n**Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding).\\n\\nThe following characters must be double percent encoded:\\n\\n- `%`\\n- `+`\\n- `,`\\n\\n**Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
2011
+ * @param {string} marketplaceId The marketplace ID. For a list of possible values, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
2012
+ * @param {Array<string>} mskus A list of merchant SKUs, a merchant-supplied identifier of a specific SKU.
2013
+ * @param {*} [options] Override http request option.
2014
+ * @throws {RequiredError}
2015
+ */
2016
+ async listPrepDetails(marketplaceId, mskus, options) {
2017
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPrepDetails(marketplaceId, mskus, options);
2018
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2019
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listPrepDetails"]?.[localVarOperationServerIndex]?.url;
2020
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2021
+ },
2022
+ /**
2023
+ * Provides a paginated list of box packages in a shipment.
2024
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2025
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2026
+ * @param {number} [pageSize] The number of boxes to return in the response matching the given query.
2027
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
2028
+ * @param {*} [options] Override http request option.
2029
+ * @throws {RequiredError}
2030
+ */
2031
+ async listShipmentBoxes(inboundPlanId, shipmentId, pageSize, paginationToken, options) {
2032
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listShipmentBoxes(inboundPlanId, shipmentId, pageSize, paginationToken, options);
2033
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2034
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listShipmentBoxes"]?.[localVarOperationServerIndex]?.url;
2035
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2036
+ },
2037
+ /**
2038
+ * Retrieve a paginated list of shipment content update previews for a given shipment. The shipment content update preview is a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
2039
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2040
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2041
+ * @param {number} [pageSize] The number of content update previews to return.
2042
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
2043
+ * @param {*} [options] Override http request option.
2044
+ * @throws {RequiredError}
2045
+ */
2046
+ async listShipmentContentUpdatePreviews(inboundPlanId, shipmentId, pageSize, paginationToken, options) {
2047
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listShipmentContentUpdatePreviews(inboundPlanId, shipmentId, pageSize, paginationToken, options);
2048
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2049
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listShipmentContentUpdatePreviews"]?.[localVarOperationServerIndex]?.url;
2050
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2051
+ },
2052
+ /**
2053
+ * Provides a paginated list of item packages in a shipment.
2054
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2055
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2056
+ * @param {number} [pageSize] The number of items to return in the response matching the given query.
2057
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
2058
+ * @param {*} [options] Override http request option.
2059
+ * @throws {RequiredError}
2060
+ */
2061
+ async listShipmentItems(inboundPlanId, shipmentId, pageSize, paginationToken, options) {
2062
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listShipmentItems(inboundPlanId, shipmentId, pageSize, paginationToken, options);
2063
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2064
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listShipmentItems"]?.[localVarOperationServerIndex]?.url;
2065
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2066
+ },
2067
+ /**
2068
+ * Provides a paginated list of pallet packages in a shipment. A palletized shipment will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
2069
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2070
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2071
+ * @param {number} [pageSize] The number of pallets to return in the response matching the given query.
2072
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
2073
+ * @param {*} [options] Override http request option.
2074
+ * @throws {RequiredError}
2075
+ */
2076
+ async listShipmentPallets(inboundPlanId, shipmentId, pageSize, paginationToken, options) {
2077
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listShipmentPallets(inboundPlanId, shipmentId, pageSize, paginationToken, options);
2078
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2079
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listShipmentPallets"]?.[localVarOperationServerIndex]?.url;
2080
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2081
+ },
2082
+ /**
2083
+ * Retrieves all transportation options for a shipment. Transportation options must first be generated by the `generateTransportationOptions` operation before becoming available.
2084
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2085
+ * @param {number} [pageSize] The number of transportation options to return in the response matching the given query.
2086
+ * @param {string} [paginationToken] A token to fetch a certain page when there are multiple pages worth of results. The value of this token is fetched from the &#x60;pagination&#x60; returned in the API response. In the absence of the token value from the query parameter the API returns the first page of the result.
2087
+ * @param {string} [placementOptionId] The placement option to get transportation options for. Either &#x60;placementOptionId&#x60; or &#x60;shipmentId&#x60; must be specified.
2088
+ * @param {string} [shipmentId] The shipment to get transportation options for. Either &#x60;placementOptionId&#x60; or &#x60;shipmentId&#x60; must be specified.
2089
+ * @param {*} [options] Override http request option.
2090
+ * @throws {RequiredError}
2091
+ */
2092
+ async listTransportationOptions(inboundPlanId, pageSize, paginationToken, placementOptionId, shipmentId, options) {
2093
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTransportationOptions(inboundPlanId, pageSize, paginationToken, placementOptionId, shipmentId, options);
2094
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2095
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.listTransportationOptions"]?.[localVarOperationServerIndex]?.url;
2096
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2097
+ },
2098
+ /**
2099
+ * Confirms or reschedules a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2100
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2101
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2102
+ * @param {string} slotId An identifier to a self-ship appointment slot.
2103
+ * @param {ScheduleSelfShipAppointmentRequest} body The body of the request to &#x60;scheduleSelfShipAppointment&#x60;.
2104
+ * @param {*} [options] Override http request option.
2105
+ * @throws {RequiredError}
2106
+ */
2107
+ async scheduleSelfShipAppointment(inboundPlanId, shipmentId, slotId, body, options) {
2108
+ const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleSelfShipAppointment(inboundPlanId, shipmentId, slotId, body, options);
2109
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2110
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.scheduleSelfShipAppointment"]?.[localVarOperationServerIndex]?.url;
2111
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2112
+ },
2113
+ /**
2114
+ * Sets packing information for an inbound plan. This should be called after an inbound plan is created to populate the box level information required for planning and transportation estimates.
2115
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2116
+ * @param {SetPackingInformationRequest} body The body of the request to &#x60;setPackingInformation&#x60;.
2117
+ * @param {*} [options] Override http request option.
2118
+ * @throws {RequiredError}
2119
+ */
2120
+ async setPackingInformation(inboundPlanId, body, options) {
2121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setPackingInformation(inboundPlanId, body, options);
2122
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2123
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.setPackingInformation"]?.[localVarOperationServerIndex]?.url;
2124
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2125
+ },
2126
+ /**
2127
+ * Set the preparation details for a list of MSKUs in a specified marketplace.
2128
+ * @param {SetPrepDetailsRequest} body The body of the request to &#x60;setPrepDetails&#x60;.
2129
+ * @param {*} [options] Override http request option.
2130
+ * @throws {RequiredError}
2131
+ */
2132
+ async setPrepDetails(body, options) {
2133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setPrepDetails(body, options);
2134
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2135
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.setPrepDetails"]?.[localVarOperationServerIndex]?.url;
2136
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2137
+ },
2138
+ /**
2139
+ * Updates the name of an existing inbound plan.
2140
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2141
+ * @param {UpdateInboundPlanNameRequest} body The body of the request to &#x60;updateInboundPlanName&#x60;.
2142
+ * @param {*} [options] Override http request option.
2143
+ * @throws {RequiredError}
2144
+ */
2145
+ async updateInboundPlanName(inboundPlanId, body, options) {
2146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateInboundPlanName(inboundPlanId, body, options);
2147
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2148
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.updateInboundPlanName"]?.[localVarOperationServerIndex]?.url;
2149
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2150
+ },
2151
+ /**
2152
+ * Update compliance details for a list of MSKUs. The details provided here are only used for the India (IN - A21TJRUUN4KGV) marketplace compliance validation.
2153
+ * @param {string} marketplaceId The Marketplace ID. For a list of possible values, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
2154
+ * @param {UpdateItemComplianceDetailsRequest} body The body of the request to &#x60;updateItemComplianceDetails&#x60;.
2155
+ * @param {*} [options] Override http request option.
2156
+ * @throws {RequiredError}
2157
+ */
2158
+ async updateItemComplianceDetails(marketplaceId, body, options) {
2159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateItemComplianceDetails(marketplaceId, body, options);
2160
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2161
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.updateItemComplianceDetails"]?.[localVarOperationServerIndex]?.url;
2162
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2163
+ },
2164
+ /**
2165
+ * Updates the name of an existing shipment.
2166
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2167
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2168
+ * @param {UpdateShipmentNameRequest} body The body of the request to &#x60;updateShipmentName&#x60;.
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ */
2172
+ async updateShipmentName(inboundPlanId, shipmentId, body, options) {
2173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipmentName(inboundPlanId, shipmentId, body, options);
2174
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2175
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.updateShipmentName"]?.[localVarOperationServerIndex]?.url;
2176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2177
+ },
2178
+ /**
2179
+ * Updates the source address of an existing shipment. The shipment source address can only be updated prior to the confirmation of the shipment carriers. As a result of the updated source address, existing transportation options will be invalidated and will need to be regenerated to capture the potential difference in transportation options and quotes due to the new source address.
2180
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2181
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2182
+ * @param {UpdateShipmentSourceAddressRequest} body The body of the request to &#x60;updateShipmentSourceAddress&#x60;.
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ async updateShipmentSourceAddress(inboundPlanId, shipmentId, body, options) {
2187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipmentSourceAddress(inboundPlanId, shipmentId, body, options);
2188
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2189
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.updateShipmentSourceAddress"]?.[localVarOperationServerIndex]?.url;
2190
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2191
+ },
2192
+ /**
2193
+ * Updates a shipment\'s tracking details.
2194
+ * @param {string} inboundPlanId Identifier of an inbound plan.
2195
+ * @param {string} shipmentId Identifier of a shipment. A shipment contains the boxes and units being inbounded.
2196
+ * @param {UpdateShipmentTrackingDetailsRequest} body The body of the request to &#x60;updateShipmentTrackingDetails&#x60;.
2197
+ * @param {*} [options] Override http request option.
2198
+ * @throws {RequiredError}
2199
+ */
2200
+ async updateShipmentTrackingDetails(inboundPlanId, shipmentId, body, options) {
2201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipmentTrackingDetails(inboundPlanId, shipmentId, body, options);
2202
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2203
+ const localVarOperationServerBasePath = operationServerMap["FulfillmentInboundApi.updateShipmentTrackingDetails"]?.[localVarOperationServerIndex]?.url;
2204
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2205
+ }
2206
+ };
2207
+ };
2208
+ var FulfillmentInboundApiFactory = function(configuration, basePath, axios) {
2209
+ const localVarFp = FulfillmentInboundApiFp(configuration);
2210
+ return {
2211
+ /**
2212
+ * Cancels an Inbound Plan. Charges may apply if the cancellation is performed outside of a void window. The window for Amazon Partnered Carriers is 24 hours for Small Parcel Delivery (SPD) and one hour for Less-Than-Truckload (LTL) carrier shipments.
2213
+ * @param {FulfillmentInboundApiCancelInboundPlanRequest} requestParameters Request parameters.
2214
+ * @param {*} [options] Override http request option.
2215
+ * @throws {RequiredError}
2216
+ */
2217
+ cancelInboundPlan(requestParameters, options) {
2218
+ return localVarFp.cancelInboundPlan(requestParameters.inboundPlanId, options).then((request) => request(axios, basePath));
2219
+ },
2220
+ /**
2221
+ * Cancels a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2222
+ * @param {FulfillmentInboundApiCancelSelfShipAppointmentRequest} requestParameters Request parameters.
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ */
2226
+ cancelSelfShipAppointment(requestParameters, options) {
2227
+ return localVarFp.cancelSelfShipAppointment(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
2228
+ },
2229
+ /**
2230
+ * Confirms the delivery window option for chosen shipment within an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new delivery window options cannot be generated, but the chosen delivery window option can be updated before shipment closure. The window is used to provide the expected time when a shipment will arrive at the warehouse. All transportation options which have the program `CONFIRMED_DELIVERY_WINDOW` require a delivery window to be confirmed prior to transportation option confirmation.
2231
+ * @param {FulfillmentInboundApiConfirmDeliveryWindowOptionsRequest} requestParameters Request parameters.
2232
+ * @param {*} [options] Override http request option.
2233
+ * @throws {RequiredError}
2234
+ */
2235
+ confirmDeliveryWindowOptions(requestParameters, options) {
2236
+ return localVarFp.confirmDeliveryWindowOptions(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.deliveryWindowOptionId, options).then((request) => request(axios, basePath));
2237
+ },
2238
+ /**
2239
+ * Confirms the packing option for an inbound plan.
2240
+ * @param {FulfillmentInboundApiConfirmPackingOptionRequest} requestParameters Request parameters.
2241
+ * @param {*} [options] Override http request option.
2242
+ * @throws {RequiredError}
2243
+ */
2244
+ confirmPackingOption(requestParameters, options) {
2245
+ return localVarFp.confirmPackingOption(requestParameters.inboundPlanId, requestParameters.packingOptionId, options).then((request) => request(axios, basePath));
2246
+ },
2247
+ /**
2248
+ * Confirms the placement option for an inbound plan. Once confirmed, it cannot be changed for the Inbound Plan.
2249
+ * @param {FulfillmentInboundApiConfirmPlacementOptionRequest} requestParameters Request parameters.
2250
+ * @param {*} [options] Override http request option.
2251
+ * @throws {RequiredError}
2252
+ */
2253
+ confirmPlacementOption(requestParameters, options) {
2254
+ return localVarFp.confirmPlacementOption(requestParameters.inboundPlanId, requestParameters.placementOptionId, options).then((request) => request(axios, basePath));
2255
+ },
2256
+ /**
2257
+ * Confirm a shipment content update preview and accept the changes in transportation cost.
2258
+ * @param {FulfillmentInboundApiConfirmShipmentContentUpdatePreviewRequest} requestParameters Request parameters.
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ confirmShipmentContentUpdatePreview(requestParameters, options) {
2263
+ return localVarFp.confirmShipmentContentUpdatePreview(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.contentUpdatePreviewId, options).then((request) => request(axios, basePath));
2264
+ },
2265
+ /**
2266
+ * Confirms all the transportation options for an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new transportation options can not be generated or confirmed for the Inbound Plan.
2267
+ * @param {FulfillmentInboundApiConfirmTransportationOptionsRequest} requestParameters Request parameters.
2268
+ * @param {*} [options] Override http request option.
2269
+ * @throws {RequiredError}
2270
+ */
2271
+ confirmTransportationOptions(requestParameters, options) {
2272
+ return localVarFp.confirmTransportationOptions(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(axios, basePath));
2273
+ },
2274
+ /**
2275
+ * Creates an inbound plan. An inbound plan contains all the necessary information to send shipments into Amazon\'s fufillment network.
2276
+ * @param {FulfillmentInboundApiCreateInboundPlanRequest} requestParameters Request parameters.
2277
+ * @param {*} [options] Override http request option.
2278
+ * @throws {RequiredError}
2279
+ */
2280
+ createInboundPlan(requestParameters, options) {
2281
+ return localVarFp.createInboundPlan(requestParameters.body, options).then((request) => request(axios, basePath));
2282
+ },
2283
+ /**
2284
+ * For a given marketplace - creates labels for a list of MSKUs.
2285
+ * @param {FulfillmentInboundApiCreateMarketplaceItemLabelsRequest} requestParameters Request parameters.
2286
+ * @param {*} [options] Override http request option.
2287
+ * @throws {RequiredError}
2288
+ */
2289
+ createMarketplaceItemLabels(requestParameters, options) {
2290
+ return localVarFp.createMarketplaceItemLabels(requestParameters.body, options).then((request) => request(axios, basePath));
2291
+ },
2292
+ /**
2293
+ * Generates available delivery window options for a given shipment.
2294
+ * @param {FulfillmentInboundApiGenerateDeliveryWindowOptionsRequest} requestParameters Request parameters.
2295
+ * @param {*} [options] Override http request option.
2296
+ * @throws {RequiredError}
2297
+ */
2298
+ generateDeliveryWindowOptions(requestParameters, options) {
2299
+ return localVarFp.generateDeliveryWindowOptions(requestParameters.inboundPlanId, requestParameters.shipmentId, options).then((request) => request(axios, basePath));
2300
+ },
2301
+ /**
2302
+ * Generates available packing options for the inbound plan.
2303
+ * @param {FulfillmentInboundApiGeneratePackingOptionsRequest} requestParameters Request parameters.
2304
+ * @param {*} [options] Override http request option.
2305
+ * @throws {RequiredError}
2306
+ */
2307
+ generatePackingOptions(requestParameters, options) {
2308
+ return localVarFp.generatePackingOptions(requestParameters.inboundPlanId, options).then((request) => request(axios, basePath));
2309
+ },
2310
+ /**
2311
+ * Generates placement options for the inbound plan.
2312
+ * @param {FulfillmentInboundApiGeneratePlacementOptionsRequest} requestParameters Request parameters.
2313
+ * @param {*} [options] Override http request option.
2314
+ * @throws {RequiredError}
2315
+ */
2316
+ generatePlacementOptions(requestParameters, options) {
2317
+ return localVarFp.generatePlacementOptions(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(axios, basePath));
2318
+ },
2319
+ /**
2320
+ * Initiates the process of generating the appointment slots list. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2321
+ * @param {FulfillmentInboundApiGenerateSelfShipAppointmentSlotsRequest} requestParameters Request parameters.
2322
+ * @param {*} [options] Override http request option.
2323
+ * @throws {RequiredError}
2324
+ */
2325
+ generateSelfShipAppointmentSlots(requestParameters, options) {
2326
+ return localVarFp.generateSelfShipAppointmentSlots(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
2327
+ },
2328
+ /**
2329
+ * Generate a shipment content update preview given a set of intended boxes and/or items for a shipment with a confirmed carrier. The shipment content update preview will be viewable with the updated costs and contents prior to confirmation.
2330
+ * @param {FulfillmentInboundApiGenerateShipmentContentUpdatePreviewsRequest} requestParameters Request parameters.
2331
+ * @param {*} [options] Override http request option.
2332
+ * @throws {RequiredError}
2333
+ */
2334
+ generateShipmentContentUpdatePreviews(requestParameters, options) {
2335
+ return localVarFp.generateShipmentContentUpdatePreviews(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
2336
+ },
2337
+ /**
2338
+ * Generates available transportation options for a given placement option.
2339
+ * @param {FulfillmentInboundApiGenerateTransportationOptionsRequest} requestParameters Request parameters.
2340
+ * @param {*} [options] Override http request option.
2341
+ * @throws {RequiredError}
2342
+ */
2343
+ generateTransportationOptions(requestParameters, options) {
2344
+ return localVarFp.generateTransportationOptions(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(axios, basePath));
2345
+ },
2346
+ /**
2347
+ * Provide delivery challan document for PCP transportation in IN marketplace.
2348
+ * @param {FulfillmentInboundApiGetDeliveryChallanDocumentRequest} requestParameters Request parameters.
2349
+ * @param {*} [options] Override http request option.
2350
+ * @throws {RequiredError}
2351
+ */
2352
+ getDeliveryChallanDocument(requestParameters, options) {
2353
+ return localVarFp.getDeliveryChallanDocument(requestParameters.inboundPlanId, requestParameters.shipmentId, options).then((request) => request(axios, basePath));
2354
+ },
2355
+ /**
2356
+ * Gets the status of the processing of an asynchronous API call.
2357
+ * @param {FulfillmentInboundApiGetInboundOperationStatusRequest} requestParameters Request parameters.
2358
+ * @param {*} [options] Override http request option.
2359
+ * @throws {RequiredError}
2360
+ */
2361
+ getInboundOperationStatus(requestParameters, options) {
2362
+ return localVarFp.getInboundOperationStatus(requestParameters.operationId, options).then((request) => request(axios, basePath));
2363
+ },
2364
+ /**
2365
+ * Fetches the top level information about an inbound plan.
2366
+ * @param {FulfillmentInboundApiGetInboundPlanRequest} requestParameters Request parameters.
2367
+ * @param {*} [options] Override http request option.
2368
+ * @throws {RequiredError}
2369
+ */
2370
+ getInboundPlan(requestParameters, options) {
2371
+ return localVarFp.getInboundPlan(requestParameters.inboundPlanId, options).then((request) => request(axios, basePath));
2372
+ },
2373
+ /**
2374
+ * Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2375
+ * @param {FulfillmentInboundApiGetSelfShipAppointmentSlotsRequest} requestParameters Request parameters.
2376
+ * @param {*} [options] Override http request option.
2377
+ * @throws {RequiredError}
2378
+ */
2379
+ getSelfShipAppointmentSlots(requestParameters, options) {
2380
+ return localVarFp.getSelfShipAppointmentSlots(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2381
+ },
2382
+ /**
2383
+ * Provides the full details for a specific shipment within an inbound plan. The `transportationOptionId` inside `acceptedTransportationSelection` can be used to retrieve the transportation details for the shipment.
2384
+ * @param {FulfillmentInboundApiGetShipmentRequest} requestParameters Request parameters.
2385
+ * @param {*} [options] Override http request option.
2386
+ * @throws {RequiredError}
2387
+ */
2388
+ getShipment(requestParameters, options) {
2389
+ return localVarFp.getShipment(requestParameters.inboundPlanId, requestParameters.shipmentId, options).then((request) => request(axios, basePath));
2390
+ },
2391
+ /**
2392
+ * Retrieve a shipment content update preview which provides a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
2393
+ * @param {FulfillmentInboundApiGetShipmentContentUpdatePreviewRequest} requestParameters Request parameters.
2394
+ * @param {*} [options] Override http request option.
2395
+ * @throws {RequiredError}
2396
+ */
2397
+ getShipmentContentUpdatePreview(requestParameters, options) {
2398
+ return localVarFp.getShipmentContentUpdatePreview(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.contentUpdatePreviewId, options).then((request) => request(axios, basePath));
2399
+ },
2400
+ /**
2401
+ * Retrieves all delivery window options for a shipment. Delivery window options must first be generated by the `generateDeliveryWindowOptions` operation before becoming available.
2402
+ * @param {FulfillmentInboundApiListDeliveryWindowOptionsRequest} requestParameters Request parameters.
2403
+ * @param {*} [options] Override http request option.
2404
+ * @throws {RequiredError}
2405
+ */
2406
+ listDeliveryWindowOptions(requestParameters, options) {
2407
+ return localVarFp.listDeliveryWindowOptions(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2408
+ },
2409
+ /**
2410
+ * Provides a paginated list of box packages in an inbound plan.
2411
+ * @param {FulfillmentInboundApiListInboundPlanBoxesRequest} requestParameters Request parameters.
2412
+ * @param {*} [options] Override http request option.
2413
+ * @throws {RequiredError}
2414
+ */
2415
+ listInboundPlanBoxes(requestParameters, options) {
2416
+ return localVarFp.listInboundPlanBoxes(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2417
+ },
2418
+ /**
2419
+ * Provides a paginated list of item packages in an inbound plan.
2420
+ * @param {FulfillmentInboundApiListInboundPlanItemsRequest} requestParameters Request parameters.
2421
+ * @param {*} [options] Override http request option.
2422
+ * @throws {RequiredError}
2423
+ */
2424
+ listInboundPlanItems(requestParameters, options) {
2425
+ return localVarFp.listInboundPlanItems(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2426
+ },
2427
+ /**
2428
+ * Provides a paginated list of pallet packages in an inbound plan. An inbound plan will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
2429
+ * @param {FulfillmentInboundApiListInboundPlanPalletsRequest} requestParameters Request parameters.
2430
+ * @param {*} [options] Override http request option.
2431
+ * @throws {RequiredError}
2432
+ */
2433
+ listInboundPlanPallets(requestParameters, options) {
2434
+ return localVarFp.listInboundPlanPallets(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2435
+ },
2436
+ /**
2437
+ * Provides a list of inbound plans with minimal information.
2438
+ * @param {FulfillmentInboundApiListInboundPlansRequest} requestParameters Request parameters.
2439
+ * @param {*} [options] Override http request option.
2440
+ * @throws {RequiredError}
2441
+ */
2442
+ listInboundPlans(requestParameters = {}, options) {
2443
+ return localVarFp.listInboundPlans(requestParameters.pageSize, requestParameters.paginationToken, requestParameters.status, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
2444
+ },
2445
+ /**
2446
+ * List the inbound compliance details for MSKUs in a given marketplace. **Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). The following characters must be double percent encoded: - `%` - `+` - `,` **Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
2447
+ * @param {FulfillmentInboundApiListItemComplianceDetailsRequest} requestParameters Request parameters.
2448
+ * @param {*} [options] Override http request option.
2449
+ * @throws {RequiredError}
2450
+ */
2451
+ listItemComplianceDetails(requestParameters, options) {
2452
+ return localVarFp.listItemComplianceDetails(requestParameters.mskus, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
2453
+ },
2454
+ /**
2455
+ * Retrieves a page of boxes from a given packing group. These boxes were previously provided through the `setPackingInformation` operation. This API is used for workflows where boxes are packed before Amazon determines shipment splits.
2456
+ * @param {FulfillmentInboundApiListPackingGroupBoxesRequest} requestParameters Request parameters.
2457
+ * @param {*} [options] Override http request option.
2458
+ * @throws {RequiredError}
2459
+ */
2460
+ listPackingGroupBoxes(requestParameters, options) {
2461
+ return localVarFp.listPackingGroupBoxes(requestParameters.inboundPlanId, requestParameters.packingGroupId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2462
+ },
2463
+ /**
2464
+ * Retrieves a page of items in a given packing group. Packing options must first be generated by the corresponding operation before packing group items can be listed.
2465
+ * @param {FulfillmentInboundApiListPackingGroupItemsRequest} requestParameters Request parameters.
2466
+ * @param {*} [options] Override http request option.
2467
+ * @throws {RequiredError}
2468
+ */
2469
+ listPackingGroupItems(requestParameters, options) {
2470
+ return localVarFp.listPackingGroupItems(requestParameters.inboundPlanId, requestParameters.packingGroupId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2471
+ },
2472
+ /**
2473
+ * Retrieves a list of all packing options for an inbound plan. Packing options must first be generated by the corresponding operation before becoming available.
2474
+ * @param {FulfillmentInboundApiListPackingOptionsRequest} requestParameters Request parameters.
2475
+ * @param {*} [options] Override http request option.
2476
+ * @throws {RequiredError}
2477
+ */
2478
+ listPackingOptions(requestParameters, options) {
2479
+ return localVarFp.listPackingOptions(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2480
+ },
2481
+ /**
2482
+ * Provides a list of all placement options for an inbound plan. Placement options must first be generated by the corresponding operation before becoming available.
2483
+ * @param {FulfillmentInboundApiListPlacementOptionsRequest} requestParameters Request parameters.
2484
+ * @param {*} [options] Override http request option.
2485
+ * @throws {RequiredError}
2486
+ */
2487
+ listPlacementOptions(requestParameters, options) {
2488
+ return localVarFp.listPlacementOptions(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2489
+ },
2490
+ /**
2491
+ * Get preparation details for a list of MSKUs in a specified marketplace.\\n\\n**Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding).\\n\\nThe following characters must be double percent encoded:\\n\\n- `%`\\n- `+`\\n- `,`\\n\\n**Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
2492
+ * @param {FulfillmentInboundApiListPrepDetailsRequest} requestParameters Request parameters.
2493
+ * @param {*} [options] Override http request option.
2494
+ * @throws {RequiredError}
2495
+ */
2496
+ listPrepDetails(requestParameters, options) {
2497
+ return localVarFp.listPrepDetails(requestParameters.marketplaceId, requestParameters.mskus, options).then((request) => request(axios, basePath));
2498
+ },
2499
+ /**
2500
+ * Provides a paginated list of box packages in a shipment.
2501
+ * @param {FulfillmentInboundApiListShipmentBoxesRequest} requestParameters Request parameters.
2502
+ * @param {*} [options] Override http request option.
2503
+ * @throws {RequiredError}
2504
+ */
2505
+ listShipmentBoxes(requestParameters, options) {
2506
+ return localVarFp.listShipmentBoxes(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2507
+ },
2508
+ /**
2509
+ * Retrieve a paginated list of shipment content update previews for a given shipment. The shipment content update preview is a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
2510
+ * @param {FulfillmentInboundApiListShipmentContentUpdatePreviewsRequest} requestParameters Request parameters.
2511
+ * @param {*} [options] Override http request option.
2512
+ * @throws {RequiredError}
2513
+ */
2514
+ listShipmentContentUpdatePreviews(requestParameters, options) {
2515
+ return localVarFp.listShipmentContentUpdatePreviews(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2516
+ },
2517
+ /**
2518
+ * Provides a paginated list of item packages in a shipment.
2519
+ * @param {FulfillmentInboundApiListShipmentItemsRequest} requestParameters Request parameters.
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ listShipmentItems(requestParameters, options) {
2524
+ return localVarFp.listShipmentItems(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2525
+ },
2526
+ /**
2527
+ * Provides a paginated list of pallet packages in a shipment. A palletized shipment will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
2528
+ * @param {FulfillmentInboundApiListShipmentPalletsRequest} requestParameters Request parameters.
2529
+ * @param {*} [options] Override http request option.
2530
+ * @throws {RequiredError}
2531
+ */
2532
+ listShipmentPallets(requestParameters, options) {
2533
+ return localVarFp.listShipmentPallets(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(axios, basePath));
2534
+ },
2535
+ /**
2536
+ * Retrieves all transportation options for a shipment. Transportation options must first be generated by the `generateTransportationOptions` operation before becoming available.
2537
+ * @param {FulfillmentInboundApiListTransportationOptionsRequest} requestParameters Request parameters.
2538
+ * @param {*} [options] Override http request option.
2539
+ * @throws {RequiredError}
2540
+ */
2541
+ listTransportationOptions(requestParameters, options) {
2542
+ return localVarFp.listTransportationOptions(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, requestParameters.placementOptionId, requestParameters.shipmentId, options).then((request) => request(axios, basePath));
2543
+ },
2544
+ /**
2545
+ * Confirms or reschedules a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2546
+ * @param {FulfillmentInboundApiScheduleSelfShipAppointmentRequest} requestParameters Request parameters.
2547
+ * @param {*} [options] Override http request option.
2548
+ * @throws {RequiredError}
2549
+ */
2550
+ scheduleSelfShipAppointment(requestParameters, options) {
2551
+ return localVarFp.scheduleSelfShipAppointment(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.slotId, requestParameters.body, options).then((request) => request(axios, basePath));
2552
+ },
2553
+ /**
2554
+ * Sets packing information for an inbound plan. This should be called after an inbound plan is created to populate the box level information required for planning and transportation estimates.
2555
+ * @param {FulfillmentInboundApiSetPackingInformationRequest} requestParameters Request parameters.
2556
+ * @param {*} [options] Override http request option.
2557
+ * @throws {RequiredError}
2558
+ */
2559
+ setPackingInformation(requestParameters, options) {
2560
+ return localVarFp.setPackingInformation(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(axios, basePath));
2561
+ },
2562
+ /**
2563
+ * Set the preparation details for a list of MSKUs in a specified marketplace.
2564
+ * @param {FulfillmentInboundApiSetPrepDetailsRequest} requestParameters Request parameters.
2565
+ * @param {*} [options] Override http request option.
2566
+ * @throws {RequiredError}
2567
+ */
2568
+ setPrepDetails(requestParameters, options) {
2569
+ return localVarFp.setPrepDetails(requestParameters.body, options).then((request) => request(axios, basePath));
2570
+ },
2571
+ /**
2572
+ * Updates the name of an existing inbound plan.
2573
+ * @param {FulfillmentInboundApiUpdateInboundPlanNameRequest} requestParameters Request parameters.
2574
+ * @param {*} [options] Override http request option.
2575
+ * @throws {RequiredError}
2576
+ */
2577
+ updateInboundPlanName(requestParameters, options) {
2578
+ return localVarFp.updateInboundPlanName(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(axios, basePath));
2579
+ },
2580
+ /**
2581
+ * Update compliance details for a list of MSKUs. The details provided here are only used for the India (IN - A21TJRUUN4KGV) marketplace compliance validation.
2582
+ * @param {FulfillmentInboundApiUpdateItemComplianceDetailsRequest} requestParameters Request parameters.
2583
+ * @param {*} [options] Override http request option.
2584
+ * @throws {RequiredError}
2585
+ */
2586
+ updateItemComplianceDetails(requestParameters, options) {
2587
+ return localVarFp.updateItemComplianceDetails(requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(axios, basePath));
2588
+ },
2589
+ /**
2590
+ * Updates the name of an existing shipment.
2591
+ * @param {FulfillmentInboundApiUpdateShipmentNameRequest} requestParameters Request parameters.
2592
+ * @param {*} [options] Override http request option.
2593
+ * @throws {RequiredError}
2594
+ */
2595
+ updateShipmentName(requestParameters, options) {
2596
+ return localVarFp.updateShipmentName(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
2597
+ },
2598
+ /**
2599
+ * Updates the source address of an existing shipment. The shipment source address can only be updated prior to the confirmation of the shipment carriers. As a result of the updated source address, existing transportation options will be invalidated and will need to be regenerated to capture the potential difference in transportation options and quotes due to the new source address.
2600
+ * @param {FulfillmentInboundApiUpdateShipmentSourceAddressRequest} requestParameters Request parameters.
2601
+ * @param {*} [options] Override http request option.
2602
+ * @throws {RequiredError}
2603
+ */
2604
+ updateShipmentSourceAddress(requestParameters, options) {
2605
+ return localVarFp.updateShipmentSourceAddress(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
2606
+ },
2607
+ /**
2608
+ * Updates a shipment\'s tracking details.
2609
+ * @param {FulfillmentInboundApiUpdateShipmentTrackingDetailsRequest} requestParameters Request parameters.
2610
+ * @param {*} [options] Override http request option.
2611
+ * @throws {RequiredError}
2612
+ */
2613
+ updateShipmentTrackingDetails(requestParameters, options) {
2614
+ return localVarFp.updateShipmentTrackingDetails(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
2615
+ }
2616
+ };
2617
+ };
2618
+ var FulfillmentInboundApi = class extends BaseAPI {
2619
+ /**
2620
+ * Cancels an Inbound Plan. Charges may apply if the cancellation is performed outside of a void window. The window for Amazon Partnered Carriers is 24 hours for Small Parcel Delivery (SPD) and one hour for Less-Than-Truckload (LTL) carrier shipments.
2621
+ * @param {FulfillmentInboundApiCancelInboundPlanRequest} requestParameters Request parameters.
2622
+ * @param {*} [options] Override http request option.
2623
+ * @throws {RequiredError}
2624
+ */
2625
+ cancelInboundPlan(requestParameters, options) {
2626
+ return FulfillmentInboundApiFp(this.configuration).cancelInboundPlan(requestParameters.inboundPlanId, options).then((request) => request(this.axios, this.basePath));
2627
+ }
2628
+ /**
2629
+ * Cancels a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2630
+ * @param {FulfillmentInboundApiCancelSelfShipAppointmentRequest} requestParameters Request parameters.
2631
+ * @param {*} [options] Override http request option.
2632
+ * @throws {RequiredError}
2633
+ */
2634
+ cancelSelfShipAppointment(requestParameters, options) {
2635
+ return FulfillmentInboundApiFp(this.configuration).cancelSelfShipAppointment(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2636
+ }
2637
+ /**
2638
+ * Confirms the delivery window option for chosen shipment within an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new delivery window options cannot be generated, but the chosen delivery window option can be updated before shipment closure. The window is used to provide the expected time when a shipment will arrive at the warehouse. All transportation options which have the program `CONFIRMED_DELIVERY_WINDOW` require a delivery window to be confirmed prior to transportation option confirmation.
2639
+ * @param {FulfillmentInboundApiConfirmDeliveryWindowOptionsRequest} requestParameters Request parameters.
2640
+ * @param {*} [options] Override http request option.
2641
+ * @throws {RequiredError}
2642
+ */
2643
+ confirmDeliveryWindowOptions(requestParameters, options) {
2644
+ return FulfillmentInboundApiFp(this.configuration).confirmDeliveryWindowOptions(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.deliveryWindowOptionId, options).then((request) => request(this.axios, this.basePath));
2645
+ }
2646
+ /**
2647
+ * Confirms the packing option for an inbound plan.
2648
+ * @param {FulfillmentInboundApiConfirmPackingOptionRequest} requestParameters Request parameters.
2649
+ * @param {*} [options] Override http request option.
2650
+ * @throws {RequiredError}
2651
+ */
2652
+ confirmPackingOption(requestParameters, options) {
2653
+ return FulfillmentInboundApiFp(this.configuration).confirmPackingOption(requestParameters.inboundPlanId, requestParameters.packingOptionId, options).then((request) => request(this.axios, this.basePath));
2654
+ }
2655
+ /**
2656
+ * Confirms the placement option for an inbound plan. Once confirmed, it cannot be changed for the Inbound Plan.
2657
+ * @param {FulfillmentInboundApiConfirmPlacementOptionRequest} requestParameters Request parameters.
2658
+ * @param {*} [options] Override http request option.
2659
+ * @throws {RequiredError}
2660
+ */
2661
+ confirmPlacementOption(requestParameters, options) {
2662
+ return FulfillmentInboundApiFp(this.configuration).confirmPlacementOption(requestParameters.inboundPlanId, requestParameters.placementOptionId, options).then((request) => request(this.axios, this.basePath));
2663
+ }
2664
+ /**
2665
+ * Confirm a shipment content update preview and accept the changes in transportation cost.
2666
+ * @param {FulfillmentInboundApiConfirmShipmentContentUpdatePreviewRequest} requestParameters Request parameters.
2667
+ * @param {*} [options] Override http request option.
2668
+ * @throws {RequiredError}
2669
+ */
2670
+ confirmShipmentContentUpdatePreview(requestParameters, options) {
2671
+ return FulfillmentInboundApiFp(this.configuration).confirmShipmentContentUpdatePreview(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.contentUpdatePreviewId, options).then((request) => request(this.axios, this.basePath));
2672
+ }
2673
+ /**
2674
+ * Confirms all the transportation options for an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new transportation options can not be generated or confirmed for the Inbound Plan.
2675
+ * @param {FulfillmentInboundApiConfirmTransportationOptionsRequest} requestParameters Request parameters.
2676
+ * @param {*} [options] Override http request option.
2677
+ * @throws {RequiredError}
2678
+ */
2679
+ confirmTransportationOptions(requestParameters, options) {
2680
+ return FulfillmentInboundApiFp(this.configuration).confirmTransportationOptions(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2681
+ }
2682
+ /**
2683
+ * Creates an inbound plan. An inbound plan contains all the necessary information to send shipments into Amazon\'s fufillment network.
2684
+ * @param {FulfillmentInboundApiCreateInboundPlanRequest} requestParameters Request parameters.
2685
+ * @param {*} [options] Override http request option.
2686
+ * @throws {RequiredError}
2687
+ */
2688
+ createInboundPlan(requestParameters, options) {
2689
+ return FulfillmentInboundApiFp(this.configuration).createInboundPlan(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2690
+ }
2691
+ /**
2692
+ * For a given marketplace - creates labels for a list of MSKUs.
2693
+ * @param {FulfillmentInboundApiCreateMarketplaceItemLabelsRequest} requestParameters Request parameters.
2694
+ * @param {*} [options] Override http request option.
2695
+ * @throws {RequiredError}
2696
+ */
2697
+ createMarketplaceItemLabels(requestParameters, options) {
2698
+ return FulfillmentInboundApiFp(this.configuration).createMarketplaceItemLabels(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2699
+ }
2700
+ /**
2701
+ * Generates available delivery window options for a given shipment.
2702
+ * @param {FulfillmentInboundApiGenerateDeliveryWindowOptionsRequest} requestParameters Request parameters.
2703
+ * @param {*} [options] Override http request option.
2704
+ * @throws {RequiredError}
2705
+ */
2706
+ generateDeliveryWindowOptions(requestParameters, options) {
2707
+ return FulfillmentInboundApiFp(this.configuration).generateDeliveryWindowOptions(requestParameters.inboundPlanId, requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
2708
+ }
2709
+ /**
2710
+ * Generates available packing options for the inbound plan.
2711
+ * @param {FulfillmentInboundApiGeneratePackingOptionsRequest} requestParameters Request parameters.
2712
+ * @param {*} [options] Override http request option.
2713
+ * @throws {RequiredError}
2714
+ */
2715
+ generatePackingOptions(requestParameters, options) {
2716
+ return FulfillmentInboundApiFp(this.configuration).generatePackingOptions(requestParameters.inboundPlanId, options).then((request) => request(this.axios, this.basePath));
2717
+ }
2718
+ /**
2719
+ * Generates placement options for the inbound plan.
2720
+ * @param {FulfillmentInboundApiGeneratePlacementOptionsRequest} requestParameters Request parameters.
2721
+ * @param {*} [options] Override http request option.
2722
+ * @throws {RequiredError}
2723
+ */
2724
+ generatePlacementOptions(requestParameters, options) {
2725
+ return FulfillmentInboundApiFp(this.configuration).generatePlacementOptions(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2726
+ }
2727
+ /**
2728
+ * Initiates the process of generating the appointment slots list. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2729
+ * @param {FulfillmentInboundApiGenerateSelfShipAppointmentSlotsRequest} requestParameters Request parameters.
2730
+ * @param {*} [options] Override http request option.
2731
+ * @throws {RequiredError}
2732
+ */
2733
+ generateSelfShipAppointmentSlots(requestParameters, options) {
2734
+ return FulfillmentInboundApiFp(this.configuration).generateSelfShipAppointmentSlots(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2735
+ }
2736
+ /**
2737
+ * Generate a shipment content update preview given a set of intended boxes and/or items for a shipment with a confirmed carrier. The shipment content update preview will be viewable with the updated costs and contents prior to confirmation.
2738
+ * @param {FulfillmentInboundApiGenerateShipmentContentUpdatePreviewsRequest} requestParameters Request parameters.
2739
+ * @param {*} [options] Override http request option.
2740
+ * @throws {RequiredError}
2741
+ */
2742
+ generateShipmentContentUpdatePreviews(requestParameters, options) {
2743
+ return FulfillmentInboundApiFp(this.configuration).generateShipmentContentUpdatePreviews(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2744
+ }
2745
+ /**
2746
+ * Generates available transportation options for a given placement option.
2747
+ * @param {FulfillmentInboundApiGenerateTransportationOptionsRequest} requestParameters Request parameters.
2748
+ * @param {*} [options] Override http request option.
2749
+ * @throws {RequiredError}
2750
+ */
2751
+ generateTransportationOptions(requestParameters, options) {
2752
+ return FulfillmentInboundApiFp(this.configuration).generateTransportationOptions(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2753
+ }
2754
+ /**
2755
+ * Provide delivery challan document for PCP transportation in IN marketplace.
2756
+ * @param {FulfillmentInboundApiGetDeliveryChallanDocumentRequest} requestParameters Request parameters.
2757
+ * @param {*} [options] Override http request option.
2758
+ * @throws {RequiredError}
2759
+ */
2760
+ getDeliveryChallanDocument(requestParameters, options) {
2761
+ return FulfillmentInboundApiFp(this.configuration).getDeliveryChallanDocument(requestParameters.inboundPlanId, requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
2762
+ }
2763
+ /**
2764
+ * Gets the status of the processing of an asynchronous API call.
2765
+ * @param {FulfillmentInboundApiGetInboundOperationStatusRequest} requestParameters Request parameters.
2766
+ * @param {*} [options] Override http request option.
2767
+ * @throws {RequiredError}
2768
+ */
2769
+ getInboundOperationStatus(requestParameters, options) {
2770
+ return FulfillmentInboundApiFp(this.configuration).getInboundOperationStatus(requestParameters.operationId, options).then((request) => request(this.axios, this.basePath));
2771
+ }
2772
+ /**
2773
+ * Fetches the top level information about an inbound plan.
2774
+ * @param {FulfillmentInboundApiGetInboundPlanRequest} requestParameters Request parameters.
2775
+ * @param {*} [options] Override http request option.
2776
+ * @throws {RequiredError}
2777
+ */
2778
+ getInboundPlan(requestParameters, options) {
2779
+ return FulfillmentInboundApiFp(this.configuration).getInboundPlan(requestParameters.inboundPlanId, options).then((request) => request(this.axios, this.basePath));
2780
+ }
2781
+ /**
2782
+ * Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2783
+ * @param {FulfillmentInboundApiGetSelfShipAppointmentSlotsRequest} requestParameters Request parameters.
2784
+ * @param {*} [options] Override http request option.
2785
+ * @throws {RequiredError}
2786
+ */
2787
+ getSelfShipAppointmentSlots(requestParameters, options) {
2788
+ return FulfillmentInboundApiFp(this.configuration).getSelfShipAppointmentSlots(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2789
+ }
2790
+ /**
2791
+ * Provides the full details for a specific shipment within an inbound plan. The `transportationOptionId` inside `acceptedTransportationSelection` can be used to retrieve the transportation details for the shipment.
2792
+ * @param {FulfillmentInboundApiGetShipmentRequest} requestParameters Request parameters.
2793
+ * @param {*} [options] Override http request option.
2794
+ * @throws {RequiredError}
2795
+ */
2796
+ getShipment(requestParameters, options) {
2797
+ return FulfillmentInboundApiFp(this.configuration).getShipment(requestParameters.inboundPlanId, requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
2798
+ }
2799
+ /**
2800
+ * Retrieve a shipment content update preview which provides a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
2801
+ * @param {FulfillmentInboundApiGetShipmentContentUpdatePreviewRequest} requestParameters Request parameters.
2802
+ * @param {*} [options] Override http request option.
2803
+ * @throws {RequiredError}
2804
+ */
2805
+ getShipmentContentUpdatePreview(requestParameters, options) {
2806
+ return FulfillmentInboundApiFp(this.configuration).getShipmentContentUpdatePreview(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.contentUpdatePreviewId, options).then((request) => request(this.axios, this.basePath));
2807
+ }
2808
+ /**
2809
+ * Retrieves all delivery window options for a shipment. Delivery window options must first be generated by the `generateDeliveryWindowOptions` operation before becoming available.
2810
+ * @param {FulfillmentInboundApiListDeliveryWindowOptionsRequest} requestParameters Request parameters.
2811
+ * @param {*} [options] Override http request option.
2812
+ * @throws {RequiredError}
2813
+ */
2814
+ listDeliveryWindowOptions(requestParameters, options) {
2815
+ return FulfillmentInboundApiFp(this.configuration).listDeliveryWindowOptions(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2816
+ }
2817
+ /**
2818
+ * Provides a paginated list of box packages in an inbound plan.
2819
+ * @param {FulfillmentInboundApiListInboundPlanBoxesRequest} requestParameters Request parameters.
2820
+ * @param {*} [options] Override http request option.
2821
+ * @throws {RequiredError}
2822
+ */
2823
+ listInboundPlanBoxes(requestParameters, options) {
2824
+ return FulfillmentInboundApiFp(this.configuration).listInboundPlanBoxes(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2825
+ }
2826
+ /**
2827
+ * Provides a paginated list of item packages in an inbound plan.
2828
+ * @param {FulfillmentInboundApiListInboundPlanItemsRequest} requestParameters Request parameters.
2829
+ * @param {*} [options] Override http request option.
2830
+ * @throws {RequiredError}
2831
+ */
2832
+ listInboundPlanItems(requestParameters, options) {
2833
+ return FulfillmentInboundApiFp(this.configuration).listInboundPlanItems(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2834
+ }
2835
+ /**
2836
+ * Provides a paginated list of pallet packages in an inbound plan. An inbound plan will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
2837
+ * @param {FulfillmentInboundApiListInboundPlanPalletsRequest} requestParameters Request parameters.
2838
+ * @param {*} [options] Override http request option.
2839
+ * @throws {RequiredError}
2840
+ */
2841
+ listInboundPlanPallets(requestParameters, options) {
2842
+ return FulfillmentInboundApiFp(this.configuration).listInboundPlanPallets(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2843
+ }
2844
+ /**
2845
+ * Provides a list of inbound plans with minimal information.
2846
+ * @param {FulfillmentInboundApiListInboundPlansRequest} requestParameters Request parameters.
2847
+ * @param {*} [options] Override http request option.
2848
+ * @throws {RequiredError}
2849
+ */
2850
+ listInboundPlans(requestParameters = {}, options) {
2851
+ return FulfillmentInboundApiFp(this.configuration).listInboundPlans(requestParameters.pageSize, requestParameters.paginationToken, requestParameters.status, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
2852
+ }
2853
+ /**
2854
+ * List the inbound compliance details for MSKUs in a given marketplace. **Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). The following characters must be double percent encoded: - `%` - `+` - `,` **Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
2855
+ * @param {FulfillmentInboundApiListItemComplianceDetailsRequest} requestParameters Request parameters.
2856
+ * @param {*} [options] Override http request option.
2857
+ * @throws {RequiredError}
2858
+ */
2859
+ listItemComplianceDetails(requestParameters, options) {
2860
+ return FulfillmentInboundApiFp(this.configuration).listItemComplianceDetails(requestParameters.mskus, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
2861
+ }
2862
+ /**
2863
+ * Retrieves a page of boxes from a given packing group. These boxes were previously provided through the `setPackingInformation` operation. This API is used for workflows where boxes are packed before Amazon determines shipment splits.
2864
+ * @param {FulfillmentInboundApiListPackingGroupBoxesRequest} requestParameters Request parameters.
2865
+ * @param {*} [options] Override http request option.
2866
+ * @throws {RequiredError}
2867
+ */
2868
+ listPackingGroupBoxes(requestParameters, options) {
2869
+ return FulfillmentInboundApiFp(this.configuration).listPackingGroupBoxes(requestParameters.inboundPlanId, requestParameters.packingGroupId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2870
+ }
2871
+ /**
2872
+ * Retrieves a page of items in a given packing group. Packing options must first be generated by the corresponding operation before packing group items can be listed.
2873
+ * @param {FulfillmentInboundApiListPackingGroupItemsRequest} requestParameters Request parameters.
2874
+ * @param {*} [options] Override http request option.
2875
+ * @throws {RequiredError}
2876
+ */
2877
+ listPackingGroupItems(requestParameters, options) {
2878
+ return FulfillmentInboundApiFp(this.configuration).listPackingGroupItems(requestParameters.inboundPlanId, requestParameters.packingGroupId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2879
+ }
2880
+ /**
2881
+ * Retrieves a list of all packing options for an inbound plan. Packing options must first be generated by the corresponding operation before becoming available.
2882
+ * @param {FulfillmentInboundApiListPackingOptionsRequest} requestParameters Request parameters.
2883
+ * @param {*} [options] Override http request option.
2884
+ * @throws {RequiredError}
2885
+ */
2886
+ listPackingOptions(requestParameters, options) {
2887
+ return FulfillmentInboundApiFp(this.configuration).listPackingOptions(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2888
+ }
2889
+ /**
2890
+ * Provides a list of all placement options for an inbound plan. Placement options must first be generated by the corresponding operation before becoming available.
2891
+ * @param {FulfillmentInboundApiListPlacementOptionsRequest} requestParameters Request parameters.
2892
+ * @param {*} [options] Override http request option.
2893
+ * @throws {RequiredError}
2894
+ */
2895
+ listPlacementOptions(requestParameters, options) {
2896
+ return FulfillmentInboundApiFp(this.configuration).listPlacementOptions(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2897
+ }
2898
+ /**
2899
+ * Get preparation details for a list of MSKUs in a specified marketplace.\\n\\n**Note:** MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding).\\n\\nThe following characters must be double percent encoded:\\n\\n- `%`\\n- `+`\\n- `,`\\n\\n**Examples:** An MSKU value of `test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
2900
+ * @param {FulfillmentInboundApiListPrepDetailsRequest} requestParameters Request parameters.
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ */
2904
+ listPrepDetails(requestParameters, options) {
2905
+ return FulfillmentInboundApiFp(this.configuration).listPrepDetails(requestParameters.marketplaceId, requestParameters.mskus, options).then((request) => request(this.axios, this.basePath));
2906
+ }
2907
+ /**
2908
+ * Provides a paginated list of box packages in a shipment.
2909
+ * @param {FulfillmentInboundApiListShipmentBoxesRequest} requestParameters Request parameters.
2910
+ * @param {*} [options] Override http request option.
2911
+ * @throws {RequiredError}
2912
+ */
2913
+ listShipmentBoxes(requestParameters, options) {
2914
+ return FulfillmentInboundApiFp(this.configuration).listShipmentBoxes(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2915
+ }
2916
+ /**
2917
+ * Retrieve a paginated list of shipment content update previews for a given shipment. The shipment content update preview is a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
2918
+ * @param {FulfillmentInboundApiListShipmentContentUpdatePreviewsRequest} requestParameters Request parameters.
2919
+ * @param {*} [options] Override http request option.
2920
+ * @throws {RequiredError}
2921
+ */
2922
+ listShipmentContentUpdatePreviews(requestParameters, options) {
2923
+ return FulfillmentInboundApiFp(this.configuration).listShipmentContentUpdatePreviews(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2924
+ }
2925
+ /**
2926
+ * Provides a paginated list of item packages in a shipment.
2927
+ * @param {FulfillmentInboundApiListShipmentItemsRequest} requestParameters Request parameters.
2928
+ * @param {*} [options] Override http request option.
2929
+ * @throws {RequiredError}
2930
+ */
2931
+ listShipmentItems(requestParameters, options) {
2932
+ return FulfillmentInboundApiFp(this.configuration).listShipmentItems(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2933
+ }
2934
+ /**
2935
+ * Provides a paginated list of pallet packages in a shipment. A palletized shipment will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
2936
+ * @param {FulfillmentInboundApiListShipmentPalletsRequest} requestParameters Request parameters.
2937
+ * @param {*} [options] Override http request option.
2938
+ * @throws {RequiredError}
2939
+ */
2940
+ listShipmentPallets(requestParameters, options) {
2941
+ return FulfillmentInboundApiFp(this.configuration).listShipmentPallets(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.pageSize, requestParameters.paginationToken, options).then((request) => request(this.axios, this.basePath));
2942
+ }
2943
+ /**
2944
+ * Retrieves all transportation options for a shipment. Transportation options must first be generated by the `generateTransportationOptions` operation before becoming available.
2945
+ * @param {FulfillmentInboundApiListTransportationOptionsRequest} requestParameters Request parameters.
2946
+ * @param {*} [options] Override http request option.
2947
+ * @throws {RequiredError}
2948
+ */
2949
+ listTransportationOptions(requestParameters, options) {
2950
+ return FulfillmentInboundApiFp(this.configuration).listTransportationOptions(requestParameters.inboundPlanId, requestParameters.pageSize, requestParameters.paginationToken, requestParameters.placementOptionId, requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
2951
+ }
2952
+ /**
2953
+ * Confirms or reschedules a self-ship appointment slot against a shipment. Only available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
2954
+ * @param {FulfillmentInboundApiScheduleSelfShipAppointmentRequest} requestParameters Request parameters.
2955
+ * @param {*} [options] Override http request option.
2956
+ * @throws {RequiredError}
2957
+ */
2958
+ scheduleSelfShipAppointment(requestParameters, options) {
2959
+ return FulfillmentInboundApiFp(this.configuration).scheduleSelfShipAppointment(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.slotId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2960
+ }
2961
+ /**
2962
+ * Sets packing information for an inbound plan. This should be called after an inbound plan is created to populate the box level information required for planning and transportation estimates.
2963
+ * @param {FulfillmentInboundApiSetPackingInformationRequest} requestParameters Request parameters.
2964
+ * @param {*} [options] Override http request option.
2965
+ * @throws {RequiredError}
2966
+ */
2967
+ setPackingInformation(requestParameters, options) {
2968
+ return FulfillmentInboundApiFp(this.configuration).setPackingInformation(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2969
+ }
2970
+ /**
2971
+ * Set the preparation details for a list of MSKUs in a specified marketplace.
2972
+ * @param {FulfillmentInboundApiSetPrepDetailsRequest} requestParameters Request parameters.
2973
+ * @param {*} [options] Override http request option.
2974
+ * @throws {RequiredError}
2975
+ */
2976
+ setPrepDetails(requestParameters, options) {
2977
+ return FulfillmentInboundApiFp(this.configuration).setPrepDetails(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2978
+ }
2979
+ /**
2980
+ * Updates the name of an existing inbound plan.
2981
+ * @param {FulfillmentInboundApiUpdateInboundPlanNameRequest} requestParameters Request parameters.
2982
+ * @param {*} [options] Override http request option.
2983
+ * @throws {RequiredError}
2984
+ */
2985
+ updateInboundPlanName(requestParameters, options) {
2986
+ return FulfillmentInboundApiFp(this.configuration).updateInboundPlanName(requestParameters.inboundPlanId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2987
+ }
2988
+ /**
2989
+ * Update compliance details for a list of MSKUs. The details provided here are only used for the India (IN - A21TJRUUN4KGV) marketplace compliance validation.
2990
+ * @param {FulfillmentInboundApiUpdateItemComplianceDetailsRequest} requestParameters Request parameters.
2991
+ * @param {*} [options] Override http request option.
2992
+ * @throws {RequiredError}
2993
+ */
2994
+ updateItemComplianceDetails(requestParameters, options) {
2995
+ return FulfillmentInboundApiFp(this.configuration).updateItemComplianceDetails(requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2996
+ }
2997
+ /**
2998
+ * Updates the name of an existing shipment.
2999
+ * @param {FulfillmentInboundApiUpdateShipmentNameRequest} requestParameters Request parameters.
3000
+ * @param {*} [options] Override http request option.
3001
+ * @throws {RequiredError}
3002
+ */
3003
+ updateShipmentName(requestParameters, options) {
3004
+ return FulfillmentInboundApiFp(this.configuration).updateShipmentName(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3005
+ }
3006
+ /**
3007
+ * Updates the source address of an existing shipment. The shipment source address can only be updated prior to the confirmation of the shipment carriers. As a result of the updated source address, existing transportation options will be invalidated and will need to be regenerated to capture the potential difference in transportation options and quotes due to the new source address.
3008
+ * @param {FulfillmentInboundApiUpdateShipmentSourceAddressRequest} requestParameters Request parameters.
3009
+ * @param {*} [options] Override http request option.
3010
+ * @throws {RequiredError}
3011
+ */
3012
+ updateShipmentSourceAddress(requestParameters, options) {
3013
+ return FulfillmentInboundApiFp(this.configuration).updateShipmentSourceAddress(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3014
+ }
3015
+ /**
3016
+ * Updates a shipment\'s tracking details.
3017
+ * @param {FulfillmentInboundApiUpdateShipmentTrackingDetailsRequest} requestParameters Request parameters.
3018
+ * @param {*} [options] Override http request option.
3019
+ * @throws {RequiredError}
3020
+ */
3021
+ updateShipmentTrackingDetails(requestParameters, options) {
3022
+ return FulfillmentInboundApiFp(this.configuration).updateShipmentTrackingDetails(requestParameters.inboundPlanId, requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3023
+ }
3024
+ };
3025
+ var ListInboundPlansStatusEnum = {
3026
+ Active: "ACTIVE",
3027
+ Voided: "VOIDED",
3028
+ Shipped: "SHIPPED"
3029
+ };
3030
+ var ListInboundPlansSortByEnum = {
3031
+ LastUpdatedTime: "LAST_UPDATED_TIME",
3032
+ CreationTime: "CREATION_TIME"
3033
+ };
3034
+ var ListInboundPlansSortOrderEnum = {
3035
+ Asc: "ASC",
3036
+ Desc: "DESC"
3037
+ };
3038
+
3039
+ // src/api-model/configuration.ts
3040
+ var Configuration = class {
3041
+ /**
3042
+ * parameter for apiKey security
3043
+ * @param name security name
3044
+ */
3045
+ apiKey;
3046
+ /**
3047
+ * parameter for basic security
3048
+ */
3049
+ username;
3050
+ /**
3051
+ * parameter for basic security
3052
+ */
3053
+ password;
3054
+ /**
3055
+ * parameter for oauth2 security
3056
+ * @param name security name
3057
+ * @param scopes oauth2 scope
3058
+ */
3059
+ accessToken;
3060
+ /**
3061
+ * parameter for aws4 signature security
3062
+ * @param {Object} AWS4Signature - AWS4 Signature security
3063
+ * @param {string} options.region - aws region
3064
+ * @param {string} options.service - name of the service.
3065
+ * @param {string} credentials.accessKeyId - aws access key id
3066
+ * @param {string} credentials.secretAccessKey - aws access key
3067
+ * @param {string} credentials.sessionToken - aws session token
3068
+ * @memberof Configuration
3069
+ */
3070
+ awsv4;
3071
+ /**
3072
+ * override base path
3073
+ */
3074
+ basePath;
3075
+ /**
3076
+ * override server index
3077
+ */
3078
+ serverIndex;
3079
+ /**
3080
+ * base options for axios calls
3081
+ */
3082
+ baseOptions;
3083
+ /**
3084
+ * The FormData constructor that will be used to create multipart form data
3085
+ * requests. You can inject this here so that execution environments that
3086
+ * do not support the FormData class can still run the generated client.
3087
+ *
3088
+ * @type {new () => FormData}
3089
+ */
3090
+ formDataCtor;
3091
+ constructor(param = {}) {
3092
+ this.apiKey = param.apiKey;
3093
+ this.username = param.username;
3094
+ this.password = param.password;
3095
+ this.accessToken = param.accessToken;
3096
+ this.awsv4 = param.awsv4;
3097
+ this.basePath = param.basePath;
3098
+ this.serverIndex = param.serverIndex;
3099
+ this.baseOptions = {
3100
+ ...param.baseOptions,
3101
+ headers: {
3102
+ ...param.baseOptions?.headers
3103
+ }
3104
+ };
3105
+ this.formDataCtor = param.formDataCtor;
3106
+ }
3107
+ /**
3108
+ * Check if the given MIME is a JSON MIME.
3109
+ * JSON MIME examples:
3110
+ * application/json
3111
+ * application/json; charset=UTF8
3112
+ * APPLICATION/JSON
3113
+ * application/vnd.company+json
3114
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
3115
+ * @return True if the given MIME is JSON, false otherwise.
3116
+ */
3117
+ isJsonMime(mime) {
3118
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
3119
+ return mime !== null && jsonMime.test(mime);
3120
+ }
3121
+ };
3122
+
3123
+ // src/api-model/models/all-owners-constraint.ts
3124
+ var AllOwnersConstraint = {
3125
+ MustMatch: "MUST_MATCH"
3126
+ };
3127
+
3128
+ // src/api-model/models/box-content-information-source.ts
3129
+ var BoxContentInformationSource = {
3130
+ BoxContentProvided: "BOX_CONTENT_PROVIDED",
3131
+ ManualProcess: "MANUAL_PROCESS",
3132
+ Barcode2D: "BARCODE_2D"
3133
+ };
3134
+
3135
+ // src/api-model/models/item-label-page-type.ts
3136
+ var ItemLabelPageType = {
3137
+ A421: "A4_21",
3138
+ A424: "A4_24",
3139
+ A42464x33: "A4_24_64x33",
3140
+ A42466x35: "A4_24_66x35",
3141
+ A42470x36: "A4_24_70x36",
3142
+ A42470x37: "A4_24_70x37",
3143
+ A424i: "A4_24i",
3144
+ A427: "A4_27",
3145
+ A44052x29: "A4_40_52x29",
3146
+ A44448x25: "A4_44_48x25",
3147
+ Letter30: "Letter_30"
3148
+ };
3149
+
3150
+ // src/api-model/models/label-owner.ts
3151
+ var LabelOwner = {
3152
+ Amazon: "AMAZON",
3153
+ Seller: "SELLER",
3154
+ None: "NONE"
3155
+ };
3156
+
3157
+ // src/api-model/models/label-print-type.ts
3158
+ var LabelPrintType = {
3159
+ StandardFormat: "STANDARD_FORMAT",
3160
+ ThermalPrinting: "THERMAL_PRINTING"
3161
+ };
3162
+
3163
+ // src/api-model/models/operation-status.ts
3164
+ var OperationStatus = {
3165
+ Success: "SUCCESS",
3166
+ Failed: "FAILED",
3167
+ InProgress: "IN_PROGRESS"
3168
+ };
3169
+
3170
+ // src/api-model/models/owner-constraint.ts
3171
+ var OwnerConstraint = {
3172
+ AmazonOnly: "AMAZON_ONLY",
3173
+ NoneOnly: "NONE_ONLY",
3174
+ SellerOnly: "SELLER_ONLY"
3175
+ };
3176
+
3177
+ // src/api-model/models/prep-category.ts
3178
+ var PrepCategory = {
3179
+ Adult: "ADULT",
3180
+ Baby: "BABY",
3181
+ FcProvided: "FC_PROVIDED",
3182
+ Fragile: "FRAGILE",
3183
+ Granular: "GRANULAR",
3184
+ Hanger: "HANGER",
3185
+ Liquid: "LIQUID",
3186
+ Perforated: "PERFORATED",
3187
+ Set: "SET",
3188
+ Sharp: "SHARP",
3189
+ Small: "SMALL",
3190
+ Textile: "TEXTILE",
3191
+ Unknown: "UNKNOWN",
3192
+ None: "NONE"
3193
+ };
3194
+
3195
+ // src/api-model/models/prep-owner.ts
3196
+ var PrepOwner = {
3197
+ Amazon: "AMAZON",
3198
+ Seller: "SELLER",
3199
+ None: "NONE"
3200
+ };
3201
+
3202
+ // src/api-model/models/prep-type.ts
3203
+ var PrepType = {
3204
+ ItemBlackShrinkwrap: "ITEM_BLACK_SHRINKWRAP",
3205
+ ItemBlankstk: "ITEM_BLANKSTK",
3206
+ ItemBoxing: "ITEM_BOXING",
3207
+ ItemBubblewrap: "ITEM_BUBBLEWRAP",
3208
+ ItemCapSealing: "ITEM_CAP_SEALING",
3209
+ ItemDebundle: "ITEM_DEBUNDLE",
3210
+ ItemHangGarment: "ITEM_HANG_GARMENT",
3211
+ ItemLabeling: "ITEM_LABELING",
3212
+ ItemNoPrep: "ITEM_NO_PREP",
3213
+ ItemPolybagging: "ITEM_POLYBAGGING",
3214
+ ItemRmovhang: "ITEM_RMOVHANG",
3215
+ ItemSetcreat: "ITEM_SETCREAT",
3216
+ ItemSetstk: "ITEM_SETSTK",
3217
+ ItemSioc: "ITEM_SIOC",
3218
+ ItemSuffostk: "ITEM_SUFFOSTK",
3219
+ ItemTaping: "ITEM_TAPING"
3220
+ };
3221
+
3222
+ // src/api-model/models/reason-comment.ts
3223
+ var ReasonComment = {
3224
+ AppointmentRequestedByMistake: "APPOINTMENT_REQUESTED_BY_MISTAKE",
3225
+ VehicleDelay: "VEHICLE_DELAY",
3226
+ SlotNotSuitable: "SLOT_NOT_SUITABLE",
3227
+ OutsideCarrierBusinessHours: "OUTSIDE_CARRIER_BUSINESS_HOURS",
3228
+ UnfavourableExternalConditions: "UNFAVOURABLE_EXTERNAL_CONDITIONS",
3229
+ ProcurementDelay: "PROCUREMENT_DELAY",
3230
+ ShippingPlanChanged: "SHIPPING_PLAN_CHANGED",
3231
+ IncreasedQuantity: "INCREASED_QUANTITY",
3232
+ Other: "OTHER"
3233
+ };
3234
+
3235
+ // src/api-model/models/stackability.ts
3236
+ var Stackability = {
3237
+ Stackable: "STACKABLE",
3238
+ NonStackable: "NON_STACKABLE"
3239
+ };
3240
+
3241
+ // src/api-model/models/unit-of-measurement.ts
3242
+ var UnitOfMeasurement = {
3243
+ In: "IN",
3244
+ Cm: "CM"
3245
+ };
3246
+
3247
+ // src/api-model/models/unit-of-weight.ts
3248
+ var UnitOfWeight = {
3249
+ Lb: "LB",
3250
+ Kg: "KG"
3251
+ };
3252
+
3253
+ // src/client.ts
3254
+ var clientRateLimits = [];
3255
+ var FulfillmentInboundApiClient = class extends FulfillmentInboundApi {
3256
+ constructor(configuration) {
3257
+ const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
3258
+ super(new Configuration(), endpoint, axios);
3259
+ }
3260
+ };
3261
+ // Annotate the CommonJS export names for ESM import in node:
3262
+ 0 && (module.exports = {
3263
+ AllOwnersConstraint,
3264
+ BoxContentInformationSource,
3265
+ FulfillmentInboundApi,
3266
+ FulfillmentInboundApiAxiosParamCreator,
3267
+ FulfillmentInboundApiClient,
3268
+ FulfillmentInboundApiFactory,
3269
+ FulfillmentInboundApiFp,
3270
+ ItemLabelPageType,
3271
+ LabelOwner,
3272
+ LabelPrintType,
3273
+ ListInboundPlansSortByEnum,
3274
+ ListInboundPlansSortOrderEnum,
3275
+ ListInboundPlansStatusEnum,
3276
+ OperationStatus,
3277
+ OwnerConstraint,
3278
+ PrepCategory,
3279
+ PrepOwner,
3280
+ PrepType,
3281
+ ReasonComment,
3282
+ Stackability,
3283
+ UnitOfMeasurement,
3284
+ UnitOfWeight,
3285
+ clientRateLimits
3286
+ });
3287
+ //# sourceMappingURL=index.cjs.map