@amazon-sp-api-release/amazon-sp-api-sdk-js 1.5.0 → 1.6.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 (335) hide show
  1. package/helper/DefaultRateLimitMap.mjs +14 -1
  2. package/index.js +3 -0
  3. package/package.json +1 -1
  4. package/src/catalogitems_v2022_04_01/model/ErrorList.d.ts +1 -1
  5. package/src/catalogitems_v2022_04_01/model/ErrorList.js +2 -1
  6. package/src/catalogitems_v2022_04_01/model/ItemSearchResults.d.ts +11 -5
  7. package/src/catalogitems_v2022_04_01/model/ItemSearchResults.d.ts.map +1 -1
  8. package/src/catalogitems_v2022_04_01/model/ItemSearchResults.js +1 -5
  9. package/src/easyship_v2022_03_23/api/EasyShipApi.d.ts +2 -2
  10. package/src/easyship_v2022_03_23/api/EasyShipApi.js +2 -2
  11. package/src/easyship_v2022_03_23/model/HandoverMethod.d.ts +4 -4
  12. package/src/easyship_v2022_03_23/model/HandoverMethod.js +4 -4
  13. package/src/easyship_v2022_03_23/model/UnitOfLength.d.ts +2 -2
  14. package/src/easyship_v2022_03_23/model/UnitOfLength.js +2 -2
  15. package/src/easyship_v2022_03_23/model/UnitOfWeight.d.ts +4 -4
  16. package/src/easyship_v2022_03_23/model/UnitOfWeight.js +4 -4
  17. package/src/externalfulfillmentinventory_v2024_09_11/ApiClient.d.ts +260 -0
  18. package/src/externalfulfillmentinventory_v2024_09_11/ApiClient.d.ts.map +1 -0
  19. package/src/externalfulfillmentinventory_v2024_09_11/ApiClient.js +827 -0
  20. package/src/externalfulfillmentinventory_v2024_09_11/api/BatchInventoryApi.d.ts +42 -0
  21. package/src/externalfulfillmentinventory_v2024_09_11/api/BatchInventoryApi.d.ts.map +1 -0
  22. package/src/externalfulfillmentinventory_v2024_09_11/api/BatchInventoryApi.js +110 -0
  23. package/src/externalfulfillmentinventory_v2024_09_11/index.d.ts +16 -0
  24. package/src/externalfulfillmentinventory_v2024_09_11/index.d.ts.map +1 -0
  25. package/src/externalfulfillmentinventory_v2024_09_11/index.js +119 -0
  26. package/src/externalfulfillmentinventory_v2024_09_11/model/ActionableError.d.ts +28 -0
  27. package/src/externalfulfillmentinventory_v2024_09_11/model/ActionableError.d.ts.map +1 -0
  28. package/src/externalfulfillmentinventory_v2024_09_11/model/ActionableError.js +71 -0
  29. package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryRequest.d.ts +23 -0
  30. package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryRequest.d.ts.map +1 -0
  31. package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryRequest.js +64 -0
  32. package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryResponse.d.ts +23 -0
  33. package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryResponse.d.ts.map +1 -0
  34. package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryResponse.js +64 -0
  35. package/src/externalfulfillmentinventory_v2024_09_11/model/Error.d.ts +33 -0
  36. package/src/externalfulfillmentinventory_v2024_09_11/model/Error.d.ts.map +1 -0
  37. package/src/externalfulfillmentinventory_v2024_09_11/model/Error.js +83 -0
  38. package/src/externalfulfillmentinventory_v2024_09_11/model/ErrorList.d.ts +26 -0
  39. package/src/externalfulfillmentinventory_v2024_09_11/model/ErrorList.d.ts.map +1 -0
  40. package/src/externalfulfillmentinventory_v2024_09_11/model/ErrorList.js +66 -0
  41. package/src/externalfulfillmentinventory_v2024_09_11/model/HttpMethod.d.ts +24 -0
  42. package/src/externalfulfillmentinventory_v2024_09_11/model/HttpMethod.d.ts.map +1 -0
  43. package/src/externalfulfillmentinventory_v2024_09_11/model/HttpMethod.js +42 -0
  44. package/src/externalfulfillmentinventory_v2024_09_11/model/HttpStatusLine.d.ts +28 -0
  45. package/src/externalfulfillmentinventory_v2024_09_11/model/HttpStatusLine.d.ts.map +1 -0
  46. package/src/externalfulfillmentinventory_v2024_09_11/model/HttpStatusLine.js +71 -0
  47. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequest.d.ts +34 -0
  48. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequest.d.ts.map +1 -0
  49. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequest.js +83 -0
  50. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequestParams.d.ts +34 -0
  51. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequestParams.d.ts.map +1 -0
  52. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequestParams.js +79 -0
  53. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponse.d.ts +29 -0
  54. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponse.d.ts.map +1 -0
  55. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponse.js +75 -0
  56. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponseBody.d.ts +59 -0
  57. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponseBody.d.ts.map +1 -0
  58. package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponseBody.js +112 -0
  59. package/src/externalfulfillmentinventory_v2024_09_11/model/MarketplaceAttributes.d.ts +39 -0
  60. package/src/externalfulfillmentinventory_v2024_09_11/model/MarketplaceAttributes.d.ts.map +1 -0
  61. package/src/externalfulfillmentinventory_v2024_09_11/model/MarketplaceAttributes.js +97 -0
  62. package/src/externalfulfillmentreturns_v2024_09_11/ApiClient.d.ts +260 -0
  63. package/src/externalfulfillmentreturns_v2024_09_11/ApiClient.d.ts.map +1 -0
  64. package/src/externalfulfillmentreturns_v2024_09_11/ApiClient.js +827 -0
  65. package/src/externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi.d.ts +104 -0
  66. package/src/externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi.d.ts.map +1 -0
  67. package/src/externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi.js +189 -0
  68. package/src/externalfulfillmentreturns_v2024_09_11/index.d.ts +16 -0
  69. package/src/externalfulfillmentreturns_v2024_09_11/index.d.ts.map +1 -0
  70. package/src/externalfulfillmentreturns_v2024_09_11/index.js +119 -0
  71. package/src/externalfulfillmentreturns_v2024_09_11/model/Error.d.ts +33 -0
  72. package/src/externalfulfillmentreturns_v2024_09_11/model/Error.d.ts.map +1 -0
  73. package/src/externalfulfillmentreturns_v2024_09_11/model/Error.js +83 -0
  74. package/src/externalfulfillmentreturns_v2024_09_11/model/ErrorList.d.ts +26 -0
  75. package/src/externalfulfillmentreturns_v2024_09_11/model/ErrorList.d.ts.map +1 -0
  76. package/src/externalfulfillmentreturns_v2024_09_11/model/ErrorList.js +66 -0
  77. package/src/externalfulfillmentreturns_v2024_09_11/model/InvoiceInformation.d.ts +25 -0
  78. package/src/externalfulfillmentreturns_v2024_09_11/model/InvoiceInformation.d.ts.map +1 -0
  79. package/src/externalfulfillmentreturns_v2024_09_11/model/InvoiceInformation.js +65 -0
  80. package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannel.d.ts +28 -0
  81. package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannel.d.ts.map +1 -0
  82. package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannel.js +71 -0
  83. package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannelDetails.d.ts +58 -0
  84. package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannelDetails.d.ts.map +1 -0
  85. package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannelDetails.js +111 -0
  86. package/src/externalfulfillmentreturns_v2024_09_11/model/OtpDetails.d.ts +27 -0
  87. package/src/externalfulfillmentreturns_v2024_09_11/model/OtpDetails.d.ts.map +1 -0
  88. package/src/externalfulfillmentreturns_v2024_09_11/model/OtpDetails.js +75 -0
  89. package/src/externalfulfillmentreturns_v2024_09_11/model/ReplanningDetails.d.ts +23 -0
  90. package/src/externalfulfillmentreturns_v2024_09_11/model/ReplanningDetails.d.ts.map +1 -0
  91. package/src/externalfulfillmentreturns_v2024_09_11/model/ReplanningDetails.js +64 -0
  92. package/src/externalfulfillmentreturns_v2024_09_11/model/Return.d.ts +138 -0
  93. package/src/externalfulfillmentreturns_v2024_09_11/model/Return.d.ts.map +1 -0
  94. package/src/externalfulfillmentreturns_v2024_09_11/model/Return.js +363 -0
  95. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnMetadata.d.ts +43 -0
  96. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnMetadata.d.ts.map +1 -0
  97. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnMetadata.js +89 -0
  98. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnShippingInfo.d.ts +39 -0
  99. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnShippingInfo.d.ts.map +1 -0
  100. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnShippingInfo.js +86 -0
  101. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnsResponse.d.ts +29 -0
  102. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnsResponse.d.ts.map +1 -0
  103. package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnsResponse.js +72 -0
  104. package/src/externalfulfillmentreturns_v2024_09_11/model/TrackingInfo.d.ts +27 -0
  105. package/src/externalfulfillmentreturns_v2024_09_11/model/TrackingInfo.d.ts.map +1 -0
  106. package/src/externalfulfillmentreturns_v2024_09_11/model/TrackingInfo.js +75 -0
  107. package/src/externalfulfillmentshipments_v2024_09_11/ApiClient.d.ts +260 -0
  108. package/src/externalfulfillmentshipments_v2024_09_11/ApiClient.d.ts.map +1 -0
  109. package/src/externalfulfillmentshipments_v2024_09_11/ApiClient.js +827 -0
  110. package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi.d.ts +178 -0
  111. package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi.d.ts.map +1 -0
  112. package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi.js +521 -0
  113. package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi.d.ts +86 -0
  114. package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi.d.ts.map +1 -0
  115. package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi.js +182 -0
  116. package/src/externalfulfillmentshipments_v2024_09_11/index.d.ts +62 -0
  117. package/src/externalfulfillmentshipments_v2024_09_11/index.d.ts.map +1 -0
  118. package/src/externalfulfillmentshipments_v2024_09_11/index.js +441 -0
  119. package/src/externalfulfillmentshipments_v2024_09_11/model/Address.d.ts +103 -0
  120. package/src/externalfulfillmentshipments_v2024_09_11/model/Address.d.ts.map +1 -0
  121. package/src/externalfulfillmentshipments_v2024_09_11/model/Address.js +169 -0
  122. package/src/externalfulfillmentshipments_v2024_09_11/model/Amount.d.ts +27 -0
  123. package/src/externalfulfillmentshipments_v2024_09_11/model/Amount.d.ts.map +1 -0
  124. package/src/externalfulfillmentshipments_v2024_09_11/model/Amount.js +75 -0
  125. package/src/externalfulfillmentshipments_v2024_09_11/model/Cancellation.d.ts +46 -0
  126. package/src/externalfulfillmentshipments_v2024_09_11/model/Cancellation.d.ts.map +1 -0
  127. package/src/externalfulfillmentshipments_v2024_09_11/model/Cancellation.js +119 -0
  128. package/src/externalfulfillmentshipments_v2024_09_11/model/Charge.d.ts +52 -0
  129. package/src/externalfulfillmentshipments_v2024_09_11/model/Charge.d.ts.map +1 -0
  130. package/src/externalfulfillmentshipments_v2024_09_11/model/Charge.js +140 -0
  131. package/src/externalfulfillmentshipments_v2024_09_11/model/ChargeBreakup.d.ts +30 -0
  132. package/src/externalfulfillmentshipments_v2024_09_11/model/ChargeBreakup.d.ts.map +1 -0
  133. package/src/externalfulfillmentshipments_v2024_09_11/model/ChargeBreakup.js +83 -0
  134. package/src/externalfulfillmentshipments_v2024_09_11/model/ComplianceAttributes.d.ts +32 -0
  135. package/src/externalfulfillmentshipments_v2024_09_11/model/ComplianceAttributes.d.ts.map +1 -0
  136. package/src/externalfulfillmentshipments_v2024_09_11/model/ComplianceAttributes.js +92 -0
  137. package/src/externalfulfillmentshipments_v2024_09_11/model/CourierSupportedAttributes.d.ts +27 -0
  138. package/src/externalfulfillmentshipments_v2024_09_11/model/CourierSupportedAttributes.d.ts.map +1 -0
  139. package/src/externalfulfillmentshipments_v2024_09_11/model/CourierSupportedAttributes.js +75 -0
  140. package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttribute.d.ts +34 -0
  141. package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttribute.d.ts.map +1 -0
  142. package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttribute.js +79 -0
  143. package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttributeType.d.ts +39 -0
  144. package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttributeType.d.ts.map +1 -0
  145. package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttributeType.js +60 -0
  146. package/src/externalfulfillmentshipments_v2024_09_11/model/Dimension.d.ts +37 -0
  147. package/src/externalfulfillmentshipments_v2024_09_11/model/Dimension.d.ts.map +1 -0
  148. package/src/externalfulfillmentshipments_v2024_09_11/model/Dimension.js +95 -0
  149. package/src/externalfulfillmentshipments_v2024_09_11/model/Document.d.ts +40 -0
  150. package/src/externalfulfillmentshipments_v2024_09_11/model/Document.d.ts.map +1 -0
  151. package/src/externalfulfillmentshipments_v2024_09_11/model/Document.js +103 -0
  152. package/src/externalfulfillmentshipments_v2024_09_11/model/DocumentV2.d.ts +25 -0
  153. package/src/externalfulfillmentshipments_v2024_09_11/model/DocumentV2.d.ts.map +1 -0
  154. package/src/externalfulfillmentshipments_v2024_09_11/model/DocumentV2.js +65 -0
  155. package/src/externalfulfillmentshipments_v2024_09_11/model/Error.d.ts +33 -0
  156. package/src/externalfulfillmentshipments_v2024_09_11/model/Error.d.ts.map +1 -0
  157. package/src/externalfulfillmentshipments_v2024_09_11/model/Error.js +83 -0
  158. package/src/externalfulfillmentshipments_v2024_09_11/model/ErrorList.d.ts +26 -0
  159. package/src/externalfulfillmentshipments_v2024_09_11/model/ErrorList.d.ts.map +1 -0
  160. package/src/externalfulfillmentshipments_v2024_09_11/model/ErrorList.js +66 -0
  161. package/src/externalfulfillmentshipments_v2024_09_11/model/GiftAttributes.d.ts +41 -0
  162. package/src/externalfulfillmentshipments_v2024_09_11/model/GiftAttributes.d.ts.map +1 -0
  163. package/src/externalfulfillmentshipments_v2024_09_11/model/GiftAttributes.js +91 -0
  164. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceInfo.d.ts +27 -0
  165. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceInfo.d.ts.map +1 -0
  166. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceInfo.js +75 -0
  167. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceRequirement.d.ts +47 -0
  168. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceRequirement.d.ts.map +1 -0
  169. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceRequirement.js +117 -0
  170. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceResponse.d.ts +26 -0
  171. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceResponse.d.ts.map +1 -0
  172. package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceResponse.js +65 -0
  173. package/src/externalfulfillmentshipments_v2024_09_11/model/LineItem.d.ts +31 -0
  174. package/src/externalfulfillmentshipments_v2024_09_11/model/LineItem.d.ts.map +1 -0
  175. package/src/externalfulfillmentshipments_v2024_09_11/model/LineItem.js +73 -0
  176. package/src/externalfulfillmentshipments_v2024_09_11/model/LineItemWithReason.d.ts +42 -0
  177. package/src/externalfulfillmentshipments_v2024_09_11/model/LineItemWithReason.d.ts.map +1 -0
  178. package/src/externalfulfillmentshipments_v2024_09_11/model/LineItemWithReason.js +93 -0
  179. package/src/externalfulfillmentshipments_v2024_09_11/model/MarketplaceAttributes.d.ts +49 -0
  180. package/src/externalfulfillmentshipments_v2024_09_11/model/MarketplaceAttributes.d.ts.map +1 -0
  181. package/src/externalfulfillmentshipments_v2024_09_11/model/MarketplaceAttributes.js +111 -0
  182. package/src/externalfulfillmentshipments_v2024_09_11/model/OriginalLineItem.d.ts +30 -0
  183. package/src/externalfulfillmentshipments_v2024_09_11/model/OriginalLineItem.d.ts.map +1 -0
  184. package/src/externalfulfillmentshipments_v2024_09_11/model/OriginalLineItem.js +86 -0
  185. package/src/externalfulfillmentshipments_v2024_09_11/model/Package.d.ts +75 -0
  186. package/src/externalfulfillmentshipments_v2024_09_11/model/Package.d.ts.map +1 -0
  187. package/src/externalfulfillmentshipments_v2024_09_11/model/Package.js +190 -0
  188. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDeliveryStatus.d.ts +34 -0
  189. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDeliveryStatus.d.ts.map +1 -0
  190. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDeliveryStatus.js +79 -0
  191. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDimensions.d.ts +30 -0
  192. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDimensions.d.ts.map +1 -0
  193. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDimensions.js +83 -0
  194. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageLineItem.d.ts +51 -0
  195. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageLineItem.d.ts.map +1 -0
  196. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageLineItem.js +107 -0
  197. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageShipLabel.d.ts +46 -0
  198. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageShipLabel.d.ts.map +1 -0
  199. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageShipLabel.js +95 -0
  200. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageStatus.d.ts +44 -0
  201. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageStatus.d.ts.map +1 -0
  202. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageStatus.js +66 -0
  203. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageSubStatus.d.ts +34 -0
  204. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageSubStatus.d.ts.map +1 -0
  205. package/src/externalfulfillmentshipments_v2024_09_11/model/PackageSubStatus.js +54 -0
  206. package/src/externalfulfillmentshipments_v2024_09_11/model/Packages.d.ts +26 -0
  207. package/src/externalfulfillmentshipments_v2024_09_11/model/Packages.d.ts.map +1 -0
  208. package/src/externalfulfillmentshipments_v2024_09_11/model/Packages.js +66 -0
  209. package/src/externalfulfillmentshipments_v2024_09_11/model/PackingSlipRequirement.d.ts +46 -0
  210. package/src/externalfulfillmentshipments_v2024_09_11/model/PackingSlipRequirement.d.ts.map +1 -0
  211. package/src/externalfulfillmentshipments_v2024_09_11/model/PackingSlipRequirement.js +111 -0
  212. package/src/externalfulfillmentshipments_v2024_09_11/model/Pagination.d.ts +22 -0
  213. package/src/externalfulfillmentshipments_v2024_09_11/model/Pagination.d.ts.map +1 -0
  214. package/src/externalfulfillmentshipments_v2024_09_11/model/Pagination.js +63 -0
  215. package/src/externalfulfillmentshipments_v2024_09_11/model/PartyIdentificationInfo.d.ts +51 -0
  216. package/src/externalfulfillmentshipments_v2024_09_11/model/PartyIdentificationInfo.d.ts.map +1 -0
  217. package/src/externalfulfillmentshipments_v2024_09_11/model/PartyIdentificationInfo.js +123 -0
  218. package/src/externalfulfillmentshipments_v2024_09_11/model/PieceType.d.ts +24 -0
  219. package/src/externalfulfillmentshipments_v2024_09_11/model/PieceType.d.ts.map +1 -0
  220. package/src/externalfulfillmentshipments_v2024_09_11/model/PieceType.js +42 -0
  221. package/src/externalfulfillmentshipments_v2024_09_11/model/PresenceStatus.d.ts +24 -0
  222. package/src/externalfulfillmentshipments_v2024_09_11/model/PresenceStatus.d.ts.map +1 -0
  223. package/src/externalfulfillmentshipments_v2024_09_11/model/PresenceStatus.js +42 -0
  224. package/src/externalfulfillmentshipments_v2024_09_11/model/Priority.d.ts +24 -0
  225. package/src/externalfulfillmentshipments_v2024_09_11/model/Priority.d.ts.map +1 -0
  226. package/src/externalfulfillmentshipments_v2024_09_11/model/Priority.js +42 -0
  227. package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackage.d.ts +32 -0
  228. package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackage.d.ts.map +1 -0
  229. package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackage.js +86 -0
  230. package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackageLineItem.d.ts +25 -0
  231. package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackageLineItem.d.ts.map +1 -0
  232. package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackageLineItem.js +65 -0
  233. package/src/externalfulfillmentshipments_v2024_09_11/model/ReplacedShipmentInfo.d.ts +37 -0
  234. package/src/externalfulfillmentshipments_v2024_09_11/model/ReplacedShipmentInfo.d.ts.map +1 -0
  235. package/src/externalfulfillmentshipments_v2024_09_11/model/ReplacedShipmentInfo.js +94 -0
  236. package/src/externalfulfillmentshipments_v2024_09_11/model/RequirementLevel.d.ts +24 -0
  237. package/src/externalfulfillmentshipments_v2024_09_11/model/RequirementLevel.d.ts.map +1 -0
  238. package/src/externalfulfillmentshipments_v2024_09_11/model/RequirementLevel.js +42 -0
  239. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelMetadata.d.ts +44 -0
  240. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelMetadata.d.ts.map +1 -0
  241. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelMetadata.js +98 -0
  242. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsInput.d.ts +31 -0
  243. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsInput.d.ts.map +1 -0
  244. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsInput.js +73 -0
  245. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsResponse.d.ts +26 -0
  246. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsResponse.d.ts.map +1 -0
  247. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsResponse.js +66 -0
  248. package/src/externalfulfillmentshipments_v2024_09_11/model/Shipment.d.ts +122 -0
  249. package/src/externalfulfillmentshipments_v2024_09_11/model/Shipment.d.ts.map +1 -0
  250. package/src/externalfulfillmentshipments_v2024_09_11/model/Shipment.js +369 -0
  251. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentAcknowledgementRequest.d.ts +32 -0
  252. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentAcknowledgementRequest.d.ts.map +1 -0
  253. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentAcknowledgementRequest.js +74 -0
  254. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentInfo.d.ts +75 -0
  255. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentInfo.d.ts.map +1 -0
  256. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentInfo.js +173 -0
  257. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentLineItem.d.ts +103 -0
  258. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentLineItem.d.ts.map +1 -0
  259. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentLineItem.js +196 -0
  260. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentRequirements.d.ts +29 -0
  261. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentRequirements.d.ts.map +1 -0
  262. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentRequirements.js +75 -0
  263. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentsResponse.d.ts +29 -0
  264. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentsResponse.d.ts.map +1 -0
  265. package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentsResponse.js +72 -0
  266. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingInfo.d.ts +60 -0
  267. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingInfo.d.ts.map +1 -0
  268. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingInfo.js +118 -0
  269. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptions.d.ts +56 -0
  270. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptions.d.ts.map +1 -0
  271. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptions.js +130 -0
  272. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptionsResponse.d.ts +28 -0
  273. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptionsResponse.d.ts.map +1 -0
  274. package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptionsResponse.js +71 -0
  275. package/src/externalfulfillmentshipments_v2024_09_11/model/Status.d.ts +24 -0
  276. package/src/externalfulfillmentshipments_v2024_09_11/model/Status.d.ts.map +1 -0
  277. package/src/externalfulfillmentshipments_v2024_09_11/model/Status.js +42 -0
  278. package/src/externalfulfillmentshipments_v2024_09_11/model/Tax.d.ts +55 -0
  279. package/src/externalfulfillmentshipments_v2024_09_11/model/Tax.d.ts.map +1 -0
  280. package/src/externalfulfillmentshipments_v2024_09_11/model/Tax.js +143 -0
  281. package/src/externalfulfillmentshipments_v2024_09_11/model/TaxRegistrationInfo.d.ts +50 -0
  282. package/src/externalfulfillmentshipments_v2024_09_11/model/TaxRegistrationInfo.d.ts.map +1 -0
  283. package/src/externalfulfillmentshipments_v2024_09_11/model/TaxRegistrationInfo.js +107 -0
  284. package/src/externalfulfillmentshipments_v2024_09_11/model/TimeWindow.d.ts +43 -0
  285. package/src/externalfulfillmentshipments_v2024_09_11/model/TimeWindow.d.ts.map +1 -0
  286. package/src/externalfulfillmentshipments_v2024_09_11/model/TimeWindow.js +103 -0
  287. package/src/externalfulfillmentshipments_v2024_09_11/model/Weight.d.ts +37 -0
  288. package/src/externalfulfillmentshipments_v2024_09_11/model/Weight.d.ts.map +1 -0
  289. package/src/externalfulfillmentshipments_v2024_09_11/model/Weight.js +95 -0
  290. package/src/fulfillmentinbound_v2024_03_20/api/FbaInboundApi.d.ts +0 -18
  291. package/src/fulfillmentinbound_v2024_03_20/api/FbaInboundApi.d.ts.map +1 -1
  292. package/src/fulfillmentinbound_v2024_03_20/api/FbaInboundApi.js +0 -64
  293. package/src/fulfillmentinbound_v2024_03_20/index.d.ts +1 -5
  294. package/src/fulfillmentinbound_v2024_03_20/index.d.ts.map +1 -1
  295. package/src/fulfillmentinbound_v2024_03_20/index.js +0 -28
  296. package/src/fulfillmentoutbound_v2020_07_01/model/Address.d.ts +7 -3
  297. package/src/fulfillmentoutbound_v2020_07_01/model/Address.d.ts.map +1 -1
  298. package/src/fulfillmentoutbound_v2020_07_01/model/Address.js +1 -3
  299. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryDocument.d.ts +1 -1
  300. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryDocument.js +2 -2
  301. package/src/fulfillmentoutbound_v2020_07_01/model/FeatureSettings.d.ts +1 -1
  302. package/src/fulfillmentoutbound_v2020_07_01/model/FeatureSettings.js +2 -2
  303. package/src/merchantfulfillment_v0/index.d.ts +4 -1
  304. package/src/merchantfulfillment_v0/index.d.ts.map +1 -1
  305. package/src/merchantfulfillment_v0/index.js +21 -0
  306. package/src/merchantfulfillment_v0/model/RateItem.d.ts +44 -0
  307. package/src/merchantfulfillment_v0/model/RateItem.d.ts.map +1 -0
  308. package/src/merchantfulfillment_v0/model/RateItem.js +89 -0
  309. package/src/merchantfulfillment_v0/model/RateItemID.d.ts +19 -0
  310. package/src/merchantfulfillment_v0/model/RateItemID.d.ts.map +1 -0
  311. package/src/merchantfulfillment_v0/model/RateItemID.js +36 -0
  312. package/src/merchantfulfillment_v0/model/RateItemType.d.ts +19 -0
  313. package/src/merchantfulfillment_v0/model/RateItemType.d.ts.map +1 -0
  314. package/src/merchantfulfillment_v0/model/RateItemType.js +36 -0
  315. package/src/merchantfulfillment_v0/model/ShippingService.d.ts +10 -1
  316. package/src/merchantfulfillment_v0/model/ShippingService.d.ts.map +1 -1
  317. package/src/merchantfulfillment_v0/model/ShippingService.js +19 -1
  318. package/src/orders_v0/model/Address.d.ts +3 -6
  319. package/src/orders_v0/model/Address.d.ts.map +1 -1
  320. package/src/orders_v0/model/Address.js +1 -3
  321. package/src/vendordforders_v2021_12_28/model/OrderDetails.d.ts +6 -0
  322. package/src/vendordforders_v2021_12_28/model/OrderDetails.d.ts.map +1 -1
  323. package/src/vendordforders_v2021_12_28/model/OrderDetails.js +8 -0
  324. package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierInput.d.ts +0 -34
  325. package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierInput.d.ts.map +0 -1
  326. package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierInput.js +0 -83
  327. package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierType.d.ts +0 -24
  328. package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierType.d.ts.map +0 -1
  329. package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierType.js +0 -42
  330. package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersRequest.d.ts +0 -26
  331. package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersRequest.d.ts.map +0 -1
  332. package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersRequest.js +0 -66
  333. package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersResponse.d.ts +0 -25
  334. package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersResponse.d.ts.map +0 -1
  335. package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersResponse.js +0 -65
@@ -0,0 +1,104 @@
1
+ /**
2
+ * ReturnRetrieval service.
3
+ * @module externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi
4
+ * @version 2024-09-11
5
+ */
6
+ export class ReturnRetrievalApi {
7
+ /**
8
+ * Constructs a new ReturnRetrievalApi.
9
+ * @alias module:externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi
10
+ * @class
11
+ * @param {ApiClient} [apiClient] Optional API client implementation to use,
12
+ * default to {@link ApiClient#instance} if unspecified.
13
+ */
14
+ constructor(apiClient?: ApiClient);
15
+ apiClient: any;
16
+ /**
17
+ * Initialize rate limiters for API operations
18
+ */
19
+ initializeDefaultRateLimiterMap(): void;
20
+ /**
21
+ * Get rate limiter for a specific operation
22
+ * @param {String} operation name
23
+ */
24
+ getRateLimiter(operation: string): any;
25
+ /**
26
+ * Retrieve the return item with the specified ID.
27
+ * @param {String} returnId The ID of the return item you want.
28
+ * @return {Promise<Return>}
29
+ */
30
+ getReturnWithHttpInfo(returnId: string): Promise<Return>;
31
+ /**
32
+ * Retrieve the return item with the specified ID.
33
+ * @param {String} returnId The ID of the return item you want.
34
+ * @return {Promise<Return>}
35
+ */
36
+ getReturn(returnId: string): Promise<Return>;
37
+ /**
38
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
39
+ * @param {Object} [opts] Optional parameters
40
+ * @param {String} [opts.returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
41
+ * @param {String} [opts.rmaId] The RMA ID of the return items you want to list.
42
+ * @param {String} [opts.status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.
43
+ * @param {String} [opts.reverseTrackingId] The reverse tracking ID of the return items you want to list.
44
+ * @param {String} [opts.createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
45
+ * @param {String} [opts.createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
46
+ * @param {String} [opts.lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
47
+ * @param {String} [opts.lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
48
+ * @param {String} [opts.lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.
49
+ * @param {String} [opts.lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.
50
+ * @param {Number} [opts.maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
51
+ * @param {String} [opts.nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
52
+ * @return {Promise<ReturnsResponse>}
53
+ */
54
+ listReturnsWithHttpInfo(opts?: {
55
+ returnLocationId?: string;
56
+ rmaId?: string;
57
+ status?: string;
58
+ reverseTrackingId?: string;
59
+ createdSince?: string;
60
+ createdUntil?: string;
61
+ lastUpdatedSince?: string;
62
+ lastUpdatedUntil?: string;
63
+ lastUpdatedAfter?: string;
64
+ lastUpdatedBefore?: string;
65
+ maxResults?: number;
66
+ nextToken?: string;
67
+ }): Promise<ReturnsResponse>;
68
+ /**
69
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
70
+ * @param {Object} [opts] Optional parameters
71
+ * @param {String} [opts.returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
72
+ * @param {String} [opts.rmaId] The RMA ID of the return items you want to list.
73
+ * @param {String} [opts.status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.
74
+ * @param {String} [opts.reverseTrackingId] The reverse tracking ID of the return items you want to list.
75
+ * @param {String} [opts.createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
76
+ * @param {String} [opts.createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
77
+ * @param {String} [opts.lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
78
+ * @param {String} [opts.lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
79
+ * @param {String} [opts.lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.
80
+ * @param {String} [opts.lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.
81
+ * @param {Number} [opts.maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
82
+ * @param {String} [opts.nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
83
+ * @return {Promise<ReturnsResponse>}
84
+ */
85
+ listReturns(opts?: {
86
+ returnLocationId?: string;
87
+ rmaId?: string;
88
+ status?: string;
89
+ reverseTrackingId?: string;
90
+ createdSince?: string;
91
+ createdUntil?: string;
92
+ lastUpdatedSince?: string;
93
+ lastUpdatedUntil?: string;
94
+ lastUpdatedAfter?: string;
95
+ lastUpdatedBefore?: string;
96
+ maxResults?: number;
97
+ nextToken?: string;
98
+ }): Promise<ReturnsResponse>;
99
+ #private;
100
+ }
101
+ import { Return } from '../model/Return.js';
102
+ import { ReturnsResponse } from '../model/ReturnsResponse.js';
103
+ import { ApiClient } from '../ApiClient.js';
104
+ //# sourceMappingURL=ReturnRetrievalApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReturnRetrievalApi.d.ts","sourceRoot":"","sources":["ReturnRetrievalApi.js"],"names":[],"mappings":"AAoBA;;;;EAIE;AACF;IAIE;;;;;;QAMI;IACJ,wBAHY,SAAS,EAMpB;IAFC,eAAgD;IAIlD;;SAEK;IACL,wCAYC;IAED;;;SAGK;IACL,uCAEC;IAED;;;;SAIK;IACL,yCAFc,OAAO,CAAC,MAAM,CAAC,CA6B5B;IAED;;;;SAIK;IACL,6BAFc,OAAO,CAAC,MAAM,CAAC,CAO5B;IAED;;;;;;;;;;;;;;;;SAgBK;IACL,+BAdK;QAAsB,gBAAgB;QAChB,KAAK;QACL,MAAM;QACN,iBAAiB;QACjB,YAAY;QACZ,YAAY;QACZ,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;QACjB,UAAU;QACV,SAAS;KAC/B,GAAS,OAAO,CAAC,eAAe,CAAC,CAoCrC;IAED;;;;;;;;;;;;;;;;SAgBK;IACL,mBAdK;QAAsB,gBAAgB;QAChB,KAAK;QACL,MAAM;QACN,iBAAiB;QACjB,YAAY;QACZ,YAAY;QACZ,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;QACjB,UAAU;QACV,SAAS;KAC/B,GAAS,OAAO,CAAC,eAAe,CAAC,CAOrC;;CACF;uBA7KsB,oBAAoB;gCACX,6BAA6B;0BAHnC,iBAAiB"}
@@ -0,0 +1,189 @@
1
+ /**
2
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
3
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon's External Fulfillment returns management system.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
6
+ * Contact: marketplaceapitest@amazon.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+ import { ErrorList } from '../model/ErrorList.js'
16
+ import { Return } from '../model/Return.js'
17
+ import { ReturnsResponse } from '../model/ReturnsResponse.js'
18
+ import { SuperagentRateLimiter } from '../../../helper/SuperagentRateLimiter.mjs'
19
+ import { DefaultRateLimitFetcher } from '../../../helper/DefaultRateLimitFetcher.mjs'
20
+
21
+ /**
22
+ * ReturnRetrieval service.
23
+ * @module externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi
24
+ * @version 2024-09-11
25
+ */
26
+ export class ReturnRetrievalApi {
27
+ // Private member stores the default rate limiters
28
+ #defaultRateLimiterMap
29
+
30
+ /**
31
+ * Constructs a new ReturnRetrievalApi.
32
+ * @alias module:externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi
33
+ * @class
34
+ * @param {ApiClient} [apiClient] Optional API client implementation to use,
35
+ * default to {@link ApiClient#instance} if unspecified.
36
+ */
37
+ constructor (apiClient) {
38
+ this.apiClient = apiClient || ApiClient.instance
39
+ this.initializeDefaultRateLimiterMap()
40
+ }
41
+
42
+ /**
43
+ * Initialize rate limiters for API operations
44
+ */
45
+ initializeDefaultRateLimiterMap () {
46
+ this.#defaultRateLimiterMap = new Map()
47
+ const defaultRateLimitFetcher = new DefaultRateLimitFetcher()
48
+ const operations = [
49
+ 'ReturnRetrievalApi-getReturn',
50
+ 'ReturnRetrievalApi-listReturns'
51
+ ]
52
+
53
+ for (const operation of operations) {
54
+ const config = defaultRateLimitFetcher.getLimit(operation)
55
+ this.#defaultRateLimiterMap.set(operation, new SuperagentRateLimiter(config))
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Get rate limiter for a specific operation
61
+ * @param {String} operation name
62
+ */
63
+ getRateLimiter (operation) {
64
+ return this.#defaultRateLimiterMap.get(operation)
65
+ }
66
+
67
+ /**
68
+ * Retrieve the return item with the specified ID.
69
+ * @param {String} returnId The ID of the return item you want.
70
+ * @return {Promise<Return>}
71
+ */
72
+ getReturnWithHttpInfo (returnId) {
73
+ const postBody = null
74
+
75
+ // verify the required parameter 'returnId' is set
76
+ if (returnId === undefined || returnId === null) {
77
+ throw new Error("Missing the required parameter 'returnId' when calling getReturn")
78
+ }
79
+
80
+ const pathParams = {
81
+ returnId
82
+ }
83
+ const queryParams = {
84
+ }
85
+ const headerParams = {
86
+ }
87
+ const formParams = {
88
+ }
89
+
90
+ const contentTypes = []
91
+ const accepts = ['application/json']
92
+ const returnType = Return
93
+
94
+ return this.apiClient.callApi('ReturnRetrievalApi-getReturn',
95
+ '/externalFulfillment/2024-09-11/returns/{returnId}', 'GET',
96
+ pathParams, queryParams, headerParams, formParams, postBody,
97
+ contentTypes, accepts, returnType, this.getRateLimiter('ReturnRetrievalApi-getReturn')
98
+ )
99
+ }
100
+
101
+ /**
102
+ * Retrieve the return item with the specified ID.
103
+ * @param {String} returnId The ID of the return item you want.
104
+ * @return {Promise<Return>}
105
+ */
106
+ getReturn (returnId) {
107
+ return this.getReturnWithHttpInfo(returnId)
108
+ .then(function (response_and_data) {
109
+ return response_and_data.data
110
+ })
111
+ }
112
+
113
+ /**
114
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
115
+ * @param {Object} [opts] Optional parameters
116
+ * @param {String} [opts.returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
117
+ * @param {String} [opts.rmaId] The RMA ID of the return items you want to list.
118
+ * @param {String} [opts.status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.
119
+ * @param {String} [opts.reverseTrackingId] The reverse tracking ID of the return items you want to list.
120
+ * @param {String} [opts.createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
121
+ * @param {String} [opts.createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
122
+ * @param {String} [opts.lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
123
+ * @param {String} [opts.lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
124
+ * @param {String} [opts.lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.
125
+ * @param {String} [opts.lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.
126
+ * @param {Number} [opts.maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
127
+ * @param {String} [opts.nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
128
+ * @return {Promise<ReturnsResponse>}
129
+ */
130
+ listReturnsWithHttpInfo (opts) {
131
+ opts = opts || {}
132
+ const postBody = null
133
+
134
+ const pathParams = {
135
+ }
136
+ const queryParams = {
137
+ returnLocationId: opts.returnLocationId,
138
+ rmaId: opts.rmaId,
139
+ status: opts.status,
140
+ reverseTrackingId: opts.reverseTrackingId,
141
+ createdSince: opts.createdSince,
142
+ createdUntil: opts.createdUntil,
143
+ lastUpdatedSince: opts.lastUpdatedSince,
144
+ lastUpdatedUntil: opts.lastUpdatedUntil,
145
+ lastUpdatedAfter: opts.lastUpdatedAfter,
146
+ lastUpdatedBefore: opts.lastUpdatedBefore,
147
+ maxResults: opts.maxResults,
148
+ nextToken: opts.nextToken
149
+ }
150
+ const headerParams = {
151
+ }
152
+ const formParams = {
153
+ }
154
+
155
+ const contentTypes = []
156
+ const accepts = ['application/json']
157
+ const returnType = ReturnsResponse
158
+
159
+ return this.apiClient.callApi('ReturnRetrievalApi-listReturns',
160
+ '/externalFulfillment/2024-09-11/returns', 'GET',
161
+ pathParams, queryParams, headerParams, formParams, postBody,
162
+ contentTypes, accepts, returnType, this.getRateLimiter('ReturnRetrievalApi-listReturns')
163
+ )
164
+ }
165
+
166
+ /**
167
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
168
+ * @param {Object} [opts] Optional parameters
169
+ * @param {String} [opts.returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
170
+ * @param {String} [opts.rmaId] The RMA ID of the return items you want to list.
171
+ * @param {String} [opts.status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.
172
+ * @param {String} [opts.reverseTrackingId] The reverse tracking ID of the return items you want to list.
173
+ * @param {String} [opts.createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
174
+ * @param {String} [opts.createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
175
+ * @param {String} [opts.lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
176
+ * @param {String} [opts.lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
177
+ * @param {String} [opts.lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.
178
+ * @param {String} [opts.lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.
179
+ * @param {Number} [opts.maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
180
+ * @param {String} [opts.nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
181
+ * @return {Promise<ReturnsResponse>}
182
+ */
183
+ listReturns (opts) {
184
+ return this.listReturnsWithHttpInfo(opts)
185
+ .then(function (response_and_data) {
186
+ return response_and_data.data
187
+ })
188
+ }
189
+ }
@@ -0,0 +1,16 @@
1
+ import { ApiClient } from './ApiClient.js';
2
+ import { Error } from './model/Error.js';
3
+ import { ErrorList } from './model/ErrorList.js';
4
+ import { InvoiceInformation } from './model/InvoiceInformation.js';
5
+ import { MarketplaceChannel } from './model/MarketplaceChannel.js';
6
+ import { MarketplaceChannelDetails } from './model/MarketplaceChannelDetails.js';
7
+ import { OtpDetails } from './model/OtpDetails.js';
8
+ import { ReplanningDetails } from './model/ReplanningDetails.js';
9
+ import { Return } from './model/Return.js';
10
+ import { ReturnMetadata } from './model/ReturnMetadata.js';
11
+ import { ReturnShippingInfo } from './model/ReturnShippingInfo.js';
12
+ import { ReturnsResponse } from './model/ReturnsResponse.js';
13
+ import { TrackingInfo } from './model/TrackingInfo.js';
14
+ import { ReturnRetrievalApi } from './api/ReturnRetrievalApi.js';
15
+ export { ApiClient, Error, ErrorList, InvoiceInformation, MarketplaceChannel, MarketplaceChannelDetails, OtpDetails, ReplanningDetails, Return, ReturnMetadata, ReturnShippingInfo, ReturnsResponse, TrackingInfo, ReturnRetrievalApi };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"0BAa0B,gBAAgB;sBACpB,kBAAkB;0BACd,sBAAsB;mCACb,+BAA+B;mCAC/B,+BAA+B;0CACxB,sCAAsC;2BACrD,uBAAuB;kCAChB,8BAA8B;uBACzC,mBAAmB;+BACX,2BAA2B;mCACvB,+BAA+B;gCAClC,4BAA4B;6BAC/B,yBAAyB;mCACnB,6BAA6B"}
@@ -0,0 +1,119 @@
1
+ /**
2
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
3
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon's External Fulfillment returns management system.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
6
+ * Contact: marketplaceapitest@amazon.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from './ApiClient.js'
15
+ import { Error } from './model/Error.js'
16
+ import { ErrorList } from './model/ErrorList.js'
17
+ import { InvoiceInformation } from './model/InvoiceInformation.js'
18
+ import { MarketplaceChannel } from './model/MarketplaceChannel.js'
19
+ import { MarketplaceChannelDetails } from './model/MarketplaceChannelDetails.js'
20
+ import { OtpDetails } from './model/OtpDetails.js'
21
+ import { ReplanningDetails } from './model/ReplanningDetails.js'
22
+ import { Return } from './model/Return.js'
23
+ import { ReturnMetadata } from './model/ReturnMetadata.js'
24
+ import { ReturnShippingInfo } from './model/ReturnShippingInfo.js'
25
+ import { ReturnsResponse } from './model/ReturnsResponse.js'
26
+ import { TrackingInfo } from './model/TrackingInfo.js'
27
+ import { ReturnRetrievalApi } from './api/ReturnRetrievalApi.js'
28
+
29
+ /**
30
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon&#39;s External Fulfillment returns management system..<br>
31
+ * The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
32
+ * @module externalfulfillmentreturns_v2024_09_11/index
33
+ * @version 2024-09-11
34
+ */
35
+ export {
36
+ /**
37
+ * The ApiClient constructor.
38
+ * @property {module:externalfulfillmentreturns_v2024_09_11/ApiClient}
39
+ */
40
+ ApiClient,
41
+
42
+ /**
43
+ * The Error model constructor.
44
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/Error}
45
+ */
46
+ Error,
47
+
48
+ /**
49
+ * The ErrorList model constructor.
50
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/ErrorList}
51
+ */
52
+ ErrorList,
53
+
54
+ /**
55
+ * The InvoiceInformation model constructor.
56
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/InvoiceInformation}
57
+ */
58
+ InvoiceInformation,
59
+
60
+ /**
61
+ * The MarketplaceChannel model constructor.
62
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannel}
63
+ */
64
+ MarketplaceChannel,
65
+
66
+ /**
67
+ * The MarketplaceChannelDetails model constructor.
68
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannelDetails}
69
+ */
70
+ MarketplaceChannelDetails,
71
+
72
+ /**
73
+ * The OtpDetails model constructor.
74
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/OtpDetails}
75
+ */
76
+ OtpDetails,
77
+
78
+ /**
79
+ * The ReplanningDetails model constructor.
80
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/ReplanningDetails}
81
+ */
82
+ ReplanningDetails,
83
+
84
+ /**
85
+ * The Return model constructor.
86
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/Return}
87
+ */
88
+ Return,
89
+
90
+ /**
91
+ * The ReturnMetadata model constructor.
92
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/ReturnMetadata}
93
+ */
94
+ ReturnMetadata,
95
+
96
+ /**
97
+ * The ReturnShippingInfo model constructor.
98
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/ReturnShippingInfo}
99
+ */
100
+ ReturnShippingInfo,
101
+
102
+ /**
103
+ * The ReturnsResponse model constructor.
104
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/ReturnsResponse}
105
+ */
106
+ ReturnsResponse,
107
+
108
+ /**
109
+ * The TrackingInfo model constructor.
110
+ * @property {module:externalfulfillmentreturns_v2024_09_11/model/TrackingInfo}
111
+ */
112
+ TrackingInfo,
113
+
114
+ /**
115
+ * The ReturnRetrievalApi service constructor.
116
+ * @property {module:externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi}
117
+ */
118
+ ReturnRetrievalApi
119
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The Error model module.
3
+ * @module externalfulfillmentreturns_v2024_09_11/model/Error
4
+ * @version 2024-09-11
5
+ */
6
+ export class Error {
7
+ /**
8
+ * Constructs a <code>Error</code> from a plain JavaScript object, optionally creating a new instance.
9
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
10
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
11
+ * @param {Error} obj Optional instance to populate.
12
+ * @return {Error} The populated <code>Error</code> instance.
13
+ */
14
+ static constructFromObject(data: any, obj: Error): Error;
15
+ /**
16
+ * Constructs a new <code>Error</code>.
17
+ * Error response returned when the request is unsuccessful.
18
+ * @alias module:externalfulfillmentreturns_v2024_09_11/model/Error
19
+ * @class
20
+ * @param code {String} An error code that identifies the type of error that occurred.
21
+ * @param message {String} A message that describes the error condition.
22
+ */
23
+ constructor(code: string, message: string);
24
+ code: string;
25
+ message: string;
26
+ /**
27
+ * Additional details that can help the caller understand or fix the issue.
28
+ * @member {String} details
29
+ * @type {String}
30
+ */
31
+ details: string;
32
+ }
33
+ //# sourceMappingURL=Error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["Error.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH;IAcE;;;;;;OAMG;IACH,2CAHW,KAAK,GACJ,KAAK,CAqBhB;IAvCD;;;;;;;OAOG;IACH,2CAGC;IAFC,aAAgB;IAChB,gBAAsB;IA8C1B;;;;OAIG;IACH,gBAAuB;CArBtB"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
3
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon's External Fulfillment returns management system.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
6
+ * Contact: marketplaceapitest@amazon.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+
16
+ /**
17
+ * The Error model module.
18
+ * @module externalfulfillmentreturns_v2024_09_11/model/Error
19
+ * @version 2024-09-11
20
+ */
21
+ export class Error {
22
+ /**
23
+ * Constructs a new <code>Error</code>.
24
+ * Error response returned when the request is unsuccessful.
25
+ * @alias module:externalfulfillmentreturns_v2024_09_11/model/Error
26
+ * @class
27
+ * @param code {String} An error code that identifies the type of error that occurred.
28
+ * @param message {String} A message that describes the error condition.
29
+ */
30
+ constructor (code, message) {
31
+ this.code = code
32
+ this.message = message
33
+ }
34
+
35
+ /**
36
+ * Constructs a <code>Error</code> from a plain JavaScript object, optionally creating a new instance.
37
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
38
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
39
+ * @param {Error} obj Optional instance to populate.
40
+ * @return {Error} The populated <code>Error</code> instance.
41
+ */
42
+ static constructFromObject (data, obj) {
43
+ if (data) {
44
+ switch (typeof data) {
45
+ case 'string':
46
+ obj = String(data)
47
+ break
48
+ case 'number':
49
+ obj = Number(data)
50
+ break
51
+ case 'boolean':
52
+ obj = Boolean(data)
53
+ break
54
+ }
55
+ obj = obj || new Error()
56
+ if (data.hasOwnProperty('code')) { obj.code = ApiClient.convertToType(data.code, 'String') }
57
+ if (data.hasOwnProperty('message')) { obj.message = ApiClient.convertToType(data.message, 'String') }
58
+ if (data.hasOwnProperty('details')) { obj.details = ApiClient.convertToType(data.details, 'String') }
59
+ }
60
+ return obj
61
+ }
62
+ }
63
+
64
+ /**
65
+ * An error code that identifies the type of error that occurred.
66
+ * @member {String} code
67
+ * @type {String}
68
+ */
69
+ Error.prototype.code = undefined
70
+
71
+ /**
72
+ * A message that describes the error condition.
73
+ * @member {String} message
74
+ * @type {String}
75
+ */
76
+ Error.prototype.message = undefined
77
+
78
+ /**
79
+ * Additional details that can help the caller understand or fix the issue.
80
+ * @member {String} details
81
+ * @type {String}
82
+ */
83
+ Error.prototype.details = undefined
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The ErrorList model module.
3
+ * @module externalfulfillmentreturns_v2024_09_11/model/ErrorList
4
+ * @version 2024-09-11
5
+ */
6
+ export class ErrorList {
7
+ /**
8
+ * Constructs a <code>ErrorList</code> from a plain JavaScript object, optionally creating a new instance.
9
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
10
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
11
+ * @param {ErrorList} obj Optional instance to populate.
12
+ * @return {ErrorList} The populated <code>ErrorList</code> instance.
13
+ */
14
+ static constructFromObject(data: any, obj: ErrorList): ErrorList;
15
+ /**
16
+ * Constructs a new <code>ErrorList</code>.
17
+ * An object containing a list of error responses returned when a request is unsuccessful.
18
+ * @alias module:externalfulfillmentreturns_v2024_09_11/model/ErrorList
19
+ * @class
20
+ * @param errors {[Error]} A list of error responses returned when a request is unsuccessful.
21
+ */
22
+ constructor(errors: [Error]);
23
+ errors: [Error];
24
+ }
25
+ import { Error } from './Error.js';
26
+ //# sourceMappingURL=ErrorList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorList.d.ts","sourceRoot":"","sources":["ErrorList.js"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH;IAYE;;;;;;OAMG;IACH,2CAHW,SAAS,GACR,SAAS,CAmBpB;IAnCD;;;;;;OAMG;IACH,oBAFkB,CAAC,KAAK,CAAC,EAIxB;IADC,gBAAoB;CA4BvB;sBA5CqB,YAAY"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
3
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon's External Fulfillment returns management system.
4
+ *
5
+ * The version of the OpenAPI document: 2024-09-11
6
+ * Contact: marketplaceapitest@amazon.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+ import { ApiClient } from '../ApiClient.js'
15
+ import { Error } from './Error.js'
16
+
17
+ /**
18
+ * The ErrorList model module.
19
+ * @module externalfulfillmentreturns_v2024_09_11/model/ErrorList
20
+ * @version 2024-09-11
21
+ */
22
+ export class ErrorList {
23
+ /**
24
+ * Constructs a new <code>ErrorList</code>.
25
+ * An object containing a list of error responses returned when a request is unsuccessful.
26
+ * @alias module:externalfulfillmentreturns_v2024_09_11/model/ErrorList
27
+ * @class
28
+ * @param errors {[Error]} A list of error responses returned when a request is unsuccessful.
29
+ */
30
+ constructor (errors) {
31
+ this.errors = errors
32
+ }
33
+
34
+ /**
35
+ * Constructs a <code>ErrorList</code> from a plain JavaScript object, optionally creating a new instance.
36
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
37
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
38
+ * @param {ErrorList} obj Optional instance to populate.
39
+ * @return {ErrorList} The populated <code>ErrorList</code> instance.
40
+ */
41
+ static constructFromObject (data, obj) {
42
+ if (data) {
43
+ switch (typeof data) {
44
+ case 'string':
45
+ obj = String(data)
46
+ break
47
+ case 'number':
48
+ obj = Number(data)
49
+ break
50
+ case 'boolean':
51
+ obj = Boolean(data)
52
+ break
53
+ }
54
+ obj = obj || new ErrorList()
55
+ if (data.hasOwnProperty('errors')) { obj.errors = ApiClient.convertToType(data.errors, [Error]) }
56
+ }
57
+ return obj
58
+ }
59
+ }
60
+
61
+ /**
62
+ * A list of error responses returned when a request is unsuccessful.
63
+ * @member {[Error]} errors
64
+ * @type {[Error]}
65
+ */
66
+ ErrorList.prototype.errors = undefined