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
@@ -0,0 +1,321 @@
1
+ import urllib.parse
2
+
3
+ from sp_api.base import sp_endpoint, fill_query_params, ApiResponse
4
+ from sp_api.asyncio.base import AsyncBaseClient
5
+
6
+
7
+ class VendorDirectFulfillmentShippingV1(AsyncBaseClient):
8
+ """
9
+ VendorDirectFulfillmentShipping SP-API Client
10
+ :link:
11
+
12
+ The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.
13
+ """
14
+
15
+ @sp_endpoint("/vendor/directFulfillment/shipping/v1/shippingLabels", method="GET")
16
+ async def get_shipping_labels(self, **kwargs) -> ApiResponse:
17
+ """
18
+ get_shipping_labels(self, **kwargs) -> ApiResponse
19
+
20
+ Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days.
21
+
22
+ **Usage Plan:**
23
+
24
+ ====================================== ==============
25
+ Rate (requests per second) Burst
26
+ ====================================== ==============
27
+ 10 10
28
+ ====================================== ==============
29
+
30
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
31
+
32
+ Examples:
33
+ literal blocks::
34
+
35
+ await VendorDirectFulfillmentShippingV1().get_shipping_labels()
36
+
37
+ Args:
38
+ key shipFromPartyId: object | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
39
+ key limit: object | The limit to the number of records returned.
40
+ key createdAfter: object | required Shipping labels that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
41
+ key createdBefore: object | required Shipping labels that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
42
+ key sortOrder: object | Sort ASC or DESC by order creation date.
43
+ key nextToken: object | Used for pagination when there are more ship labels than the specified result size limit. The token value is returned in the previous API call.
44
+
45
+ Returns:
46
+ ApiResponse
47
+ """
48
+
49
+ return await self._request(kwargs.pop("path"), params=kwargs)
50
+
51
+ @sp_endpoint("/vendor/directFulfillment/shipping/v1/shippingLabels", method="POST")
52
+ async def submit_shipping_label_request(self, **kwargs) -> ApiResponse:
53
+ """
54
+ submit_shipping_label_request(self, **kwargs) -> ApiResponse
55
+
56
+ Creates a shipping label for a purchase order and returns a transactionId for reference.
57
+
58
+ **Usage Plan:**
59
+
60
+ ====================================== ==============
61
+ Rate (requests per second) Burst
62
+ ====================================== ==============
63
+ 10 10
64
+ ====================================== ==============
65
+
66
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
67
+
68
+ Examples:
69
+ literal blocks::
70
+
71
+ await VendorDirectFulfillmentShippingV1().submit_shipping_label_request()
72
+
73
+ Args:
74
+ body: SubmitShippingLabelsRequest | required Request body containing one or more shipping labels data.
75
+
76
+ Returns:
77
+ ApiResponse
78
+ """
79
+
80
+ return await self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
81
+
82
+ @sp_endpoint(
83
+ "/vendor/directFulfillment/shipping/v1/shippingLabels/{}", method="GET"
84
+ )
85
+ async def get_shipping_label(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
86
+ """
87
+ get_shipping_label(self, purchaseOrderNumber, **kwargs) -> ApiResponse
88
+
89
+ Returns a shipping label for the purchaseOrderNumber that you specify.
90
+
91
+ **Usage Plan:**
92
+
93
+ ====================================== ==============
94
+ Rate (requests per second) Burst
95
+ ====================================== ==============
96
+ 10 10
97
+ ====================================== ==============
98
+
99
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
100
+
101
+ Examples:
102
+ literal blocks::
103
+
104
+ await VendorDirectFulfillmentShippingV1().get_shipping_label("value")
105
+
106
+ Args:
107
+ purchaseOrderNumber: object | required The purchase order number for which you want to return the shipping label. It should be the same purchaseOrderNumber as received in the order.
108
+
109
+ Returns:
110
+ ApiResponse
111
+ """
112
+
113
+ return await self._request(
114
+ fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
115
+ )
116
+
117
+ @sp_endpoint(
118
+ "/vendor/directFulfillment/shipping/v1/shipmentConfirmations", method="POST"
119
+ )
120
+ async def submit_shipment_confirmations(self, **kwargs) -> ApiResponse:
121
+ """
122
+ submit_shipment_confirmations(self, **kwargs) -> ApiResponse
123
+
124
+ Submits one or more shipment confirmations for vendor orders.
125
+
126
+ **Usage Plan:**
127
+
128
+ ====================================== ==============
129
+ Rate (requests per second) Burst
130
+ ====================================== ==============
131
+ 10 10
132
+ ====================================== ==============
133
+
134
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
135
+
136
+ Examples:
137
+ literal blocks::
138
+
139
+ await VendorDirectFulfillmentShippingV1().submit_shipment_confirmations()
140
+
141
+ Args:
142
+ body: SubmitShipmentConfirmationsRequest | required Request body containing the shipment confirmations data.
143
+
144
+ Returns:
145
+ ApiResponse
146
+ """
147
+
148
+ return await self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
149
+
150
+ @sp_endpoint(
151
+ "/vendor/directFulfillment/shipping/v1/shipmentStatusUpdates", method="POST"
152
+ )
153
+ async def submit_shipment_status_updates(self, **kwargs) -> ApiResponse:
154
+ """
155
+ submit_shipment_status_updates(self, **kwargs) -> ApiResponse
156
+
157
+ This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility.
158
+
159
+ **Usage Plan:**
160
+
161
+ ====================================== ==============
162
+ Rate (requests per second) Burst
163
+ ====================================== ==============
164
+ 10 10
165
+ ====================================== ==============
166
+
167
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
168
+
169
+ Examples:
170
+ literal blocks::
171
+
172
+ await VendorDirectFulfillmentShippingV1().submit_shipment_status_updates()
173
+
174
+ Args:
175
+ body: SubmitShipmentStatusUpdatesRequest | required Request body containing the shipment status update data.
176
+
177
+ Returns:
178
+ ApiResponse
179
+ """
180
+
181
+ return await self._request(kwargs.pop("path"), data=kwargs)
182
+
183
+ @sp_endpoint("/vendor/directFulfillment/shipping/v1/customerInvoices", method="GET")
184
+ async def get_customer_invoices(self, **kwargs) -> ApiResponse:
185
+ """
186
+ get_customer_invoices(self, **kwargs) -> ApiResponse
187
+
188
+ Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days.
189
+
190
+ **Usage Plan:**
191
+
192
+ ====================================== ==============
193
+ Rate (requests per second) Burst
194
+ ====================================== ==============
195
+ 10 10
196
+ ====================================== ==============
197
+
198
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
199
+
200
+ Examples:
201
+ literal blocks::
202
+
203
+ await VendorDirectFulfillmentShippingV1().get_customer_invoices()
204
+
205
+ Args:
206
+ key shipFromPartyId: object | The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
207
+ key limit: object | The limit to the number of records returned
208
+ key createdAfter: object | required Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
209
+ key createdBefore: object | required Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
210
+ key sortOrder: object | Sort ASC or DESC by order creation date.
211
+ key nextToken: object | Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
212
+
213
+ Returns:
214
+ ApiResponse
215
+ """
216
+
217
+ return await self._request(kwargs.pop("path"), params=kwargs)
218
+
219
+ @sp_endpoint(
220
+ "/vendor/directFulfillment/shipping/v1/customerInvoices/{}", method="GET"
221
+ )
222
+ async def get_customer_invoice(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
223
+ """
224
+ get_customer_invoice(self, purchaseOrderNumber, **kwargs) -> ApiResponse
225
+
226
+ Returns a customer invoice based on the purchaseOrderNumber that you specify.
227
+
228
+ **Usage Plan:**
229
+
230
+ ====================================== ==============
231
+ Rate (requests per second) Burst
232
+ ====================================== ==============
233
+ 10 10
234
+ ====================================== ==============
235
+
236
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
237
+
238
+ Examples:
239
+ literal blocks::
240
+
241
+ await VendorDirectFulfillmentShippingV1().get_customer_invoice("value")
242
+
243
+ Args:
244
+ purchaseOrderNumber: object | required Purchase order number of the shipment for which to return the invoice.
245
+
246
+ Returns:
247
+ ApiResponse
248
+ """
249
+
250
+ return await self._request(
251
+ fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
252
+ )
253
+
254
+ @sp_endpoint("/vendor/directFulfillment/shipping/v1/packingSlips", method="GET")
255
+ async def get_packing_slips(self, **kwargs) -> ApiResponse:
256
+ """
257
+ get_packing_slips(self, **kwargs) -> ApiResponse
258
+
259
+ Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days.
260
+
261
+ **Usage Plan:**
262
+
263
+ ====================================== ==============
264
+ Rate (requests per second) Burst
265
+ ====================================== ==============
266
+ 10 10
267
+ ====================================== ==============
268
+
269
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
270
+
271
+ Examples:
272
+ literal blocks::
273
+
274
+ await VendorDirectFulfillmentShippingV1().get_packing_slips()
275
+
276
+ Args:
277
+ key shipFromPartyId: object | The vendor warehouseId for order fulfillment. If not specified the result will contain orders for all warehouses.
278
+ key limit: object | The limit to the number of records returned
279
+ key createdAfter: object | required Packing slips that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
280
+ key createdBefore: object | required Packing slips that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
281
+ key sortOrder: object | Sort ASC or DESC by packing slip creation date.
282
+ key nextToken: object | Used for pagination when there are more packing slips than the specified result size limit. The token value is returned in the previous API call.
283
+
284
+ Returns:
285
+ ApiResponse
286
+ """
287
+
288
+ return await self._request(kwargs.pop("path"), params=kwargs)
289
+
290
+ @sp_endpoint("/vendor/directFulfillment/shipping/v1/packingSlips/{}", method="GET")
291
+ async def get_packing_slip(self, purchaseOrderNumber, **kwargs) -> ApiResponse:
292
+ """
293
+ get_packing_slip(self, purchaseOrderNumber, **kwargs) -> ApiResponse
294
+
295
+ Returns a packing slip based on the purchaseOrderNumber that you specify.
296
+
297
+ **Usage Plan:**
298
+
299
+ ====================================== ==============
300
+ Rate (requests per second) Burst
301
+ ====================================== ==============
302
+ 10 10
303
+ ====================================== ==============
304
+
305
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
306
+
307
+ Examples:
308
+ literal blocks::
309
+
310
+ await VendorDirectFulfillmentShippingV1().get_packing_slip("value")
311
+
312
+ Args:
313
+ purchaseOrderNumber: object | required The purchaseOrderNumber for the packing slip you want.
314
+
315
+ Returns:
316
+ ApiResponse
317
+ """
318
+
319
+ return await self._request(
320
+ fill_query_params(kwargs.pop("path"), purchaseOrderNumber), params=kwargs
321
+ )
@@ -1,43 +1,126 @@
1
- import urllib.parse
1
+ from __future__ import annotations
2
+
3
+ import enum
4
+ from typing import Any, Literal, TYPE_CHECKING, overload
2
5
 
3
- from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
4
6
  from sp_api.asyncio.base import AsyncBaseClient
7
+ from sp_api.util.versioned_client import VersionedClientMeta
5
8
 
9
+ from .vendor_direct_fulfillment_transactions_2021_12_28 import (
10
+ VendorDirectFulfillmentTransactionsV20211228,
11
+ )
12
+ from .vendor_direct_fulfillment_transactions_v1 import (
13
+ VendorDirectFulfillmentTransactionsV1,
14
+ )
6
15
 
7
- class VendorDirectFulfillmentTransactions(AsyncBaseClient):
8
- """
9
- VendorDirectFulfillmentTransactions SP-API Client
10
- :link:
11
16
 
12
- The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor's transaction status.
17
+ class VendorDirectFulfillmentTransactionsVersion(str, enum.Enum):
18
+ V1 = "v1"
19
+ V_2021_12_28 = "2021-12-28"
20
+ LATEST = "2021-12-28"
21
+
22
+
23
+ if TYPE_CHECKING:
24
+
25
+ class _VendorDirectFulfillmentTransactionsMeta(VersionedClientMeta):
26
+ @overload
27
+ def __call__(
28
+ cls,
29
+ *args: Any,
30
+ version: Literal[
31
+ VendorDirectFulfillmentTransactionsVersion.V_2021_12_28,
32
+ VendorDirectFulfillmentTransactionsVersion.LATEST,
33
+ "2021-12-28",
34
+ ],
35
+ **kwargs: Any,
36
+ ) -> VendorDirectFulfillmentTransactionsV20211228: ...
37
+
38
+ @overload
39
+ def __call__(
40
+ cls,
41
+ *args: Any,
42
+ version: Literal[VendorDirectFulfillmentTransactionsVersion.V1, "v1"],
43
+ **kwargs: Any,
44
+ ) -> VendorDirectFulfillmentTransactionsV1: ...
45
+
46
+ @overload
47
+ def __call__(
48
+ cls,
49
+ *args: Any,
50
+ version: None = None,
51
+ **kwargs: Any,
52
+ ) -> VendorDirectFulfillmentTransactionsV1: ...
53
+
54
+ @overload
55
+ def __call__(
56
+ cls,
57
+ *args: Any,
58
+ version: str | VendorDirectFulfillmentTransactionsVersion,
59
+ **kwargs: Any,
60
+ ) -> AsyncBaseClient: ...
61
+
62
+
63
+ else:
64
+ _VendorDirectFulfillmentTransactionsMeta = VersionedClientMeta
65
+
66
+
67
+ class VendorDirectFulfillmentTransactions(
68
+ AsyncBaseClient, metaclass=_VendorDirectFulfillmentTransactionsMeta
69
+ ):
70
+ """Vendor Direct Fulfillment Transactions API client.
71
+
72
+ This class dispatches to a versioned Vendor Direct Fulfillment Transactions API client.
73
+
74
+ If you do not pass a version, the constructor returns the oldest supported implementation ("v1").
13
75
  """
14
76
 
15
- @sp_endpoint(
16
- "/vendor/directFulfillment/transactions/v1/transactions/{}", method="GET"
17
- )
18
- async def get_transaction_status(self, transactionId, **kwargs) -> ApiResponse:
19
- """
20
- get_transaction_status(self, transactionId, **kwargs) -> ApiResponse
77
+ if TYPE_CHECKING:
78
+ @overload
79
+ def __new__(
80
+ cls,
81
+ *args: Any,
82
+ version: Literal[
83
+ VendorDirectFulfillmentTransactionsVersion.V_2021_12_28,
84
+ VendorDirectFulfillmentTransactionsVersion.LATEST,
85
+ "2021-12-28",
86
+ ],
87
+ **kwargs: Any,
88
+ ) -> VendorDirectFulfillmentTransactionsV20211228: ...
21
89
 
22
- Returns the status of the transaction indicated by the specified transactionId.
90
+ @overload
91
+ def __new__(
92
+ cls,
93
+ *args: Any,
94
+ version: Literal[VendorDirectFulfillmentTransactionsVersion.V1, "v1"],
95
+ **kwargs: Any,
96
+ ) -> VendorDirectFulfillmentTransactionsV1: ...
23
97
 
24
- **Usage Plans:**
98
+ @overload
99
+ def __new__(
100
+ cls,
101
+ *args: Any,
102
+ version: None = None,
103
+ **kwargs: Any,
104
+ ) -> VendorDirectFulfillmentTransactionsV1: ...
25
105
 
26
- ====================================== ==============
27
- Rate (requests per second) Burst
28
- ====================================== ==============
29
- 10 10
30
- ====================================== ==============
106
+ @overload
107
+ def __new__(
108
+ cls,
109
+ *args: Any,
110
+ version: str | VendorDirectFulfillmentTransactionsVersion,
111
+ **kwargs: Any,
112
+ ) -> AsyncBaseClient: ...
31
113
 
32
- 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.
114
+ _DISPATCH = True
33
115
 
34
- Args:
35
- transactionId:string | * REQUIRED Previously returned in the response to the POST request of a specific transaction.
116
+ _DEFAULT_VERSION = "v1"
36
117
 
37
- Returns:
38
- ApiResponse:
39
- """
118
+ _VERSION_MAP = {
119
+ "v1": VendorDirectFulfillmentTransactionsV1,
120
+ "2021-12-28": VendorDirectFulfillmentTransactionsV20211228,
121
+ }
40
122
 
41
- return await self._request(
42
- fill_query_params(kwargs.pop("path"), transactionId), params=kwargs
43
- )
123
+ _VERSION_ALIASES = {
124
+ "v1": "v1",
125
+ "2021-12-28": "2021-12-28",
126
+ }
@@ -0,0 +1,49 @@
1
+ from sp_api.asyncio.base import AsyncBaseClient
2
+
3
+ import urllib.parse
4
+
5
+ from sp_api.base import sp_endpoint, fill_query_params, ApiResponse
6
+
7
+
8
+ class VendorDirectFulfillmentTransactionsV20211228(AsyncBaseClient):
9
+ """
10
+ VendorDirectFulfillmentTransactions SP-API Client
11
+ :link:
12
+
13
+ The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor's transaction status.
14
+ """
15
+
16
+ @sp_endpoint(
17
+ "/vendor/directFulfillment/transactions/2021-12-28/transactions/{}", method="GET"
18
+ )
19
+ async def get_transaction_status(self, transactionId, **kwargs) -> ApiResponse:
20
+ """
21
+ get_transaction_status(self, transactionId, **kwargs) -> ApiResponse
22
+
23
+ Returns the status of the transaction indicated by the specified transactionId.
24
+
25
+ **Usage Plan:**
26
+
27
+ ====================================== ==============
28
+ Rate (requests per second) Burst
29
+ ====================================== ==============
30
+ 10 10
31
+ ====================================== ==============
32
+
33
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
34
+
35
+ Examples:
36
+ literal blocks::
37
+
38
+ await VendorDirectFulfillmentTransactionsV20211228().get_transaction_status("value")
39
+
40
+ Args:
41
+ transactionId: object | required Previously returned in the response to the POST request of a specific transaction.
42
+
43
+ Returns:
44
+ ApiResponse
45
+ """
46
+
47
+ return await self._request(
48
+ fill_query_params(kwargs.pop("path"), transactionId), params=kwargs
49
+ )
@@ -0,0 +1,48 @@
1
+ import urllib.parse
2
+
3
+ from sp_api.base import sp_endpoint, fill_query_params, ApiResponse
4
+ from sp_api.asyncio.base import AsyncBaseClient
5
+
6
+
7
+ class VendorDirectFulfillmentTransactionsV1(AsyncBaseClient):
8
+ """
9
+ VendorDirectFulfillmentTransactions SP-API Client
10
+ :link:
11
+
12
+ The Selling Partner API for Direct Fulfillment Transaction Status provides programmatic access to a direct fulfillment vendor's transaction status.
13
+ """
14
+
15
+ @sp_endpoint(
16
+ "/vendor/directFulfillment/transactions/v1/transactions/{}", method="GET"
17
+ )
18
+ async def get_transaction_status(self, transactionId, **kwargs) -> ApiResponse:
19
+ """
20
+ get_transaction_status(self, transactionId, **kwargs) -> ApiResponse
21
+
22
+ Returns the status of the transaction indicated by the specified transactionId.
23
+
24
+ **Usage Plan:**
25
+
26
+ ====================================== ==============
27
+ Rate (requests per second) Burst
28
+ ====================================== ==============
29
+ 10 10
30
+ ====================================== ==============
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 VendorDirectFulfillmentTransactionsV1().get_transaction_status("value")
38
+
39
+ Args:
40
+ transactionId: object | required Previously returned in the response to the POST request of a specific transaction.
41
+
42
+ Returns:
43
+ ApiResponse
44
+ """
45
+
46
+ return await self._request(
47
+ fill_query_params(kwargs.pop("path"), transactionId), params=kwargs
48
+ )