python-amazon-sp-api 2.0.15__py3-none-any.whl → 2.1.3__py3-none-any.whl

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 (214) hide show
  1. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/METADATA +7 -7
  2. python_amazon_sp_api-2.1.3.dist-info/RECORD +350 -0
  3. sp_api/__version__.py +1 -1
  4. sp_api/api/__init__.py +160 -4
  5. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +85 -110
  6. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +456 -0
  7. sp_api/api/aplus_content/aplus_content.py +176 -125
  8. sp_api/api/application_integrations/application_integrations.py +59 -68
  9. sp_api/api/application_management/application_management.py +20 -13
  10. sp_api/api/authorization/authorization.py +8 -26
  11. sp_api/api/catalog/catalog.py +27 -61
  12. sp_api/api/catalog_items/catalog_items.py +108 -78
  13. sp_api/api/catalog_items/catalog_items_2020_12_01.py +86 -0
  14. sp_api/api/catalog_items/catalog_items_2022_04_01.py +89 -0
  15. sp_api/api/customer_feedback/customer_feedback.py +100 -0
  16. sp_api/api/data_kiosk/data_kiosk.py +80 -75
  17. sp_api/api/delivery_by_amazon/__init__.py +0 -0
  18. sp_api/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  19. sp_api/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +81 -0
  20. sp_api/api/easy_ship/easy_ship.py +121 -111
  21. sp_api/api/external_fulfillment/external_fulfillment.py +211 -434
  22. sp_api/api/external_fulfillment/inventory.py +120 -0
  23. sp_api/api/external_fulfillment/inventory_2021_01_06.py +71 -0
  24. sp_api/api/external_fulfillment/inventory_2024_09_11.py +96 -0
  25. sp_api/api/external_fulfillment/returns.py +120 -0
  26. sp_api/api/external_fulfillment/returns_2021_08_19.py +88 -0
  27. sp_api/api/external_fulfillment/returns_2024_09_11.py +141 -0
  28. sp_api/api/external_fulfillment/shipping.py +120 -0
  29. sp_api/api/external_fulfillment/shipping_2021_01_06.py +256 -0
  30. sp_api/api/external_fulfillment/shipping_2024_09_11.py +233 -0
  31. sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +30 -24
  32. sp_api/api/fba_small_and_light/fba_small_and_light.py +60 -99
  33. sp_api/api/feeds/feeds.py +75 -245
  34. sp_api/api/feeds/feeds_2021_06_30.py +320 -0
  35. sp_api/api/finances/finances.py +123 -90
  36. sp_api/api/finances/finances_2024_06_01.py +71 -0
  37. sp_api/api/finances/finances_2024_06_19.py +114 -0
  38. sp_api/api/finances/finances_v0.py +116 -0
  39. sp_api/api/fulfillment_inbound/fulfillment_inbound.py +107 -1784
  40. sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1722 -0
  41. sp_api/api/fulfillment_inbound/fulfillment_inbound_v0.py +1384 -0
  42. sp_api/api/fulfillment_outbound/fulfillment_outbound.py +256 -480
  43. sp_api/api/inventories/inventories.py +79 -42
  44. sp_api/api/invoices/__init__.py +0 -0
  45. sp_api/api/invoices/invoices.py +92 -0
  46. sp_api/api/invoices/invoices_2024_06_19.py +344 -0
  47. sp_api/api/listings_items/listings_items.py +110 -163
  48. sp_api/api/listings_items/listings_items_2020_09_01.py +189 -0
  49. sp_api/api/listings_items/listings_items_2021_08_01.py +233 -0
  50. sp_api/api/listings_restrictions/listings_restrictions.py +23 -10
  51. sp_api/api/merchant_fulfillment/merchant_fulfillment.py +107 -222
  52. sp_api/api/messaging/messaging.py +184 -198
  53. sp_api/api/notifications/notifications.py +144 -106
  54. sp_api/api/orders/orders.py +9 -46
  55. sp_api/api/orders/orders_2026_01_01.py +19 -65
  56. sp_api/api/orders/orders_v0.py +152 -184
  57. sp_api/api/product_fees/product_fees.py +101 -75
  58. sp_api/api/product_type_definitions/product_type_definitions.py +47 -36
  59. sp_api/api/products/products.py +94 -386
  60. sp_api/api/products/products_2022_05_01.py +96 -0
  61. sp_api/api/products/products_v0.py +389 -0
  62. sp_api/api/replenishment/replenishment.py +58 -69
  63. sp_api/api/reports/reports.py +124 -157
  64. sp_api/api/sales/sales.py +22 -39
  65. sp_api/api/seller_wallet/__init__.py +0 -0
  66. sp_api/api/seller_wallet/seller_wallet.py +92 -0
  67. sp_api/api/seller_wallet/seller_wallet_2024_03_01.py +300 -0
  68. sp_api/api/sellers/sellers.py +15 -35
  69. sp_api/api/services/services.py +479 -82
  70. sp_api/api/shipment_invoicing/__init__.py +0 -0
  71. sp_api/api/shipment_invoicing/shipment_invoicing.py +92 -0
  72. sp_api/api/shipment_invoicing/shipment_invoicing_v0.py +101 -0
  73. sp_api/api/shipping/shipping.py +94 -440
  74. sp_api/api/shipping/shippingV2.py +183 -474
  75. sp_api/api/shipping/shipping_v1.py +330 -0
  76. sp_api/api/shipping/shipping_v2.py +723 -0
  77. sp_api/api/solicitations/solicitations.py +28 -18
  78. sp_api/api/supply_sources/supply_sources.py +67 -57
  79. sp_api/api/tokens/tokens.py +14 -35
  80. sp_api/api/vehicles/__init__.py +0 -0
  81. sp_api/api/vehicles/vehicles.py +92 -0
  82. sp_api/api/vehicles/vehicles_2024_11_01.py +33 -0
  83. sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  84. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +116 -189
  85. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +114 -0
  86. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +114 -0
  87. sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  88. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  89. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  90. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +50 -0
  91. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +122 -624
  92. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +390 -0
  93. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +320 -0
  94. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +113 -29
  95. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +47 -0
  96. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +47 -0
  97. sp_api/api/vendor_invoices/vendor_invoices.py +15 -264
  98. sp_api/api/vendor_orders/vendor_orders.py +83 -131
  99. sp_api/api/vendor_shipments/vendor_shipments.py +149 -68
  100. sp_api/api/vendor_transaction_status/vendor_transaction_status.py +16 -11
  101. sp_api/asyncio/api/__init__.py +159 -4
  102. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +84 -110
  103. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +457 -0
  104. sp_api/asyncio/api/aplus_content/aplus_content.py +176 -125
  105. sp_api/asyncio/api/application_integrations/application_integrations.py +59 -68
  106. sp_api/asyncio/api/application_management/application_management.py +20 -13
  107. sp_api/asyncio/api/authorization/authorization.py +8 -26
  108. sp_api/asyncio/api/catalog/catalog.py +27 -61
  109. sp_api/asyncio/api/catalog_items/catalog_items.py +94 -71
  110. sp_api/asyncio/api/catalog_items/catalog_items_2020_12_01.py +87 -0
  111. sp_api/asyncio/api/catalog_items/catalog_items_2022_04_01.py +90 -0
  112. sp_api/asyncio/api/customer_feedback/customer_feedback.py +100 -0
  113. sp_api/asyncio/api/data_kiosk/data_kiosk.py +80 -75
  114. sp_api/asyncio/api/delivery_by_amazon/__init__.py +0 -0
  115. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  116. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +82 -0
  117. sp_api/asyncio/api/easy_ship/easy_ship.py +121 -111
  118. sp_api/asyncio/api/external_fulfillment/external_fulfillment.py +212 -435
  119. sp_api/asyncio/api/external_fulfillment/inventory.py +126 -0
  120. sp_api/asyncio/api/external_fulfillment/inventory_2021_01_06.py +73 -0
  121. sp_api/asyncio/api/external_fulfillment/inventory_2024_09_11.py +98 -0
  122. sp_api/asyncio/api/external_fulfillment/returns.py +124 -0
  123. sp_api/asyncio/api/external_fulfillment/returns_2021_08_19.py +90 -0
  124. sp_api/asyncio/api/external_fulfillment/returns_2024_09_11.py +143 -0
  125. sp_api/asyncio/api/external_fulfillment/shipping.py +124 -0
  126. sp_api/asyncio/api/external_fulfillment/shipping_2021_01_06.py +258 -0
  127. sp_api/asyncio/api/external_fulfillment/shipping_2024_09_11.py +235 -0
  128. sp_api/asyncio/api/fba_inbound_eligibility/fba_inbound_eligibility.py +31 -25
  129. sp_api/asyncio/api/fba_small_and_light/fba_small_and_light.py +61 -100
  130. sp_api/asyncio/api/feeds/feeds.py +75 -243
  131. sp_api/asyncio/api/feeds/feeds_2021_06_30.py +318 -0
  132. sp_api/asyncio/api/finances/finances.py +123 -91
  133. sp_api/asyncio/api/finances/finances_2024_06_01.py +72 -0
  134. sp_api/asyncio/api/finances/finances_2024_06_19.py +115 -0
  135. sp_api/asyncio/api/finances/finances_v0.py +117 -0
  136. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound.py +107 -1785
  137. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1723 -0
  138. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_v0.py +1385 -0
  139. sp_api/asyncio/api/fulfillment_outbound/fulfillment_outbound.py +257 -481
  140. sp_api/asyncio/api/inventories/inventories.py +79 -42
  141. sp_api/asyncio/api/invoices/__init__.py +0 -0
  142. sp_api/asyncio/api/invoices/invoices.py +92 -0
  143. sp_api/asyncio/api/invoices/invoices_2024_06_19.py +345 -0
  144. sp_api/asyncio/api/listings_items/listings_items.py +109 -163
  145. sp_api/asyncio/api/listings_items/listings_items_2020_09_01.py +190 -0
  146. sp_api/asyncio/api/listings_items/listings_items_2021_08_01.py +233 -0
  147. sp_api/asyncio/api/listings_restrictions/listings_restrictions.py +23 -10
  148. sp_api/asyncio/api/merchant_fulfillment/merchant_fulfillment.py +110 -222
  149. sp_api/asyncio/api/messaging/messaging.py +185 -199
  150. sp_api/asyncio/api/notifications/notifications.py +145 -107
  151. sp_api/asyncio/api/orders/orders.py +9 -46
  152. sp_api/asyncio/api/orders/orders_2026_01_01.py +19 -65
  153. sp_api/asyncio/api/orders/orders_v0.py +152 -184
  154. sp_api/asyncio/api/product_fees/product_fees.py +101 -75
  155. sp_api/asyncio/api/product_type_definitions/product_type_definitions.py +47 -36
  156. sp_api/asyncio/api/products/products.py +94 -387
  157. sp_api/asyncio/api/products/products_2022_05_01.py +109 -0
  158. sp_api/asyncio/api/products/products_v0.py +388 -0
  159. sp_api/asyncio/api/replenishment/replenishment.py +59 -70
  160. sp_api/asyncio/api/reports/reports.py +124 -157
  161. sp_api/asyncio/api/sales/sales.py +22 -39
  162. sp_api/asyncio/api/seller_wallet/__init__.py +0 -0
  163. sp_api/asyncio/api/seller_wallet/seller_wallet.py +92 -0
  164. sp_api/asyncio/api/seller_wallet/seller_wallet_2024_03_01.py +301 -0
  165. sp_api/asyncio/api/sellers/sellers.py +16 -36
  166. sp_api/asyncio/api/services/services.py +479 -82
  167. sp_api/asyncio/api/shipment_invoicing/__init__.py +0 -0
  168. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing.py +92 -0
  169. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing_v0.py +102 -0
  170. sp_api/asyncio/api/shipping/shipping.py +94 -441
  171. sp_api/asyncio/api/shipping/shippingV2.py +181 -472
  172. sp_api/asyncio/api/shipping/shipping_v1.py +331 -0
  173. sp_api/asyncio/api/shipping/shipping_v2.py +717 -0
  174. sp_api/asyncio/api/solicitations/solicitations.py +29 -19
  175. sp_api/asyncio/api/supply_sources/supply_sources.py +67 -57
  176. sp_api/asyncio/api/tokens/tokens.py +14 -35
  177. sp_api/asyncio/api/vehicles/__init__.py +0 -0
  178. sp_api/asyncio/api/vehicles/vehicles.py +92 -0
  179. sp_api/asyncio/api/vehicles/vehicles_2024_11_01.py +34 -0
  180. sp_api/asyncio/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  181. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +120 -192
  182. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +116 -0
  183. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +115 -0
  184. sp_api/asyncio/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  185. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  186. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  187. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +51 -0
  188. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +120 -623
  189. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +392 -0
  190. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +321 -0
  191. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +112 -29
  192. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +49 -0
  193. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +48 -0
  194. sp_api/asyncio/api/vendor_invoices/vendor_invoices.py +16 -265
  195. sp_api/asyncio/api/vendor_orders/vendor_orders.py +84 -132
  196. sp_api/asyncio/api/vendor_shipments/vendor_shipments.py +150 -69
  197. sp_api/asyncio/api/vendor_transaction_status/vendor_transaction_status.py +17 -12
  198. sp_api/asyncio/base/client.py +2 -2
  199. sp_api/asyncio/util/load_date_bound.py +1 -1
  200. sp_api/base/__init__.py +10 -0
  201. sp_api/base/_core.py +2 -2
  202. sp_api/base/client.py +3 -3
  203. sp_api/base/helpers.py +12 -1
  204. sp_api/base/marketplaces.py +6 -3
  205. sp_api/util/__init__.py +2 -0
  206. sp_api/util/load_date_bound.py +1 -1
  207. sp_api/util/versioned_client.py +45 -0
  208. python_amazon_sp_api-2.0.15.dist-info/RECORD +0 -255
  209. sp_api/asyncio/api/models/__init__.py +0 -4
  210. sp_api/asyncio/api/overrides/__init__.py +0 -1
  211. {python_amazon_sp_api-2.0.15.data → python_amazon_sp_api-2.1.3.data}/scripts/make_endpoint +0 -0
  212. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/WHEEL +0 -0
  213. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/licenses/LICENSE +0 -0
  214. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/top_level.txt +0 -0
@@ -16,7 +16,22 @@ class CustomerFeedback(AsyncBaseClient):
16
16
  self, asin, *args, **kwargs
17
17
  ) -> ApiResponse:
18
18
  """
19
+ get_item_review_topics(self, asin, *args, **kwargs) -> ApiResponse
20
+
19
21
  Retrieve an item's ten most positive and ten most negative review topics.
22
+
23
+ Examples:
24
+ literal blocks::
25
+
26
+ await CustomerFeedback().get_item_review_topics("value")
27
+
28
+ Args:
29
+ asin: object | required The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. The value must be a child ASIN.
30
+ key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
31
+ key sortBy: object | required The metric by which to sort data in the response.
32
+
33
+ Returns:
34
+ ApiResponse
20
35
  """
21
36
 
22
37
  return await self._request(
@@ -26,7 +41,21 @@ class CustomerFeedback(AsyncBaseClient):
26
41
  @sp_endpoint("/customerFeedback/2024-06-01/items/{}/browseNode", method="GET")
27
42
  async def get_item_browse_node(self, asin, *args, **kwargs) -> ApiResponse:
28
43
  """
44
+ get_item_browse_node(self, asin, *args, **kwargs) -> ApiResponse
45
+
29
46
  This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
47
+
48
+ Examples:
49
+ literal blocks::
50
+
51
+ await CustomerFeedback().get_item_browse_node("value")
52
+
53
+ Args:
54
+ asin: object | required The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace.
55
+ key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
56
+
57
+ Returns:
58
+ ApiResponse
30
59
  """
31
60
 
32
61
  return await self._request(
@@ -42,7 +71,22 @@ class CustomerFeedback(AsyncBaseClient):
42
71
  self, browseNodeId, *args, **kwargs
43
72
  ) -> ApiResponse:
44
73
  """
74
+ get_browse_node_review_topics(self, browseNodeId, *args, **kwargs) -> ApiResponse
75
+
45
76
  Retrieve a browse node's ten most positive and ten most negative review topics.
77
+
78
+ Examples:
79
+ literal blocks::
80
+
81
+ await CustomerFeedback().get_browse_node_review_topics("value")
82
+
83
+ Args:
84
+ browseNodeId: object | required The ID of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
85
+ key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
86
+ key sortBy: object | required The metric by which to sort the data in the response.
87
+
88
+ Returns:
89
+ ApiResponse
46
90
  """
47
91
 
48
92
  return await self._request(
@@ -57,7 +101,21 @@ class CustomerFeedback(AsyncBaseClient):
57
101
  self, asin, *args, **kwargs
58
102
  ) -> ApiResponse:
59
103
  """
104
+ get_item_review_trends(self, asin, *args, **kwargs) -> ApiResponse
105
+
60
106
  Retrieve an item's positive and negative review trends for the past six months.
107
+
108
+ Examples:
109
+ literal blocks::
110
+
111
+ await CustomerFeedback().get_item_review_trends("value")
112
+
113
+ Args:
114
+ asin: object | required The Amazon Standard Identification Number (ASIN) is the unique identifier of a product within a marketplace. This API takes child ASIN as an input.
115
+ key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
116
+
117
+ Returns:
118
+ ApiResponse
61
119
  """
62
120
 
63
121
  return await self._request(
@@ -73,7 +131,21 @@ class CustomerFeedback(AsyncBaseClient):
73
131
  self, browseNodeId, *args, **kwargs
74
132
  ) -> ApiResponse:
75
133
  """
134
+ get_browse_node_review_trends(self, browseNodeId, *args, **kwargs) -> ApiResponse
135
+
76
136
  Retrieve the positive and negative review trends of items in a browse node for the past six months.
137
+
138
+ Examples:
139
+ literal blocks::
140
+
141
+ await CustomerFeedback().get_browse_node_review_trends("value")
142
+
143
+ Args:
144
+ browseNodeId: object | required A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
145
+ key marketplaceId: object | required The marketplace ID is the globally unique identifier of a marketplace. For more information, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
146
+
147
+ Returns:
148
+ ApiResponse
77
149
  """
78
150
 
79
151
  return await self._request(
@@ -88,7 +160,21 @@ class CustomerFeedback(AsyncBaseClient):
88
160
  self, browseNodeId, *args, **kwargs
89
161
  ) -> ApiResponse:
90
162
  """
163
+ get_browse_node_return_topics(self, browseNodeId, *args, **kwargs) -> ApiResponse
164
+
91
165
  Retrieve the topics that customers mention when they return items in a browse node.
166
+
167
+ Examples:
168
+ literal blocks::
169
+
170
+ await CustomerFeedback().get_browse_node_return_topics("value")
171
+
172
+ Args:
173
+ browseNodeId: object | required A browse node ID is a unique identifier for a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
174
+ key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
175
+
176
+ Returns:
177
+ ApiResponse
92
178
  """
93
179
 
94
180
  return await self._request(
@@ -103,7 +189,21 @@ class CustomerFeedback(AsyncBaseClient):
103
189
  self, browseNodeId, *args, **kwargs
104
190
  ) -> ApiResponse:
105
191
  """
192
+ get_browse_node_return_trends(self, browseNodeId, *args, **kwargs) -> ApiResponse
193
+
106
194
  Retrieve the trends of topics that customers mention when they return items in a browse node.
195
+
196
+ Examples:
197
+ literal blocks::
198
+
199
+ await CustomerFeedback().get_browse_node_return_trends("value")
200
+
201
+ Args:
202
+ browseNodeId: object | required A browse node ID is a unique identifier of a browse node. A browse node is a named location in a browse tree that is used for navigation, product classification, and website content.
203
+ key marketplaceId: object | required The MarketplaceId is the globally unique identifier of a marketplace, you can refer to the marketplaceId here : https://developer-docs.amazon.com/sp-api/docs/marketplace-ids.
204
+
205
+ Returns:
206
+ ApiResponse
107
207
  """
108
208
 
109
209
  return await self._request(
@@ -18,35 +18,33 @@ class DataKiosk(AsyncBaseClient):
18
18
  async def get_queries(self, **kwargs) -> ApiResponse:
19
19
  """
20
20
  get_queries(self, **kwargs) -> ApiResponse
21
-
21
+
22
22
  Returns details for the Data Kiosk queries that match the specified filters. See the `createQuery` operation for details about query retention.
23
-
23
+
24
24
  **Usage Plan:**
25
-
25
+
26
26
  ====================================== ==============
27
27
  Rate (requests per second) Burst
28
28
  ====================================== ==============
29
29
  0.0222 10
30
30
  ====================================== ==============
31
-
32
-
33
- The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
34
-
31
+
32
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
33
+
34
+ Examples:
35
+ literal blocks::
36
+
37
+ await DataKiosk().get_queries()
38
+
35
39
  Args:
36
-
37
- key processingStatuses:array | A list of processing statuses used to filter queries.
38
-
39
- key pageSize:integer | The maximum number of queries to return in a single call.
40
-
41
- key createdSince:string | The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago.
42
-
43
- key createdUntil:string | The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request.
44
-
45
- key paginationToken:string | A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results.
46
-
47
-
40
+ key processingStatuses: object | A list of processing statuses used to filter queries.
41
+ key pageSize: object | The maximum number of queries to return in a single call.
42
+ key createdSince: object | The earliest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is 90 days ago.
43
+ key createdUntil: object | The latest query creation date and time for queries to include in the response, in ISO 8601 date time format. The default is the time of the `getQueries` request.
44
+ key paginationToken: object | A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results.
45
+
48
46
  Returns:
49
- ApiResponse:
47
+ ApiResponse
50
48
  """
51
49
 
52
50
  return await self._request(
@@ -58,31 +56,32 @@ class DataKiosk(AsyncBaseClient):
58
56
  @sp_endpoint("/dataKiosk/2023-11-15/queries", method="POST")
59
57
  async def create_query(self, query, pagination_token=None, **kwargs) -> ApiResponse:
60
58
  """
61
- create_query(self, query, pagination_token=None, **kwargs) -> ApiResponse
62
-
59
+ create_query(self, query, pagination_token, **kwargs) -> ApiResponse
60
+
63
61
  Creates a Data Kiosk query request.
64
-
62
+
65
63
  **Note:** The retention of a query varies based on the fields requested. Each field within a schema is annotated with a `@resultRetention` directive that defines how long a query containing that field will be retained. When a query contains multiple fields with different retentions, the shortest (minimum) retention is applied. The retention of a query's resulting documents always matches the retention of the query.
66
-
64
+
67
65
  **Usage Plan:**
68
-
66
+
69
67
  ====================================== ==============
70
68
  Rate (requests per second) Burst
71
69
  ====================================== ==============
72
70
  0.0167 15
73
71
  ====================================== ==============
74
-
75
-
76
- The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
77
-
72
+
73
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
74
+
75
+ Examples:
76
+ literal blocks::
77
+
78
+ await DataKiosk().create_query("value", "value")
79
+
78
80
  Args:
79
-
80
- query:string | * REQUIRED The query to submit. The query must be a valid GraphQL query in the schema specified by the `schema` parameter.
81
- pagination_token:string | A token to fetch a certain page of results when there are multiple pages of results available. The value of this token is fetched from the `pagination.nextToken` field returned in the `GetQueriesResponse` object. All other parameters must be provided with the same values that were provided with the request that generated this token, with the exception of `pageSize` which can be modified between calls to `getQueries`. In the absence of this token value, `getQueries` returns the first page of results.
82
-
83
-
81
+ body: CreateQuerySpecification | required The body of the request.
82
+
84
83
  Returns:
85
- ApiResponse:
84
+ ApiResponse
86
85
  """
87
86
  kwargs["query"] = query
88
87
  if pagination_token:
@@ -96,27 +95,30 @@ class DataKiosk(AsyncBaseClient):
96
95
  @sp_endpoint("/dataKiosk/2023-11-15/queries/{}", method="DELETE")
97
96
  async def cancel_query(self, query_id, **kwargs) -> ApiResponse:
98
97
  """
99
- cancel_query(self, queryId, **kwargs) -> ApiResponse
100
-
98
+ cancel_query(self, query_id, **kwargs) -> ApiResponse
99
+
101
100
  Cancels the query specified by the `queryId` parameter. Only queries with a non-terminal `processingStatus` (`IN_QUEUE`, `IN_PROGRESS`) can be cancelled. Cancelling a query that already has a `processingStatus` of `CANCELLED` will no-op. Cancelled queries are returned in subsequent calls to the `getQuery` and `getQueries` operations.
102
-
101
+
103
102
  **Usage Plan:**
104
-
103
+
105
104
  ====================================== ==============
106
105
  Rate (requests per second) Burst
107
106
  ====================================== ==============
108
107
  0.0222 10
109
108
  ====================================== ==============
110
-
111
- The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
112
-
109
+
110
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
111
+
112
+ Examples:
113
+ literal blocks::
114
+
115
+ await DataKiosk().cancel_query("value")
116
+
113
117
  Args:
114
-
115
- query_id:string | * REQUIRED The identifier for the query. This identifier is unique only in combination with a selling partner account ID.
116
-
117
-
118
+ queryId: object | required The identifier for the query. This identifier is unique only in combination with a selling partner account ID.
119
+
118
120
  Returns:
119
- ApiResponse:
121
+ ApiResponse
120
122
  """
121
123
 
122
124
  return await self._request(
@@ -128,27 +130,30 @@ class DataKiosk(AsyncBaseClient):
128
130
  @sp_endpoint("/dataKiosk/2023-11-15/queries/{}", method="GET")
129
131
  async def get_query(self, query_id, **kwargs) -> ApiResponse:
130
132
  """
131
- get_query(self, queryId, **kwargs) -> ApiResponse
132
-
133
+ get_query(self, query_id, **kwargs) -> ApiResponse
134
+
133
135
  Returns query details for the query specified by the `queryId` parameter. See the `createQuery` operation for details about query retention.
134
-
136
+
135
137
  **Usage Plan:**
136
-
138
+
137
139
  ====================================== ==============
138
140
  Rate (requests per second) Burst
139
141
  ====================================== ==============
140
- 2 15
142
+ 2.0 15
141
143
  ====================================== ==============
142
-
143
- The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
144
-
144
+
145
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
146
+
147
+ Examples:
148
+ literal blocks::
149
+
150
+ await DataKiosk().get_query("value")
151
+
145
152
  Args:
146
-
147
- query_id:string | * REQUIRED The query identifier.
148
-
149
-
153
+ queryId: object | required The query identifier.
154
+
150
155
  Returns:
151
- ApiResponse:
156
+ ApiResponse
152
157
  """
153
158
 
154
159
  return await self._request(
@@ -167,30 +172,30 @@ class DataKiosk(AsyncBaseClient):
167
172
  **kwargs
168
173
  ) -> ApiResponse:
169
174
  """
170
- get_document(self, document_id, download: bool = False, file: Union[BytesIO, str, BinaryIO, TextIO] = None, encoding='utf-8', **kwargs) -> ApiResponse
171
-
175
+ get_document(self, document_id, download, file, encoding, **kwargs) -> ApiResponse
176
+
172
177
  Returns the information required for retrieving a Data Kiosk document's contents. See the `createQuery` operation for details about document retention.
173
-
178
+
174
179
  **Usage Plan:**
175
-
180
+
176
181
  ====================================== ==============
177
182
  Rate (requests per second) Burst
178
183
  ====================================== ==============
179
184
  0.0167 15
180
185
  ====================================== ==============
181
-
182
- The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
183
-
186
+
187
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
188
+
189
+ Examples:
190
+ literal blocks::
191
+
192
+ await DataKiosk().get_document("value", "value", "value", "value")
193
+
184
194
  Args:
185
-
186
- document_id:string | * REQUIRED The identifier for the Data Kiosk document.
187
- file: | * OPTIONAL The file to write the response to.
188
- download: | * OPTIONAL If True, the file will be downloaded and returned in the payload.
189
- encoding: | * OPTIONAL The encoding to use when writing the file. Defaults to utf-8, binary data is written if applicable filemode is passed.
190
-
191
-
195
+ documentId: object | required The identifier for the Data Kiosk document.
196
+
192
197
  Returns:
193
- ApiResponse:
198
+ ApiResponse
194
199
  """
195
200
 
196
201
  res = await self._request(
File without changes
@@ -0,0 +1,92 @@
1
+ from __future__ import annotations
2
+
3
+ import enum
4
+ from typing import Any, Literal, TYPE_CHECKING, overload
5
+ from sp_api.util.versioned_client import VersionedClientMeta
6
+
7
+ from sp_api.asyncio.base import AsyncBaseClient
8
+
9
+ from .delivery_by_amazon_2022_07_01 import DeliveryByAmazonV20220701
10
+
11
+
12
+ class DeliveryByAmazonVersion(str, enum.Enum):
13
+ V_2022_07_01 = "2022-07-01"
14
+ LATEST = "2022-07-01"
15
+
16
+
17
+ if TYPE_CHECKING:
18
+
19
+ class _DeliveryByAmazonMeta(VersionedClientMeta):
20
+ @overload
21
+ def __call__(
22
+ cls,
23
+ *args: Any,
24
+ version: Literal[DeliveryByAmazonVersion.V_2022_07_01, DeliveryByAmazonVersion.LATEST, "2022-07-01"],
25
+ **kwargs: Any,
26
+ ) -> DeliveryByAmazonV20220701: ...
27
+
28
+ @overload
29
+ def __call__(
30
+ cls,
31
+ *args: Any,
32
+ version: None = None,
33
+ **kwargs: Any,
34
+ ) -> DeliveryByAmazonV20220701: ...
35
+
36
+ @overload
37
+ def __call__(
38
+ cls,
39
+ *args: Any,
40
+ version: str | DeliveryByAmazonVersion,
41
+ **kwargs: Any,
42
+ ) -> AsyncBaseClient: ...
43
+
44
+
45
+ else:
46
+ _DeliveryByAmazonMeta = VersionedClientMeta
47
+
48
+
49
+ class DeliveryByAmazon(AsyncBaseClient, metaclass=_DeliveryByAmazonMeta):
50
+ """DeliveryByAmazon API client.
51
+
52
+ This class dispatches to a versioned DeliveryByAmazon API client.
53
+
54
+ If you do not pass a version, the constructor returns the oldest supported implementation ("2022-07-01").
55
+ """
56
+
57
+ if TYPE_CHECKING:
58
+ @overload
59
+ def __new__(
60
+ cls,
61
+ *args: Any,
62
+ version: Literal[DeliveryByAmazonVersion.V_2022_07_01, DeliveryByAmazonVersion.LATEST, "2022-07-01"],
63
+ **kwargs: Any,
64
+ ) -> DeliveryByAmazonV20220701: ...
65
+
66
+ @overload
67
+ def __new__(
68
+ cls,
69
+ *args: Any,
70
+ version: None = None,
71
+ **kwargs: Any,
72
+ ) -> DeliveryByAmazonV20220701: ...
73
+
74
+ @overload
75
+ def __new__(
76
+ cls,
77
+ *args: Any,
78
+ version: str | DeliveryByAmazonVersion,
79
+ **kwargs: Any,
80
+ ) -> AsyncBaseClient: ...
81
+
82
+ _DISPATCH = True
83
+
84
+ _DEFAULT_VERSION = "2022-07-01"
85
+
86
+ _VERSION_MAP = {
87
+ "2022-07-01": DeliveryByAmazonV20220701,
88
+ }
89
+
90
+ _VERSION_ALIASES = {
91
+ "2022-07-01": "2022-07-01",
92
+ }
@@ -0,0 +1,82 @@
1
+ from sp_api.base import ApiResponse, sp_endpoint, fill_query_params
2
+ from sp_api.asyncio.base import AsyncBaseClient
3
+
4
+
5
+ class DeliveryByAmazonV20220701(AsyncBaseClient):
6
+ """
7
+ DeliveryByAmazon SP-API Client
8
+ :link:
9
+
10
+ The Selling Partner API for Delivery Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s orders.
11
+ """
12
+
13
+ @sp_endpoint("/delivery/2022-07-01/invoice", method="POST")
14
+ async def submit_invoice(self, **kwargs) -> ApiResponse:
15
+ """
16
+ submit_invoice(self, **kwargs) -> ApiResponse
17
+
18
+ Submits a shipment invoice for a given order or shipment. You must specify either an `orderId` or `shipmentId` as query parameter. If both parameters are supplied, `orderId` takes precedence over `shipmentId`.
19
+
20
+ **Usage Plan:**
21
+
22
+ ====================================== ==============
23
+ Rate (requests per second) Burst
24
+ ====================================== ==============
25
+ 1.133 25
26
+ ====================================== ==============
27
+
28
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
29
+
30
+ Examples:
31
+ literal blocks::
32
+
33
+ await DeliveryByAmazonV20220701().submit_invoice()
34
+
35
+ Args:
36
+ key orderId: object | The identifier for the order.
37
+ key shipmentId: object | The identifier for the shipment.
38
+ body: SubmitInvoiceRequest | required The request body that specifies invoice, program and marketplace values.
39
+
40
+ Returns:
41
+ ApiResponse
42
+ """
43
+ params = {}
44
+ if "orderId" in kwargs:
45
+ params["orderId"] = kwargs.pop("orderId")
46
+ if "shipmentId" in kwargs:
47
+ params["shipmentId"] = kwargs.pop("shipmentId")
48
+ return await self._request(kwargs.pop("path"), params=params, data=kwargs, add_marketplace=False)
49
+
50
+ @sp_endpoint("/delivery/2022-07-01/invoice/status", method="GET")
51
+ async def get_invoice_status(self, **kwargs) -> ApiResponse:
52
+ """
53
+ get_invoice_status(self, **kwargs) -> ApiResponse
54
+
55
+ Returns the invoice status for the order or shipment you specify. You must specify either an `orderId` or `shipmentId` as query parameter. If both parameters are supplied, `orderId` takes precedence over `shipmentId`.
56
+
57
+ **Usage Plan:**
58
+
59
+ ====================================== ==============
60
+ Rate (requests per second) Burst
61
+ ====================================== ==============
62
+ 1.133 25
63
+ ====================================== ==============
64
+
65
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
66
+
67
+ Examples:
68
+ literal blocks::
69
+
70
+ await DeliveryByAmazonV20220701().get_invoice_status()
71
+
72
+ Args:
73
+ key orderId: object | The order identifier.
74
+ key shipmentId: object | The shipment identifier.
75
+ key marketplaceId: object | required The marketplace identifier.
76
+ key invoiceType: object | required The invoice's type.
77
+ key programType: object | required The Amazon program that seller is currently enrolled.
78
+
79
+ Returns:
80
+ ApiResponse
81
+ """
82
+ return await self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)