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
@@ -17,25 +17,30 @@ class Solicitations(Client):
17
17
  ) -> ApiResponse:
18
18
  """
19
19
  get_solicitation_actions_for_order(self, amazonOrderId, **kwargs) -> ApiResponse
20
-
20
+
21
21
  Returns a list of solicitation types that are available for an order that you specify. A solicitation type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a solicitation. Currently only the productReviewAndSellerFeedbackSolicitation solicitation type is available.
22
-
22
+
23
23
  **Usage Plan:**
24
-
24
+
25
25
  ====================================== ==============
26
26
  Rate (requests per second) Burst
27
27
  ====================================== ==============
28
28
  1 5
29
29
  ====================================== ==============
30
-
30
+
31
31
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
32
-
32
+
33
+ Examples:
34
+ literal blocks::
35
+
36
+ Solicitations().get_solicitation_actions_for_order("value")
37
+
33
38
  Args:
34
- amazonOrderId:string | * REQUIRED An Amazon order identifier. This specifies the order for which you want a list of available solicitation types.
35
- key marketplaceIds:array | * REQUIRED A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
36
-
39
+ amazonOrderId: object | required An Amazon order identifier. This specifies the order for which you want a list of available solicitation types.
40
+ key marketplaceIds: object | required A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
41
+
37
42
  Returns:
38
- ApiResponse:
43
+ ApiResponse
39
44
  """
40
45
 
41
46
  return self._request(
@@ -51,25 +56,30 @@ class Solicitations(Client):
51
56
  ) -> ApiResponse:
52
57
  """
53
58
  create_product_review_and_seller_feedback_solicitation(self, amazonOrderId, **kwargs) -> ApiResponse
54
-
59
+
55
60
  Sends a solicitation to a buyer asking for seller feedback and a product review for the specified order. Send only one productReviewAndSellerFeedback or free form proactive message per order.
56
-
61
+
57
62
  **Usage Plan:**
58
-
63
+
59
64
  ====================================== ==============
60
65
  Rate (requests per second) Burst
61
66
  ====================================== ==============
62
67
  1 5
63
68
  ====================================== ==============
64
-
69
+
65
70
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
66
-
71
+
72
+ Examples:
73
+ literal blocks::
74
+
75
+ Solicitations().create_product_review_and_seller_feedback_solicitation("value")
76
+
67
77
  Args:
68
- amazonOrderId:string | * REQUIRED An Amazon order identifier. This specifies the order for which a solicitation is sent.
69
- key marketplaceIds:array | * REQUIRED A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
70
-
78
+ amazonOrderId: object | required An Amazon order identifier. This specifies the order for which a solicitation is sent.
79
+ key marketplaceIds: object | required A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.
80
+
71
81
  Returns:
72
- ApiResponse:
82
+ ApiResponse
73
83
  """
74
84
 
75
85
  return self._request(
@@ -13,18 +13,20 @@ class SupplySources(Client):
13
13
  def get_supply_sources(self, **kwargs) -> ApiResponse:
14
14
  """
15
15
  get_supply_sources(self, **kwargs) -> ApiResponse
16
-
16
+
17
17
  The path to retrieve paginated supply sources.
18
-
18
+
19
+ Examples:
20
+ literal blocks::
21
+
22
+ SupplySources().get_supply_sources()
23
+
19
24
  Args:
20
-
21
- key nextPageToken:string | The pagination token to retrieve a specific page of results.
22
-
23
- key pageSize:number | The number of supply sources to return per paginated request.
24
-
25
-
25
+ key nextPageToken: object | The pagination token to retrieve a specific page of results.
26
+ key pageSize: object | The number of supply sources to return per paginated request.
27
+
26
28
  Returns:
27
- ApiResponse:
29
+ ApiResponse
28
30
  """
29
31
 
30
32
  return self._request(kwargs.pop("path"), params=kwargs)
@@ -32,20 +34,20 @@ class SupplySources(Client):
32
34
  @sp_endpoint("/supplySources/2020-07-01/supplySources", method="POST")
33
35
  def create_supply_source(self, **kwargs) -> ApiResponse:
34
36
  """
35
- create_supply_source(self, **kwargs) -> ApiResponse
36
-
37
- Create a new supply source.
38
-
39
- Args:
40
-
41
- payload: | * REQUIRED {'description': 'A request to create a supply source.',
42
- 'properties': {'address': {'$ref': '#/definitions/Address'}, 'alias': {'$ref': '#/definitions/SupplySourceAlias'}, 'supplySourceCode': {'$ref': '#/definitions/SupplySourceCode'}},
43
- 'required': ['address', 'supplySourceCode', 'alias'],
44
- 'type': 'object'}
45
-
46
-
47
- Returns:
48
- ApiResponse:
37
+ create_supply_source(self, **kwargs) -> ApiResponse
38
+
39
+ Create a new supply source.
40
+
41
+ Examples:
42
+ literal blocks::
43
+
44
+ SupplySources().create_supply_source()
45
+
46
+ Args:
47
+ payload: CreateSupplySourceRequest | required A request to create a supply source.
48
+
49
+ Returns:
50
+ ApiResponse
49
51
  """
50
52
 
51
53
  return self._request(kwargs.pop("path"), data=kwargs)
@@ -54,16 +56,19 @@ class SupplySources(Client):
54
56
  def get_supply_source(self, supplySourceId, **kwargs) -> ApiResponse:
55
57
  """
56
58
  get_supply_source(self, supplySourceId, **kwargs) -> ApiResponse
57
-
59
+
58
60
  Retrieve a supply source.
59
-
61
+
62
+ Examples:
63
+ literal blocks::
64
+
65
+ SupplySources().get_supply_source("value")
66
+
60
67
  Args:
61
-
62
- supplySourceId:string | * REQUIRED The unique identifier of a supply source.
63
-
64
-
68
+ supplySourceId: object | required The unique identifier of a supply source.
69
+
65
70
  Returns:
66
- ApiResponse:
71
+ ApiResponse
67
72
  """
68
73
 
69
74
  return self._request(
@@ -74,20 +79,20 @@ class SupplySources(Client):
74
79
  def update_supply_source(self, supplySourceId, **kwargs) -> ApiResponse:
75
80
  """
76
81
  update_supply_source(self, supplySourceId, **kwargs) -> ApiResponse
77
-
82
+
78
83
  Update the configuration and capabilities of a supply source.
79
-
84
+
85
+ Examples:
86
+ literal blocks::
87
+
88
+ SupplySources().update_supply_source("value")
89
+
80
90
  Args:
81
-
82
- supplySourceId:string | * REQUIRED The unique identitier of a supply source.
83
-
84
- payload: | {'description': 'A request to update the configuration and capabilities of a supply source.',
85
- 'properties': {'alias': {'$ref': '#/definitions/SupplySourceAlias'}, 'capabilities': {'$ref': '#/definitions/SupplySourceCapabilities'}, 'configuration': {'$ref': '#/definitions/SupplySourceConfiguration'}},
86
- 'type': 'object'}
87
-
88
-
91
+ supplySourceId: object | required The unique identitier of a supply source.
92
+ payload: UpdateSupplySourceRequest |
93
+
89
94
  Returns:
90
- ApiResponse:
95
+ ApiResponse
91
96
  """
92
97
 
93
98
  return self._request(
@@ -98,16 +103,19 @@ class SupplySources(Client):
98
103
  def archive_supply_source(self, supplySourceId, **kwargs) -> ApiResponse:
99
104
  """
100
105
  archive_supply_source(self, supplySourceId, **kwargs) -> ApiResponse
101
-
106
+
102
107
  Archive a supply source, making it inactive. Cannot be undone.
103
-
108
+
109
+ Examples:
110
+ literal blocks::
111
+
112
+ SupplySources().archive_supply_source("value")
113
+
104
114
  Args:
105
-
106
- supplySourceId:string | * REQUIRED The unique identifier of a supply source.
107
-
108
-
115
+ supplySourceId: object | required The unique identifier of a supply source.
116
+
109
117
  Returns:
110
- ApiResponse:
118
+ ApiResponse
111
119
  """
112
120
 
113
121
  return self._request(
@@ -118,18 +126,20 @@ class SupplySources(Client):
118
126
  def update_supply_source_status(self, supplySourceId, **kwargs) -> ApiResponse:
119
127
  """
120
128
  update_supply_source_status(self, supplySourceId, **kwargs) -> ApiResponse
121
-
129
+
122
130
  Update the status of a supply source.
123
-
131
+
132
+ Examples:
133
+ literal blocks::
134
+
135
+ SupplySources().update_supply_source_status("value")
136
+
124
137
  Args:
125
-
126
- supplySourceId:string | * REQUIRED The unique identifier of a supply source.
127
-
128
- payload: | {'description': 'A request to update the status of a supply source.', 'properties': {'status': {'$ref': '#/definitions/SupplySourceStatus'}}, 'type': 'object'}
129
-
130
-
138
+ supplySourceId: object | required The unique identifier of a supply source.
139
+ payload: UpdateSupplySourceStatusRequest |
140
+
131
141
  Returns:
132
- ApiResponse:
142
+ ApiResponse
133
143
  """
134
144
 
135
145
  return self._request(
@@ -15,50 +15,29 @@ class Tokens(Client):
15
15
  def create_restricted_data_token(self, **kwargs) -> ApiResponse:
16
16
  """
17
17
  create_restricted_data_token(self, **kwargs) -> ApiResponse
18
-
19
- Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII). See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations.
20
-
21
- The path of a restricted resource can be:
22
- - A specific path containing a seller's order ID, for example ```/orders/v0/orders/902-3159896-1390916/address```. The returned RDT authorizes a subsequent call to the getOrderAddress operation of the Orders API for that specific order only. For example, ```GET /orders/v0/orders/902-3159896-1390916/address```.
23
- - A generic path that does not contain a seller's order ID, for example```/orders/v0/orders/{orderId}/address```). The returned RDT authorizes subsequent calls to the getOrderAddress operation for *any* of a seller's order IDs. For example, ```GET /orders/v0/orders/902-3159896-1390916/address``` and ```GET /orders/v0/orders/483-3488972-0896720/address```
24
-
25
- **Usage Plans:**
26
-
18
+
19
+ Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations.
20
+
21
+ **Usage Plan:**
22
+
27
23
  ====================================== ==============
28
24
  Rate (requests per second) Burst
29
25
  ====================================== ==============
30
26
  1 10
31
27
  ====================================== ==============
32
-
33
- The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
34
-
28
+
29
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
30
+
35
31
  Examples:
36
32
  literal blocks::
37
-
38
- Tokens().create_restricted_data_token(restrictedResources=[
39
- {
40
- "method": "GET",
41
- "path": "/orders/v0/orders",
42
- "dataElements": ["buyerInfo", "shippingAddress"]
43
- }
44
- ])
45
-
33
+
34
+ Tokens().create_restricted_data_token()
35
+
46
36
  Args:
47
- body: {
48
- "targetApplication": "string",
49
- "restrictedResources": [
50
- {
51
- "method": "GET",
52
- "path": "string",
53
- "dataElements": [
54
- "string"
55
- ]
56
- }
57
- ]
58
- }
59
-
37
+ body: CreateRestrictedDataTokenRequest | required The restricted data token request details.
38
+
60
39
  Returns:
61
- ApiResponse:
40
+ ApiResponse
62
41
  """
63
42
 
64
43
  return self._request(kwargs.pop("path"), data=kwargs)
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.base import Client
8
+
9
+ from .vehicles_2024_11_01 import VehiclesV20241101
10
+
11
+
12
+ class VehiclesVersion(str, enum.Enum):
13
+ V_2024_11_01 = "2024-11-01"
14
+ LATEST = "2024-11-01"
15
+
16
+
17
+ if TYPE_CHECKING:
18
+
19
+ class _VehiclesMeta(VersionedClientMeta):
20
+ @overload
21
+ def __call__(
22
+ cls,
23
+ *args: Any,
24
+ version: Literal[VehiclesVersion.V_2024_11_01, VehiclesVersion.LATEST, "2024-11-01"],
25
+ **kwargs: Any,
26
+ ) -> VehiclesV20241101: ...
27
+
28
+ @overload
29
+ def __call__(
30
+ cls,
31
+ *args: Any,
32
+ version: None = None,
33
+ **kwargs: Any,
34
+ ) -> VehiclesV20241101: ...
35
+
36
+ @overload
37
+ def __call__(
38
+ cls,
39
+ *args: Any,
40
+ version: str | VehiclesVersion,
41
+ **kwargs: Any,
42
+ ) -> Client: ...
43
+
44
+
45
+ else:
46
+ _VehiclesMeta = VersionedClientMeta
47
+
48
+
49
+ class Vehicles(Client, metaclass=_VehiclesMeta):
50
+ """Vehicles API client.
51
+
52
+ This class dispatches to a versioned Vehicles API client.
53
+
54
+ If you do not pass a version, the constructor returns the oldest supported implementation ("2024-11-01").
55
+ """
56
+
57
+ if TYPE_CHECKING:
58
+ @overload
59
+ def __new__(
60
+ cls,
61
+ *args: Any,
62
+ version: Literal[VehiclesVersion.V_2024_11_01, VehiclesVersion.LATEST, "2024-11-01"],
63
+ **kwargs: Any,
64
+ ) -> VehiclesV20241101: ...
65
+
66
+ @overload
67
+ def __new__(
68
+ cls,
69
+ *args: Any,
70
+ version: None = None,
71
+ **kwargs: Any,
72
+ ) -> VehiclesV20241101: ...
73
+
74
+ @overload
75
+ def __new__(
76
+ cls,
77
+ *args: Any,
78
+ version: str | VehiclesVersion,
79
+ **kwargs: Any,
80
+ ) -> Client: ...
81
+
82
+ _DISPATCH = True
83
+
84
+ _DEFAULT_VERSION = "2024-11-01"
85
+
86
+ _VERSION_MAP = {
87
+ "2024-11-01": VehiclesV20241101,
88
+ }
89
+
90
+ _VERSION_ALIASES = {
91
+ "2024-11-01": "2024-11-01",
92
+ }
@@ -0,0 +1,33 @@
1
+ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
2
+
3
+
4
+ class VehiclesV20241101(Client):
5
+ """
6
+ Vehicles SP-API Client
7
+ :link:
8
+
9
+ The Selling Partner API for Automotive provides programmatic access to information needed by selling partners to provide compatibility information about their listed products.
10
+ """
11
+
12
+ @sp_endpoint("/catalog/2024-11-01/automotive/vehicles", method="GET")
13
+ def get_vehicles(self, **kwargs) -> ApiResponse:
14
+ """
15
+ get_vehicles(self, **kwargs) -> ApiResponse
16
+
17
+ Get the latest collection of vehicles
18
+
19
+ Examples:
20
+ literal blocks::
21
+
22
+ VehiclesV20241101().get_vehicles()
23
+
24
+ Args:
25
+ key pageToken: object | A token to fetch a certain page when there are multiple pages worth of results.
26
+ key marketplaceId: object | required An identifier for the marketplace in which the resource operates.
27
+ key vehicleType: object | required An identifier for vehicle type.
28
+ key updatedAfter: object | Date in ISO 8601 format, if provided only vehicles which are modified/added to Amazon's catalog after this date will be returned.
29
+
30
+ Returns:
31
+ ApiResponse
32
+ """
33
+ return self._request(kwargs.pop("path"), params=kwargs, add_marketplace=False)
@@ -17,43 +17,30 @@ class VendorDirectFulfillmentInventory(Client):
17
17
  def submit_inventory_update(self, warehouseId, **kwargs) -> ApiResponse:
18
18
  """
19
19
  submit_inventory_update(self, warehouseId, **kwargs) -> ApiResponse
20
-
20
+
21
21
  Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items.
22
-
23
- **Usage Plans:**
24
-
22
+
23
+ **Usage Plan:**
24
+
25
25
  ====================================== ==============
26
26
  Rate (requests per second) Burst
27
27
  ====================================== ==============
28
28
  10 10
29
29
  ====================================== ==============
30
-
31
- The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
32
-
30
+
31
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
32
+
33
+ Examples:
34
+ literal blocks::
35
+
36
+ VendorDirectFulfillmentInventory().submit_inventory_update("value")
37
+
33
38
  Args:
34
- warehouseId:string | * REQUIRED Identifier for the warehouse for which to update inventory.
35
- body: {
36
- "inventory": {
37
- "sellingParty": {
38
- "partyId": "string"
39
- },
40
- "isFullUpdate": true,
41
- "items": [
42
- {
43
- "buyerProductIdentifier": "string",
44
- "vendorProductIdentifier": "string",
45
- "availableQuantity": {
46
- "amount": 0,
47
- "unitOfMeasure": "string"
48
- },
49
- "isObsolete": true
50
- }
51
- ]
52
- }
53
- }
54
-
39
+ body: SubmitInventoryUpdateRequest | required The request body containing the inventory update data to submit.
40
+ warehouseId: object | required Identifier for the warehouse for which to update inventory.
41
+
55
42
  Returns:
56
- ApiResponse:
43
+ ApiResponse
57
44
  """
58
45
 
59
46
  return self._request(