python-amazon-sp-api 1.8.21__tar.gz → 1.9.1__tar.gz
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.
- {python_amazon_sp_api-1.8.21/python_amazon_sp_api.egg-info → python_amazon_sp_api-1.9.1}/PKG-INFO +1 -1
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1/python_amazon_sp_api.egg-info}/PKG-INFO +1 -1
- python_amazon_sp_api-1.9.1/sp_api/__version__.py +1 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/__init__.py +26 -39
- python_amazon_sp_api-1.9.1/sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +129 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/aplus_content/aplus_content.py +76 -45
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/application_management/application_management.py +5 -7
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/authorization/authorization.py +5 -5
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/catalog/catalog.py +10 -10
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/catalog_items/catalog_items.py +11 -11
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/data_kiosk/data_kiosk.py +56 -35
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +23 -13
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/fba_small_and_light/fba_small_and_light.py +46 -20
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/feeds/feeds.py +51 -33
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/finances/finances.py +15 -10
- python_amazon_sp_api-1.9.1/sp_api/api/fulfillment_inbound/fulfillment_inbound.py +1766 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/fulfillment_outbound/fulfillment_outbound.py +63 -57
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/inventories/inventories.py +17 -10
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/listings_items/listings_items.py +61 -27
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/listings_restrictions/listings_restrictions.py +6 -7
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/merchant_fulfillment/merchant_fulfillment.py +49 -36
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/messaging/messaging.py +87 -25
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/notifications/notifications.py +85 -45
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/orders/orders.py +64 -35
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/product_fees/product_fees.py +95 -44
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/product_type_definitions/product_type_definitions.py +9 -10
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/products/products.py +98 -52
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/products/products_definitions.py +13 -10
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/replenishment/replenishment.py +13 -11
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/reports/reports.py +99 -49
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/sales/sales.py +23 -13
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/sellers/sellers.py +3 -3
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/services/services.py +41 -30
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/shipping/shipping.py +39 -37
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/shipping/shippingV2.py +46 -30
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/solicitations/solicitations.py +20 -11
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/supply_sources/supply_sources.py +45 -37
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/tokens/tokens.py +4 -6
- python_amazon_sp_api-1.9.1/sp_api/api/upload/upload.py +17 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +10 -6
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +12 -14
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +4 -6
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +42 -37
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +8 -6
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_invoices/vendor_invoices.py +6 -4
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_orders/vendor_orders.py +16 -19
- python_amazon_sp_api-1.9.1/sp_api/api/vendor_shipments/vendor_shipments.py +117 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_transaction_status/vendor_transaction_status.py +6 -6
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/auth/__init__.py +3 -3
- python_amazon_sp_api-1.9.1/sp_api/auth/access_token_response.py +6 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/ApiResponse.py +2 -2
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/__init__.py +53 -42
- python_amazon_sp_api-1.9.1/sp_api/base/base_client.py +8 -0
- python_amazon_sp_api-1.9.1/sp_api/base/client.py +238 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/credential_provider.py +41 -34
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/exceptions.py +14 -3
- python_amazon_sp_api-1.9.1/sp_api/base/feedTypes.py +48 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/fulfillment_channel.py +2 -2
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/helpers.py +16 -15
- python_amazon_sp_api-1.9.1/sp_api/base/identifiersType.py +12 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/included_data.py +12 -12
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/notifications.py +1 -1
- python_amazon_sp_api-1.9.1/sp_api/base/processing_status.py +9 -0
- python_amazon_sp_api-1.9.1/sp_api/base/reportTypes.py +200 -0
- python_amazon_sp_api-1.9.1/sp_api/base/sales_enum.py +21 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/util/__init__.py +6 -6
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/util/key_maker.py +4 -2
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/util/load_all_pages.py +9 -4
- python_amazon_sp_api-1.9.1/sp_api/util/load_date_bound.py +53 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/util/retry.py +16 -15
- python_amazon_sp_api-1.8.21/sp_api/__version__.py +0 -1
- python_amazon_sp_api-1.8.21/sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +0 -123
- python_amazon_sp_api-1.8.21/sp_api/api/fulfillment_inbound/fulfillment_inbound.py +0 -1633
- python_amazon_sp_api-1.8.21/sp_api/api/upload/upload.py +0 -15
- python_amazon_sp_api-1.8.21/sp_api/api/vendor_shipments/vendor_shipments.py +0 -288
- python_amazon_sp_api-1.8.21/sp_api/auth/access_token_response.py +0 -6
- python_amazon_sp_api-1.8.21/sp_api/base/base_client.py +0 -8
- python_amazon_sp_api-1.8.21/sp_api/base/client.py +0 -185
- python_amazon_sp_api-1.8.21/sp_api/base/feedTypes.py +0 -36
- python_amazon_sp_api-1.8.21/sp_api/base/identifiersType.py +0 -12
- python_amazon_sp_api-1.8.21/sp_api/base/processing_status.py +0 -9
- python_amazon_sp_api-1.8.21/sp_api/base/reportTypes.py +0 -122
- python_amazon_sp_api-1.8.21/sp_api/base/sales_enum.py +0 -23
- python_amazon_sp_api-1.8.21/sp_api/util/load_date_bound.py +0 -38
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/LICENSE +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/README.md +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/make_endpoint/make_endpoint +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/python_amazon_sp_api.egg-info/SOURCES.txt +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/python_amazon_sp_api.egg-info/dependency_links.txt +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/python_amazon_sp_api.egg-info/requires.txt +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/python_amazon_sp_api.egg-info/top_level.txt +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/setup.cfg +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/setup.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/amazon_warehousing_and_distribu/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/aplus_content/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/application_management/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/authorization/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/catalog/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/catalog_items/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/data_kiosk/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/fba_inbound_eligibility/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/fba_small_and_light/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/feeds/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/finances/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/fulfillment_inbound/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/fulfillment_outbound/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/inventories/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/listings_items/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/listings_restrictions/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/merchant_fulfillment/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/messaging/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/notifications/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/orders/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/product_fees/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/product_type_definitions/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/products/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/replenishment/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/reports/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/sales/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/sellers/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/services/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/shipping/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/solicitations/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/supply_sources/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/tokens/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/upload/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_inventory/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_orders/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_payments/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_shipping/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_direct_fulfillment_transactions/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_invoices/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_orders/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_shipments/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/vendor_transaction_status/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/auth/access_token_client.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/auth/credentials.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/auth/exceptions.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/InventoryEnums.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/inegibility_reasons.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/marketplaces.py +1 -1
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/report_status.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/base/schedules.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/finances/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/finances/test_finances.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/notifications/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/notifications/test_notifications.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/orders/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/orders/test_orders.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/product_fees/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/product_fees/product_fees.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/reports/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/reports/test_reports.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/sellers/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/api/sellers/test_sellers.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/client/__init__.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/client/test_auth.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/client/test_base.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/client/test_credential_provider.py +0 -0
- {python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/tests/client/test_helpers.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.9.1'
|
|
@@ -13,12 +13,16 @@ from .feeds.feeds import Feeds
|
|
|
13
13
|
from .feeds.feeds import Feeds as FeedsV2
|
|
14
14
|
|
|
15
15
|
from .inventories.inventories import Inventories
|
|
16
|
-
from .fulfillment_inbound.fulfillment_inbound import
|
|
16
|
+
from .fulfillment_inbound.fulfillment_inbound import (
|
|
17
|
+
FulfillmentInbound,
|
|
18
|
+
FulfillmentInboundVersion,
|
|
19
|
+
)
|
|
17
20
|
from .upload.upload import Upload
|
|
18
21
|
from .messaging.messaging import Messaging
|
|
19
22
|
from .merchant_fulfillment.merchant_fulfillment import MerchantFulfillment
|
|
20
23
|
|
|
21
24
|
##### DO NOT DELETE ########## INSERT IMPORT HERE #######
|
|
25
|
+
|
|
22
26
|
from .listings_restrictions.listings_restrictions import ListingsRestrictions
|
|
23
27
|
|
|
24
28
|
from .messaging.messaging import Messaging
|
|
@@ -37,16 +41,25 @@ from .vendor_orders.vendor_orders import VendorOrders
|
|
|
37
41
|
|
|
38
42
|
from .vendor_invoices.vendor_invoices import VendorInvoices
|
|
39
43
|
|
|
40
|
-
from .vendor_direct_fulfillment_transactions.vendor_direct_fulfillment_transactions import
|
|
41
|
-
VendorDirectFulfillmentTransactions
|
|
44
|
+
from .vendor_direct_fulfillment_transactions.vendor_direct_fulfillment_transactions import (
|
|
45
|
+
VendorDirectFulfillmentTransactions,
|
|
46
|
+
)
|
|
42
47
|
|
|
43
|
-
from .vendor_direct_fulfillment_shipping.vendor_direct_fulfillment_shipping import
|
|
48
|
+
from .vendor_direct_fulfillment_shipping.vendor_direct_fulfillment_shipping import (
|
|
49
|
+
VendorDirectFulfillmentShipping,
|
|
50
|
+
)
|
|
44
51
|
|
|
45
|
-
from .vendor_direct_fulfillment_payments.vendor_direct_fulfillment_payments import
|
|
52
|
+
from .vendor_direct_fulfillment_payments.vendor_direct_fulfillment_payments import (
|
|
53
|
+
VendorDirectFulfillmentPayments,
|
|
54
|
+
)
|
|
46
55
|
|
|
47
|
-
from .vendor_direct_fulfillment_orders.vendor_direct_fulfillment_orders import
|
|
56
|
+
from .vendor_direct_fulfillment_orders.vendor_direct_fulfillment_orders import (
|
|
57
|
+
VendorDirectFulfillmentOrders,
|
|
58
|
+
)
|
|
48
59
|
|
|
49
|
-
from .vendor_direct_fulfillment_inventory.vendor_direct_fulfillment_inventory import
|
|
60
|
+
from .vendor_direct_fulfillment_inventory.vendor_direct_fulfillment_inventory import (
|
|
61
|
+
VendorDirectFulfillmentInventory,
|
|
62
|
+
)
|
|
50
63
|
|
|
51
64
|
from .tokens.tokens import Tokens
|
|
52
65
|
|
|
@@ -74,8 +87,10 @@ from .data_kiosk.data_kiosk import DataKiosk
|
|
|
74
87
|
|
|
75
88
|
from .application_management.application_management import ApplicationManagement
|
|
76
89
|
|
|
77
|
-
from .amazon_warehousing_and_distribu.amazon_warehousing_and_distribu import
|
|
78
|
-
|
|
90
|
+
from .amazon_warehousing_and_distribu.amazon_warehousing_and_distribu import (
|
|
91
|
+
AmazonWarehousingAndDistribution,
|
|
92
|
+
AmazonWarehousingAndDistributionVersion,
|
|
93
|
+
)
|
|
79
94
|
|
|
80
95
|
__all__ = [
|
|
81
96
|
"Sales",
|
|
@@ -90,7 +105,7 @@ __all__ = [
|
|
|
90
105
|
"Feeds",
|
|
91
106
|
"Inventories",
|
|
92
107
|
"FulfillmentInbound",
|
|
93
|
-
|
|
108
|
+
"Upload",
|
|
94
109
|
"Messaging",
|
|
95
110
|
"FulfillmentInbound",
|
|
96
111
|
"MerchantFulfillment",
|
|
@@ -102,59 +117,31 @@ __all__ = [
|
|
|
102
117
|
"Feeds",
|
|
103
118
|
"FeedsV2",
|
|
104
119
|
"ReportsV2",
|
|
105
|
-
|
|
106
120
|
"Messaging",
|
|
107
|
-
|
|
108
121
|
"CatalogItems",
|
|
109
|
-
|
|
110
122
|
"ProductTypeDefinitions",
|
|
111
|
-
|
|
112
123
|
"ListingsItems",
|
|
113
|
-
|
|
114
124
|
"VendorTransactionStatus",
|
|
115
|
-
|
|
116
125
|
"VendorShipments",
|
|
117
|
-
|
|
118
126
|
"VendorOrders",
|
|
119
|
-
|
|
120
127
|
"VendorInvoices",
|
|
121
|
-
|
|
122
128
|
"VendorDirectFulfillmentTransactions",
|
|
123
|
-
|
|
124
129
|
"VendorDirectFulfillmentShipping",
|
|
125
|
-
|
|
126
130
|
"VendorDirectFulfillmentPayments",
|
|
127
|
-
|
|
128
131
|
"VendorDirectFulfillmentOrders",
|
|
129
|
-
|
|
130
132
|
"VendorDirectFulfillmentInventory",
|
|
131
|
-
|
|
132
133
|
"Tokens",
|
|
133
|
-
|
|
134
134
|
"Solicitations",
|
|
135
|
-
|
|
136
135
|
"Shipping",
|
|
137
|
-
|
|
138
136
|
"Services",
|
|
139
|
-
|
|
140
137
|
"FbaSmallAndLight",
|
|
141
|
-
|
|
142
138
|
"FbaInboundEligibility",
|
|
143
|
-
|
|
144
139
|
"Authorization",
|
|
145
|
-
|
|
146
140
|
"AplusContent",
|
|
147
|
-
|
|
148
141
|
"FulfillmentOutbound",
|
|
149
|
-
|
|
150
142
|
"Replenishment",
|
|
151
|
-
|
|
152
143
|
"SupplySources",
|
|
153
|
-
|
|
154
144
|
"DataKiosk",
|
|
155
|
-
|
|
156
145
|
"ApplicationManagement",
|
|
157
|
-
|
|
158
|
-
"AmazonWarehousingAndDistribution"
|
|
159
|
-
|
|
146
|
+
"AmazonWarehousingAndDistribution",
|
|
160
147
|
]
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import enum
|
|
2
|
+
import urllib.parse
|
|
3
|
+
|
|
4
|
+
from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AmazonWarehousingAndDistributionVersion(str, enum.Enum):
|
|
8
|
+
V_2024_05_09 = "2024-05-09"
|
|
9
|
+
LATEST = "2024-05-09"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AmazonWarehousingAndDistribution(Client):
|
|
13
|
+
"""
|
|
14
|
+
AmazonWarehousingAndDistribu SP-API Client
|
|
15
|
+
:link:
|
|
16
|
+
|
|
17
|
+
The Selling Partner API for Amazon Warehousing and Distribution (AWD).
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
version: AmazonWarehousingAndDistributionVersion = (
|
|
21
|
+
AmazonWarehousingAndDistributionVersion.V_2024_05_09
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
def __init__(self, *args, **kwargs):
|
|
25
|
+
if "version" in kwargs:
|
|
26
|
+
self.version = kwargs.get(
|
|
27
|
+
"version", AmazonWarehousingAndDistributionVersion.V_2024_05_09
|
|
28
|
+
)
|
|
29
|
+
super().__init__(*args, **{**kwargs, "version": self.version})
|
|
30
|
+
|
|
31
|
+
@sp_endpoint("/awd/<version>/inboundShipments/{}", method="GET")
|
|
32
|
+
def get_inbound_shipment(self, shipmentId, **kwargs) -> ApiResponse:
|
|
33
|
+
"""
|
|
34
|
+
get_inbound_shipment(self, shipmentId, **kwargs) -> ApiResponse
|
|
35
|
+
|
|
36
|
+
Retrieves an AWD inbound shipment.
|
|
37
|
+
|
|
38
|
+
**Usage Plan:**
|
|
39
|
+
|
|
40
|
+
| Rate (requests per second) | Burst |
|
|
41
|
+
| ---- | ---- |
|
|
42
|
+
| 2 | 2 |
|
|
43
|
+
|
|
44
|
+
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)
|
|
45
|
+
|
|
46
|
+
Args:
|
|
47
|
+
|
|
48
|
+
shipmentId:string | * REQUIRED ID for the shipment. A shipment contains the cases being inbounded.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
ApiResponse:
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
return self._request(
|
|
56
|
+
fill_query_params(kwargs.pop("path"), shipmentId), params=kwargs
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
@sp_endpoint("/awd/<version>/inboundShipments", method="GET")
|
|
60
|
+
def list_inbound_shipments(self, **kwargs) -> ApiResponse:
|
|
61
|
+
"""
|
|
62
|
+
list_inbound_shipments(self, **kwargs) -> ApiResponse
|
|
63
|
+
|
|
64
|
+
Retrieves a summary for all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters.
|
|
65
|
+
|
|
66
|
+
**Usage Plan:**
|
|
67
|
+
|
|
68
|
+
| Rate (requests per second) | Burst |
|
|
69
|
+
| ---- | ---- |
|
|
70
|
+
| 1 | 1 |
|
|
71
|
+
|
|
72
|
+
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).
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
|
|
76
|
+
key sortBy:string | Field to sort results by. Required if `sortOrder` is provided.
|
|
77
|
+
|
|
78
|
+
key sortOrder:string | Sort the response in `ASCENDING` or `DESCENDING` order.
|
|
79
|
+
|
|
80
|
+
key shipmentStatus:string | Filter by inbound shipment status.
|
|
81
|
+
|
|
82
|
+
key updatedAfter:string | List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format.
|
|
83
|
+
|
|
84
|
+
key updatedBefore:string | List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format.
|
|
85
|
+
|
|
86
|
+
key maxResults:integer | Maximum number of results to return.
|
|
87
|
+
|
|
88
|
+
key nextToken:string | Token to retrieve the next set of paginated results.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
Returns:
|
|
92
|
+
ApiResponse:
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
96
|
+
|
|
97
|
+
@sp_endpoint("/awd/<version>/inventory", method="GET")
|
|
98
|
+
def list_inventory(self, **kwargs) -> ApiResponse:
|
|
99
|
+
"""
|
|
100
|
+
list_inventory(self, **kwargs) -> ApiResponse
|
|
101
|
+
|
|
102
|
+
Lists AWD inventory associated with a merchant with the ability to apply optional filters.
|
|
103
|
+
|
|
104
|
+
**Usage Plan:**
|
|
105
|
+
|
|
106
|
+
| Rate (requests per second) | Burst |
|
|
107
|
+
| ---- | ---- |
|
|
108
|
+
| 2 | 2 |
|
|
109
|
+
|
|
110
|
+
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).
|
|
111
|
+
|
|
112
|
+
Args:
|
|
113
|
+
|
|
114
|
+
key sku:string | Filter by seller or merchant SKU for the item.
|
|
115
|
+
|
|
116
|
+
key sortOrder:string | Sort the response in `ASCENDING` or `DESCENDING` order.
|
|
117
|
+
|
|
118
|
+
key details:string | Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
|
|
119
|
+
|
|
120
|
+
key nextToken:string | Token to retrieve the next set of paginated results.
|
|
121
|
+
|
|
122
|
+
key maxResults:integer | Maximum number of results to return.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
ApiResponse:
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
{python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/aplus_content/aplus_content.py
RENAMED
|
@@ -5,13 +5,12 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
5
5
|
class AplusContent(Client):
|
|
6
6
|
"""
|
|
7
7
|
AplusContent SP-API Client
|
|
8
|
-
:link:
|
|
8
|
+
:link:
|
|
9
9
|
|
|
10
10
|
With the A+ Content API, you can build applications that help selling partners add rich marketing content to their Amazon product detail pages. A+ content helps selling partners share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners assemble content by choosing from content modules and adding images and text.
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
@sp_endpoint('/aplus/2020-11-01/contentDocuments', method='GET')
|
|
13
|
+
@sp_endpoint("/aplus/2020-11-01/contentDocuments", method="GET")
|
|
15
14
|
def search_content_documents(self, **kwargs) -> ApiResponse:
|
|
16
15
|
"""
|
|
17
16
|
search_content_documents(self, **kwargs) -> ApiResponse
|
|
@@ -36,11 +35,10 @@ class AplusContent(Client):
|
|
|
36
35
|
Returns:
|
|
37
36
|
ApiResponse:
|
|
38
37
|
"""
|
|
39
|
-
|
|
40
|
-
return self._request(kwargs.pop('path'), params=kwargs)
|
|
41
|
-
|
|
42
38
|
|
|
43
|
-
|
|
39
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
40
|
+
|
|
41
|
+
@sp_endpoint("/aplus/2020-11-01/contentDocuments", method="POST")
|
|
44
42
|
def create_content_document(self, **kwargs) -> ApiResponse:
|
|
45
43
|
"""
|
|
46
44
|
create_content_document(self, **kwargs) -> ApiResponse
|
|
@@ -61,16 +59,20 @@ class AplusContent(Client):
|
|
|
61
59
|
Args:
|
|
62
60
|
key marketplaceId:string | * REQUIRED The identifier for the marketplace where the A+ Content is published.
|
|
63
61
|
postContentDocumentRequest: | * REQUIRED {'properties': {'contentDocument': {'$ref': '#/definitions/ContentDocument'}}, 'required': ['contentDocument'], 'type': 'object'}
|
|
64
|
-
|
|
62
|
+
|
|
65
63
|
|
|
66
64
|
Returns:
|
|
67
65
|
ApiResponse:
|
|
68
66
|
"""
|
|
69
67
|
|
|
70
|
-
return self._request(
|
|
71
|
-
|
|
68
|
+
return self._request(
|
|
69
|
+
kwargs.pop("path"),
|
|
70
|
+
data=kwargs.pop("body"),
|
|
71
|
+
params=kwargs,
|
|
72
|
+
add_marketplace=False,
|
|
73
|
+
)
|
|
72
74
|
|
|
73
|
-
@sp_endpoint(
|
|
75
|
+
@sp_endpoint("/aplus/2020-11-01/contentDocuments/{}", method="GET")
|
|
74
76
|
def get_content_document(self, contentReferenceKey, **kwargs) -> ApiResponse:
|
|
75
77
|
"""
|
|
76
78
|
get_content_document(self, contentReferenceKey, **kwargs) -> ApiResponse
|
|
@@ -92,15 +94,17 @@ class AplusContent(Client):
|
|
|
92
94
|
contentReferenceKey:string | * REQUIRED The unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ Content identifier.
|
|
93
95
|
key marketplaceId:string | * REQUIRED The identifier for the marketplace where the A+ Content is published.
|
|
94
96
|
key includedDataSet:array | * REQUIRED The set of A+ Content data types to include in the response.
|
|
95
|
-
|
|
97
|
+
|
|
96
98
|
|
|
97
99
|
Returns:
|
|
98
100
|
ApiResponse:
|
|
99
101
|
"""
|
|
100
|
-
|
|
101
|
-
return self._request(fill_query_params(kwargs.pop('path'), contentReferenceKey), params=kwargs)
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
return self._request(
|
|
104
|
+
fill_query_params(kwargs.pop("path"), contentReferenceKey), params=kwargs
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
@sp_endpoint("/aplus/2020-11-01/contentDocuments/{}", method="POST")
|
|
104
108
|
def update_content_document(self, contentReferenceKey, **kwargs) -> ApiResponse:
|
|
105
109
|
"""
|
|
106
110
|
update_content_document(self, contentReferenceKey, **kwargs) -> ApiResponse
|
|
@@ -124,12 +128,18 @@ class AplusContent(Client):
|
|
|
124
128
|
Returns:
|
|
125
129
|
ApiResponse:
|
|
126
130
|
"""
|
|
127
|
-
|
|
128
|
-
return self._request(fill_query_params(kwargs.pop('path'), contentReferenceKey), data=kwargs.pop("body"), params=kwargs, add_marketplace=False)
|
|
129
|
-
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
return self._request(
|
|
133
|
+
fill_query_params(kwargs.pop("path"), contentReferenceKey),
|
|
134
|
+
data=kwargs.pop("body"),
|
|
135
|
+
params=kwargs,
|
|
136
|
+
add_marketplace=False,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
@sp_endpoint("/aplus/2020-11-01/contentDocuments/{}/asins", method="GET")
|
|
140
|
+
def list_content_document_asin_relations(
|
|
141
|
+
self, contentReferenceKey, **kwargs
|
|
142
|
+
) -> ApiResponse:
|
|
133
143
|
"""
|
|
134
144
|
list_content_document_asin_relations(self, contentReferenceKey, **kwargs) -> ApiResponse
|
|
135
145
|
|
|
@@ -154,12 +164,15 @@ class AplusContent(Client):
|
|
|
154
164
|
Returns:
|
|
155
165
|
ApiResponse:
|
|
156
166
|
"""
|
|
157
|
-
|
|
158
|
-
return self._request(fill_query_params(kwargs.pop('path'), contentReferenceKey), params=kwargs)
|
|
159
|
-
|
|
160
167
|
|
|
161
|
-
|
|
162
|
-
|
|
168
|
+
return self._request(
|
|
169
|
+
fill_query_params(kwargs.pop("path"), contentReferenceKey), params=kwargs
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
@sp_endpoint("/aplus/2020-11-01/contentDocuments/{}/asins", method="POST")
|
|
173
|
+
def post_content_document_asin_relations(
|
|
174
|
+
self, contentReferenceKey, **kwargs
|
|
175
|
+
) -> ApiResponse:
|
|
163
176
|
"""
|
|
164
177
|
post_content_document_asin_relations(self, contentReferenceKey, **kwargs) -> ApiResponse
|
|
165
178
|
|
|
@@ -182,11 +195,15 @@ class AplusContent(Client):
|
|
|
182
195
|
Returns:
|
|
183
196
|
ApiResponse:
|
|
184
197
|
"""
|
|
185
|
-
|
|
186
|
-
return self._request(fill_query_params(kwargs.pop('path'), contentReferenceKey), data=kwargs.pop("body"), params=kwargs, add_marketplace=False)
|
|
187
|
-
|
|
188
198
|
|
|
189
|
-
|
|
199
|
+
return self._request(
|
|
200
|
+
fill_query_params(kwargs.pop("path"), contentReferenceKey),
|
|
201
|
+
data=kwargs.pop("body"),
|
|
202
|
+
params=kwargs,
|
|
203
|
+
add_marketplace=False,
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
@sp_endpoint("/aplus/2020-11-01/contentAsinValidations", method="POST")
|
|
190
207
|
def validate_content_document_asin_relations(self, **kwargs) -> ApiResponse:
|
|
191
208
|
"""
|
|
192
209
|
validate_content_document_asin_relations(self, **kwargs) -> ApiResponse
|
|
@@ -206,16 +223,20 @@ class AplusContent(Client):
|
|
|
206
223
|
key marketplaceId:string | * REQUIRED The identifier for the marketplace where the A+ Content is published.
|
|
207
224
|
key asinSet:array | The set of ASINs.
|
|
208
225
|
postContentDocumentRequest: | * REQUIRED {'properties': {'contentDocument': {'$ref': '#/definitions/ContentDocument'}}, 'required': ['contentDocument'], 'type': 'object'}
|
|
209
|
-
|
|
226
|
+
|
|
210
227
|
|
|
211
228
|
Returns:
|
|
212
229
|
ApiResponse:
|
|
213
230
|
"""
|
|
214
231
|
|
|
215
|
-
return self._request(
|
|
216
|
-
|
|
232
|
+
return self._request(
|
|
233
|
+
kwargs.pop("path"),
|
|
234
|
+
data=kwargs.pop("body"),
|
|
235
|
+
params=kwargs,
|
|
236
|
+
add_marketplace=False,
|
|
237
|
+
)
|
|
217
238
|
|
|
218
|
-
@sp_endpoint(
|
|
239
|
+
@sp_endpoint("/aplus/2020-11-01/contentPublishRecords", method="GET")
|
|
219
240
|
def search_content_publish_records(self, **kwargs) -> ApiResponse:
|
|
220
241
|
"""
|
|
221
242
|
search_content_publish_records(self, **kwargs) -> ApiResponse
|
|
@@ -239,12 +260,15 @@ class AplusContent(Client):
|
|
|
239
260
|
Returns:
|
|
240
261
|
ApiResponse:
|
|
241
262
|
"""
|
|
242
|
-
|
|
243
|
-
return self._request(kwargs.pop('path'), params=kwargs)
|
|
244
|
-
|
|
245
263
|
|
|
246
|
-
|
|
247
|
-
|
|
264
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
265
|
+
|
|
266
|
+
@sp_endpoint(
|
|
267
|
+
"/aplus/2020-11-01/contentDocuments/{}/approvalSubmissions", method="POST"
|
|
268
|
+
)
|
|
269
|
+
def post_content_document_approval_submission(
|
|
270
|
+
self, contentReferenceKey, **kwargs
|
|
271
|
+
) -> ApiResponse:
|
|
248
272
|
"""
|
|
249
273
|
post_content_document_approval_submission(self, contentReferenceKey, **kwargs) -> ApiResponse
|
|
250
274
|
|
|
@@ -266,12 +290,17 @@ class AplusContent(Client):
|
|
|
266
290
|
Returns:
|
|
267
291
|
ApiResponse:
|
|
268
292
|
"""
|
|
269
|
-
|
|
270
|
-
return self._request(fill_query_params(kwargs.pop('path'), contentReferenceKey), params=kwargs)
|
|
271
|
-
|
|
272
293
|
|
|
273
|
-
|
|
274
|
-
|
|
294
|
+
return self._request(
|
|
295
|
+
fill_query_params(kwargs.pop("path"), contentReferenceKey), params=kwargs
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
@sp_endpoint(
|
|
299
|
+
"/aplus/2020-11-01/contentDocuments/{}/suspendSubmissions", method="POST"
|
|
300
|
+
)
|
|
301
|
+
def post_content_document_suspend_submission(
|
|
302
|
+
self, contentReferenceKey, **kwargs
|
|
303
|
+
) -> ApiResponse:
|
|
275
304
|
"""
|
|
276
305
|
post_content_document_suspend_submission(self, contentReferenceKey, **kwargs) -> ApiResponse
|
|
277
306
|
|
|
@@ -293,5 +322,7 @@ class AplusContent(Client):
|
|
|
293
322
|
Returns:
|
|
294
323
|
ApiResponse:
|
|
295
324
|
"""
|
|
296
|
-
|
|
297
|
-
return self._request(
|
|
325
|
+
|
|
326
|
+
return self._request(
|
|
327
|
+
fill_query_params(kwargs.pop("path"), contentReferenceKey), data=kwargs
|
|
328
|
+
)
|
|
@@ -4,13 +4,12 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
4
4
|
class ApplicationManagement(Client):
|
|
5
5
|
"""
|
|
6
6
|
ApplicationManagement SP-API Client
|
|
7
|
-
:link:
|
|
7
|
+
:link:
|
|
8
8
|
|
|
9
9
|
The Selling Partner API for Application Management lets you programmatically update the client secret on registered applications.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
@sp_endpoint('/applications/2023-11-30/clientSecret', method='POST')
|
|
12
|
+
@sp_endpoint("/applications/2023-11-30/clientSecret", method="POST")
|
|
14
13
|
def rotate_application_client_secret(self, **kwargs) -> ApiResponse:
|
|
15
14
|
"""
|
|
16
15
|
rotate_application_client_secret(self, **kwargs) -> ApiResponse
|
|
@@ -26,11 +25,10 @@ class ApplicationManagement(Client):
|
|
|
26
25
|
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).
|
|
27
26
|
|
|
28
27
|
Args:
|
|
29
|
-
|
|
28
|
+
|
|
30
29
|
|
|
31
30
|
Returns:
|
|
32
31
|
ApiResponse:
|
|
33
32
|
"""
|
|
34
|
-
|
|
35
|
-
return self._request(kwargs.pop(
|
|
36
|
-
|
|
33
|
+
|
|
34
|
+
return self._request(kwargs.pop("path"), data=kwargs)
|
{python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/authorization/authorization.py
RENAMED
|
@@ -6,13 +6,14 @@ from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
|
6
6
|
class Authorization(Client):
|
|
7
7
|
"""
|
|
8
8
|
Authorization SP-API Client
|
|
9
|
-
:link:
|
|
9
|
+
:link:
|
|
10
10
|
|
|
11
11
|
The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
|
|
12
12
|
"""
|
|
13
|
-
grantless_scope = 'sellingpartnerapi::migration'
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
grantless_scope = "sellingpartnerapi::migration"
|
|
15
|
+
|
|
16
|
+
@sp_endpoint("/authorization/v1/authorizationCode", method="GET")
|
|
16
17
|
def get_authorization_code(self, **kwargs) -> ApiResponse:
|
|
17
18
|
"""
|
|
18
19
|
get_authorization_code(self, **kwargs) -> ApiResponse
|
|
@@ -48,6 +49,5 @@ class Authorization(Client):
|
|
|
48
49
|
Returns:
|
|
49
50
|
ApiResponse:
|
|
50
51
|
"""
|
|
51
|
-
|
|
52
|
-
return self._request_grantless_operation(kwargs.pop('path'), params=kwargs)
|
|
53
52
|
|
|
53
|
+
return self._request_grantless_operation(kwargs.pop("path"), params=kwargs)
|
|
@@ -9,7 +9,7 @@ class Catalog(Client):
|
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
-
@sp_endpoint(
|
|
12
|
+
@sp_endpoint("/catalog/v0/items/{}")
|
|
13
13
|
def get_item(self, asin: str, **kwargs) -> ApiResponse:
|
|
14
14
|
"""
|
|
15
15
|
get_item(self, asin: str, **kwargs) -> ApiResponse
|
|
@@ -38,9 +38,9 @@ class Catalog(Client):
|
|
|
38
38
|
Returns:
|
|
39
39
|
GetCatalogItemResponse:
|
|
40
40
|
"""
|
|
41
|
-
return self._request(fill_query_params(kwargs.pop(
|
|
41
|
+
return self._request(fill_query_params(kwargs.pop("path"), asin), params=kwargs)
|
|
42
42
|
|
|
43
|
-
@sp_endpoint(
|
|
43
|
+
@sp_endpoint("/catalog/v0/items")
|
|
44
44
|
def list_items(self, **kwargs) -> ApiResponse:
|
|
45
45
|
"""
|
|
46
46
|
list_items(self, **kwargs) -> ApiResponse
|
|
@@ -75,11 +75,11 @@ class Catalog(Client):
|
|
|
75
75
|
Returns:
|
|
76
76
|
ListCatalogItemsResponse:
|
|
77
77
|
"""
|
|
78
|
-
if
|
|
79
|
-
kwargs.update({
|
|
80
|
-
return self._request(kwargs.pop(
|
|
78
|
+
if "Query" in kwargs:
|
|
79
|
+
kwargs.update({"Query": urllib.parse.quote_plus(kwargs.pop("Query"))})
|
|
80
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
81
81
|
|
|
82
|
-
@sp_endpoint(
|
|
82
|
+
@sp_endpoint("/catalog/v0/categories")
|
|
83
83
|
def list_categories(self, **kwargs) -> ApiResponse:
|
|
84
84
|
"""
|
|
85
85
|
list_categories(self, **kwargs) -> ApiResponse
|
|
@@ -104,6 +104,6 @@ class Catalog(Client):
|
|
|
104
104
|
Returns:
|
|
105
105
|
ListCatalogCategoriesResponse:
|
|
106
106
|
"""
|
|
107
|
-
if
|
|
108
|
-
kwargs.update({
|
|
109
|
-
return self._request(kwargs.pop(
|
|
107
|
+
if "Query" in kwargs:
|
|
108
|
+
kwargs.update({"Query": urllib.parse.quote_plus(kwargs.pop("Query"))})
|
|
109
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
{python_amazon_sp_api-1.8.21 → python_amazon_sp_api-1.9.1}/sp_api/api/catalog_items/catalog_items.py
RENAMED
|
@@ -20,11 +20,11 @@ class CatalogItems(Client):
|
|
|
20
20
|
version: CatalogItemsVersion = CatalogItemsVersion.V_2020_12_01
|
|
21
21
|
|
|
22
22
|
def __init__(self, *args, **kwargs):
|
|
23
|
-
if
|
|
24
|
-
self.version = kwargs.get(
|
|
25
|
-
super().__init__(*args, **{**kwargs,
|
|
23
|
+
if "version" in kwargs:
|
|
24
|
+
self.version = kwargs.get("version", CatalogItemsVersion.V_2020_12_01)
|
|
25
|
+
super().__init__(*args, **{**kwargs, "version": self.version})
|
|
26
26
|
|
|
27
|
-
@sp_endpoint(
|
|
27
|
+
@sp_endpoint("/catalog/<version>/items", method="GET")
|
|
28
28
|
def search_catalog_items(self, **kwargs) -> ApiResponse:
|
|
29
29
|
"""
|
|
30
30
|
search_catalog_items(self, **kwargs) -> ApiResponse
|
|
@@ -56,12 +56,12 @@ class CatalogItems(Client):
|
|
|
56
56
|
ApiResponse:
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
|
-
includedData = kwargs.get(
|
|
59
|
+
includedData = kwargs.get("includedData", [])
|
|
60
60
|
if includedData and isinstance(includedData, list):
|
|
61
|
-
kwargs[
|
|
62
|
-
return self._request(kwargs.pop(
|
|
61
|
+
kwargs["includedData"] = ",".join(includedData)
|
|
62
|
+
return self._request(kwargs.pop("path"), params=kwargs)
|
|
63
63
|
|
|
64
|
-
@sp_endpoint(
|
|
64
|
+
@sp_endpoint("/catalog/<version>/items/{}", method="GET")
|
|
65
65
|
def get_catalog_item(self, asin, **kwargs) -> ApiResponse:
|
|
66
66
|
"""
|
|
67
67
|
get_catalog_item(self, asin, **kwargs) -> ApiResponse
|
|
@@ -87,7 +87,7 @@ class CatalogItems(Client):
|
|
|
87
87
|
ApiResponse:
|
|
88
88
|
"""
|
|
89
89
|
|
|
90
|
-
includedData = kwargs.get(
|
|
90
|
+
includedData = kwargs.get("includedData", [])
|
|
91
91
|
if includedData and isinstance(includedData, list):
|
|
92
|
-
kwargs[
|
|
93
|
-
return self._request(fill_query_params(kwargs.pop(
|
|
92
|
+
kwargs["includedData"] = ",".join(includedData)
|
|
93
|
+
return self._request(fill_query_params(kwargs.pop("path"), asin), params=kwargs)
|