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