@amazon-sp-api-release/amazon-sp-api-sdk-js 1.2.0 → 1.4.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 (1579) hide show
  1. package/README.md +2 -2
  2. package/helper/DefaultRateLimitMap.mjs +15 -7
  3. package/index.js +2 -0
  4. package/package.json +1 -1
  5. package/src/apluscontent_v2020_11_01/api/AplusContentApi.js +39 -39
  6. package/src/apluscontent_v2020_11_01/model/AplusPaginatedResponse.js +7 -4
  7. package/src/apluscontent_v2020_11_01/model/AplusResponse.js +4 -3
  8. package/src/apluscontent_v2020_11_01/model/AsinBadge.js +2 -2
  9. package/src/apluscontent_v2020_11_01/model/AsinMetadata.js +10 -4
  10. package/src/apluscontent_v2020_11_01/model/ColorType.js +2 -2
  11. package/src/apluscontent_v2020_11_01/model/ContentBadge.js +2 -2
  12. package/src/apluscontent_v2020_11_01/model/ContentDocument.js +11 -6
  13. package/src/apluscontent_v2020_11_01/model/ContentMetadata.js +11 -6
  14. package/src/apluscontent_v2020_11_01/model/ContentMetadataRecord.js +6 -4
  15. package/src/apluscontent_v2020_11_01/model/ContentModule.js +35 -19
  16. package/src/apluscontent_v2020_11_01/model/ContentModuleType.js +2 -2
  17. package/src/apluscontent_v2020_11_01/model/ContentRecord.js +7 -4
  18. package/src/apluscontent_v2020_11_01/model/ContentStatus.js +2 -2
  19. package/src/apluscontent_v2020_11_01/model/ContentType.js +2 -2
  20. package/src/apluscontent_v2020_11_01/model/Decorator.js +7 -3
  21. package/src/apluscontent_v2020_11_01/model/DecoratorType.js +2 -2
  22. package/src/apluscontent_v2020_11_01/model/Error.js +5 -2
  23. package/src/apluscontent_v2020_11_01/model/ErrorList.js +5 -4
  24. package/src/apluscontent_v2020_11_01/model/GetContentDocumentResponse.js +9 -6
  25. package/src/apluscontent_v2020_11_01/model/ImageComponent.js +7 -4
  26. package/src/apluscontent_v2020_11_01/model/ImageCropSpecification.js +7 -5
  27. package/src/apluscontent_v2020_11_01/model/ImageDimensions.js +8 -6
  28. package/src/apluscontent_v2020_11_01/model/ImageOffsets.js +8 -6
  29. package/src/apluscontent_v2020_11_01/model/IntegerWithUnits.js +4 -2
  30. package/src/apluscontent_v2020_11_01/model/ListContentDocumentAsinRelationsResponse.js +11 -6
  31. package/src/apluscontent_v2020_11_01/model/ParagraphComponent.js +5 -4
  32. package/src/apluscontent_v2020_11_01/model/PlainTextItem.js +4 -2
  33. package/src/apluscontent_v2020_11_01/model/PositionType.js +2 -2
  34. package/src/apluscontent_v2020_11_01/model/PostContentDocumentApprovalSubmissionResponse.js +6 -4
  35. package/src/apluscontent_v2020_11_01/model/PostContentDocumentAsinRelationsRequest.js +5 -4
  36. package/src/apluscontent_v2020_11_01/model/PostContentDocumentAsinRelationsResponse.js +6 -4
  37. package/src/apluscontent_v2020_11_01/model/PostContentDocumentRequest.js +5 -4
  38. package/src/apluscontent_v2020_11_01/model/PostContentDocumentResponse.js +7 -4
  39. package/src/apluscontent_v2020_11_01/model/PostContentDocumentSuspendSubmissionResponse.js +6 -4
  40. package/src/apluscontent_v2020_11_01/model/PublishRecord.js +10 -4
  41. package/src/apluscontent_v2020_11_01/model/SearchContentDocumentsResponse.js +11 -6
  42. package/src/apluscontent_v2020_11_01/model/SearchContentPublishRecordsResponse.js +11 -6
  43. package/src/apluscontent_v2020_11_01/model/StandardCompanyLogoModule.js +5 -4
  44. package/src/apluscontent_v2020_11_01/model/StandardComparisonProductBlock.js +10 -4
  45. package/src/apluscontent_v2020_11_01/model/StandardComparisonTableModule.js +6 -4
  46. package/src/apluscontent_v2020_11_01/model/StandardFourImageTextModule.js +12 -7
  47. package/src/apluscontent_v2020_11_01/model/StandardFourImageTextQuadrantModule.js +14 -10
  48. package/src/apluscontent_v2020_11_01/model/StandardHeaderImageTextModule.js +6 -4
  49. package/src/apluscontent_v2020_11_01/model/StandardHeaderTextListBlock.js +6 -4
  50. package/src/apluscontent_v2020_11_01/model/StandardImageCaptionBlock.js +6 -4
  51. package/src/apluscontent_v2020_11_01/model/StandardImageSidebarModule.js +14 -8
  52. package/src/apluscontent_v2020_11_01/model/StandardImageTextBlock.js +8 -5
  53. package/src/apluscontent_v2020_11_01/model/StandardImageTextCaptionBlock.js +6 -4
  54. package/src/apluscontent_v2020_11_01/model/StandardImageTextOverlayModule.js +7 -5
  55. package/src/apluscontent_v2020_11_01/model/StandardMultipleImageTextModule.js +4 -3
  56. package/src/apluscontent_v2020_11_01/model/StandardProductDescriptionModule.js +5 -4
  57. package/src/apluscontent_v2020_11_01/model/StandardSingleImageHighlightsModule.js +14 -8
  58. package/src/apluscontent_v2020_11_01/model/StandardSingleImageSpecsDetailModule.js +18 -10
  59. package/src/apluscontent_v2020_11_01/model/StandardSingleSideImageModule.js +7 -5
  60. package/src/apluscontent_v2020_11_01/model/StandardTechSpecsModule.js +8 -5
  61. package/src/apluscontent_v2020_11_01/model/StandardTextBlock.js +6 -4
  62. package/src/apluscontent_v2020_11_01/model/StandardTextListBlock.js +5 -4
  63. package/src/apluscontent_v2020_11_01/model/StandardTextModule.js +7 -5
  64. package/src/apluscontent_v2020_11_01/model/StandardTextPairBlock.js +6 -4
  65. package/src/apluscontent_v2020_11_01/model/StandardThreeImageTextModule.js +10 -6
  66. package/src/apluscontent_v2020_11_01/model/TextComponent.js +5 -3
  67. package/src/apluscontent_v2020_11_01/model/TextItem.js +6 -4
  68. package/src/apluscontent_v2020_11_01/model/ValidateContentDocumentAsinRelationsResponse.js +11 -7
  69. package/src/appintegrations_v2024_04_01/api/AppIntegrationsApi.js +15 -15
  70. package/src/appintegrations_v2024_04_01/model/CreateNotificationRequest.js +7 -4
  71. package/src/appintegrations_v2024_04_01/model/CreateNotificationResponse.js +3 -2
  72. package/src/appintegrations_v2024_04_01/model/DeleteNotificationsRequest.js +6 -4
  73. package/src/appintegrations_v2024_04_01/model/Error.js +5 -2
  74. package/src/appintegrations_v2024_04_01/model/ErrorList.js +5 -4
  75. package/src/appintegrations_v2024_04_01/model/RecordActionFeedbackRequest.js +5 -4
  76. package/src/applications_v2023_11_30/api/ApplicationsApi.js +5 -5
  77. package/src/applications_v2023_11_30/model/Error.js +5 -2
  78. package/src/applications_v2023_11_30/model/ErrorList.js +5 -4
  79. package/src/awd_v2024_05_09/api/AwdApi.js +49 -49
  80. package/src/awd_v2024_05_09/model/Address.js +13 -2
  81. package/src/awd_v2024_05_09/model/CarrierCode.js +5 -3
  82. package/src/awd_v2024_05_09/model/CarrierCodeType.js +2 -2
  83. package/src/awd_v2024_05_09/model/DestinationDetails.js +6 -3
  84. package/src/awd_v2024_05_09/model/DimensionUnitOfMeasurement.js +2 -2
  85. package/src/awd_v2024_05_09/model/DistributionPackage.js +11 -8
  86. package/src/awd_v2024_05_09/model/DistributionPackageContents.js +6 -4
  87. package/src/awd_v2024_05_09/model/DistributionPackageQuantity.js +6 -4
  88. package/src/awd_v2024_05_09/model/DistributionPackageType.js +2 -2
  89. package/src/awd_v2024_05_09/model/Error.js +5 -2
  90. package/src/awd_v2024_05_09/model/ErrorList.js +5 -4
  91. package/src/awd_v2024_05_09/model/ExpirationDetails.js +4 -2
  92. package/src/awd_v2024_05_09/model/InboundEligibility.js +11 -7
  93. package/src/awd_v2024_05_09/model/InboundEligibilityStatus.js +2 -2
  94. package/src/awd_v2024_05_09/model/InboundOrder.js +19 -10
  95. package/src/awd_v2024_05_09/model/InboundOrderCreationData.js +11 -7
  96. package/src/awd_v2024_05_09/model/InboundOrderReference.js +3 -2
  97. package/src/awd_v2024_05_09/model/InboundPackages.js +5 -4
  98. package/src/awd_v2024_05_09/model/InboundPreferences.js +3 -2
  99. package/src/awd_v2024_05_09/model/InboundShipment.js +29 -13
  100. package/src/awd_v2024_05_09/model/InboundShipmentStatus.js +2 -2
  101. package/src/awd_v2024_05_09/model/InboundShipmentSummary.js +10 -4
  102. package/src/awd_v2024_05_09/model/InboundStatus.js +2 -2
  103. package/src/awd_v2024_05_09/model/InventoryDetails.js +5 -2
  104. package/src/awd_v2024_05_09/model/InventoryListing.js +6 -4
  105. package/src/awd_v2024_05_09/model/InventoryQuantity.js +6 -4
  106. package/src/awd_v2024_05_09/model/InventorySummary.js +9 -4
  107. package/src/awd_v2024_05_09/model/InventoryUnitOfMeasurement.js +2 -2
  108. package/src/awd_v2024_05_09/model/LabelOwner.js +2 -2
  109. package/src/awd_v2024_05_09/model/LabelStatus.js +2 -2
  110. package/src/awd_v2024_05_09/model/MeasurementData.js +9 -6
  111. package/src/awd_v2024_05_09/model/OrderIneligibilityReason.js +4 -2
  112. package/src/awd_v2024_05_09/model/PackageDimensions.js +8 -4
  113. package/src/awd_v2024_05_09/model/PackageVolume.js +6 -4
  114. package/src/awd_v2024_05_09/model/PackageWeight.js +6 -4
  115. package/src/awd_v2024_05_09/model/PrepCategory.js +2 -2
  116. package/src/awd_v2024_05_09/model/PrepDetails.js +10 -6
  117. package/src/awd_v2024_05_09/model/PrepInstruction.js +5 -3
  118. package/src/awd_v2024_05_09/model/PrepOwner.js +2 -2
  119. package/src/awd_v2024_05_09/model/ProductAttribute.js +4 -2
  120. package/src/awd_v2024_05_09/model/ProductQuantity.js +9 -4
  121. package/src/awd_v2024_05_09/model/ShipmentLabels.js +6 -4
  122. package/src/awd_v2024_05_09/model/ShipmentListing.js +5 -3
  123. package/src/awd_v2024_05_09/model/SkuEligibility.js +10 -7
  124. package/src/awd_v2024_05_09/model/SkuIneligibilityReason.js +4 -2
  125. package/src/awd_v2024_05_09/model/SkuQuantity.js +8 -5
  126. package/src/awd_v2024_05_09/model/TrackingDetails.js +5 -3
  127. package/src/awd_v2024_05_09/model/TransportationDetails.js +5 -4
  128. package/src/awd_v2024_05_09/model/VolumeUnitOfMeasurement.js +2 -2
  129. package/src/awd_v2024_05_09/model/WeightUnitOfMeasurement.js +2 -2
  130. package/src/catalogitems_v2022_04_01/api/CatalogApi.js +29 -29
  131. package/src/catalogitems_v2022_04_01/model/BrandRefinement.js +4 -2
  132. package/src/catalogitems_v2022_04_01/model/ClassificationRefinement.js +5 -2
  133. package/src/catalogitems_v2022_04_01/model/Dimension.js +4 -2
  134. package/src/catalogitems_v2022_04_01/model/Dimensions.js +10 -6
  135. package/src/catalogitems_v2022_04_01/model/Error.js +5 -2
  136. package/src/catalogitems_v2022_04_01/model/ErrorList.js +5 -4
  137. package/src/catalogitems_v2022_04_01/model/Item.js +24 -13
  138. package/src/catalogitems_v2022_04_01/model/ItemBrowseClassification.js +6 -3
  139. package/src/catalogitems_v2022_04_01/model/ItemBrowseClassificationsByMarketplace.js +5 -3
  140. package/src/catalogitems_v2022_04_01/model/ItemClassificationSalesRank.js +6 -2
  141. package/src/catalogitems_v2022_04_01/model/ItemContributor.js +6 -4
  142. package/src/catalogitems_v2022_04_01/model/ItemContributorRole.js +4 -2
  143. package/src/catalogitems_v2022_04_01/model/ItemDimensionsByMarketplace.js +7 -4
  144. package/src/catalogitems_v2022_04_01/model/ItemDisplayGroupSalesRank.js +6 -2
  145. package/src/catalogitems_v2022_04_01/model/ItemIdentifier.js +4 -2
  146. package/src/catalogitems_v2022_04_01/model/ItemIdentifiersByMarketplace.js +6 -4
  147. package/src/catalogitems_v2022_04_01/model/ItemImage.js +8 -4
  148. package/src/catalogitems_v2022_04_01/model/ItemImagesByMarketplace.js +6 -4
  149. package/src/catalogitems_v2022_04_01/model/ItemProductTypeByMarketplace.js +4 -2
  150. package/src/catalogitems_v2022_04_01/model/ItemRelationship.js +11 -7
  151. package/src/catalogitems_v2022_04_01/model/ItemRelationshipsByMarketplace.js +6 -4
  152. package/src/catalogitems_v2022_04_01/model/ItemSalesRanksByMarketplace.js +7 -4
  153. package/src/catalogitems_v2022_04_01/model/ItemSearchResults.js +12 -8
  154. package/src/catalogitems_v2022_04_01/model/ItemSummaryByMarketplace.js +25 -5
  155. package/src/catalogitems_v2022_04_01/model/ItemVariationTheme.js +5 -3
  156. package/src/catalogitems_v2022_04_01/model/ItemVendorDetailsByMarketplace.js +13 -5
  157. package/src/catalogitems_v2022_04_01/model/ItemVendorDetailsCategory.js +4 -2
  158. package/src/catalogitems_v2022_04_01/model/Pagination.js +4 -2
  159. package/src/catalogitems_v2022_04_01/model/Refinements.js +8 -6
  160. package/src/customerFeedback_2024_06_01/ApiClient.js +827 -0
  161. package/src/customerFeedback_2024_06_01/api/CustomerFeedbackApi.js +470 -0
  162. package/src/customerFeedback_2024_06_01/index.js +308 -0
  163. package/src/customerFeedback_2024_06_01/model/BrowseNodeAllOccurrence.js +75 -0
  164. package/src/customerFeedback_2024_06_01/model/BrowseNodeAllStarRatingImpact.js +75 -0
  165. package/src/customerFeedback_2024_06_01/model/BrowseNodeOccurrence.js +65 -0
  166. package/src/customerFeedback_2024_06_01/model/BrowseNodeResponse.js +75 -0
  167. package/src/customerFeedback_2024_06_01/model/BrowseNodeReturnTopics.js +75 -0
  168. package/src/customerFeedback_2024_06_01/model/BrowseNodeReturnTopicsResponse.js +116 -0
  169. package/src/customerFeedback_2024_06_01/model/BrowseNodeReturnTrend.js +76 -0
  170. package/src/customerFeedback_2024_06_01/model/BrowseNodeReturnTrendPoint.js +75 -0
  171. package/src/customerFeedback_2024_06_01/model/BrowseNodeReturnTrendsResponse.js +116 -0
  172. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewSubtopicMetrics.js +65 -0
  173. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTopic.js +92 -0
  174. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTopicMetrics.js +71 -0
  175. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTopics.js +72 -0
  176. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTopicsResponse.js +115 -0
  177. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTrend.js +76 -0
  178. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTrendMetrics.js +65 -0
  179. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTrendPoint.js +75 -0
  180. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTrends.js +72 -0
  181. package/src/customerFeedback_2024_06_01/model/BrowseNodeReviewTrendsResponse.js +115 -0
  182. package/src/customerFeedback_2024_06_01/model/BrowseNodeStarRatingImpact.js +65 -0
  183. package/src/customerFeedback_2024_06_01/model/BrowseNodeSubtopic.js +83 -0
  184. package/src/customerFeedback_2024_06_01/model/BrowseNodeTrendMetrics.js +65 -0
  185. package/src/customerFeedback_2024_06_01/model/ChildAsinMentionMetrics.js +75 -0
  186. package/src/customerFeedback_2024_06_01/model/ChildAsinMetrics.js +70 -0
  187. package/src/customerFeedback_2024_06_01/model/DateRange.js +75 -0
  188. package/src/customerFeedback_2024_06_01/model/Error.js +83 -0
  189. package/src/customerFeedback_2024_06_01/model/ErrorList.js +66 -0
  190. package/src/customerFeedback_2024_06_01/model/ItemReviewBrowseNodeMetrics.js +71 -0
  191. package/src/customerFeedback_2024_06_01/model/ItemReviewSubtopic.js +83 -0
  192. package/src/customerFeedback_2024_06_01/model/ItemReviewSubtopicMetrics.js +75 -0
  193. package/src/customerFeedback_2024_06_01/model/ItemReviewTopic.js +115 -0
  194. package/src/customerFeedback_2024_06_01/model/ItemReviewTopicMetrics.js +79 -0
  195. package/src/customerFeedback_2024_06_01/model/ItemReviewTopics.js +72 -0
  196. package/src/customerFeedback_2024_06_01/model/ItemReviewTopicsResponse.js +115 -0
  197. package/src/customerFeedback_2024_06_01/model/ItemReviewTrend.js +76 -0
  198. package/src/customerFeedback_2024_06_01/model/ItemReviewTrendPoint.js +90 -0
  199. package/src/customerFeedback_2024_06_01/model/ItemReviewTrends.js +72 -0
  200. package/src/customerFeedback_2024_06_01/model/ItemReviewTrendsResponse.js +115 -0
  201. package/src/customerFeedback_2024_06_01/model/ReviewTrendMetrics.js +65 -0
  202. package/src/datakiosk_v2023_11_15/api/QueriesApi.js +17 -17
  203. package/src/datakiosk_v2023_11_15/model/CreateQueryResponse.js +3 -2
  204. package/src/datakiosk_v2023_11_15/model/CreateQuerySpecification.js +4 -2
  205. package/src/datakiosk_v2023_11_15/model/Error.js +5 -2
  206. package/src/datakiosk_v2023_11_15/model/ErrorList.js +5 -4
  207. package/src/datakiosk_v2023_11_15/model/GetDocumentResponse.js +4 -2
  208. package/src/datakiosk_v2023_11_15/model/GetQueriesResponse.js +7 -5
  209. package/src/datakiosk_v2023_11_15/model/GetQueriesResponsePagination.js +3 -2
  210. package/src/datakiosk_v2023_11_15/model/Query.js +14 -5
  211. package/src/datakiosk_v2023_11_15/model/QueryPagination.js +3 -2
  212. package/src/easyship_v2022_03_23/api/EasyShipApi.js +21 -21
  213. package/src/easyship_v2022_03_23/model/Code.js +2 -2
  214. package/src/easyship_v2022_03_23/model/CreateScheduledPackageRequest.js +7 -4
  215. package/src/easyship_v2022_03_23/model/CreateScheduledPackagesRequest.js +9 -6
  216. package/src/easyship_v2022_03_23/model/CreateScheduledPackagesResponse.js +7 -4
  217. package/src/easyship_v2022_03_23/model/Dimensions.js +8 -3
  218. package/src/easyship_v2022_03_23/model/Error.js +5 -2
  219. package/src/easyship_v2022_03_23/model/ErrorList.js +5 -4
  220. package/src/easyship_v2022_03_23/model/HandoverMethod.js +2 -2
  221. package/src/easyship_v2022_03_23/model/InvoiceData.js +4 -2
  222. package/src/easyship_v2022_03_23/model/Item.js +5 -3
  223. package/src/easyship_v2022_03_23/model/LabelFormat.js +2 -2
  224. package/src/easyship_v2022_03_23/model/ListHandoverSlotsRequest.js +10 -6
  225. package/src/easyship_v2022_03_23/model/ListHandoverSlotsResponse.js +6 -4
  226. package/src/easyship_v2022_03_23/model/OrderScheduleDetails.js +5 -3
  227. package/src/easyship_v2022_03_23/model/Package.js +23 -14
  228. package/src/easyship_v2022_03_23/model/PackageDetails.js +8 -5
  229. package/src/easyship_v2022_03_23/model/PackageStatus.js +2 -2
  230. package/src/easyship_v2022_03_23/model/Packages.js +5 -4
  231. package/src/easyship_v2022_03_23/model/RejectedOrder.js +5 -3
  232. package/src/easyship_v2022_03_23/model/ScheduledPackageId.js +4 -2
  233. package/src/easyship_v2022_03_23/model/TimeSlot.js +7 -3
  234. package/src/easyship_v2022_03_23/model/TrackingDetails.js +3 -2
  235. package/src/easyship_v2022_03_23/model/UnitOfLength.js +2 -2
  236. package/src/easyship_v2022_03_23/model/UnitOfWeight.js +2 -2
  237. package/src/easyship_v2022_03_23/model/UpdatePackageDetails.js +8 -6
  238. package/src/easyship_v2022_03_23/model/UpdateScheduledPackagesRequest.js +6 -4
  239. package/src/easyship_v2022_03_23/model/Weight.js +5 -3
  240. package/src/fbaeligibility_v1/api/FbaInboundApi.js +9 -9
  241. package/src/fbaeligibility_v1/model/Error.js +5 -2
  242. package/src/fbaeligibility_v1/model/GetItemEligibilityPreviewResponse.js +6 -4
  243. package/src/fbaeligibility_v1/model/ItemEligibilityPreview.js +10 -5
  244. package/src/fbainventory_v1/api/FbaInventoryApi.js +21 -21
  245. package/src/fbainventory_v1/model/AddInventoryRequest.js +4 -3
  246. package/src/fbainventory_v1/model/AddInventoryResponse.js +4 -3
  247. package/src/fbainventory_v1/model/CreateInventoryItemRequest.js +5 -2
  248. package/src/fbainventory_v1/model/CreateInventoryItemResponse.js +4 -3
  249. package/src/fbainventory_v1/model/DeleteInventoryItemResponse.js +4 -3
  250. package/src/fbainventory_v1/model/Error.js +5 -2
  251. package/src/fbainventory_v1/model/GetInventorySummariesResponse.js +8 -5
  252. package/src/fbainventory_v1/model/GetInventorySummariesResult.js +8 -6
  253. package/src/fbainventory_v1/model/Granularity.js +4 -2
  254. package/src/fbainventory_v1/model/InventoryDetails.js +12 -5
  255. package/src/fbainventory_v1/model/InventoryItem.js +5 -2
  256. package/src/fbainventory_v1/model/InventorySummary.js +13 -4
  257. package/src/fbainventory_v1/model/Pagination.js +3 -2
  258. package/src/fbainventory_v1/model/ResearchingQuantity.js +5 -3
  259. package/src/fbainventory_v1/model/ResearchingQuantityEntry.js +6 -4
  260. package/src/fbainventory_v1/model/ReservedQuantity.js +6 -2
  261. package/src/fbainventory_v1/model/UnfulfillableQuantity.js +9 -2
  262. package/src/feeds_v2021_06_30/api/FeedsApi.js +31 -31
  263. package/src/feeds_v2021_06_30/model/CreateFeedDocumentResponse.js +4 -2
  264. package/src/feeds_v2021_06_30/model/CreateFeedDocumentSpecification.js +3 -2
  265. package/src/feeds_v2021_06_30/model/CreateFeedResponse.js +3 -2
  266. package/src/feeds_v2021_06_30/model/CreateFeedSpecification.js +9 -5
  267. package/src/feeds_v2021_06_30/model/Error.js +5 -2
  268. package/src/feeds_v2021_06_30/model/ErrorList.js +5 -4
  269. package/src/feeds_v2021_06_30/model/Feed.js +13 -5
  270. package/src/feeds_v2021_06_30/model/FeedDocument.js +6 -3
  271. package/src/feeds_v2021_06_30/model/GetFeedsResponse.js +6 -4
  272. package/src/finances_2024_06_19/ApiClient.js +827 -0
  273. package/src/finances_2024_06_19/api/DefaultApi.js +125 -0
  274. package/src/finances_2024_06_19/index.js +168 -0
  275. package/src/finances_2024_06_19/model/AmazonPayContext.js +79 -0
  276. package/src/finances_2024_06_19/model/Breakdown.js +79 -0
  277. package/src/finances_2024_06_19/model/BusinessContext.js +77 -0
  278. package/src/finances_2024_06_19/model/Context.js +340 -0
  279. package/src/finances_2024_06_19/model/Currency.js +71 -0
  280. package/src/finances_2024_06_19/model/DeferredContext.js +71 -0
  281. package/src/finances_2024_06_19/model/Error.js +83 -0
  282. package/src/finances_2024_06_19/model/ErrorList.js +66 -0
  283. package/src/finances_2024_06_19/model/Item.js +98 -0
  284. package/src/finances_2024_06_19/model/ItemRelatedIdentifier.js +103 -0
  285. package/src/finances_2024_06_19/model/ListTransactionsResponse.js +63 -0
  286. package/src/finances_2024_06_19/model/MarketplaceDetails.js +71 -0
  287. package/src/finances_2024_06_19/model/PaymentsContext.js +87 -0
  288. package/src/finances_2024_06_19/model/ProductContext.js +87 -0
  289. package/src/finances_2024_06_19/model/RelatedIdentifier.js +139 -0
  290. package/src/finances_2024_06_19/model/SellingPartnerMetadata.js +79 -0
  291. package/src/finances_2024_06_19/model/TimeRangeContext.js +71 -0
  292. package/src/finances_2024_06_19/model/Transaction.js +155 -0
  293. package/src/finances_2024_06_19/model/TransactionsPayload.js +72 -0
  294. package/src/finances_v0/api/DefaultApi.js +11 -11
  295. package/src/finances_v0/model/AdhocDisbursementEvent.js +7 -3
  296. package/src/finances_v0/model/AdjustmentEvent.js +9 -4
  297. package/src/finances_v0/model/AdjustmentItem.js +12 -4
  298. package/src/finances_v0/model/AffordabilityExpenseEvent.js +19 -10
  299. package/src/finances_v0/model/CapacityReservationBillingEvent.js +7 -3
  300. package/src/finances_v0/model/ChargeComponent.js +5 -3
  301. package/src/finances_v0/model/ChargeInstrument.js +6 -3
  302. package/src/finances_v0/model/ChargeRefundEvent.js +7 -3
  303. package/src/finances_v0/model/ChargeRefundTransaction.js +5 -3
  304. package/src/finances_v0/model/CouponPaymentEvent.js +13 -5
  305. package/src/finances_v0/model/Currency.js +4 -2
  306. package/src/finances_v0/model/DebtRecoveryEvent.js +11 -6
  307. package/src/finances_v0/model/DebtRecoveryItem.js +8 -4
  308. package/src/finances_v0/model/DirectPayment.js +5 -3
  309. package/src/finances_v0/model/Error.js +5 -2
  310. package/src/finances_v0/model/FBALiquidationEvent.js +8 -4
  311. package/src/finances_v0/model/FailedAdhocDisbursementEvent.js +10 -3
  312. package/src/finances_v0/model/FeeComponent.js +5 -3
  313. package/src/finances_v0/model/FinancialEventGroup.js +16 -5
  314. package/src/finances_v0/model/FinancialEvents.js +68 -35
  315. package/src/finances_v0/model/ImagingServicesFeeEvent.js +7 -3
  316. package/src/finances_v0/model/ListFinancialEventGroupsPayload.js +5 -3
  317. package/src/finances_v0/model/ListFinancialEventGroupsResponse.js +6 -4
  318. package/src/finances_v0/model/ListFinancialEventsPayload.js +5 -3
  319. package/src/finances_v0/model/ListFinancialEventsResponse.js +6 -4
  320. package/src/finances_v0/model/LoanServicingEvent.js +5 -3
  321. package/src/finances_v0/model/NetworkComminglingTransactionEvent.js +12 -4
  322. package/src/finances_v0/model/PayWithAmazonEvent.js +14 -4
  323. package/src/finances_v0/model/ProductAdsPaymentEvent.js +11 -5
  324. package/src/finances_v0/model/Promotion.js +6 -3
  325. package/src/finances_v0/model/RemovalShipmentAdjustmentEvent.js +9 -3
  326. package/src/finances_v0/model/RemovalShipmentEvent.js +9 -3
  327. package/src/finances_v0/model/RemovalShipmentItem.js +14 -6
  328. package/src/finances_v0/model/RemovalShipmentItemAdjustment.js +12 -5
  329. package/src/finances_v0/model/RentalTransactionEvent.js +17 -7
  330. package/src/finances_v0/model/RetrochargeEvent.js +12 -5
  331. package/src/finances_v0/model/SAFETReimbursementEvent.js +9 -4
  332. package/src/finances_v0/model/SAFETReimbursementItem.js +6 -3
  333. package/src/finances_v0/model/SellerDealPaymentEvent.js +13 -5
  334. package/src/finances_v0/model/SellerReviewEnrollmentPaymentEvent.js +11 -5
  335. package/src/finances_v0/model/ServiceFeeEvent.js +11 -3
  336. package/src/finances_v0/model/ShipmentEvent.js +25 -11
  337. package/src/finances_v0/model/ShipmentItem.js +24 -11
  338. package/src/finances_v0/model/SolutionProviderCreditEvent.js +13 -3
  339. package/src/finances_v0/model/TDSReimbursementEvent.js +6 -3
  340. package/src/finances_v0/model/TaxWithheldComponent.js +5 -3
  341. package/src/finances_v0/model/TaxWithholdingEvent.js +9 -5
  342. package/src/finances_v0/model/TaxWithholdingPeriod.js +4 -2
  343. package/src/finances_v0/model/TrialShipmentEvent.js +8 -3
  344. package/src/finances_v0/model/ValueAddedServiceChargeEvent.js +7 -3
  345. package/src/fulfillmentinbound_v0/api/FbaInboundApi.js +33 -33
  346. package/src/fulfillmentinbound_v0/model/ASINPrepInstructions.js +9 -5
  347. package/src/fulfillmentinbound_v0/model/Address.js +10 -2
  348. package/src/fulfillmentinbound_v0/model/AmazonPrepFeesDetails.js +6 -4
  349. package/src/fulfillmentinbound_v0/model/Amount.js +6 -4
  350. package/src/fulfillmentinbound_v0/model/BarcodeInstruction.js +2 -2
  351. package/src/fulfillmentinbound_v0/model/BillOfLadingDownloadURL.js +3 -2
  352. package/src/fulfillmentinbound_v0/model/BoxContentsFeeDetails.js +7 -4
  353. package/src/fulfillmentinbound_v0/model/BoxContentsSource.js +2 -2
  354. package/src/fulfillmentinbound_v0/model/CurrencyCode.js +2 -2
  355. package/src/fulfillmentinbound_v0/model/Error.js +5 -2
  356. package/src/fulfillmentinbound_v0/model/ErrorReason.js +2 -2
  357. package/src/fulfillmentinbound_v0/model/GetBillOfLadingResponse.js +6 -4
  358. package/src/fulfillmentinbound_v0/model/GetLabelsResponse.js +6 -4
  359. package/src/fulfillmentinbound_v0/model/GetPrepInstructionsResponse.js +6 -4
  360. package/src/fulfillmentinbound_v0/model/GetPrepInstructionsResult.js +10 -6
  361. package/src/fulfillmentinbound_v0/model/GetShipmentItemsResponse.js +6 -4
  362. package/src/fulfillmentinbound_v0/model/GetShipmentItemsResult.js +5 -3
  363. package/src/fulfillmentinbound_v0/model/GetShipmentsResponse.js +6 -4
  364. package/src/fulfillmentinbound_v0/model/GetShipmentsResult.js +5 -3
  365. package/src/fulfillmentinbound_v0/model/InboundShipmentInfo.js +18 -8
  366. package/src/fulfillmentinbound_v0/model/InboundShipmentItem.js +11 -3
  367. package/src/fulfillmentinbound_v0/model/InvalidASIN.js +5 -3
  368. package/src/fulfillmentinbound_v0/model/InvalidSKU.js +5 -3
  369. package/src/fulfillmentinbound_v0/model/LabelDownloadURL.js +3 -2
  370. package/src/fulfillmentinbound_v0/model/LabelPrepType.js +2 -2
  371. package/src/fulfillmentinbound_v0/model/PrepDetails.js +8 -6
  372. package/src/fulfillmentinbound_v0/model/PrepGuidance.js +2 -2
  373. package/src/fulfillmentinbound_v0/model/PrepInstruction.js +2 -2
  374. package/src/fulfillmentinbound_v0/model/PrepOwner.js +2 -2
  375. package/src/fulfillmentinbound_v0/model/SKUPrepInstructions.js +12 -6
  376. package/src/fulfillmentinbound_v0/model/ShipmentStatus.js +2 -2
  377. package/src/fulfillmentinbound_v2024_03_20/api/FbaInboundApi.js +135 -135
  378. package/src/fulfillmentinbound_v2024_03_20/model/Address.js +12 -2
  379. package/src/fulfillmentinbound_v2024_03_20/model/AddressInput.js +12 -2
  380. package/src/fulfillmentinbound_v2024_03_20/model/AllOwnersConstraint.js +2 -2
  381. package/src/fulfillmentinbound_v2024_03_20/model/AppointmentSlot.js +6 -4
  382. package/src/fulfillmentinbound_v2024_03_20/model/AppointmentSlotTime.js +4 -2
  383. package/src/fulfillmentinbound_v2024_03_20/model/Box.js +18 -7
  384. package/src/fulfillmentinbound_v2024_03_20/model/BoxContentInformationSource.js +2 -2
  385. package/src/fulfillmentinbound_v2024_03_20/model/BoxInput.js +14 -9
  386. package/src/fulfillmentinbound_v2024_03_20/model/BoxRequirements.js +5 -4
  387. package/src/fulfillmentinbound_v2024_03_20/model/BoxUpdateInput.js +15 -9
  388. package/src/fulfillmentinbound_v2024_03_20/model/CancelInboundPlanResponse.js +3 -2
  389. package/src/fulfillmentinbound_v2024_03_20/model/CancelSelfShipAppointmentRequest.js +4 -3
  390. package/src/fulfillmentinbound_v2024_03_20/model/CancelSelfShipAppointmentResponse.js +3 -2
  391. package/src/fulfillmentinbound_v2024_03_20/model/Carrier.js +4 -2
  392. package/src/fulfillmentinbound_v2024_03_20/model/CarrierAppointment.js +4 -2
  393. package/src/fulfillmentinbound_v2024_03_20/model/ComplianceDetail.js +7 -3
  394. package/src/fulfillmentinbound_v2024_03_20/model/ConfirmDeliveryWindowOptionsResponse.js +3 -2
  395. package/src/fulfillmentinbound_v2024_03_20/model/ConfirmPackingOptionResponse.js +3 -2
  396. package/src/fulfillmentinbound_v2024_03_20/model/ConfirmPlacementOptionResponse.js +3 -2
  397. package/src/fulfillmentinbound_v2024_03_20/model/ConfirmShipmentContentUpdatePreviewResponse.js +3 -2
  398. package/src/fulfillmentinbound_v2024_03_20/model/ConfirmTransportationOptionsRequest.js +5 -4
  399. package/src/fulfillmentinbound_v2024_03_20/model/ConfirmTransportationOptionsResponse.js +3 -2
  400. package/src/fulfillmentinbound_v2024_03_20/model/ContactInformation.js +5 -2
  401. package/src/fulfillmentinbound_v2024_03_20/model/ContentUpdatePreview.js +10 -6
  402. package/src/fulfillmentinbound_v2024_03_20/model/CreateInboundPlanRequest.js +12 -8
  403. package/src/fulfillmentinbound_v2024_03_20/model/CreateInboundPlanResponse.js +4 -2
  404. package/src/fulfillmentinbound_v2024_03_20/model/CreateMarketplaceItemLabelsRequest.js +14 -7
  405. package/src/fulfillmentinbound_v2024_03_20/model/CreateMarketplaceItemLabelsResponse.js +5 -4
  406. package/src/fulfillmentinbound_v2024_03_20/model/Currency.js +4 -2
  407. package/src/fulfillmentinbound_v2024_03_20/model/CustomPlacementInput.js +6 -4
  408. package/src/fulfillmentinbound_v2024_03_20/model/Dates.js +4 -3
  409. package/src/fulfillmentinbound_v2024_03_20/model/DeliveryWindowOption.js +7 -2
  410. package/src/fulfillmentinbound_v2024_03_20/model/Dimensions.js +8 -4
  411. package/src/fulfillmentinbound_v2024_03_20/model/DocumentDownload.js +5 -2
  412. package/src/fulfillmentinbound_v2024_03_20/model/Error.js +5 -2
  413. package/src/fulfillmentinbound_v2024_03_20/model/ErrorList.js +5 -4
  414. package/src/fulfillmentinbound_v2024_03_20/model/FreightInformation.js +5 -3
  415. package/src/fulfillmentinbound_v2024_03_20/model/GenerateDeliveryWindowOptionsResponse.js +3 -2
  416. package/src/fulfillmentinbound_v2024_03_20/model/GeneratePackingOptionsResponse.js +3 -2
  417. package/src/fulfillmentinbound_v2024_03_20/model/GeneratePlacementOptionsRequest.js +4 -3
  418. package/src/fulfillmentinbound_v2024_03_20/model/GeneratePlacementOptionsResponse.js +3 -2
  419. package/src/fulfillmentinbound_v2024_03_20/model/GenerateSelfShipAppointmentSlotsRequest.js +4 -2
  420. package/src/fulfillmentinbound_v2024_03_20/model/GenerateSelfShipAppointmentSlotsResponse.js +3 -2
  421. package/src/fulfillmentinbound_v2024_03_20/model/GenerateShipmentContentUpdatePreviewsRequest.js +8 -6
  422. package/src/fulfillmentinbound_v2024_03_20/model/GenerateShipmentContentUpdatePreviewsResponse.js +3 -2
  423. package/src/fulfillmentinbound_v2024_03_20/model/GenerateTransportationOptionsRequest.js +6 -4
  424. package/src/fulfillmentinbound_v2024_03_20/model/GenerateTransportationOptionsResponse.js +3 -2
  425. package/src/fulfillmentinbound_v2024_03_20/model/GetDeliveryChallanDocumentResponse.js +5 -4
  426. package/src/fulfillmentinbound_v2024_03_20/model/GetSelfShipAppointmentSlotsResponse.js +7 -5
  427. package/src/fulfillmentinbound_v2024_03_20/model/InboundOperationStatus.js +10 -6
  428. package/src/fulfillmentinbound_v2024_03_20/model/InboundPlan.js +19 -9
  429. package/src/fulfillmentinbound_v2024_03_20/model/InboundPlanSummary.js +13 -6
  430. package/src/fulfillmentinbound_v2024_03_20/model/Incentive.js +8 -4
  431. package/src/fulfillmentinbound_v2024_03_20/model/Item.js +12 -4
  432. package/src/fulfillmentinbound_v2024_03_20/model/ItemInput.js +12 -6
  433. package/src/fulfillmentinbound_v2024_03_20/model/ItemLabelPageType.js +2 -2
  434. package/src/fulfillmentinbound_v2024_03_20/model/LabelOwner.js +2 -2
  435. package/src/fulfillmentinbound_v2024_03_20/model/LabelPrintType.js +2 -2
  436. package/src/fulfillmentinbound_v2024_03_20/model/ListDeliveryWindowOptionsResponse.js +7 -5
  437. package/src/fulfillmentinbound_v2024_03_20/model/ListInboundPlanBoxesResponse.js +7 -5
  438. package/src/fulfillmentinbound_v2024_03_20/model/ListInboundPlanItemsResponse.js +7 -5
  439. package/src/fulfillmentinbound_v2024_03_20/model/ListInboundPlanPalletsResponse.js +7 -5
  440. package/src/fulfillmentinbound_v2024_03_20/model/ListInboundPlansResponse.js +6 -4
  441. package/src/fulfillmentinbound_v2024_03_20/model/ListItemComplianceDetailsResponse.js +4 -3
  442. package/src/fulfillmentinbound_v2024_03_20/model/ListPackingGroupBoxesResponse.js +7 -5
  443. package/src/fulfillmentinbound_v2024_03_20/model/ListPackingGroupItemsResponse.js +7 -5
  444. package/src/fulfillmentinbound_v2024_03_20/model/ListPackingOptionsResponse.js +7 -5
  445. package/src/fulfillmentinbound_v2024_03_20/model/ListPlacementOptionsResponse.js +7 -5
  446. package/src/fulfillmentinbound_v2024_03_20/model/ListPrepDetailsResponse.js +5 -4
  447. package/src/fulfillmentinbound_v2024_03_20/model/ListShipmentBoxesResponse.js +7 -5
  448. package/src/fulfillmentinbound_v2024_03_20/model/ListShipmentContentUpdatePreviewsResponse.js +7 -5
  449. package/src/fulfillmentinbound_v2024_03_20/model/ListShipmentItemsResponse.js +7 -5
  450. package/src/fulfillmentinbound_v2024_03_20/model/ListShipmentPalletsResponse.js +7 -5
  451. package/src/fulfillmentinbound_v2024_03_20/model/ListTransportationOptionsResponse.js +7 -5
  452. package/src/fulfillmentinbound_v2024_03_20/model/LtlTrackingDetail.js +5 -3
  453. package/src/fulfillmentinbound_v2024_03_20/model/LtlTrackingDetailInput.js +6 -4
  454. package/src/fulfillmentinbound_v2024_03_20/model/MskuPrepDetail.js +15 -9
  455. package/src/fulfillmentinbound_v2024_03_20/model/MskuPrepDetailInput.js +9 -6
  456. package/src/fulfillmentinbound_v2024_03_20/model/MskuQuantity.js +4 -2
  457. package/src/fulfillmentinbound_v2024_03_20/model/OperationProblem.js +6 -2
  458. package/src/fulfillmentinbound_v2024_03_20/model/OperationStatus.js +2 -2
  459. package/src/fulfillmentinbound_v2024_03_20/model/OwnerConstraint.js +2 -2
  460. package/src/fulfillmentinbound_v2024_03_20/model/PackageGroupingInput.js +7 -4
  461. package/src/fulfillmentinbound_v2024_03_20/model/PackingConfiguration.js +8 -5
  462. package/src/fulfillmentinbound_v2024_03_20/model/PackingOption.js +20 -12
  463. package/src/fulfillmentinbound_v2024_03_20/model/PackingOptionSummary.js +4 -2
  464. package/src/fulfillmentinbound_v2024_03_20/model/Pagination.js +3 -2
  465. package/src/fulfillmentinbound_v2024_03_20/model/Pallet.js +10 -5
  466. package/src/fulfillmentinbound_v2024_03_20/model/PalletInput.js +9 -5
  467. package/src/fulfillmentinbound_v2024_03_20/model/PlacementOption.js +14 -8
  468. package/src/fulfillmentinbound_v2024_03_20/model/PlacementOptionSummary.js +4 -2
  469. package/src/fulfillmentinbound_v2024_03_20/model/PrepCategory.js +2 -2
  470. package/src/fulfillmentinbound_v2024_03_20/model/PrepInstruction.js +6 -3
  471. package/src/fulfillmentinbound_v2024_03_20/model/PrepOwner.js +2 -2
  472. package/src/fulfillmentinbound_v2024_03_20/model/PrepType.js +2 -2
  473. package/src/fulfillmentinbound_v2024_03_20/model/Quote.js +7 -4
  474. package/src/fulfillmentinbound_v2024_03_20/model/ReasonComment.js +2 -2
  475. package/src/fulfillmentinbound_v2024_03_20/model/Region.js +5 -2
  476. package/src/fulfillmentinbound_v2024_03_20/model/RequestedUpdates.js +6 -4
  477. package/src/fulfillmentinbound_v2024_03_20/model/ScheduleSelfShipAppointmentRequest.js +4 -3
  478. package/src/fulfillmentinbound_v2024_03_20/model/ScheduleSelfShipAppointmentResponse.js +5 -4
  479. package/src/fulfillmentinbound_v2024_03_20/model/SelectedDeliveryWindow.js +7 -2
  480. package/src/fulfillmentinbound_v2024_03_20/model/SelfShipAppointmentDetails.js +6 -3
  481. package/src/fulfillmentinbound_v2024_03_20/model/SelfShipAppointmentSlotsAvailability.js +5 -3
  482. package/src/fulfillmentinbound_v2024_03_20/model/SetPackingInformationRequest.js +5 -4
  483. package/src/fulfillmentinbound_v2024_03_20/model/SetPackingInformationResponse.js +3 -2
  484. package/src/fulfillmentinbound_v2024_03_20/model/SetPrepDetailsRequest.js +6 -4
  485. package/src/fulfillmentinbound_v2024_03_20/model/SetPrepDetailsResponse.js +3 -2
  486. package/src/fulfillmentinbound_v2024_03_20/model/Shipment.js +27 -12
  487. package/src/fulfillmentinbound_v2024_03_20/model/ShipmentDestination.js +6 -3
  488. package/src/fulfillmentinbound_v2024_03_20/model/ShipmentSource.js +5 -3
  489. package/src/fulfillmentinbound_v2024_03_20/model/ShipmentSummary.js +4 -2
  490. package/src/fulfillmentinbound_v2024_03_20/model/ShipmentTransportationConfiguration.js +12 -7
  491. package/src/fulfillmentinbound_v2024_03_20/model/ShippingConfiguration.js +4 -2
  492. package/src/fulfillmentinbound_v2024_03_20/model/ShippingRequirements.js +6 -4
  493. package/src/fulfillmentinbound_v2024_03_20/model/SpdTrackingDetail.js +4 -3
  494. package/src/fulfillmentinbound_v2024_03_20/model/SpdTrackingDetailInput.js +5 -4
  495. package/src/fulfillmentinbound_v2024_03_20/model/SpdTrackingItem.js +5 -2
  496. package/src/fulfillmentinbound_v2024_03_20/model/SpdTrackingItemInput.js +4 -2
  497. package/src/fulfillmentinbound_v2024_03_20/model/Stackability.js +2 -2
  498. package/src/fulfillmentinbound_v2024_03_20/model/TaxDetails.js +7 -4
  499. package/src/fulfillmentinbound_v2024_03_20/model/TaxRate.js +5 -2
  500. package/src/fulfillmentinbound_v2024_03_20/model/TrackingDetails.js +6 -4
  501. package/src/fulfillmentinbound_v2024_03_20/model/TrackingDetailsInput.js +6 -4
  502. package/src/fulfillmentinbound_v2024_03_20/model/TransportationOption.js +16 -8
  503. package/src/fulfillmentinbound_v2024_03_20/model/TransportationSelection.js +6 -3
  504. package/src/fulfillmentinbound_v2024_03_20/model/UnitOfMeasurement.js +2 -2
  505. package/src/fulfillmentinbound_v2024_03_20/model/UnitOfWeight.js +2 -2
  506. package/src/fulfillmentinbound_v2024_03_20/model/UpdateInboundPlanNameRequest.js +3 -2
  507. package/src/fulfillmentinbound_v2024_03_20/model/UpdateItemComplianceDetailsRequest.js +6 -4
  508. package/src/fulfillmentinbound_v2024_03_20/model/UpdateItemComplianceDetailsResponse.js +3 -2
  509. package/src/fulfillmentinbound_v2024_03_20/model/UpdateShipmentNameRequest.js +3 -2
  510. package/src/fulfillmentinbound_v2024_03_20/model/UpdateShipmentSourceAddressRequest.js +5 -4
  511. package/src/fulfillmentinbound_v2024_03_20/model/UpdateShipmentSourceAddressResponse.js +3 -2
  512. package/src/fulfillmentinbound_v2024_03_20/model/UpdateShipmentTrackingDetailsRequest.js +5 -4
  513. package/src/fulfillmentinbound_v2024_03_20/model/UpdateShipmentTrackingDetailsResponse.js +3 -2
  514. package/src/fulfillmentinbound_v2024_03_20/model/Weight.js +6 -4
  515. package/src/fulfillmentinbound_v2024_03_20/model/WeightRange.js +7 -4
  516. package/src/fulfillmentinbound_v2024_03_20/model/Window.js +5 -2
  517. package/src/fulfillmentinbound_v2024_03_20/model/WindowInput.js +3 -2
  518. package/src/fulfillmentoutbound_v2020_07_01/api/FbaOutboundApi.js +43 -43
  519. package/src/fulfillmentoutbound_v2020_07_01/model/AdditionalLocationInfo.js +2 -2
  520. package/src/fulfillmentoutbound_v2020_07_01/model/Address.js +12 -2
  521. package/src/fulfillmentoutbound_v2020_07_01/model/Amount.js +6 -4
  522. package/src/fulfillmentoutbound_v2020_07_01/model/CODSettings.js +11 -6
  523. package/src/fulfillmentoutbound_v2020_07_01/model/CancelFulfillmentOrderResponse.js +4 -3
  524. package/src/fulfillmentoutbound_v2020_07_01/model/CreateFulfillmentOrderItem.js +14 -5
  525. package/src/fulfillmentoutbound_v2020_07_01/model/CreateFulfillmentOrderRequest.js +33 -16
  526. package/src/fulfillmentoutbound_v2020_07_01/model/CreateFulfillmentOrderResponse.js +4 -3
  527. package/src/fulfillmentoutbound_v2020_07_01/model/CreateFulfillmentReturnRequest.js +5 -4
  528. package/src/fulfillmentoutbound_v2020_07_01/model/CreateFulfillmentReturnResponse.js +6 -4
  529. package/src/fulfillmentoutbound_v2020_07_01/model/CreateFulfillmentReturnResult.js +8 -5
  530. package/src/fulfillmentoutbound_v2020_07_01/model/CreateReturnItem.js +7 -2
  531. package/src/fulfillmentoutbound_v2020_07_01/model/CurrentStatus.js +2 -2
  532. package/src/fulfillmentoutbound_v2020_07_01/model/DateRange.js +4 -2
  533. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryDocument.js +4 -2
  534. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryInformation.js +6 -4
  535. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryMessage.js +4 -2
  536. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryOffer.js +7 -4
  537. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryPolicy.js +4 -3
  538. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryPreferences.js +5 -3
  539. package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryWindow.js +4 -2
  540. package/src/fulfillmentoutbound_v2020_07_01/model/Destination.js +5 -3
  541. package/src/fulfillmentoutbound_v2020_07_01/model/DropOffLocation.js +7 -5
  542. package/src/fulfillmentoutbound_v2020_07_01/model/Error.js +5 -2
  543. package/src/fulfillmentoutbound_v2020_07_01/model/EventCode.js +2 -2
  544. package/src/fulfillmentoutbound_v2020_07_01/model/Feature.js +5 -2
  545. package/src/fulfillmentoutbound_v2020_07_01/model/FeatureSettings.js +5 -3
  546. package/src/fulfillmentoutbound_v2020_07_01/model/FeatureSku.js +8 -3
  547. package/src/fulfillmentoutbound_v2020_07_01/model/Fee.js +8 -6
  548. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentAction.js +2 -2
  549. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentOrder.js +30 -14
  550. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentOrderItem.js +19 -5
  551. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentOrderStatus.js +2 -2
  552. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentPolicy.js +2 -2
  553. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentPreview.js +22 -11
  554. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentPreviewItem.js +9 -4
  555. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentPreviewShipment.js +11 -5
  556. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentReturnItemStatus.js +2 -2
  557. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentShipment.js +16 -8
  558. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentShipmentItem.js +9 -3
  559. package/src/fulfillmentoutbound_v2020_07_01/model/FulfillmentShipmentPackage.js +10 -4
  560. package/src/fulfillmentoutbound_v2020_07_01/model/GetDeliveryOffersProduct.js +7 -5
  561. package/src/fulfillmentoutbound_v2020_07_01/model/GetDeliveryOffersRequest.js +8 -6
  562. package/src/fulfillmentoutbound_v2020_07_01/model/GetDeliveryOffersResponse.js +6 -4
  563. package/src/fulfillmentoutbound_v2020_07_01/model/GetDeliveryOffersResult.js +4 -3
  564. package/src/fulfillmentoutbound_v2020_07_01/model/GetDeliveryOffersTerms.js +8 -6
  565. package/src/fulfillmentoutbound_v2020_07_01/model/GetFeatureInventoryResponse.js +6 -4
  566. package/src/fulfillmentoutbound_v2020_07_01/model/GetFeatureInventoryResult.js +7 -3
  567. package/src/fulfillmentoutbound_v2020_07_01/model/GetFeatureSkuResponse.js +6 -4
  568. package/src/fulfillmentoutbound_v2020_07_01/model/GetFeatureSkuResult.js +9 -4
  569. package/src/fulfillmentoutbound_v2020_07_01/model/GetFeaturesResponse.js +6 -4
  570. package/src/fulfillmentoutbound_v2020_07_01/model/GetFeaturesResult.js +5 -4
  571. package/src/fulfillmentoutbound_v2020_07_01/model/GetFulfillmentOrderResponse.js +6 -4
  572. package/src/fulfillmentoutbound_v2020_07_01/model/GetFulfillmentOrderResult.js +18 -12
  573. package/src/fulfillmentoutbound_v2020_07_01/model/GetFulfillmentPreviewItem.js +7 -3
  574. package/src/fulfillmentoutbound_v2020_07_01/model/GetFulfillmentPreviewRequest.js +15 -8
  575. package/src/fulfillmentoutbound_v2020_07_01/model/GetFulfillmentPreviewResponse.js +6 -4
  576. package/src/fulfillmentoutbound_v2020_07_01/model/GetFulfillmentPreviewResult.js +4 -3
  577. package/src/fulfillmentoutbound_v2020_07_01/model/GetPackageTrackingDetailsResponse.js +6 -4
  578. package/src/fulfillmentoutbound_v2020_07_01/model/InvalidItemReason.js +6 -4
  579. package/src/fulfillmentoutbound_v2020_07_01/model/InvalidItemReasonCode.js +2 -2
  580. package/src/fulfillmentoutbound_v2020_07_01/model/InvalidReturnItem.js +7 -4
  581. package/src/fulfillmentoutbound_v2020_07_01/model/ListAllFulfillmentOrdersResponse.js +6 -4
  582. package/src/fulfillmentoutbound_v2020_07_01/model/ListAllFulfillmentOrdersResult.js +5 -3
  583. package/src/fulfillmentoutbound_v2020_07_01/model/ListReturnReasonCodesResponse.js +6 -4
  584. package/src/fulfillmentoutbound_v2020_07_01/model/ListReturnReasonCodesResult.js +4 -3
  585. package/src/fulfillmentoutbound_v2020_07_01/model/LockerDetails.js +4 -2
  586. package/src/fulfillmentoutbound_v2020_07_01/model/Money.js +4 -2
  587. package/src/fulfillmentoutbound_v2020_07_01/model/Origin.js +3 -2
  588. package/src/fulfillmentoutbound_v2020_07_01/model/PackageTrackingDetails.js +22 -7
  589. package/src/fulfillmentoutbound_v2020_07_01/model/PaymentInformation.js +5 -2
  590. package/src/fulfillmentoutbound_v2020_07_01/model/ProductIdentifier.js +3 -2
  591. package/src/fulfillmentoutbound_v2020_07_01/model/ReasonCodeDetails.js +5 -2
  592. package/src/fulfillmentoutbound_v2020_07_01/model/ReturnAuthorization.js +9 -4
  593. package/src/fulfillmentoutbound_v2020_07_01/model/ReturnItem.js +16 -5
  594. package/src/fulfillmentoutbound_v2020_07_01/model/ReturnItemDisposition.js +2 -2
  595. package/src/fulfillmentoutbound_v2020_07_01/model/ScheduledDeliveryInfo.js +6 -4
  596. package/src/fulfillmentoutbound_v2020_07_01/model/ShippingSpeedCategory.js +2 -2
  597. package/src/fulfillmentoutbound_v2020_07_01/model/SubmitFulfillmentOrderStatusUpdateRequest.js +4 -3
  598. package/src/fulfillmentoutbound_v2020_07_01/model/SubmitFulfillmentOrderStatusUpdateResponse.js +4 -3
  599. package/src/fulfillmentoutbound_v2020_07_01/model/TrackingAddress.js +5 -2
  600. package/src/fulfillmentoutbound_v2020_07_01/model/TrackingEvent.js +10 -6
  601. package/src/fulfillmentoutbound_v2020_07_01/model/UnfulfillablePreviewItem.js +7 -3
  602. package/src/fulfillmentoutbound_v2020_07_01/model/UpdateFulfillmentOrderItem.js +15 -5
  603. package/src/fulfillmentoutbound_v2020_07_01/model/UpdateFulfillmentOrderRequest.js +21 -9
  604. package/src/fulfillmentoutbound_v2020_07_01/model/UpdateFulfillmentOrderResponse.js +4 -3
  605. package/src/fulfillmentoutbound_v2020_07_01/model/VariablePrecisionAddress.js +10 -2
  606. package/src/fulfillmentoutbound_v2020_07_01/model/Weight.js +6 -4
  607. package/src/invoices_v2024_06_19/api/InvoicesApi.js +27 -27
  608. package/src/invoices_v2024_06_19/model/AttributeOption.js +4 -2
  609. package/src/invoices_v2024_06_19/model/Error.js +5 -2
  610. package/src/invoices_v2024_06_19/model/ErrorList.js +5 -4
  611. package/src/invoices_v2024_06_19/model/Export.js +10 -4
  612. package/src/invoices_v2024_06_19/model/ExportInvoicesRequest.js +15 -5
  613. package/src/invoices_v2024_06_19/model/ExportInvoicesResponse.js +3 -2
  614. package/src/invoices_v2024_06_19/model/ExportStatus.js +2 -2
  615. package/src/invoices_v2024_06_19/model/FileFormat.js +2 -2
  616. package/src/invoices_v2024_06_19/model/GetInvoiceResponse.js +4 -3
  617. package/src/invoices_v2024_06_19/model/GetInvoicesAttributesResponse.js +4 -3
  618. package/src/invoices_v2024_06_19/model/GetInvoicesDocumentResponse.js +4 -3
  619. package/src/invoices_v2024_06_19/model/GetInvoicesExportResponse.js +4 -3
  620. package/src/invoices_v2024_06_19/model/GetInvoicesExportsResponse.js +5 -3
  621. package/src/invoices_v2024_06_19/model/GetInvoicesResponse.js +5 -3
  622. package/src/invoices_v2024_06_19/model/Invoice.js +13 -3
  623. package/src/invoices_v2024_06_19/model/InvoicesAttributes.js +10 -6
  624. package/src/invoices_v2024_06_19/model/InvoicesDocument.js +4 -2
  625. package/src/invoices_v2024_06_19/model/TransactionIdentifier.js +4 -2
  626. package/src/invoicing_v0/api/ShipmentInvoiceApi.js +11 -11
  627. package/src/invoicing_v0/model/Address.js +15 -3
  628. package/src/invoicing_v0/model/AddressTypeEnum.js +2 -2
  629. package/src/invoicing_v0/model/BuyerTaxInfo.js +6 -3
  630. package/src/invoicing_v0/model/Error.js +5 -2
  631. package/src/invoicing_v0/model/GetInvoiceStatusResponse.js +6 -4
  632. package/src/invoicing_v0/model/GetShipmentDetailsResponse.js +6 -4
  633. package/src/invoicing_v0/model/MarketplaceTaxInfo.js +6 -3
  634. package/src/invoicing_v0/model/Money.js +4 -2
  635. package/src/invoicing_v0/model/ShipmentDetail.js +21 -7
  636. package/src/invoicing_v0/model/ShipmentInvoiceStatus.js +2 -2
  637. package/src/invoicing_v0/model/ShipmentInvoiceStatusInfo.js +5 -3
  638. package/src/invoicing_v0/model/ShipmentInvoiceStatusResponse.js +4 -3
  639. package/src/invoicing_v0/model/ShipmentItem.js +19 -8
  640. package/src/invoicing_v0/model/SubmitInvoiceRequest.js +5 -2
  641. package/src/invoicing_v0/model/SubmitInvoiceResponse.js +4 -3
  642. package/src/invoicing_v0/model/TaxClassification.js +4 -2
  643. package/src/listingsitems_v2021_08_01/api/ListingsApi.js +55 -55
  644. package/src/listingsitems_v2021_08_01/model/Audience.js +4 -2
  645. package/src/listingsitems_v2021_08_01/model/Error.js +5 -2
  646. package/src/listingsitems_v2021_08_01/model/ErrorList.js +5 -4
  647. package/src/listingsitems_v2021_08_01/model/FulfillmentAvailability.js +4 -2
  648. package/src/listingsitems_v2021_08_01/model/Issue.js +14 -8
  649. package/src/listingsitems_v2021_08_01/model/IssueEnforcementAction.js +3 -2
  650. package/src/listingsitems_v2021_08_01/model/IssueEnforcements.js +8 -6
  651. package/src/listingsitems_v2021_08_01/model/IssueExemption.js +6 -4
  652. package/src/listingsitems_v2021_08_01/model/Item.js +19 -10
  653. package/src/listingsitems_v2021_08_01/model/ItemIdentifiersByMarketplace.js +4 -2
  654. package/src/listingsitems_v2021_08_01/model/ItemImage.js +5 -2
  655. package/src/listingsitems_v2021_08_01/model/ItemOfferByMarketplace.js +13 -8
  656. package/src/listingsitems_v2021_08_01/model/ItemProcurement.js +5 -4
  657. package/src/listingsitems_v2021_08_01/model/ItemProductTypeByMarketplace.js +4 -2
  658. package/src/listingsitems_v2021_08_01/model/ItemRelationship.js +11 -7
  659. package/src/listingsitems_v2021_08_01/model/ItemRelationshipsByMarketplace.js +6 -4
  660. package/src/listingsitems_v2021_08_01/model/ItemSearchResults.js +8 -5
  661. package/src/listingsitems_v2021_08_01/model/ItemSummaryByMarketplace.js +16 -6
  662. package/src/listingsitems_v2021_08_01/model/ItemVariationTheme.js +6 -4
  663. package/src/listingsitems_v2021_08_01/model/ListingsItemPatchRequest.js +6 -4
  664. package/src/listingsitems_v2021_08_01/model/ListingsItemPutRequest.js +8 -5
  665. package/src/listingsitems_v2021_08_01/model/ListingsItemSubmissionResponse.js +11 -6
  666. package/src/listingsitems_v2021_08_01/model/Money.js +4 -2
  667. package/src/listingsitems_v2021_08_01/model/Pagination.js +4 -2
  668. package/src/listingsitems_v2021_08_01/model/PatchOperation.js +8 -5
  669. package/src/listingsitems_v2021_08_01/model/Points.js +3 -2
  670. package/src/listingsrestrictions_v2021_08_01/api/ListingsApi.js +9 -9
  671. package/src/listingsrestrictions_v2021_08_01/model/Error.js +5 -2
  672. package/src/listingsrestrictions_v2021_08_01/model/Link.js +8 -4
  673. package/src/listingsrestrictions_v2021_08_01/model/Reason.js +7 -4
  674. package/src/listingsrestrictions_v2021_08_01/model/Restriction.js +7 -4
  675. package/src/listingsrestrictions_v2021_08_01/model/RestrictionList.js +5 -4
  676. package/src/merchantfulfillment_v0/api/MerchantFulfillmentApi.js +19 -19
  677. package/src/merchantfulfillment_v0/model/AdditionalInputs.js +5 -3
  678. package/src/merchantfulfillment_v0/model/AdditionalSellerInput.js +15 -6
  679. package/src/merchantfulfillment_v0/model/AdditionalSellerInputs.js +6 -4
  680. package/src/merchantfulfillment_v0/model/Address.js +13 -2
  681. package/src/merchantfulfillment_v0/model/AvailableCarrierWillPickUpOption.js +8 -6
  682. package/src/merchantfulfillment_v0/model/AvailableDeliveryExperienceOption.js +8 -6
  683. package/src/merchantfulfillment_v0/model/AvailableShippingServiceOptions.js +8 -6
  684. package/src/merchantfulfillment_v0/model/Benefits.js +6 -4
  685. package/src/merchantfulfillment_v0/model/CancelShipmentResponse.js +6 -4
  686. package/src/merchantfulfillment_v0/model/CarrierWillPickUpOption.js +2 -2
  687. package/src/merchantfulfillment_v0/model/Constraint.js +4 -2
  688. package/src/merchantfulfillment_v0/model/CreateShipmentRequest.js +13 -7
  689. package/src/merchantfulfillment_v0/model/CreateShipmentResponse.js +6 -4
  690. package/src/merchantfulfillment_v0/model/CurrencyAmount.js +4 -2
  691. package/src/merchantfulfillment_v0/model/DangerousGoodsDetails.js +8 -4
  692. package/src/merchantfulfillment_v0/model/DeliveryExperienceOption.js +2 -2
  693. package/src/merchantfulfillment_v0/model/DeliveryExperienceType.js +2 -2
  694. package/src/merchantfulfillment_v0/model/Error.js +5 -2
  695. package/src/merchantfulfillment_v0/model/ExcludedBenefit.js +5 -3
  696. package/src/merchantfulfillment_v0/model/FileContents.js +7 -4
  697. package/src/merchantfulfillment_v0/model/FileType.js +2 -2
  698. package/src/merchantfulfillment_v0/model/GetAdditionalSellerInputsRequest.js +7 -4
  699. package/src/merchantfulfillment_v0/model/GetAdditionalSellerInputsResponse.js +6 -4
  700. package/src/merchantfulfillment_v0/model/GetAdditionalSellerInputsResult.js +6 -4
  701. package/src/merchantfulfillment_v0/model/GetEligibleShipmentServicesRequest.js +7 -5
  702. package/src/merchantfulfillment_v0/model/GetEligibleShipmentServicesResponse.js +6 -4
  703. package/src/merchantfulfillment_v0/model/GetEligibleShipmentServicesResult.js +11 -7
  704. package/src/merchantfulfillment_v0/model/GetShipmentResponse.js +6 -4
  705. package/src/merchantfulfillment_v0/model/HazmatType.js +2 -2
  706. package/src/merchantfulfillment_v0/model/InputTargetType.js +2 -2
  707. package/src/merchantfulfillment_v0/model/Item.js +16 -7
  708. package/src/merchantfulfillment_v0/model/ItemLevelFields.js +6 -4
  709. package/src/merchantfulfillment_v0/model/Label.js +13 -8
  710. package/src/merchantfulfillment_v0/model/LabelCustomization.js +5 -3
  711. package/src/merchantfulfillment_v0/model/LabelDimensions.js +7 -4
  712. package/src/merchantfulfillment_v0/model/LabelFormat.js +2 -2
  713. package/src/merchantfulfillment_v0/model/LabelFormatOption.js +5 -3
  714. package/src/merchantfulfillment_v0/model/LabelFormatOptionRequest.js +3 -2
  715. package/src/merchantfulfillment_v0/model/Length.js +5 -3
  716. package/src/merchantfulfillment_v0/model/LiquidVolume.js +6 -4
  717. package/src/merchantfulfillment_v0/model/PackageDimensions.js +9 -4
  718. package/src/merchantfulfillment_v0/model/PredefinedPackageDimensions.js +2 -2
  719. package/src/merchantfulfillment_v0/model/RejectedShippingService.js +7 -2
  720. package/src/merchantfulfillment_v0/model/SellerInputDefinition.js +15 -8
  721. package/src/merchantfulfillment_v0/model/Shipment.js +35 -20
  722. package/src/merchantfulfillment_v0/model/ShipmentRequestDetails.js +23 -13
  723. package/src/merchantfulfillment_v0/model/ShipmentStatus.js +2 -2
  724. package/src/merchantfulfillment_v0/model/ShippingOfferingFilter.js +8 -4
  725. package/src/merchantfulfillment_v0/model/ShippingService.js +24 -10
  726. package/src/merchantfulfillment_v0/model/ShippingServiceOptions.js +12 -7
  727. package/src/merchantfulfillment_v0/model/StandardIdForLabel.js +2 -2
  728. package/src/merchantfulfillment_v0/model/TemporarilyUnavailableCarrier.js +3 -2
  729. package/src/merchantfulfillment_v0/model/TermsAndConditionsNotAcceptedCarrier.js +3 -2
  730. package/src/merchantfulfillment_v0/model/UnitOfLength.js +2 -2
  731. package/src/merchantfulfillment_v0/model/UnitOfWeight.js +2 -2
  732. package/src/merchantfulfillment_v0/model/Weight.js +6 -4
  733. package/src/messaging_v1/api/MessagingApi.js +71 -127
  734. package/src/messaging_v1/index.js +0 -7
  735. package/src/messaging_v1/model/Attachment.js +7 -5
  736. package/src/messaging_v1/model/CreateAmazonMotorsRequest.js +4 -3
  737. package/src/messaging_v1/model/CreateAmazonMotorsResponse.js +4 -3
  738. package/src/messaging_v1/model/CreateConfirmCustomizationDetailsRequest.js +5 -3
  739. package/src/messaging_v1/model/CreateConfirmCustomizationDetailsResponse.js +4 -3
  740. package/src/messaging_v1/model/CreateConfirmDeliveryDetailsRequest.js +3 -2
  741. package/src/messaging_v1/model/CreateConfirmDeliveryDetailsResponse.js +4 -3
  742. package/src/messaging_v1/model/CreateConfirmOrderDetailsRequest.js +3 -2
  743. package/src/messaging_v1/model/CreateConfirmOrderDetailsResponse.js +4 -3
  744. package/src/messaging_v1/model/CreateConfirmServiceDetailsRequest.js +3 -2
  745. package/src/messaging_v1/model/CreateConfirmServiceDetailsResponse.js +4 -3
  746. package/src/messaging_v1/model/CreateDigitalAccessKeyRequest.js +5 -3
  747. package/src/messaging_v1/model/CreateDigitalAccessKeyResponse.js +4 -3
  748. package/src/messaging_v1/model/CreateLegalDisclosureRequest.js +4 -3
  749. package/src/messaging_v1/model/CreateLegalDisclosureResponse.js +4 -3
  750. package/src/messaging_v1/model/CreateUnexpectedProblemRequest.js +3 -2
  751. package/src/messaging_v1/model/CreateUnexpectedProblemResponse.js +4 -3
  752. package/src/messaging_v1/model/CreateWarrantyRequest.js +6 -3
  753. package/src/messaging_v1/model/CreateWarrantyResponse.js +4 -3
  754. package/src/messaging_v1/model/Error.js +5 -2
  755. package/src/messaging_v1/model/GetAttributesResponse.js +6 -4
  756. package/src/messaging_v1/model/GetAttributesResponseBuyer.js +3 -2
  757. package/src/messaging_v1/model/GetMessagingActionResponse.js +10 -6
  758. package/src/messaging_v1/model/GetMessagingActionResponseEmbedded.js +4 -3
  759. package/src/messaging_v1/model/GetMessagingActionResponseLinks.js +8 -6
  760. package/src/messaging_v1/model/GetMessagingActionsForOrderResponse.js +8 -5
  761. package/src/messaging_v1/model/GetMessagingActionsForOrderResponseEmbedded.js +5 -4
  762. package/src/messaging_v1/model/GetMessagingActionsForOrderResponseLinks.js +8 -6
  763. package/src/messaging_v1/model/GetSchemaResponse.js +8 -5
  764. package/src/messaging_v1/model/GetSchemaResponseLinks.js +5 -4
  765. package/src/messaging_v1/model/InvoiceRequest.js +4 -3
  766. package/src/messaging_v1/model/InvoiceResponse.js +4 -3
  767. package/src/messaging_v1/model/LinkObject.js +4 -2
  768. package/src/messaging_v1/model/MessagingAction.js +3 -2
  769. package/src/notifications_v1/api/NotificationsApi.js +23 -23
  770. package/src/notifications_v1/model/AggregationFilter.js +4 -3
  771. package/src/notifications_v1/model/AggregationSettings.js +5 -4
  772. package/src/notifications_v1/model/AggregationTimePeriod.js +2 -2
  773. package/src/notifications_v1/model/CreateDestinationRequest.js +6 -4
  774. package/src/notifications_v1/model/CreateDestinationResponse.js +6 -4
  775. package/src/notifications_v1/model/CreateSubscriptionRequest.js +6 -3
  776. package/src/notifications_v1/model/CreateSubscriptionResponse.js +6 -4
  777. package/src/notifications_v1/model/DeleteDestinationResponse.js +4 -3
  778. package/src/notifications_v1/model/DeleteSubscriptionByIdResponse.js +4 -3
  779. package/src/notifications_v1/model/Destination.js +7 -4
  780. package/src/notifications_v1/model/DestinationResource.js +6 -4
  781. package/src/notifications_v1/model/DestinationResourceSpecification.js +6 -4
  782. package/src/notifications_v1/model/Error.js +5 -2
  783. package/src/notifications_v1/model/EventBridgeResource.js +5 -2
  784. package/src/notifications_v1/model/EventBridgeResourceSpecification.js +4 -2
  785. package/src/notifications_v1/model/EventFilter.js +17 -10
  786. package/src/notifications_v1/model/GetDestinationResponse.js +6 -4
  787. package/src/notifications_v1/model/GetDestinationsResponse.js +6 -4
  788. package/src/notifications_v1/model/GetSubscriptionByIdResponse.js +6 -4
  789. package/src/notifications_v1/model/GetSubscriptionResponse.js +6 -4
  790. package/src/notifications_v1/model/MarketplaceFilter.js +4 -3
  791. package/src/notifications_v1/model/OrderChangeTypeEnum.js +2 -2
  792. package/src/notifications_v1/model/OrderChangeTypeFilter.js +4 -3
  793. package/src/notifications_v1/model/ProcessingDirective.js +4 -3
  794. package/src/notifications_v1/model/SqsResource.js +3 -2
  795. package/src/notifications_v1/model/Subscription.js +7 -3
  796. package/src/orders_v0/api/OrdersV0Api.js +39 -39
  797. package/src/orders_v0/api/ShipmentApi.js +7 -7
  798. package/src/orders_v0/model/Address.js +19 -4
  799. package/src/orders_v0/model/AddressExtendedFields.js +6 -2
  800. package/src/orders_v0/model/AmazonPrograms.js +5 -4
  801. package/src/orders_v0/model/AssociatedItem.js +6 -3
  802. package/src/orders_v0/model/AssociationType.js +2 -2
  803. package/src/orders_v0/model/AutomatedShippingSettings.js +5 -2
  804. package/src/orders_v0/model/BusinessHours.js +6 -4
  805. package/src/orders_v0/model/BuyerCustomizedInfoDetail.js +3 -2
  806. package/src/orders_v0/model/BuyerInfo.js +8 -3
  807. package/src/orders_v0/model/BuyerRequestedCancel.js +4 -2
  808. package/src/orders_v0/model/BuyerTaxInfo.js +6 -3
  809. package/src/orders_v0/model/BuyerTaxInformation.js +6 -2
  810. package/src/orders_v0/model/ConfirmShipmentErrorResponse.js +4 -3
  811. package/src/orders_v0/model/ConfirmShipmentOrderItem.js +6 -3
  812. package/src/orders_v0/model/ConfirmShipmentRequest.js +8 -5
  813. package/src/orders_v0/model/ConstraintType.js +2 -2
  814. package/src/orders_v0/model/DeliveryPreferences.js +8 -4
  815. package/src/orders_v0/model/EasyShipShipmentStatus.js +2 -2
  816. package/src/orders_v0/model/ElectronicInvoiceStatus.js +2 -2
  817. package/src/orders_v0/model/Error.js +5 -2
  818. package/src/orders_v0/model/ExceptionDates.js +6 -3
  819. package/src/orders_v0/model/FulfillmentInstruction.js +3 -2
  820. package/src/orders_v0/model/GetOrderAddressResponse.js +6 -4
  821. package/src/orders_v0/model/GetOrderBuyerInfoResponse.js +6 -4
  822. package/src/orders_v0/model/GetOrderItemsBuyerInfoResponse.js +6 -4
  823. package/src/orders_v0/model/GetOrderItemsResponse.js +6 -4
  824. package/src/orders_v0/model/GetOrderRegulatedInfoResponse.js +6 -4
  825. package/src/orders_v0/model/GetOrderResponse.js +6 -4
  826. package/src/orders_v0/model/GetOrdersResponse.js +6 -4
  827. package/src/orders_v0/model/ItemBuyerInfo.js +10 -5
  828. package/src/orders_v0/model/MarketplaceTaxInfo.js +4 -3
  829. package/src/orders_v0/model/Measurement.js +6 -4
  830. package/src/orders_v0/model/Money.js +4 -2
  831. package/src/orders_v0/model/OpenInterval.js +6 -4
  832. package/src/orders_v0/model/OpenTimeInterval.js +4 -2
  833. package/src/orders_v0/model/Order.js +67 -20
  834. package/src/orders_v0/model/OrderAddress.js +8 -4
  835. package/src/orders_v0/model/OrderBuyerInfo.js +9 -3
  836. package/src/orders_v0/model/OrderItem.js +65 -25
  837. package/src/orders_v0/model/OrderItemBuyerInfo.js +11 -5
  838. package/src/orders_v0/model/OrderItemsBuyerInfoList.js +7 -4
  839. package/src/orders_v0/model/OrderItemsInner.js +4 -2
  840. package/src/orders_v0/model/OrderItemsList.js +7 -4
  841. package/src/orders_v0/model/OrderRegulatedInfo.js +10 -6
  842. package/src/orders_v0/model/OrdersList.js +8 -4
  843. package/src/orders_v0/model/OtherDeliveryAttributes.js +2 -2
  844. package/src/orders_v0/model/PackageDetail.js +12 -4
  845. package/src/orders_v0/model/PaymentExecutionDetailItem.js +6 -4
  846. package/src/orders_v0/model/PointsGrantedDetail.js +5 -3
  847. package/src/orders_v0/model/PreferredDeliveryTime.js +6 -4
  848. package/src/orders_v0/model/PrescriptionDetail.js +9 -2
  849. package/src/orders_v0/model/ProductInfoDetail.js +3 -2
  850. package/src/orders_v0/model/RegulatedInformation.js +5 -4
  851. package/src/orders_v0/model/RegulatedInformationField.js +8 -4
  852. package/src/orders_v0/model/RegulatedOrderVerificationStatus.js +15 -8
  853. package/src/orders_v0/model/RejectionReason.js +4 -2
  854. package/src/orders_v0/model/ShipmentStatus.js +2 -2
  855. package/src/orders_v0/model/ShippingConstraints.js +10 -6
  856. package/src/orders_v0/model/SubstitutionOption.js +8 -3
  857. package/src/orders_v0/model/SubstitutionPreferences.js +7 -5
  858. package/src/orders_v0/model/TaxClassification.js +4 -2
  859. package/src/orders_v0/model/TaxCollection.js +6 -4
  860. package/src/orders_v0/model/UpdateShipmentStatusErrorResponse.js +4 -3
  861. package/src/orders_v0/model/UpdateShipmentStatusRequest.js +8 -5
  862. package/src/orders_v0/model/UpdateVerificationStatusErrorResponse.js +4 -3
  863. package/src/orders_v0/model/UpdateVerificationStatusRequest.js +5 -4
  864. package/src/orders_v0/model/UpdateVerificationStatusRequestBody.js +8 -4
  865. package/src/orders_v0/model/ValidVerificationDetail.js +6 -4
  866. package/src/orders_v0/model/VerificationDetails.js +4 -3
  867. package/src/orders_v0/model/VerificationStatus.js +2 -2
  868. package/src/pricing_v0/api/ProductPricingApi.js +45 -45
  869. package/src/pricing_v0/model/ASINIdentifier.js +4 -2
  870. package/src/pricing_v0/model/BatchOffersRequestParams.js +8 -5
  871. package/src/pricing_v0/model/BatchOffersResponse.js +9 -6
  872. package/src/pricing_v0/model/BatchRequest.js +8 -5
  873. package/src/pricing_v0/model/BuyBoxPriceType.js +20 -11
  874. package/src/pricing_v0/model/CompetitivePriceType.js +15 -6
  875. package/src/pricing_v0/model/CompetitivePricingType.js +10 -7
  876. package/src/pricing_v0/model/ConditionType.js +2 -2
  877. package/src/pricing_v0/model/CustomerType.js +2 -2
  878. package/src/pricing_v0/model/DetailedShippingTimeType.js +7 -3
  879. package/src/pricing_v0/model/Error.js +5 -2
  880. package/src/pricing_v0/model/Errors.js +5 -4
  881. package/src/pricing_v0/model/FulfillmentChannelType.js +2 -2
  882. package/src/pricing_v0/model/GetItemOffersBatchRequest.js +4 -3
  883. package/src/pricing_v0/model/GetItemOffersBatchResponse.js +4 -3
  884. package/src/pricing_v0/model/GetListingOffersBatchRequest.js +4 -3
  885. package/src/pricing_v0/model/GetListingOffersBatchResponse.js +4 -3
  886. package/src/pricing_v0/model/GetOffersHttpStatusLine.js +4 -2
  887. package/src/pricing_v0/model/GetOffersResponse.js +6 -4
  888. package/src/pricing_v0/model/GetOffersResult.js +18 -10
  889. package/src/pricing_v0/model/GetPricingResponse.js +6 -4
  890. package/src/pricing_v0/model/HttpMethod.js +2 -2
  891. package/src/pricing_v0/model/HttpResponseHeaders.js +4 -2
  892. package/src/pricing_v0/model/IdentifierType.js +7 -5
  893. package/src/pricing_v0/model/ItemCondition.js +2 -2
  894. package/src/pricing_v0/model/ItemIdentifier.js +8 -4
  895. package/src/pricing_v0/model/ItemOffersRequest.js +24 -12
  896. package/src/pricing_v0/model/ItemOffersRequestParams.js +14 -7
  897. package/src/pricing_v0/model/ItemOffersResponse.js +18 -11
  898. package/src/pricing_v0/model/ListingOffersRequest.js +24 -12
  899. package/src/pricing_v0/model/ListingOffersRequestParams.js +14 -7
  900. package/src/pricing_v0/model/ListingOffersResponse.js +17 -10
  901. package/src/pricing_v0/model/LowestPriceType.js +18 -9
  902. package/src/pricing_v0/model/MoneyType.js +4 -2
  903. package/src/pricing_v0/model/OfferCountType.js +6 -3
  904. package/src/pricing_v0/model/OfferCustomerType.js +2 -2
  905. package/src/pricing_v0/model/OfferDetail.js +30 -14
  906. package/src/pricing_v0/model/OfferListingCountType.js +4 -2
  907. package/src/pricing_v0/model/OfferType.js +18 -9
  908. package/src/pricing_v0/model/Points.js +5 -3
  909. package/src/pricing_v0/model/Price.js +7 -3
  910. package/src/pricing_v0/model/PriceType.js +11 -7
  911. package/src/pricing_v0/model/PrimeInformationType.js +4 -2
  912. package/src/pricing_v0/model/Product.js +15 -9
  913. package/src/pricing_v0/model/QuantityDiscountPriceType.js +9 -6
  914. package/src/pricing_v0/model/QuantityDiscountType.js +2 -2
  915. package/src/pricing_v0/model/SalesRankType.js +4 -2
  916. package/src/pricing_v0/model/SellerFeedbackType.js +4 -2
  917. package/src/pricing_v0/model/SellerSKUIdentifier.js +5 -2
  918. package/src/pricing_v0/model/ShipsFromType.js +4 -2
  919. package/src/pricing_v0/model/Summary.js +20 -10
  920. package/src/pricing_v2022_05_01/api/ProductPricingApi.js +11 -11
  921. package/src/pricing_v2022_05_01/model/BatchRequest.js +10 -6
  922. package/src/pricing_v2022_05_01/model/BatchResponse.js +8 -6
  923. package/src/pricing_v2022_05_01/model/CompetitiveSummaryBatchRequest.js +5 -4
  924. package/src/pricing_v2022_05_01/model/CompetitiveSummaryBatchResponse.js +5 -4
  925. package/src/pricing_v2022_05_01/model/CompetitiveSummaryIncludedData.js +2 -2
  926. package/src/pricing_v2022_05_01/model/CompetitiveSummaryRequest.js +13 -7
  927. package/src/pricing_v2022_05_01/model/CompetitiveSummaryResponse.js +8 -6
  928. package/src/pricing_v2022_05_01/model/CompetitiveSummaryResponseBody.js +12 -6
  929. package/src/pricing_v2022_05_01/model/Condition.js +2 -2
  930. package/src/pricing_v2022_05_01/model/Error.js +5 -2
  931. package/src/pricing_v2022_05_01/model/Errors.js +5 -4
  932. package/src/pricing_v2022_05_01/model/FeaturedBuyingOption.js +8 -6
  933. package/src/pricing_v2022_05_01/model/FeaturedOffer.js +9 -6
  934. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPrice.js +7 -5
  935. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequest.js +25 -11
  936. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceRequestParams.js +6 -3
  937. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceResponse.js +17 -11
  938. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceResponseBody.js +8 -5
  939. package/src/pricing_v2022_05_01/model/FeaturedOfferExpectedPriceResult.js +9 -5
  940. package/src/pricing_v2022_05_01/model/FeaturedOfferSegment.js +8 -6
  941. package/src/pricing_v2022_05_01/model/FulfillmentType.js +2 -2
  942. package/src/pricing_v2022_05_01/model/GetFeaturedOfferExpectedPriceBatchRequest.js +4 -3
  943. package/src/pricing_v2022_05_01/model/GetFeaturedOfferExpectedPriceBatchResponse.js +4 -3
  944. package/src/pricing_v2022_05_01/model/HttpMethod.js +2 -2
  945. package/src/pricing_v2022_05_01/model/HttpStatusLine.js +4 -2
  946. package/src/pricing_v2022_05_01/model/LowestPricedOffer.js +8 -6
  947. package/src/pricing_v2022_05_01/model/LowestPricedOffersInput.js +8 -6
  948. package/src/pricing_v2022_05_01/model/MoneyType.js +4 -2
  949. package/src/pricing_v2022_05_01/model/Offer.js +20 -12
  950. package/src/pricing_v2022_05_01/model/OfferIdentifier.js +8 -3
  951. package/src/pricing_v2022_05_01/model/Points.js +5 -3
  952. package/src/pricing_v2022_05_01/model/PostalCode.js +4 -2
  953. package/src/pricing_v2022_05_01/model/Price.js +9 -6
  954. package/src/pricing_v2022_05_01/model/PrimeDetails.js +5 -4
  955. package/src/pricing_v2022_05_01/model/ReferencePrice.js +6 -4
  956. package/src/pricing_v2022_05_01/model/SampleLocation.js +4 -3
  957. package/src/pricing_v2022_05_01/model/Segment.js +4 -3
  958. package/src/pricing_v2022_05_01/model/SegmentDetails.js +5 -3
  959. package/src/pricing_v2022_05_01/model/SegmentedFeaturedOffer.js +38 -21
  960. package/src/pricing_v2022_05_01/model/ShippingOption.js +8 -6
  961. package/src/productfees_v0/api/FeesApi.js +15 -15
  962. package/src/productfees_v0/model/Error.js +5 -2
  963. package/src/productfees_v0/model/FeeDetail.js +15 -9
  964. package/src/productfees_v0/model/FeesEstimate.js +7 -4
  965. package/src/productfees_v0/model/FeesEstimateByIdRequest.js +8 -5
  966. package/src/productfees_v0/model/FeesEstimateError.js +8 -4
  967. package/src/productfees_v0/model/FeesEstimateIdentifier.js +13 -5
  968. package/src/productfees_v0/model/FeesEstimateRequest.js +10 -5
  969. package/src/productfees_v0/model/FeesEstimateResult.js +9 -5
  970. package/src/productfees_v0/model/GetMyFeesEstimateRequest.js +4 -3
  971. package/src/productfees_v0/model/GetMyFeesEstimateResponse.js +6 -4
  972. package/src/productfees_v0/model/GetMyFeesEstimateResult.js +4 -3
  973. package/src/productfees_v0/model/GetMyFeesEstimatesErrorList.js +5 -4
  974. package/src/productfees_v0/model/IdType.js +2 -2
  975. package/src/productfees_v0/model/IncludedFeeDetail.js +13 -8
  976. package/src/productfees_v0/model/MoneyType.js +4 -2
  977. package/src/productfees_v0/model/OptionalFulfillmentProgram.js +2 -2
  978. package/src/productfees_v0/model/Points.js +5 -3
  979. package/src/productfees_v0/model/PriceToEstimateFees.js +9 -6
  980. package/src/producttypedefinitions_v2020_09_01/api/DefinitionsApi.js +19 -19
  981. package/src/producttypedefinitions_v2020_09_01/model/Error.js +5 -2
  982. package/src/producttypedefinitions_v2020_09_01/model/ErrorList.js +5 -4
  983. package/src/producttypedefinitions_v2020_09_01/model/ProductType.js +7 -4
  984. package/src/producttypedefinitions_v2020_09_01/model/ProductTypeDefinition.js +25 -15
  985. package/src/producttypedefinitions_v2020_09_01/model/ProductTypeList.js +6 -4
  986. package/src/producttypedefinitions_v2020_09_01/model/ProductTypeVersion.js +5 -2
  987. package/src/producttypedefinitions_v2020_09_01/model/PropertyGroup.js +6 -3
  988. package/src/producttypedefinitions_v2020_09_01/model/SchemaLink.js +6 -4
  989. package/src/producttypedefinitions_v2020_09_01/model/SchemaLinkLink.js +6 -4
  990. package/src/replenishment_v2022_11_07/api/OffersApi.js +11 -11
  991. package/src/replenishment_v2022_11_07/api/SellingpartnersApi.js +7 -7
  992. package/src/replenishment_v2022_11_07/model/AggregationFrequency.js +2 -2
  993. package/src/replenishment_v2022_11_07/model/AutoEnrollmentPreference.js +2 -2
  994. package/src/replenishment_v2022_11_07/model/DiscountFunding.js +4 -3
  995. package/src/replenishment_v2022_11_07/model/EligibilityStatus.js +2 -2
  996. package/src/replenishment_v2022_11_07/model/EnrollmentMethod.js +2 -2
  997. package/src/replenishment_v2022_11_07/model/Error.js +5 -2
  998. package/src/replenishment_v2022_11_07/model/ErrorList.js +5 -4
  999. package/src/replenishment_v2022_11_07/model/GetSellingPartnerMetricsRequest.js +16 -10
  1000. package/src/replenishment_v2022_11_07/model/GetSellingPartnerMetricsResponse.js +4 -3
  1001. package/src/replenishment_v2022_11_07/model/GetSellingPartnerMetricsResponseMetric.js +25 -3
  1002. package/src/replenishment_v2022_11_07/model/ListOfferMetricsRequest.js +10 -7
  1003. package/src/replenishment_v2022_11_07/model/ListOfferMetricsRequestFilters.js +16 -10
  1004. package/src/replenishment_v2022_11_07/model/ListOfferMetricsRequestPagination.js +4 -2
  1005. package/src/replenishment_v2022_11_07/model/ListOfferMetricsRequestSort.js +8 -6
  1006. package/src/replenishment_v2022_11_07/model/ListOfferMetricsResponse.js +6 -4
  1007. package/src/replenishment_v2022_11_07/model/ListOfferMetricsResponseOffer.js +20 -3
  1008. package/src/replenishment_v2022_11_07/model/ListOfferMetricsSortKey.js +2 -2
  1009. package/src/replenishment_v2022_11_07/model/ListOffersRequest.js +10 -7
  1010. package/src/replenishment_v2022_11_07/model/ListOffersRequestFilters.js +16 -9
  1011. package/src/replenishment_v2022_11_07/model/ListOffersRequestPagination.js +4 -2
  1012. package/src/replenishment_v2022_11_07/model/ListOffersRequestSort.js +8 -6
  1013. package/src/replenishment_v2022_11_07/model/ListOffersResponse.js +6 -4
  1014. package/src/replenishment_v2022_11_07/model/ListOffersResponseOffer.js +13 -6
  1015. package/src/replenishment_v2022_11_07/model/ListOffersSortKey.js +2 -2
  1016. package/src/replenishment_v2022_11_07/model/Metric.js +2 -2
  1017. package/src/replenishment_v2022_11_07/model/OfferProgramConfiguration.js +8 -5
  1018. package/src/replenishment_v2022_11_07/model/OfferProgramConfigurationPreferences.js +4 -3
  1019. package/src/replenishment_v2022_11_07/model/OfferProgramConfigurationPromotions.js +10 -6
  1020. package/src/replenishment_v2022_11_07/model/OfferProgramConfigurationPromotionsDiscountFunding.js +3 -2
  1021. package/src/replenishment_v2022_11_07/model/PaginationResponse.js +3 -2
  1022. package/src/replenishment_v2022_11_07/model/Preference.js +4 -3
  1023. package/src/replenishment_v2022_11_07/model/ProgramType.js +2 -2
  1024. package/src/replenishment_v2022_11_07/model/Promotion.js +10 -6
  1025. package/src/replenishment_v2022_11_07/model/SortOrder.js +2 -2
  1026. package/src/replenishment_v2022_11_07/model/TimeInterval.js +4 -2
  1027. package/src/replenishment_v2022_11_07/model/TimePeriodType.js +2 -2
  1028. package/src/reports_v2021_06_30/api/ReportsApi.js +33 -33
  1029. package/src/reports_v2021_06_30/model/CreateReportResponse.js +3 -2
  1030. package/src/reports_v2021_06_30/model/CreateReportScheduleResponse.js +3 -2
  1031. package/src/reports_v2021_06_30/model/CreateReportScheduleSpecification.js +12 -7
  1032. package/src/reports_v2021_06_30/model/CreateReportSpecification.js +10 -5
  1033. package/src/reports_v2021_06_30/model/Error.js +5 -2
  1034. package/src/reports_v2021_06_30/model/ErrorList.js +5 -4
  1035. package/src/reports_v2021_06_30/model/GetReportsResponse.js +6 -4
  1036. package/src/reports_v2021_06_30/model/Report.js +16 -5
  1037. package/src/reports_v2021_06_30/model/ReportDocument.js +6 -3
  1038. package/src/reports_v2021_06_30/model/ReportSchedule.js +10 -4
  1039. package/src/reports_v2021_06_30/model/ReportScheduleList.js +5 -4
  1040. package/src/sales_v1/api/SalesApi.js +15 -15
  1041. package/src/sales_v1/model/Error.js +5 -2
  1042. package/src/sales_v1/model/GetOrderMetricsResponse.js +6 -4
  1043. package/src/sales_v1/model/Money.js +4 -2
  1044. package/src/sales_v1/model/OrderMetricsInterval.js +12 -6
  1045. package/src/sellerWallet_2024_03_01/api/AccountsApi.js +27 -27
  1046. package/src/sellerWallet_2024_03_01/api/TransactionsApi.js +29 -29
  1047. package/src/sellerWallet_2024_03_01/api/TransferPreviewApi.js +17 -17
  1048. package/src/sellerWallet_2024_03_01/api/TransferScheduleApi.js +44 -44
  1049. package/src/sellerWallet_2024_03_01/model/AccountHolderAddress.js +20 -13
  1050. package/src/sellerWallet_2024_03_01/model/Balance.js +17 -12
  1051. package/src/sellerWallet_2024_03_01/model/BalanceListing.js +6 -5
  1052. package/src/sellerWallet_2024_03_01/model/BalanceType.js +2 -2
  1053. package/src/sellerWallet_2024_03_01/model/BankAccount.js +33 -22
  1054. package/src/sellerWallet_2024_03_01/model/BankAccountHolderStatus.js +2 -2
  1055. package/src/sellerWallet_2024_03_01/model/BankAccountListing.js +7 -6
  1056. package/src/sellerWallet_2024_03_01/model/BankAccountNumberFormat.js +2 -2
  1057. package/src/sellerWallet_2024_03_01/model/BankAccountOwnershipType.js +2 -2
  1058. package/src/sellerWallet_2024_03_01/model/BankNumberFormat.js +2 -2
  1059. package/src/sellerWallet_2024_03_01/model/Currency.js +5 -3
  1060. package/src/sellerWallet_2024_03_01/model/DeleteTransferSchedule.js +8 -5
  1061. package/src/sellerWallet_2024_03_01/model/Error.js +5 -2
  1062. package/src/sellerWallet_2024_03_01/model/ErrorList.js +5 -4
  1063. package/src/sellerWallet_2024_03_01/model/Fee.js +15 -11
  1064. package/src/sellerWallet_2024_03_01/model/FeeType.js +2 -2
  1065. package/src/sellerWallet_2024_03_01/model/FxRateDetails.js +15 -11
  1066. package/src/sellerWallet_2024_03_01/model/PaymentPreference.js +9 -7
  1067. package/src/sellerWallet_2024_03_01/model/PaymentPreferencePaymentType.js +2 -2
  1068. package/src/sellerWallet_2024_03_01/model/RateDirection.js +2 -2
  1069. package/src/sellerWallet_2024_03_01/model/RecurringFrequency.js +2 -2
  1070. package/src/sellerWallet_2024_03_01/model/ScheduleExpression.js +8 -6
  1071. package/src/sellerWallet_2024_03_01/model/ScheduleExpressionType.js +2 -2
  1072. package/src/sellerWallet_2024_03_01/model/ScheduleTransferType.js +2 -2
  1073. package/src/sellerWallet_2024_03_01/model/Transaction.js +46 -30
  1074. package/src/sellerWallet_2024_03_01/model/TransactionAccount.js +21 -14
  1075. package/src/sellerWallet_2024_03_01/model/TransactionInitiationRequest.js +24 -16
  1076. package/src/sellerWallet_2024_03_01/model/TransactionInstrumentDetails.js +9 -7
  1077. package/src/sellerWallet_2024_03_01/model/TransactionListing.js +9 -7
  1078. package/src/sellerWallet_2024_03_01/model/TransactionStatus.js +2 -2
  1079. package/src/sellerWallet_2024_03_01/model/TransactionType.js +2 -2
  1080. package/src/sellerWallet_2024_03_01/model/TransferRatePreview.js +16 -12
  1081. package/src/sellerWallet_2024_03_01/model/TransferSchedule.js +26 -18
  1082. package/src/sellerWallet_2024_03_01/model/TransferScheduleFailures.js +9 -7
  1083. package/src/sellerWallet_2024_03_01/model/TransferScheduleInformation.js +11 -7
  1084. package/src/sellerWallet_2024_03_01/model/TransferScheduleListing.js +9 -7
  1085. package/src/sellerWallet_2024_03_01/model/TransferScheduleRequest.js +26 -18
  1086. package/src/sellerWallet_2024_03_01/model/TransferScheduleStatus.js +2 -2
  1087. package/src/sellers_v1/api/SellersApi.js +7 -7
  1088. package/src/sellers_v1/model/Account.js +15 -10
  1089. package/src/sellers_v1/model/Address.js +8 -2
  1090. package/src/sellers_v1/model/Business.js +9 -4
  1091. package/src/sellers_v1/model/Error.js +5 -2
  1092. package/src/sellers_v1/model/GetAccountResponse.js +6 -4
  1093. package/src/sellers_v1/model/GetMarketplaceParticipationsResponse.js +6 -4
  1094. package/src/sellers_v1/model/Marketplace.js +8 -2
  1095. package/src/sellers_v1/model/MarketplaceParticipation.js +9 -6
  1096. package/src/sellers_v1/model/Participation.js +4 -2
  1097. package/src/sellers_v1/model/PrimaryContact.js +7 -4
  1098. package/src/services_v1/api/ServiceApi.js +89 -89
  1099. package/src/services_v1/model/AddAppointmentRequest.js +5 -4
  1100. package/src/services_v1/model/Address.js +13 -2
  1101. package/src/services_v1/model/Appointment.js +12 -6
  1102. package/src/services_v1/model/AppointmentResource.js +3 -2
  1103. package/src/services_v1/model/AppointmentSlot.js +5 -2
  1104. package/src/services_v1/model/AppointmentSlotReport.js +8 -4
  1105. package/src/services_v1/model/AppointmentTime.js +4 -2
  1106. package/src/services_v1/model/AppointmentTimeInput.js +4 -2
  1107. package/src/services_v1/model/AssignAppointmentResourcesRequest.js +5 -4
  1108. package/src/services_v1/model/AssignAppointmentResourcesResponse.js +6 -4
  1109. package/src/services_v1/model/AssignAppointmentResourcesResponsePayload.js +4 -3
  1110. package/src/services_v1/model/AssociatedItem.js +11 -4
  1111. package/src/services_v1/model/AvailabilityRecord.js +7 -3
  1112. package/src/services_v1/model/Buyer.js +6 -2
  1113. package/src/services_v1/model/CancelReservationResponse.js +4 -3
  1114. package/src/services_v1/model/CancelServiceJobByServiceJobIdResponse.js +4 -3
  1115. package/src/services_v1/model/CapacityType.js +2 -2
  1116. package/src/services_v1/model/CompleteServiceJobByServiceJobIdResponse.js +4 -3
  1117. package/src/services_v1/model/CreateReservationRecord.js +8 -5
  1118. package/src/services_v1/model/CreateReservationRequest.js +6 -4
  1119. package/src/services_v1/model/CreateReservationResponse.js +6 -4
  1120. package/src/services_v1/model/CreateServiceDocumentUploadDestination.js +6 -4
  1121. package/src/services_v1/model/DateTimeRange.js +4 -2
  1122. package/src/services_v1/model/DayOfWeek.js +2 -2
  1123. package/src/services_v1/model/EncryptionDetails.js +7 -4
  1124. package/src/services_v1/model/Error.js +7 -3
  1125. package/src/services_v1/model/FixedSlot.js +7 -2
  1126. package/src/services_v1/model/FixedSlotCapacity.js +7 -3
  1127. package/src/services_v1/model/FixedSlotCapacityErrors.js +4 -3
  1128. package/src/services_v1/model/FixedSlotCapacityQuery.js +7 -3
  1129. package/src/services_v1/model/FulfillmentDocument.js +4 -2
  1130. package/src/services_v1/model/FulfillmentTime.js +4 -2
  1131. package/src/services_v1/model/GetAppointmentSlotsResponse.js +6 -4
  1132. package/src/services_v1/model/GetServiceJobByServiceJobIdResponse.js +6 -4
  1133. package/src/services_v1/model/GetServiceJobsResponse.js +6 -4
  1134. package/src/services_v1/model/ItemDelivery.js +5 -3
  1135. package/src/services_v1/model/ItemDeliveryPromise.js +4 -2
  1136. package/src/services_v1/model/JobListing.js +7 -3
  1137. package/src/services_v1/model/Poa.js +10 -5
  1138. package/src/services_v1/model/RangeCapacity.js +6 -4
  1139. package/src/services_v1/model/RangeSlot.js +5 -2
  1140. package/src/services_v1/model/RangeSlotCapacity.js +6 -3
  1141. package/src/services_v1/model/RangeSlotCapacityErrors.js +4 -3
  1142. package/src/services_v1/model/RangeSlotCapacityQuery.js +6 -3
  1143. package/src/services_v1/model/Recurrence.js +7 -4
  1144. package/src/services_v1/model/RescheduleAppointmentRequest.js +6 -4
  1145. package/src/services_v1/model/Reservation.js +9 -6
  1146. package/src/services_v1/model/ScopeOfWork.js +7 -3
  1147. package/src/services_v1/model/Seller.js +3 -2
  1148. package/src/services_v1/model/ServiceDocumentUploadDestination.js +8 -4
  1149. package/src/services_v1/model/ServiceJob.js +25 -11
  1150. package/src/services_v1/model/ServiceJobProvider.js +3 -2
  1151. package/src/services_v1/model/ServiceLocation.js +6 -4
  1152. package/src/services_v1/model/ServiceUploadDocument.js +7 -4
  1153. package/src/services_v1/model/SetAppointmentFulfillmentDataRequest.js +10 -6
  1154. package/src/services_v1/model/SetAppointmentResponse.js +7 -4
  1155. package/src/services_v1/model/Technician.js +4 -2
  1156. package/src/services_v1/model/UpdateReservationRecord.js +8 -5
  1157. package/src/services_v1/model/UpdateReservationRequest.js +6 -4
  1158. package/src/services_v1/model/UpdateReservationResponse.js +6 -4
  1159. package/src/services_v1/model/UpdateScheduleRecord.js +8 -5
  1160. package/src/services_v1/model/UpdateScheduleRequest.js +5 -4
  1161. package/src/services_v1/model/UpdateScheduleResponse.js +6 -4
  1162. package/src/services_v1/model/Warning.js +5 -2
  1163. package/src/shipping_v2/api/ShippingApi.js +111 -111
  1164. package/src/shipping_v2/model/AccessPoint.js +18 -8
  1165. package/src/shipping_v2/model/AccessPointDetails.js +3 -2
  1166. package/src/shipping_v2/model/AccessPointType.js +2 -2
  1167. package/src/shipping_v2/model/AccessibilityAttributes.js +4 -2
  1168. package/src/shipping_v2/model/AccountStatus.js +2 -2
  1169. package/src/shipping_v2/model/AccountType.js +2 -2
  1170. package/src/shipping_v2/model/ActiveAccount.js +4 -2
  1171. package/src/shipping_v2/model/Address.js +15 -3
  1172. package/src/shipping_v2/model/AmazonOrderDetails.js +3 -2
  1173. package/src/shipping_v2/model/AmazonShipmentDetails.js +3 -2
  1174. package/src/shipping_v2/model/AvailableValueAddedServiceGroup.js +7 -3
  1175. package/src/shipping_v2/model/Benefits.js +8 -6
  1176. package/src/shipping_v2/model/CancelShipmentResponse.js +4 -3
  1177. package/src/shipping_v2/model/Carrier.js +4 -2
  1178. package/src/shipping_v2/model/CarrierAccount.js +4 -2
  1179. package/src/shipping_v2/model/CarrierAccountAttribute.js +5 -2
  1180. package/src/shipping_v2/model/CarrierAccountInput.js +12 -4
  1181. package/src/shipping_v2/model/ChannelDetails.js +9 -6
  1182. package/src/shipping_v2/model/ChannelType.js +2 -2
  1183. package/src/shipping_v2/model/ChargeComponent.js +6 -4
  1184. package/src/shipping_v2/model/ClaimReason.js +2 -2
  1185. package/src/shipping_v2/model/ClientReferenceDetail.js +6 -4
  1186. package/src/shipping_v2/model/CollectOnDelivery.js +5 -4
  1187. package/src/shipping_v2/model/CollectionFormsHistoryRecord.js +9 -4
  1188. package/src/shipping_v2/model/CollectionsFormDocument.js +4 -2
  1189. package/src/shipping_v2/model/CreateClaimRequest.js +14 -8
  1190. package/src/shipping_v2/model/CreateClaimResponse.js +3 -2
  1191. package/src/shipping_v2/model/Currency.js +4 -2
  1192. package/src/shipping_v2/model/DangerousGoodsDetails.js +8 -4
  1193. package/src/shipping_v2/model/DateRange.js +4 -2
  1194. package/src/shipping_v2/model/DetailCodes.js +2 -2
  1195. package/src/shipping_v2/model/Dimensions.js +8 -4
  1196. package/src/shipping_v2/model/DirectFulfillmentItemIdentifiers.js +4 -2
  1197. package/src/shipping_v2/model/DirectPurchaseRequest.js +15 -9
  1198. package/src/shipping_v2/model/DirectPurchaseResponse.js +4 -3
  1199. package/src/shipping_v2/model/DirectPurchaseResult.js +5 -3
  1200. package/src/shipping_v2/model/DocumentFormat.js +2 -2
  1201. package/src/shipping_v2/model/DocumentSize.js +7 -4
  1202. package/src/shipping_v2/model/DocumentType.js +2 -2
  1203. package/src/shipping_v2/model/Error.js +5 -2
  1204. package/src/shipping_v2/model/ErrorList.js +5 -4
  1205. package/src/shipping_v2/model/Event.js +10 -6
  1206. package/src/shipping_v2/model/EventCode.js +2 -2
  1207. package/src/shipping_v2/model/ExceptionOperatingHours.js +6 -4
  1208. package/src/shipping_v2/model/ExcludedBenefit.js +5 -3
  1209. package/src/shipping_v2/model/GenerateCollectionFormRequest.js +7 -4
  1210. package/src/shipping_v2/model/GenerateCollectionFormResponse.js +4 -3
  1211. package/src/shipping_v2/model/GenerationStatus.js +2 -2
  1212. package/src/shipping_v2/model/Geocode.js +4 -2
  1213. package/src/shipping_v2/model/GetAccessPointsResponse.js +4 -3
  1214. package/src/shipping_v2/model/GetAccessPointsResult.js +5 -4
  1215. package/src/shipping_v2/model/GetAdditionalInputsResponse.js +4 -3
  1216. package/src/shipping_v2/model/GetCarrierAccountFormInputsResponse.js +4 -3
  1217. package/src/shipping_v2/model/GetCarrierAccountsRequest.js +4 -3
  1218. package/src/shipping_v2/model/GetCarrierAccountsResponse.js +5 -4
  1219. package/src/shipping_v2/model/GetCollectionFormHistoryRequest.js +10 -5
  1220. package/src/shipping_v2/model/GetCollectionFormHistoryResponse.js +5 -3
  1221. package/src/shipping_v2/model/GetCollectionFormResponse.js +4 -3
  1222. package/src/shipping_v2/model/GetRatesRequest.js +30 -17
  1223. package/src/shipping_v2/model/GetRatesResponse.js +4 -3
  1224. package/src/shipping_v2/model/GetRatesResult.js +8 -5
  1225. package/src/shipping_v2/model/GetShipmentDocumentsResponse.js +4 -3
  1226. package/src/shipping_v2/model/GetShipmentDocumentsResult.js +8 -5
  1227. package/src/shipping_v2/model/GetTrackingResponse.js +4 -3
  1228. package/src/shipping_v2/model/GetTrackingResult.js +11 -6
  1229. package/src/shipping_v2/model/GetUnmanifestedShipmentsRequest.js +4 -3
  1230. package/src/shipping_v2/model/GetUnmanifestedShipmentsResponse.js +4 -3
  1231. package/src/shipping_v2/model/GoodsOwner.js +3 -2
  1232. package/src/shipping_v2/model/IneligibilityReason.js +6 -4
  1233. package/src/shipping_v2/model/IneligibilityReasonCode.js +2 -2
  1234. package/src/shipping_v2/model/IneligibleRate.js +9 -4
  1235. package/src/shipping_v2/model/InputType.js +2 -2
  1236. package/src/shipping_v2/model/InvoiceDetails.js +4 -2
  1237. package/src/shipping_v2/model/Item.js +21 -9
  1238. package/src/shipping_v2/model/LabelAttribute.js +2 -2
  1239. package/src/shipping_v2/model/LinkCarrierAccountRequest.js +10 -6
  1240. package/src/shipping_v2/model/LinkCarrierAccountResponse.js +5 -3
  1241. package/src/shipping_v2/model/LinkableAccountType.js +6 -4
  1242. package/src/shipping_v2/model/LinkableCarrier.js +5 -3
  1243. package/src/shipping_v2/model/LiquidVolume.js +6 -4
  1244. package/src/shipping_v2/model/Location.js +6 -2
  1245. package/src/shipping_v2/model/NdrAction.js +2 -2
  1246. package/src/shipping_v2/model/NdrRequestData.js +4 -2
  1247. package/src/shipping_v2/model/OneClickShipmentRequest.js +32 -19
  1248. package/src/shipping_v2/model/OneClickShipmentResponse.js +4 -3
  1249. package/src/shipping_v2/model/OneClickShipmentResult.js +18 -12
  1250. package/src/shipping_v2/model/OneClickShipmentValueAddedService.js +5 -3
  1251. package/src/shipping_v2/model/OperatingHours.js +8 -5
  1252. package/src/shipping_v2/model/Package.js +19 -11
  1253. package/src/shipping_v2/model/PackageDocument.js +9 -6
  1254. package/src/shipping_v2/model/PackageDocumentDetail.js +7 -4
  1255. package/src/shipping_v2/model/PaymentType.js +2 -2
  1256. package/src/shipping_v2/model/PrintOption.js +13 -9
  1257. package/src/shipping_v2/model/Promise.js +6 -4
  1258. package/src/shipping_v2/model/PurchaseShipmentRequest.js +11 -6
  1259. package/src/shipping_v2/model/PurchaseShipmentResponse.js +4 -3
  1260. package/src/shipping_v2/model/PurchaseShipmentResult.js +11 -7
  1261. package/src/shipping_v2/model/Rate.js +27 -13
  1262. package/src/shipping_v2/model/RateItem.js +9 -5
  1263. package/src/shipping_v2/model/RateItemID.js +2 -2
  1264. package/src/shipping_v2/model/RateItemType.js +2 -2
  1265. package/src/shipping_v2/model/RequestedDocumentSpecification.js +16 -9
  1266. package/src/shipping_v2/model/RequestedLabelCustomization.js +4 -3
  1267. package/src/shipping_v2/model/RequestedValueAddedService.js +3 -2
  1268. package/src/shipping_v2/model/Service.js +4 -2
  1269. package/src/shipping_v2/model/ServiceSelection.js +5 -4
  1270. package/src/shipping_v2/model/SettlementType.js +2 -2
  1271. package/src/shipping_v2/model/ShipmentType.js +2 -2
  1272. package/src/shipping_v2/model/ShipperInstruction.js +3 -2
  1273. package/src/shipping_v2/model/Status.js +2 -2
  1274. package/src/shipping_v2/model/SubmitNdrFeedbackRequest.js +8 -5
  1275. package/src/shipping_v2/model/SupportedDocumentDetail.js +6 -4
  1276. package/src/shipping_v2/model/SupportedDocumentSpecification.js +11 -8
  1277. package/src/shipping_v2/model/TaxDetail.js +6 -4
  1278. package/src/shipping_v2/model/TaxType.js +2 -2
  1279. package/src/shipping_v2/model/TimeOfDay.js +5 -2
  1280. package/src/shipping_v2/model/TimeWindow.js +4 -2
  1281. package/src/shipping_v2/model/TrackingDetailCodes.js +8 -6
  1282. package/src/shipping_v2/model/TrackingSummary.js +6 -4
  1283. package/src/shipping_v2/model/UnlinkCarrierAccountRequest.js +5 -3
  1284. package/src/shipping_v2/model/UnlinkCarrierAccountResponse.js +3 -2
  1285. package/src/shipping_v2/model/UnmanifestedCarrierInformation.js +6 -3
  1286. package/src/shipping_v2/model/UnmanifestedShipmentLocation.js +5 -3
  1287. package/src/shipping_v2/model/ValidationMetadata.js +5 -2
  1288. package/src/shipping_v2/model/ValueAddedService.js +7 -4
  1289. package/src/shipping_v2/model/ValueAddedServiceDetails.js +4 -3
  1290. package/src/shipping_v2/model/Weight.js +6 -4
  1291. package/src/solicitations_v1/api/SolicitationsApi.js +11 -11
  1292. package/src/solicitations_v1/model/CreateProductReviewAndSellerFeedbackSolicitationResponse.js +4 -3
  1293. package/src/solicitations_v1/model/Error.js +5 -2
  1294. package/src/solicitations_v1/model/GetSchemaResponse.js +8 -5
  1295. package/src/solicitations_v1/model/GetSchemaResponseLinks.js +5 -4
  1296. package/src/solicitations_v1/model/GetSolicitationActionResponse.js +10 -6
  1297. package/src/solicitations_v1/model/GetSolicitationActionResponseEmbedded.js +4 -3
  1298. package/src/solicitations_v1/model/GetSolicitationActionResponseLinks.js +8 -6
  1299. package/src/solicitations_v1/model/GetSolicitationActionsForOrderResponse.js +8 -5
  1300. package/src/solicitations_v1/model/GetSolicitationActionsForOrderResponseEmbedded.js +5 -4
  1301. package/src/solicitations_v1/model/GetSolicitationActionsForOrderResponseLinks.js +8 -6
  1302. package/src/solicitations_v1/model/LinkObject.js +4 -2
  1303. package/src/solicitations_v1/model/SolicitationsAction.js +3 -2
  1304. package/src/supplysources_v2020_07_01/api/SupplySourcesApi.js +21 -21
  1305. package/src/supplysources_v2020_07_01/model/Address.js +13 -2
  1306. package/src/supplysources_v2020_07_01/model/AddressWithContact.js +6 -4
  1307. package/src/supplysources_v2020_07_01/model/ContactDetails.js +4 -3
  1308. package/src/supplysources_v2020_07_01/model/ContactDetailsPrimary.js +4 -2
  1309. package/src/supplysources_v2020_07_01/model/CreateSupplySourceRequest.js +7 -4
  1310. package/src/supplysources_v2020_07_01/model/CreateSupplySourceResponse.js +4 -2
  1311. package/src/supplysources_v2020_07_01/model/CurbsidePickupConfiguration.js +7 -4
  1312. package/src/supplysources_v2020_07_01/model/DeliveryChannel.js +5 -3
  1313. package/src/supplysources_v2020_07_01/model/Duration.js +5 -3
  1314. package/src/supplysources_v2020_07_01/model/Error.js +5 -2
  1315. package/src/supplysources_v2020_07_01/model/ErrorList.js +5 -4
  1316. package/src/supplysources_v2020_07_01/model/GetSupplySourcesResponse.js +5 -3
  1317. package/src/supplysources_v2020_07_01/model/InStorePickupConfiguration.js +5 -3
  1318. package/src/supplysources_v2020_07_01/model/OperatingHour.js +4 -2
  1319. package/src/supplysources_v2020_07_01/model/OperatingHoursByDay.js +16 -9
  1320. package/src/supplysources_v2020_07_01/model/OperationalConfiguration.js +10 -6
  1321. package/src/supplysources_v2020_07_01/model/OutboundCapability.js +11 -6
  1322. package/src/supplysources_v2020_07_01/model/ParkingConfiguration.js +7 -4
  1323. package/src/supplysources_v2020_07_01/model/ParkingCostType.js +2 -2
  1324. package/src/supplysources_v2020_07_01/model/ParkingSpotIdentificationType.js +2 -2
  1325. package/src/supplysources_v2020_07_01/model/ParkingWithAddressConfiguration.js +14 -7
  1326. package/src/supplysources_v2020_07_01/model/PickupChannel.js +11 -6
  1327. package/src/supplysources_v2020_07_01/model/ReturnLocation.js +5 -3
  1328. package/src/supplysources_v2020_07_01/model/ServicesCapability.js +5 -3
  1329. package/src/supplysources_v2020_07_01/model/SupplySource.js +15 -6
  1330. package/src/supplysources_v2020_07_01/model/SupplySourceCapabilities.js +6 -4
  1331. package/src/supplysources_v2020_07_01/model/SupplySourceConfiguration.js +5 -3
  1332. package/src/supplysources_v2020_07_01/model/SupplySourceListInner.js +7 -3
  1333. package/src/supplysources_v2020_07_01/model/SupplySourceStatus.js +2 -2
  1334. package/src/supplysources_v2020_07_01/model/SupplySourceStatusReadOnly.js +2 -2
  1335. package/src/supplysources_v2020_07_01/model/ThroughputCap.js +5 -3
  1336. package/src/supplysources_v2020_07_01/model/ThroughputConfig.js +7 -5
  1337. package/src/supplysources_v2020_07_01/model/ThroughputUnit.js +2 -2
  1338. package/src/supplysources_v2020_07_01/model/TimeUnit.js +2 -2
  1339. package/src/supplysources_v2020_07_01/model/UpdateSupplySourceRequest.js +7 -4
  1340. package/src/supplysources_v2020_07_01/model/UpdateSupplySourceStatusRequest.js +4 -3
  1341. package/src/tokens_v2021_03_01/api/TokensApi.js +7 -7
  1342. package/src/tokens_v2021_03_01/model/CreateRestrictedDataTokenRequest.js +6 -4
  1343. package/src/tokens_v2021_03_01/model/CreateRestrictedDataTokenResponse.js +4 -2
  1344. package/src/tokens_v2021_03_01/model/Error.js +5 -2
  1345. package/src/tokens_v2021_03_01/model/ErrorList.js +4 -3
  1346. package/src/tokens_v2021_03_01/model/RestrictedResource.js +8 -5
  1347. package/src/transfers_v2024_06_01/api/DefaultApi.js +11 -11
  1348. package/src/transfers_v2024_06_01/model/AssignmentType.js +2 -2
  1349. package/src/transfers_v2024_06_01/model/Error.js +5 -2
  1350. package/src/transfers_v2024_06_01/model/ErrorList.js +5 -4
  1351. package/src/transfers_v2024_06_01/model/ExpiryDate.js +4 -2
  1352. package/src/transfers_v2024_06_01/model/GetPaymentMethodsResponse.js +4 -3
  1353. package/src/transfers_v2024_06_01/model/InitiatePayoutRequest.js +4 -2
  1354. package/src/transfers_v2024_06_01/model/InitiatePayoutResponse.js +3 -2
  1355. package/src/transfers_v2024_06_01/model/PaymentMethodDetails.js +12 -5
  1356. package/src/transfers_v2024_06_01/model/PaymentMethodType.js +2 -2
  1357. package/src/uploads_v2020_11_01/api/UploadsApi.js +7 -7
  1358. package/src/uploads_v2020_11_01/model/CreateUploadDestinationResponse.js +6 -4
  1359. package/src/uploads_v2020_11_01/model/Error.js +5 -2
  1360. package/src/uploads_v2020_11_01/model/UploadDestination.js +5 -2
  1361. package/src/vehicles_v2024_11_01/api/AutomotiveApi.js +7 -7
  1362. package/src/vehicles_v2024_11_01/api/VehiclesApi.js +7 -7
  1363. package/src/vehicles_v2024_11_01/model/EngineOutput.js +6 -4
  1364. package/src/vehicles_v2024_11_01/model/EngineOutputUnit.js +2 -2
  1365. package/src/vehicles_v2024_11_01/model/Error.js +5 -2
  1366. package/src/vehicles_v2024_11_01/model/ErrorList.js +5 -4
  1367. package/src/vehicles_v2024_11_01/model/MonthAndYear.js +4 -2
  1368. package/src/vehicles_v2024_11_01/model/Pagination.js +4 -2
  1369. package/src/vehicles_v2024_11_01/model/Vehicle.js +20 -8
  1370. package/src/vehicles_v2024_11_01/model/VehicleIdentifiers.js +6 -4
  1371. package/src/vehicles_v2024_11_01/model/VehicleStandard.js +2 -2
  1372. package/src/vehicles_v2024_11_01/model/VehicleStatusInCatalog.js +2 -2
  1373. package/src/vehicles_v2024_11_01/model/VehiclesResponse.js +7 -5
  1374. package/src/vendordfinventory_v1/api/UpdateInventoryApi.js +7 -7
  1375. package/src/vendordfinventory_v1/model/Error.js +5 -2
  1376. package/src/vendordfinventory_v1/model/InventoryUpdate.js +9 -6
  1377. package/src/vendordfinventory_v1/model/ItemDetails.js +8 -4
  1378. package/src/vendordfinventory_v1/model/ItemQuantity.js +4 -2
  1379. package/src/vendordfinventory_v1/model/PartyIdentification.js +3 -2
  1380. package/src/vendordfinventory_v1/model/SubmitInventoryUpdateRequest.js +4 -3
  1381. package/src/vendordfinventory_v1/model/SubmitInventoryUpdateResponse.js +6 -4
  1382. package/src/vendordfinventory_v1/model/TransactionReference.js +3 -2
  1383. package/src/vendordforders_v2021_12_28/api/VendorOrdersApi.js +15 -15
  1384. package/src/vendordforders_v2021_12_28/model/AcknowledgementStatus.js +4 -2
  1385. package/src/vendordforders_v2021_12_28/model/Address.js +14 -2
  1386. package/src/vendordforders_v2021_12_28/model/BuyerCustomizedInfoDetail.js +3 -2
  1387. package/src/vendordforders_v2021_12_28/model/Error.js +5 -2
  1388. package/src/vendordforders_v2021_12_28/model/ErrorList.js +5 -4
  1389. package/src/vendordforders_v2021_12_28/model/GiftDetails.js +4 -2
  1390. package/src/vendordforders_v2021_12_28/model/ItemQuantity.js +5 -3
  1391. package/src/vendordforders_v2021_12_28/model/Money.js +4 -2
  1392. package/src/vendordforders_v2021_12_28/model/Order.js +5 -3
  1393. package/src/vendordforders_v2021_12_28/model/OrderAcknowledgementItem.js +17 -10
  1394. package/src/vendordforders_v2021_12_28/model/OrderDetails.js +26 -16
  1395. package/src/vendordforders_v2021_12_28/model/OrderItem.js +22 -11
  1396. package/src/vendordforders_v2021_12_28/model/OrderItemAcknowledgement.js +8 -4
  1397. package/src/vendordforders_v2021_12_28/model/OrderList.js +6 -4
  1398. package/src/vendordforders_v2021_12_28/model/Pagination.js +3 -2
  1399. package/src/vendordforders_v2021_12_28/model/PartyIdentification.js +7 -4
  1400. package/src/vendordforders_v2021_12_28/model/ScheduledDeliveryShipment.js +5 -2
  1401. package/src/vendordforders_v2021_12_28/model/ShipmentDates.js +4 -2
  1402. package/src/vendordforders_v2021_12_28/model/ShipmentDetails.js +11 -4
  1403. package/src/vendordforders_v2021_12_28/model/SubmitAcknowledgementRequest.js +4 -3
  1404. package/src/vendordforders_v2021_12_28/model/SubmitAcknowledgementResponse.js +6 -4
  1405. package/src/vendordforders_v2021_12_28/model/TaxDetails.js +10 -6
  1406. package/src/vendordforders_v2021_12_28/model/TaxItemDetails.js +4 -3
  1407. package/src/vendordforders_v2021_12_28/model/TaxRegistrationDetails.js +8 -4
  1408. package/src/vendordforders_v2021_12_28/model/TransactionId.js +3 -2
  1409. package/src/vendordfpayments_v1/api/VendorInvoiceApi.js +7 -7
  1410. package/src/vendordfpayments_v1/model/AdditionalDetails.js +7 -4
  1411. package/src/vendordfpayments_v1/model/Address.js +13 -2
  1412. package/src/vendordfpayments_v1/model/ChargeDetails.js +10 -7
  1413. package/src/vendordfpayments_v1/model/Error.js +5 -2
  1414. package/src/vendordfpayments_v1/model/InvoiceDetail.js +27 -14
  1415. package/src/vendordfpayments_v1/model/InvoiceItem.js +18 -8
  1416. package/src/vendordfpayments_v1/model/ItemQuantity.js +4 -2
  1417. package/src/vendordfpayments_v1/model/Money.js +4 -2
  1418. package/src/vendordfpayments_v1/model/PartyIdentification.js +7 -4
  1419. package/src/vendordfpayments_v1/model/SubmitInvoiceRequest.js +4 -3
  1420. package/src/vendordfpayments_v1/model/SubmitInvoiceResponse.js +6 -4
  1421. package/src/vendordfpayments_v1/model/TaxDetail.js +11 -7
  1422. package/src/vendordfpayments_v1/model/TaxRegistrationDetail.js +8 -4
  1423. package/src/vendordfpayments_v1/model/TransactionReference.js +3 -2
  1424. package/src/vendordfshipping_v2021_12_28/api/CreateContainerLabelApi.js +7 -7
  1425. package/src/vendordfshipping_v2021_12_28/api/CustomerInvoicesApi.js +9 -9
  1426. package/src/vendordfshipping_v2021_12_28/api/VendorShippingApi.js +17 -17
  1427. package/src/vendordfshipping_v2021_12_28/api/VendorShippingLabelsApi.js +17 -17
  1428. package/src/vendordfshipping_v2021_12_28/model/Address.js +13 -2
  1429. package/src/vendordfshipping_v2021_12_28/model/CarrierId.js +2 -2
  1430. package/src/vendordfshipping_v2021_12_28/model/Container.js +21 -9
  1431. package/src/vendordfshipping_v2021_12_28/model/ContainerLabel.js +7 -4
  1432. package/src/vendordfshipping_v2021_12_28/model/ContainerLabelFormat.js +2 -2
  1433. package/src/vendordfshipping_v2021_12_28/model/CreateContainerLabelRequest.js +15 -10
  1434. package/src/vendordfshipping_v2021_12_28/model/CreateContainerLabelResponse.js +5 -4
  1435. package/src/vendordfshipping_v2021_12_28/model/CreateShippingLabelsRequest.js +10 -7
  1436. package/src/vendordfshipping_v2021_12_28/model/CustomerInvoice.js +4 -2
  1437. package/src/vendordfshipping_v2021_12_28/model/CustomerInvoiceList.js +6 -4
  1438. package/src/vendordfshipping_v2021_12_28/model/Dimensions.js +8 -4
  1439. package/src/vendordfshipping_v2021_12_28/model/Error.js +5 -2
  1440. package/src/vendordfshipping_v2021_12_28/model/ErrorList.js +5 -4
  1441. package/src/vendordfshipping_v2021_12_28/model/Item.js +8 -4
  1442. package/src/vendordfshipping_v2021_12_28/model/ItemQuantity.js +4 -2
  1443. package/src/vendordfshipping_v2021_12_28/model/LabelData.js +7 -2
  1444. package/src/vendordfshipping_v2021_12_28/model/Package.js +3 -2
  1445. package/src/vendordfshipping_v2021_12_28/model/PackedItem.js +9 -4
  1446. package/src/vendordfshipping_v2021_12_28/model/PackingSlip.js +6 -3
  1447. package/src/vendordfshipping_v2021_12_28/model/PackingSlipList.js +6 -4
  1448. package/src/vendordfshipping_v2021_12_28/model/Pagination.js +3 -2
  1449. package/src/vendordfshipping_v2021_12_28/model/PartyIdentification.js +7 -4
  1450. package/src/vendordfshipping_v2021_12_28/model/ShipmentConfirmation.js +17 -11
  1451. package/src/vendordfshipping_v2021_12_28/model/ShipmentDetails.js +9 -4
  1452. package/src/vendordfshipping_v2021_12_28/model/ShipmentSchedule.js +5 -2
  1453. package/src/vendordfshipping_v2021_12_28/model/ShipmentStatusUpdate.js +12 -8
  1454. package/src/vendordfshipping_v2021_12_28/model/ShippingLabel.js +15 -10
  1455. package/src/vendordfshipping_v2021_12_28/model/ShippingLabelList.js +6 -4
  1456. package/src/vendordfshipping_v2021_12_28/model/ShippingLabelRequest.js +11 -7
  1457. package/src/vendordfshipping_v2021_12_28/model/StatusUpdateDetails.js +11 -5
  1458. package/src/vendordfshipping_v2021_12_28/model/SubmitShipmentConfirmationsRequest.js +4 -3
  1459. package/src/vendordfshipping_v2021_12_28/model/SubmitShipmentStatusUpdatesRequest.js +4 -3
  1460. package/src/vendordfshipping_v2021_12_28/model/SubmitShippingLabelsRequest.js +4 -3
  1461. package/src/vendordfshipping_v2021_12_28/model/TaxRegistrationDetails.js +8 -4
  1462. package/src/vendordfshipping_v2021_12_28/model/TransactionReference.js +3 -2
  1463. package/src/vendordfshipping_v2021_12_28/model/Weight.js +6 -4
  1464. package/src/vendordftransactions_v2021_12_28/api/VendorTransactionApi.js +5 -5
  1465. package/src/vendordftransactions_v2021_12_28/model/Error.js +5 -2
  1466. package/src/vendordftransactions_v2021_12_28/model/ErrorList.js +5 -4
  1467. package/src/vendordftransactions_v2021_12_28/model/Transaction.js +8 -5
  1468. package/src/vendordftransactions_v2021_12_28/model/TransactionStatus.js +4 -3
  1469. package/src/vendorinvoices_v1/api/VendorPaymentsApi.js +7 -7
  1470. package/src/vendorinvoices_v1/model/AdditionalDetails.js +7 -4
  1471. package/src/vendorinvoices_v1/model/Address.js +13 -2
  1472. package/src/vendorinvoices_v1/model/AllowanceDetails.js +11 -7
  1473. package/src/vendorinvoices_v1/model/ChargeDetails.js +11 -7
  1474. package/src/vendorinvoices_v1/model/CreditNoteDetails.js +9 -2
  1475. package/src/vendorinvoices_v1/model/Error.js +5 -2
  1476. package/src/vendorinvoices_v1/model/Invoice.js +32 -17
  1477. package/src/vendorinvoices_v1/model/InvoiceItem.js +23 -11
  1478. package/src/vendorinvoices_v1/model/ItemQuantity.js +9 -5
  1479. package/src/vendorinvoices_v1/model/Money.js +4 -2
  1480. package/src/vendorinvoices_v1/model/NetCostUnitOfMeasure.js +2 -2
  1481. package/src/vendorinvoices_v1/model/PartyIdentification.js +7 -4
  1482. package/src/vendorinvoices_v1/model/PaymentTerms.js +7 -3
  1483. package/src/vendorinvoices_v1/model/SubmitInvoicesRequest.js +4 -3
  1484. package/src/vendorinvoices_v1/model/SubmitInvoicesResponse.js +6 -4
  1485. package/src/vendorinvoices_v1/model/TaxDetails.js +11 -7
  1486. package/src/vendorinvoices_v1/model/TaxRegistrationDetails.js +6 -4
  1487. package/src/vendorinvoices_v1/model/TotalWeight.js +6 -4
  1488. package/src/vendorinvoices_v1/model/TransactionId.js +3 -2
  1489. package/src/vendororders_v1/api/VendorOrdersApi.js +27 -27
  1490. package/src/vendororders_v1/model/AcknowledgementStatusDetails.js +7 -4
  1491. package/src/vendororders_v1/model/Address.js +13 -2
  1492. package/src/vendororders_v1/model/Error.js +5 -2
  1493. package/src/vendororders_v1/model/GetPurchaseOrderResponse.js +6 -4
  1494. package/src/vendororders_v1/model/GetPurchaseOrdersResponse.js +6 -4
  1495. package/src/vendororders_v1/model/GetPurchaseOrdersStatusResponse.js +6 -4
  1496. package/src/vendororders_v1/model/ImportDetails.js +9 -4
  1497. package/src/vendororders_v1/model/ItemQuantity.js +6 -3
  1498. package/src/vendororders_v1/model/Money.js +6 -3
  1499. package/src/vendororders_v1/model/Order.js +8 -5
  1500. package/src/vendororders_v1/model/OrderAcknowledgement.js +10 -6
  1501. package/src/vendororders_v1/model/OrderAcknowledgementItem.js +16 -8
  1502. package/src/vendororders_v1/model/OrderDetails.js +25 -11
  1503. package/src/vendororders_v1/model/OrderItem.js +13 -6
  1504. package/src/vendororders_v1/model/OrderItemAcknowledgement.js +12 -7
  1505. package/src/vendororders_v1/model/OrderItemStatus.js +15 -7
  1506. package/src/vendororders_v1/model/OrderItemStatusAcknowledgementStatus.js +10 -6
  1507. package/src/vendororders_v1/model/OrderItemStatusOrderedQuantity.js +6 -4
  1508. package/src/vendororders_v1/model/OrderItemStatusReceivingStatus.js +7 -4
  1509. package/src/vendororders_v1/model/OrderList.js +6 -4
  1510. package/src/vendororders_v1/model/OrderListStatus.js +6 -4
  1511. package/src/vendororders_v1/model/OrderStatus.js +17 -10
  1512. package/src/vendororders_v1/model/OrderedQuantityDetails.js +7 -4
  1513. package/src/vendororders_v1/model/Pagination.js +3 -2
  1514. package/src/vendororders_v1/model/PartyIdentification.js +7 -4
  1515. package/src/vendororders_v1/model/SubmitAcknowledgementRequest.js +4 -3
  1516. package/src/vendororders_v1/model/SubmitAcknowledgementResponse.js +6 -4
  1517. package/src/vendororders_v1/model/TaxRegistrationDetails.js +6 -4
  1518. package/src/vendororders_v1/model/TransactionId.js +3 -2
  1519. package/src/vendorshipments_v1/api/VendorShippingApi.js +19 -19
  1520. package/src/vendorshipments_v1/model/Address.js +13 -2
  1521. package/src/vendorshipments_v1/model/CarrierDetails.js +7 -2
  1522. package/src/vendorshipments_v1/model/Carton.js +13 -7
  1523. package/src/vendorshipments_v1/model/CartonReferenceDetails.js +6 -4
  1524. package/src/vendorshipments_v1/model/CollectFreightPickupDetails.js +5 -2
  1525. package/src/vendorshipments_v1/model/ContainerIdentification.js +6 -4
  1526. package/src/vendorshipments_v1/model/ContainerItem.js +8 -5
  1527. package/src/vendorshipments_v1/model/ContainerSequenceNumbers.js +3 -2
  1528. package/src/vendorshipments_v1/model/Containers.js +20 -10
  1529. package/src/vendorshipments_v1/model/Dimensions.js +8 -4
  1530. package/src/vendorshipments_v1/model/Duration.js +6 -4
  1531. package/src/vendorshipments_v1/model/Error.js +5 -2
  1532. package/src/vendorshipments_v1/model/Expiry.js +6 -3
  1533. package/src/vendorshipments_v1/model/GetShipmentDetailsResponse.js +6 -4
  1534. package/src/vendorshipments_v1/model/GetShipmentLabels.js +6 -4
  1535. package/src/vendorshipments_v1/model/ImportDetails.js +13 -6
  1536. package/src/vendorshipments_v1/model/InnerContainersDetails.js +5 -3
  1537. package/src/vendorshipments_v1/model/Item.js +10 -5
  1538. package/src/vendorshipments_v1/model/ItemDetails.js +10 -5
  1539. package/src/vendorshipments_v1/model/ItemQuantity.js +9 -5
  1540. package/src/vendorshipments_v1/model/LabelData.js +8 -3
  1541. package/src/vendorshipments_v1/model/Location.js +5 -2
  1542. package/src/vendorshipments_v1/model/Money.js +4 -2
  1543. package/src/vendorshipments_v1/model/PackageItemDetails.js +6 -3
  1544. package/src/vendorshipments_v1/model/PackedItems.js +9 -4
  1545. package/src/vendorshipments_v1/model/PackedQuantity.js +7 -4
  1546. package/src/vendorshipments_v1/model/Pagination.js +3 -2
  1547. package/src/vendorshipments_v1/model/Pallet.js +15 -8
  1548. package/src/vendorshipments_v1/model/PartyIdentification.js +7 -4
  1549. package/src/vendorshipments_v1/model/PurchaseOrderItemDetails.js +4 -3
  1550. package/src/vendorshipments_v1/model/PurchaseOrderItems.js +10 -5
  1551. package/src/vendorshipments_v1/model/PurchaseOrders.js +7 -3
  1552. package/src/vendorshipments_v1/model/Route.js +5 -4
  1553. package/src/vendorshipments_v1/model/Shipment.js +39 -19
  1554. package/src/vendorshipments_v1/model/ShipmentConfirmation.js +36 -19
  1555. package/src/vendorshipments_v1/model/ShipmentDetails.js +6 -4
  1556. package/src/vendorshipments_v1/model/ShipmentInformation.js +14 -6
  1557. package/src/vendorshipments_v1/model/ShipmentMeasurements.js +8 -4
  1558. package/src/vendorshipments_v1/model/ShipmentStatusDetails.js +5 -3
  1559. package/src/vendorshipments_v1/model/Stop.js +9 -5
  1560. package/src/vendorshipments_v1/model/SubmitShipmentConfirmationsRequest.js +4 -3
  1561. package/src/vendorshipments_v1/model/SubmitShipmentConfirmationsResponse.js +6 -4
  1562. package/src/vendorshipments_v1/model/SubmitShipments.js +4 -3
  1563. package/src/vendorshipments_v1/model/TaxRegistrationDetails.js +6 -4
  1564. package/src/vendorshipments_v1/model/TotalWeight.js +6 -4
  1565. package/src/vendorshipments_v1/model/TransactionReference.js +3 -2
  1566. package/src/vendorshipments_v1/model/TransportLabel.js +7 -4
  1567. package/src/vendorshipments_v1/model/TransportShipmentMeasurements.js +9 -4
  1568. package/src/vendorshipments_v1/model/TransportationDetails.js +12 -5
  1569. package/src/vendorshipments_v1/model/TransportationDetailsForShipmentConfirmation.js +7 -3
  1570. package/src/vendorshipments_v1/model/TransportationLabels.js +6 -4
  1571. package/src/vendorshipments_v1/model/VendorDetails.js +5 -3
  1572. package/src/vendorshipments_v1/model/Volume.js +6 -4
  1573. package/src/vendorshipments_v1/model/Weight.js +6 -4
  1574. package/src/vendortransactionstatus_v1/api/VendorTransactionApi.js +5 -5
  1575. package/src/vendortransactionstatus_v1/model/Error.js +5 -2
  1576. package/src/vendortransactionstatus_v1/model/GetTransactionResponse.js +6 -4
  1577. package/src/vendortransactionstatus_v1/model/Transaction.js +8 -5
  1578. package/src/vendortransactionstatus_v1/model/TransactionStatus.js +4 -3
  1579. package/src/messaging_v1/model/CreateNegativeFeedbackRemovalResponse.js +0 -63
@@ -0,0 +1,827 @@
1
+ /**
2
+ * The Selling Partner API for Finances
3
+ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
4
+ *
5
+ * The version of the OpenAPI document: 2024-06-19
6
+ *
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 superagent from 'superagent'
15
+ import querystring from 'querystring'
16
+ import { readFileSync } from 'node:fs'
17
+ import { URL } from 'node:url'
18
+ import { RateLimitConfiguration } from '../../helper/RateLimitConfiguration.mjs'
19
+ import { SuperagentRateLimiter } from '../../helper/SuperagentRateLimiter.mjs'
20
+
21
+ /**
22
+ * @module finances_2024_06_19/ApiClient
23
+ * @version 2024-06-19
24
+ */
25
+
26
+ /**
27
+ * Private class used by ApiClient class. Used for executing LWA refresh token flow.
28
+ * @class
29
+ */
30
+ class LwaOAuthClient {
31
+ /**
32
+ * Private member to store LWA credential, refresh token or scope.
33
+ * @type {Object<String, String>}
34
+ */
35
+ #lwaClientInfo = {}
36
+
37
+ /**
38
+ * Private member to cache access token that is retrieved by auto-retrieval.
39
+ * @type {Map<String, {String, Number}> | null}
40
+ */
41
+ #cachedTokenMap = null
42
+
43
+ /**
44
+ * Constructs a new LwaOAuthClient.
45
+ * @param {String} clientId LWA Client ID.
46
+ * @param {String} clientSecret LWA Client Secret.
47
+ * @param {String|null} refreshToken LWA Refresh token.
48
+ * @param {String|null} scope LWA scope(s) for grantless operations.
49
+ */
50
+ constructor (clientId, clientSecret, refreshToken = null, scope = null) {
51
+ this.#lwaClientInfo = {
52
+ clientId, clientSecret, refreshToken, scope
53
+ }
54
+ }
55
+
56
+ /**
57
+ * Execute LWA refresh token flow to retrieve access token to be used for SP-API calls.
58
+ * @returns {Promise<String>} LWA access token.
59
+ */
60
+ retrieveAccessToken = async () => {
61
+ const key = JSON.stringify(this.#lwaClientInfo)
62
+
63
+ if (this.#cachedTokenMap) {
64
+ const cachedTokenItem = this.#cachedTokenMap.get(key)
65
+
66
+ if (cachedTokenItem) {
67
+ const cachedToken = cachedTokenItem.cachedToken
68
+ const cachedTokenExpiration = cachedTokenItem.cachedTokenExpiration
69
+ // Adjustment in milliseconds (60s) to avoid using nearly expired tokens
70
+ const adjustedExpiryTime = cachedTokenExpiration - 60000
71
+ if (adjustedExpiryTime > Date.now()) {
72
+ return Promise.resolve(cachedToken)
73
+ } else {
74
+ this.#cachedTokenMap.delete(key)
75
+ }
76
+ }
77
+ }
78
+
79
+ const res = await this.#doRefresh()
80
+ if (!this.#cachedTokenMap) {
81
+ this.#cachedTokenMap = new Map()
82
+ }
83
+ this.#cachedTokenMap.set(key, { cachedToken: res.access_token, cachedTokenExpiration: Date.now() + res.expires_in * 1000 })
84
+ return res.access_token
85
+ }
86
+
87
+ /**
88
+ * Private method to execute LWA token refresh flow.
89
+ * @returns {Promise<Object>} LWA token response.
90
+ */
91
+ #doRefresh = async () => {
92
+ let requestBody = null
93
+ if (this.#lwaClientInfo.scope) {
94
+ // grantless operations
95
+ requestBody = `grant_type=client_credentials&client_id=${this.#lwaClientInfo.clientId}&client_secret=${this.#lwaClientInfo.clientSecret}&scope=${this.#lwaClientInfo.scope}`
96
+ } else {
97
+ requestBody = `grant_type=refresh_token&refresh_token=${this.#lwaClientInfo.refreshToken}&client_id=${this.#lwaClientInfo.clientId}&client_secret=${this.#lwaClientInfo.clientSecret}`
98
+ }
99
+ const res = await superagent.post('https://api.amazon.com/auth/o2/token')
100
+ .send(requestBody)
101
+ .set('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8')
102
+ return res.body
103
+ }
104
+
105
+ clearCachedTokenMap () {
106
+ if (this.#cachedTokenMap) {
107
+ this.#cachedTokenMap.clear()
108
+ }
109
+ }
110
+ }
111
+
112
+ /**
113
+ * Private class used by ApiClient class. Used for executing LWA refresh token flow and calling Tokens API to retrieve RDT.
114
+ * @class
115
+ */
116
+ class TokensApiClient {
117
+ /**
118
+ * Private member to execute LWA refresh token flow.
119
+ * @type {Object<LwaOAuthClient>}
120
+ */
121
+ #lwaClient = null
122
+
123
+ /**
124
+ * Private member to store 'dataElements' parameter for Tokens API call.
125
+ * @type {Array<String>}
126
+ */
127
+ #dataElements = null
128
+
129
+ /**
130
+ * Constructs a new TokensApiClient.
131
+ * @param {String} clientId LWA Client ID.
132
+ * @param {String} clientSecret LWA Client Secret.
133
+ * @param {String} refreshToken LWA Refresh token.
134
+ * @param {Array<String>} dataElements Optional specifiers for PII data elements tp retrieve.
135
+ */
136
+ constructor (clientId, clientSecret, refreshToken, dataElements) {
137
+ this.#lwaClient = new LwaOAuthClient(clientId, clientSecret, refreshToken, null)
138
+ if (dataElements && !Array.isArray(dataElements)) {
139
+ throw new Error(`dataElements parameter to TokensApiClient constructor must be array of string. Illegal parameter:${dataElements}`)
140
+ }
141
+ this.#dataElements = dataElements || null
142
+ }
143
+
144
+ /**
145
+ * Execute createRestrictedDataToken to retrieve RDT to be used for PII-handling SP-API calls.
146
+ * @param {String} method method for SP-API request.
147
+ * @param {String} url URL for SP-API call to be made.
148
+ * @param {Array<String>} dataElements specify PII information to get from "buyerInfo", "shippingAddress" and "buyerTaxInformation".
149
+ * @returns {Promise<String>} Restricted Data Token (RDT).
150
+ */
151
+ retrieveRestrictedDataToken = async (method, url) => {
152
+ const accessToken = await this.#lwaClient.retrieveAccessToken()
153
+ const urlToRequest = new URL(url)
154
+ const res = await this.#doCreateRestrictedDataToken(accessToken, method, urlToRequest)
155
+ return res.restrictedDataToken
156
+ }
157
+
158
+ /**
159
+ * Private method to execute createRestrictedDataToken
160
+ * @param {String} accessToken Access token to call RDT request.
161
+ * @param {URL} url URL object for URL string manipulation.
162
+ * @param {Array<String>} dataElements specify PII information to get from "buyerInfo", "shippingAddress" and "buyerTaxInformation".
163
+ * @returns {Promise<Object>} createRestrictedDataToken response.
164
+ */
165
+ #doCreateRestrictedDataToken = async (accessToken, method, url) => {
166
+ const tokenApiUrl = `${url.origin}/tokens/2021-03-01/restrictedDataToken`
167
+ const pathToRequest = url.pathname
168
+ const res = await superagent.post(tokenApiUrl)
169
+ .send(
170
+ {
171
+ restrictedResources: [
172
+ {
173
+ method,
174
+ path: pathToRequest,
175
+ dataElements: this.#dataElements ? this.#dataElements : undefined
176
+ }
177
+ ]
178
+ }
179
+ ).set('Content-Type', 'application/json')
180
+ .set({ 'x-amz-access-token': accessToken })
181
+ return res.body
182
+ }
183
+ }
184
+
185
+ /**
186
+ * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
187
+ * application to use this class directly - the *Api and model classes provide the public API for the service. The
188
+ * contents of this file should be regarded as internal but are documented for completeness.
189
+ * @alias module:finances_2024_06_19/ApiClient
190
+ * @class
191
+ */
192
+ export class ApiClient {
193
+ #tokenForApiCall = null
194
+ #lwaClient = null
195
+ #rdtClient = null
196
+ #customizedRateLimiterMap = null
197
+ #useRateLimiter = true
198
+
199
+ /**
200
+ * Constructs a new ApiClient.
201
+ * @param {String} baseUrl Base URL of endpoint ex. "https://sellingpartnerapi-na.amazon.com"
202
+ */
203
+ constructor (baseUrl) {
204
+ /**
205
+ * The base URL against which to resolve every API call's (relative) path.
206
+ * @type {String}
207
+ * @default https://sellingpartnerapi-na.amazon.com
208
+ */
209
+ this.basePath = baseUrl ? baseUrl.replace(/\/+$/, '') : 'https://sellingpartnerapi-na.amazon.com'.replace(/\/+$/, '')
210
+
211
+ /**
212
+ * The authentication methods to be included for all API calls.
213
+ * @type {Array<String>}
214
+ */
215
+ this.authentications = {
216
+ }
217
+
218
+ const pkg = JSON.parse(readFileSync(new URL('../../package.json', import.meta.url)))
219
+ const version = pkg.version ? pkg.version : 'undefined'
220
+
221
+ /**
222
+ * The default HTTP headers to be included for all API calls.
223
+ * @type {Array<String>}
224
+ * @default {}
225
+ */
226
+ this.defaultHeaders = {
227
+ 'User-Agent': `amazon-selling-partner-api-sdk/${version}/JavaScript`
228
+ }
229
+
230
+ /**
231
+ * The default HTTP timeout for all API calls.
232
+ * @type {Number}
233
+ * @default 60000
234
+ */
235
+ this.timeout = 60000
236
+
237
+ /**
238
+ * If set to false an additional timestamp parameter is added to all API GET calls to
239
+ * prevent browser caching
240
+ * @type {Boolean}
241
+ * @default true
242
+ */
243
+ this.cache = true
244
+
245
+ /**
246
+ * If set to true, the client will save the cookies from each server
247
+ * response, and return them in the next request.
248
+ * @default false
249
+ */
250
+ this.enableCookies = false
251
+
252
+ /*
253
+ * Used to save and return cookies in a node.js (non-browser) setting,
254
+ * if this.enableCookies is set to true.
255
+ */
256
+ if (typeof window === 'undefined') {
257
+ this.agent = new superagent.agent()
258
+ }
259
+
260
+ /*
261
+ * Allow user to override superagent agent
262
+ */
263
+ this.requestAgent = null
264
+
265
+ /*
266
+ * Initialize customized rate limiter map
267
+ */
268
+ this.#customizedRateLimiterMap = new Map()
269
+ }
270
+
271
+ /**
272
+ * Set customized rate limiter for one operation
273
+ * For operations that customized rate limiter are not set
274
+ * Will use default rate limiter
275
+ * @param {String} operationName
276
+ * @param {RateLimitConfiguration} config
277
+ */
278
+ setCustomizedRateLimiterForOperation (operationName, config) {
279
+ this.#customizedRateLimiterMap.set(operationName, new SuperagentRateLimiter(config))
280
+ }
281
+
282
+ /**
283
+ * Disable customized rate limiter for one operation
284
+ * Fall back to default rate limiter
285
+ * @param {String} operationName
286
+ */
287
+ disableCustomizedRatelimiterForOperation (operationName) {
288
+ this.#customizedRateLimiterMap.delete(operationName)
289
+ }
290
+
291
+ /**
292
+ * Clear customized rate limiter for all operations
293
+ * All operations will fall back to default rate limiter
294
+ * @param {String} operationName
295
+ */
296
+ disableCustomizedRatelimiterForAll () {
297
+ this.#customizedRateLimiterMap.clear()
298
+ }
299
+
300
+ /**
301
+ * Disable both default and customized rate limiter for all operations
302
+ */
303
+ disableRateLimiter () {
304
+ this.#useRateLimiter = false
305
+ }
306
+
307
+ /**
308
+ * Enable default or customized rate limiter for all operations
309
+ */
310
+ enableRateLimiter () {
311
+ this.#useRateLimiter = true
312
+ }
313
+
314
+ /**
315
+ * Returns this ApiClient so that you can chain the methods.
316
+ * @param {String} clientId LWA client ID.
317
+ * @param {String} clientSecret LWA client secret.
318
+ * @param {String} refreshToken LWA refresh token.
319
+ * @param {Array<String>} dataElementsOption specify PII information to get from "buyerInfo", "shippingAddress" and "buyerTaxInformation".
320
+ * @returns {ApiClient} This ApiClient, which is going to use give accessToken for all API calls.
321
+ */
322
+ enableAutoRetrievalRestrictedDataToken (clientId, clientSecret, refreshToken, dataElementsOption) {
323
+ if (!clientId || !clientSecret || !refreshToken) {
324
+ throw new Error('invalid parameter(s) to enableAutoRetrievalRestrictedDataToken.')
325
+ }
326
+ this.#rdtClient = new TokensApiClient(clientId, clientSecret, refreshToken, dataElementsOption)
327
+ return this
328
+ }
329
+
330
+ /**
331
+ * Returns this ApiClient so that you can chain the methods.
332
+ * @param {String} clientId LWA client ID.
333
+ * @param {String} clientSecret LWA client secret.
334
+ * @param {String|null} refreshToken LWA refresh token.
335
+ * @param {String|null} scope LWA scope(s) for grantless operations.
336
+ * @returns {ApiClient} This ApiClient, which is going to use give accessToken for all API calls.
337
+ */
338
+ enableAutoRetrievalAccessToken (clientId, clientSecret, refreshToken = null, scope = null) {
339
+ if (!clientId || !clientSecret) {
340
+ throw new Error('invalid parameter(s) to enableAutoRetrievalAccessToken: clientId or clientSecret is null or undefined.')
341
+ } else if ((!refreshToken && !scope) || (refreshToken && scope)) {
342
+ throw new Error('invalid parameter(s) to enableAutoRetrievalAccessToken: either refreshToken or scope must be defined.')
343
+ }
344
+ this.#lwaClient = new LwaOAuthClient(clientId, clientSecret, refreshToken, scope)
345
+ return this
346
+ }
347
+
348
+ /**
349
+ * Clear Token Cache
350
+ */
351
+ clearAccessTokenCache () {
352
+ if (this.#lwaClient) {
353
+ this.#lwaClient.clearCachedTokenMap()
354
+ }
355
+ }
356
+
357
+ /**
358
+ * Returns this ApiClient so that you can chain the methods.
359
+ * @param {String} restrictedDataToken RDT token to use for SP-API call.
360
+ * @returns {ApiClient} This ApiClient, which is going to use give RDT for all API calls.
361
+ */
362
+ applyRestrictedDataToken (restrictedDataToken) {
363
+ this.#tokenForApiCall = restrictedDataToken
364
+ return this
365
+ }
366
+
367
+ /**
368
+ * Applies authentication headers to the request.
369
+ * @param {String} accessOrRdtToken Either Access Token or Restricted Data Token to add as 'x-amz-access-token'.
370
+ * @returns {ApiClient} This ApiClient, which is going to use give RDT for all API calls.
371
+ */
372
+ applyXAmzAccessTokenToRequest (accessOrRdtToken) {
373
+ if (!accessOrRdtToken) {
374
+ throw new Error('empty string, null or undefined passed to applyXAmzAccessTokenToRequest')
375
+ }
376
+ this.#tokenForApiCall = accessOrRdtToken
377
+ return this
378
+ }
379
+
380
+ /**
381
+ * Returns a string representation for an actual parameter.
382
+ * @param param The actual parameter.
383
+ * @returns {String} The string representation of <code>param</code>.
384
+ */
385
+ paramToString (param) {
386
+ if (param == undefined || param == null) {
387
+ return ''
388
+ }
389
+ if (param instanceof Date) {
390
+ return param.toJSON()
391
+ }
392
+ return param.toString()
393
+ }
394
+
395
+ /**
396
+ * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
397
+ * NOTE: query parameters are not handled here.
398
+ * @param {String} path The path to append to the base URL.
399
+ * @param {Object} pathParams The parameter values to append.
400
+ * @returns {String} The encoded path with parameter values substituted.
401
+ */
402
+ buildUrl (path, pathParams) {
403
+ if (!path.match(/^\//)) {
404
+ path = '/' + path
405
+ }
406
+ let url = this.basePath + path
407
+ url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => {
408
+ let value
409
+ if (pathParams.hasOwnProperty(key)) {
410
+ value = this.paramToString(pathParams[key])
411
+ } else {
412
+ value = fullMatch
413
+ }
414
+ return encodeURIComponent(value)
415
+ })
416
+ return url
417
+ }
418
+
419
+ /**
420
+ * Checks whether the given content type represents JSON.<br>
421
+ * JSON content type examples:<br>
422
+ * <ul>
423
+ * <li>application/json</li>
424
+ * <li>application/json; charset=UTF8</li>
425
+ * <li>APPLICATION/JSON</li>
426
+ * </ul>
427
+ * @param {String} contentType The MIME content type to check.
428
+ * @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
429
+ */
430
+ isJsonMime (contentType) {
431
+ return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i))
432
+ }
433
+
434
+ /**
435
+ * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
436
+ * @param {Array<String>} contentTypes
437
+ * @returns {String} The chosen content type, preferring JSON.
438
+ */
439
+ jsonPreferredMime (contentTypes) {
440
+ for (let i = 0; i < contentTypes.length; i++) {
441
+ if (this.isJsonMime(contentTypes[i])) {
442
+ return contentTypes[i]
443
+ }
444
+ }
445
+ return contentTypes[0]
446
+ }
447
+
448
+ /**
449
+ * Checks whether the given parameter value represents file-like content.
450
+ * @param param The parameter to check.
451
+ * @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
452
+ */
453
+ isFileParam (param) {
454
+ // fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
455
+ if (typeof require === 'function') {
456
+ let fs
457
+ try {
458
+ fs = require('fs')
459
+ } catch (err) {}
460
+ if (fs && fs.ReadStream && param instanceof fs.ReadStream) {
461
+ return true
462
+ }
463
+ }
464
+
465
+ // Buffer in Node.js
466
+ if (typeof Buffer === 'function' && param instanceof Buffer) {
467
+ return true
468
+ }
469
+
470
+ // Blob in browser
471
+ if (typeof Blob === 'function' && param instanceof Blob) {
472
+ return true
473
+ }
474
+
475
+ // File in browser (it seems File object is also instance of Blob, but keep this for safe)
476
+ if (typeof File === 'function' && param instanceof File) {
477
+ return true
478
+ }
479
+
480
+ return false
481
+ }
482
+
483
+ /**
484
+ * Normalizes parameter values:
485
+ * <ul>
486
+ * <li>remove nils</li>
487
+ * <li>keep files and arrays</li>
488
+ * <li>format to string with `paramToString` for other cases</li>
489
+ * </ul>
490
+ * @param {Object<String, Object>} params The parameters as object properties.
491
+ * @returns {Object<String, Object>} normalized parameters.
492
+ */
493
+ normalizeParams (params) {
494
+ const newParams = {}
495
+ for (const key in params) {
496
+ if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
497
+ const value = params[key]
498
+ if (this.isFileParam(value) || Array.isArray(value)) {
499
+ newParams[key] = value
500
+ } else {
501
+ newParams[key] = this.paramToString(value)
502
+ }
503
+ }
504
+ }
505
+ return newParams
506
+ }
507
+
508
+ /**
509
+ * Enumeration of collection format separator strategies.
510
+ * @enum {String}
511
+ * @readonly
512
+ */
513
+ static CollectionFormatEnum = {
514
+ /**
515
+ * Comma-separated values. Value: <code>csv</code>
516
+ * @const
517
+ */
518
+ CSV: ',',
519
+
520
+ /**
521
+ * Space-separated values. Value: <code>ssv</code>
522
+ * @const
523
+ */
524
+ SSV: ' ',
525
+
526
+ /**
527
+ * Tab-separated values. Value: <code>tsv</code>
528
+ * @const
529
+ */
530
+ TSV: '\t',
531
+
532
+ /**
533
+ * Pipe(|)-separated values. Value: <code>pipes</code>
534
+ * @const
535
+ */
536
+ PIPES: '|',
537
+
538
+ /**
539
+ * Native array. Value: <code>multi</code>
540
+ * @const
541
+ */
542
+ MULTI: 'multi'
543
+ }
544
+
545
+ /**
546
+ * Builds a string representation of an array-type actual parameter, according to the given collection format.
547
+ * @param {Array} param An array parameter.
548
+ * @param {module:finances_2024_06_19/ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.
549
+ * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
550
+ * <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
551
+ */
552
+ buildCollectionParam (param, collectionFormat) {
553
+ if (param == null) {
554
+ return null
555
+ }
556
+ switch (collectionFormat) {
557
+ case 'csv':
558
+ return param.map(this.paramToString).join(',')
559
+ case 'ssv':
560
+ return param.map(this.paramToString).join(' ')
561
+ case 'tsv':
562
+ return param.map(this.paramToString).join('\t')
563
+ case 'pipes':
564
+ return param.map(this.paramToString).join('|')
565
+ case 'multi':
566
+ // return the array directly as SuperAgent will handle it as expected
567
+ return param.map(this.paramToString)
568
+ default:
569
+ throw new Error('Unknown collection format: ' + collectionFormat)
570
+ }
571
+ }
572
+
573
+ /**
574
+ * Deserializes an HTTP response body into a value of the specified type.
575
+ * @param {Object} response A SuperAgent response object.
576
+ * @param {(String|Array<String>|Object<String, Object>|Function)} returnType The type to return. Pass a string for simple types
577
+ * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
578
+ * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
579
+ * all properties on <code>data<code> will be converted to this type.
580
+ * @returns A value of the specified type.
581
+ */
582
+ deserialize (response, returnType) {
583
+ if (response == null || returnType == null || response.status == 204) {
584
+ return null
585
+ }
586
+
587
+ // Rely on SuperAgent for parsing response body.
588
+ // See http://visionmedia.github.io/superagent/#parsing-response-bodies
589
+ let data = response.body
590
+ if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {
591
+ // SuperAgent does not always produce a body; use the unparsed response as a fallback
592
+ data = response.text
593
+ }
594
+
595
+ return ApiClient.convertToType(data, returnType)
596
+ }
597
+
598
+ /**
599
+ * Invokes the REST service using the supplied settings and parameters.
600
+ * @param {String} operation operation name.
601
+ * @param {String} path The base URL to invoke.
602
+ * @param {String} httpMethod The HTTP method to use.
603
+ * @param {Object<String, String>} pathParams A map of path parameters and their values.
604
+ * @param {Object<String, Object>} queryParams A map of query parameters and their values.
605
+ * @param {Object<String, Object>} headerParams A map of header parameters and their values.
606
+ * @param {Object<String, Object>} formParams A map of form parameters and their values.
607
+ * @param {Object} bodyParam The value to pass as the request body.
608
+ * @param {Array<String>} contentTypes An array of request MIME types.
609
+ * @param {Array<String>} accepts An array of acceptable response MIME types.
610
+ * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
611
+ * constructor for a complex type.
612
+ * @param {SuperagentRateLimiter} defaultRateLimiter The default rate limiter.
613
+ * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.
614
+ */
615
+ async callApi (operation, path, httpMethod, pathParams,
616
+ queryParams, headerParams, formParams, bodyParam, contentTypes, accepts,
617
+ returnType, defaultRateLimiter) {
618
+ const url = this.buildUrl(path, pathParams)
619
+ const request = superagent(httpMethod, url)
620
+ if (!this.#tokenForApiCall && !this.#lwaClient && !this.#rdtClient) {
621
+ throw new Error('none of accessToken, RDT token and auto-retrieval is set.')
622
+ }
623
+
624
+ if (this.#useRateLimiter) {
625
+ // Set rate limiter
626
+ if (this.#customizedRateLimiterMap.get(operation)) {
627
+ request.use(this.#customizedRateLimiterMap.get(operation).getPlugin())
628
+ } else if (defaultRateLimiter) {
629
+ request.use(defaultRateLimiter.getPlugin())
630
+ }
631
+ }
632
+
633
+ // set query parameters
634
+ if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
635
+ queryParams._ = new Date().getTime()
636
+ }
637
+
638
+ request.query(this.normalizeParams(queryParams))
639
+
640
+ // set header parameters
641
+ request.set(this.defaultHeaders).set(this.normalizeParams(headerParams))
642
+
643
+ // set x-amz-access-token header
644
+ if (this.#tokenForApiCall) {
645
+ // add custom header for SP-API call.
646
+ request.set({ 'x-amz-access-token': this.#tokenForApiCall })
647
+ } else if (this.#rdtClient) {
648
+ const rdt = await this.#rdtClient.retrieveRestrictedDataToken(httpMethod, url)
649
+ request.set({ 'x-amz-access-token': rdt })
650
+ } else if (this.#lwaClient) {
651
+ // execute token refresh.
652
+ const accessToken = await this.#lwaClient.retrieveAccessToken()
653
+ request.set({ 'x-amz-access-token': accessToken })
654
+ }
655
+
656
+ // set requestAgent if it is set by user
657
+ if (this.requestAgent) {
658
+ request.agent(this.requestAgent)
659
+ }
660
+
661
+ // set request timeout
662
+ request.timeout(this.timeout)
663
+
664
+ const contentType = this.jsonPreferredMime(contentTypes)
665
+ if (contentType) {
666
+ // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)
667
+ if (contentType != 'multipart/form-data') {
668
+ request.type(contentType)
669
+ }
670
+ } else if (!request.header['Content-Type']) {
671
+ request.type('application/json')
672
+ }
673
+
674
+ if (contentType === 'application/x-www-form-urlencoded') {
675
+ request.send(querystring.stringify(this.normalizeParams(formParams)))
676
+ } else if (contentType == 'multipart/form-data') {
677
+ const _formParams = this.normalizeParams(formParams)
678
+ for (const key in _formParams) {
679
+ if (_formParams.hasOwnProperty(key)) {
680
+ if (this.isFileParam(_formParams[key])) {
681
+ // file field
682
+ request.attach(key, _formParams[key])
683
+ } else {
684
+ request.field(key, _formParams[key])
685
+ }
686
+ }
687
+ }
688
+ } else if (bodyParam) {
689
+ request.send(bodyParam)
690
+ }
691
+
692
+ const accept = this.jsonPreferredMime(accepts)
693
+ if (accept) {
694
+ request.accept(accept)
695
+ }
696
+
697
+ if (returnType === 'Blob') {
698
+ request.responseType('blob')
699
+ } else if (returnType === 'String') {
700
+ request.responseType('string')
701
+ }
702
+
703
+ // Attach previously saved cookies, if enabled
704
+ if (this.enableCookies) {
705
+ if (typeof window === 'undefined') {
706
+ this.agent.attachCookies(request)
707
+ } else {
708
+ request.withCredentials()
709
+ }
710
+ }
711
+
712
+ return new Promise((resolve, reject) => {
713
+ request.end((error, response) => {
714
+ if (error) {
715
+ reject(error)
716
+ } else {
717
+ try {
718
+ const data = this.deserialize(response, returnType)
719
+ if (this.enableCookies && typeof window === 'undefined') {
720
+ this.agent.saveCookies(response)
721
+ }
722
+ resolve({ data, response })
723
+ } catch (err) {
724
+ reject(err)
725
+ }
726
+ }
727
+ })
728
+ })
729
+ }
730
+
731
+ /**
732
+ * Parses an ISO-8601 string representation of a date value.
733
+ * @param {String} str The date value as a string.
734
+ * @returns {Date} The parsed date object.
735
+ */
736
+ static parseDate (str) {
737
+ return new Date(str)
738
+ }
739
+
740
+ /**
741
+ * Converts a value to the specified type.
742
+ * @param {(String|Object)} data The data to convert, as a string or object.
743
+ * @param {(String|Array<String>|Object<String, Object>|Function)} type The type to return. Pass a string for simple types
744
+ * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
745
+ * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
746
+ * all properties on <code>data<code> will be converted to this type.
747
+ * @returns An instance of the specified type or null or undefined if data is null or undefined.
748
+ */
749
+ static convertToType (data, type) {
750
+ if (data === null || data === undefined) { return data }
751
+
752
+ switch (type) {
753
+ case 'Boolean':
754
+ return Boolean(data)
755
+ case 'Integer':
756
+ return parseInt(data, 10)
757
+ case 'Number':
758
+ return parseFloat(data)
759
+ case 'String':
760
+ return String(data)
761
+ case 'Date':
762
+ return ApiClient.parseDate(String(data))
763
+ case 'Blob':
764
+ return data
765
+ default:
766
+ if (type === Object) {
767
+ // generic object, return directly
768
+ return data
769
+ } else if (typeof type === 'function') {
770
+ // for model type like: User
771
+ return type.constructFromObject(data)
772
+ } else if (Array.isArray(type)) {
773
+ // for array type like: ['String']
774
+ const itemType = type[0]
775
+ return data.map((item) => {
776
+ return ApiClient.convertToType(item, itemType)
777
+ })
778
+ } else if (typeof type === 'object') {
779
+ // for plain object type like: {'String': 'Integer'}
780
+ let keyType, valueType
781
+ for (var k in type) {
782
+ if (type.hasOwnProperty(k)) {
783
+ keyType = k
784
+ valueType = type[k]
785
+ break
786
+ }
787
+ }
788
+
789
+ const result = {}
790
+ for (var k in data) {
791
+ if (data.hasOwnProperty(k)) {
792
+ const key = ApiClient.convertToType(k, keyType)
793
+ const value = ApiClient.convertToType(data[k], valueType)
794
+ result[key] = value
795
+ }
796
+ }
797
+
798
+ return result
799
+ } else {
800
+ // for unknown type, return the data directly
801
+ return data
802
+ }
803
+ }
804
+ }
805
+
806
+ /**
807
+ * Constructs a new map or array model from REST data.
808
+ * @param data {Object|Array} The REST data.
809
+ * @param obj {Object|Array} The target object or array.
810
+ */
811
+ static constructFromObject (data, obj, itemType) {
812
+ if (Array.isArray(data)) {
813
+ for (let i = 0; i < data.length; i++) {
814
+ if (data.hasOwnProperty(i)) { obj[i] = ApiClient.convertToType(data[i], itemType) }
815
+ }
816
+ } else {
817
+ for (const k in data) {
818
+ if (data.hasOwnProperty(k)) { obj[k] = ApiClient.convertToType(data[k], itemType) }
819
+ }
820
+ }
821
+ }
822
+ }
823
+ /**
824
+ * The default API client implementation.
825
+ * @type {module:finances_2024_06_19/ApiClient}
826
+ */
827
+ ApiClient.instance = new ApiClient()