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.
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/METADATA +7 -7
- python_amazon_sp_api-2.1.3.dist-info/RECORD +350 -0
- sp_api/__version__.py +1 -1
- sp_api/api/__init__.py +160 -4
- sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +85 -110
- sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +456 -0
- sp_api/api/aplus_content/aplus_content.py +176 -125
- sp_api/api/application_integrations/application_integrations.py +59 -68
- sp_api/api/application_management/application_management.py +20 -13
- sp_api/api/authorization/authorization.py +8 -26
- sp_api/api/catalog/catalog.py +27 -61
- sp_api/api/catalog_items/catalog_items.py +108 -78
- sp_api/api/catalog_items/catalog_items_2020_12_01.py +86 -0
- sp_api/api/catalog_items/catalog_items_2022_04_01.py +89 -0
- sp_api/api/customer_feedback/customer_feedback.py +100 -0
- sp_api/api/data_kiosk/data_kiosk.py +80 -75
- sp_api/api/delivery_by_amazon/__init__.py +0 -0
- sp_api/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
- sp_api/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +81 -0
- sp_api/api/easy_ship/easy_ship.py +121 -111
- sp_api/api/external_fulfillment/external_fulfillment.py +211 -434
- sp_api/api/external_fulfillment/inventory.py +120 -0
- sp_api/api/external_fulfillment/inventory_2021_01_06.py +71 -0
- sp_api/api/external_fulfillment/inventory_2024_09_11.py +96 -0
- sp_api/api/external_fulfillment/returns.py +120 -0
- sp_api/api/external_fulfillment/returns_2021_08_19.py +88 -0
- sp_api/api/external_fulfillment/returns_2024_09_11.py +141 -0
- sp_api/api/external_fulfillment/shipping.py +120 -0
- sp_api/api/external_fulfillment/shipping_2021_01_06.py +256 -0
- sp_api/api/external_fulfillment/shipping_2024_09_11.py +233 -0
- sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +30 -24
- sp_api/api/fba_small_and_light/fba_small_and_light.py +60 -99
- sp_api/api/feeds/feeds.py +75 -245
- sp_api/api/feeds/feeds_2021_06_30.py +320 -0
- sp_api/api/finances/finances.py +123 -90
- sp_api/api/finances/finances_2024_06_01.py +71 -0
- sp_api/api/finances/finances_2024_06_19.py +114 -0
- sp_api/api/finances/finances_v0.py +116 -0
- sp_api/api/fulfillment_inbound/fulfillment_inbound.py +107 -1784
- sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1722 -0
- sp_api/api/fulfillment_inbound/fulfillment_inbound_v0.py +1384 -0
- sp_api/api/fulfillment_outbound/fulfillment_outbound.py +256 -480
- sp_api/api/inventories/inventories.py +79 -42
- sp_api/api/invoices/__init__.py +0 -0
- sp_api/api/invoices/invoices.py +92 -0
- sp_api/api/invoices/invoices_2024_06_19.py +344 -0
- sp_api/api/listings_items/listings_items.py +110 -163
- sp_api/api/listings_items/listings_items_2020_09_01.py +189 -0
- sp_api/api/listings_items/listings_items_2021_08_01.py +233 -0
- sp_api/api/listings_restrictions/listings_restrictions.py +23 -10
- sp_api/api/merchant_fulfillment/merchant_fulfillment.py +107 -222
- sp_api/api/messaging/messaging.py +184 -198
- sp_api/api/notifications/notifications.py +144 -106
- sp_api/api/orders/orders.py +9 -46
- sp_api/api/orders/orders_2026_01_01.py +19 -65
- sp_api/api/orders/orders_v0.py +152 -184
- sp_api/api/product_fees/product_fees.py +101 -75
- sp_api/api/product_type_definitions/product_type_definitions.py +47 -36
- sp_api/api/products/products.py +94 -386
- sp_api/api/products/products_2022_05_01.py +96 -0
- sp_api/api/products/products_v0.py +389 -0
- sp_api/api/replenishment/replenishment.py +58 -69
- sp_api/api/reports/reports.py +124 -157
- sp_api/api/sales/sales.py +22 -39
- sp_api/api/seller_wallet/__init__.py +0 -0
- sp_api/api/seller_wallet/seller_wallet.py +92 -0
- sp_api/api/seller_wallet/seller_wallet_2024_03_01.py +300 -0
- sp_api/api/sellers/sellers.py +15 -35
- sp_api/api/services/services.py +479 -82
- sp_api/api/shipment_invoicing/__init__.py +0 -0
- sp_api/api/shipment_invoicing/shipment_invoicing.py +92 -0
- sp_api/api/shipment_invoicing/shipment_invoicing_v0.py +101 -0
- sp_api/api/shipping/shipping.py +94 -440
- sp_api/api/shipping/shippingV2.py +183 -474
- sp_api/api/shipping/shipping_v1.py +330 -0
- sp_api/api/shipping/shipping_v2.py +723 -0
- sp_api/api/solicitations/solicitations.py +28 -18
- sp_api/api/supply_sources/supply_sources.py +67 -57
- sp_api/api/tokens/tokens.py +14 -35
- sp_api/api/vehicles/__init__.py +0 -0
- sp_api/api/vehicles/vehicles.py +92 -0
- sp_api/api/vehicles/vehicles_2024_11_01.py +33 -0
- sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
- sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +116 -189
- sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +114 -0
- sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +114 -0
- sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
- sp_api/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
- sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
- sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +50 -0
- sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +122 -624
- sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +390 -0
- sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +320 -0
- sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +113 -29
- sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +47 -0
- sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +47 -0
- sp_api/api/vendor_invoices/vendor_invoices.py +15 -264
- sp_api/api/vendor_orders/vendor_orders.py +83 -131
- sp_api/api/vendor_shipments/vendor_shipments.py +149 -68
- sp_api/api/vendor_transaction_status/vendor_transaction_status.py +16 -11
- sp_api/asyncio/api/__init__.py +159 -4
- sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +84 -110
- sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +457 -0
- sp_api/asyncio/api/aplus_content/aplus_content.py +176 -125
- sp_api/asyncio/api/application_integrations/application_integrations.py +59 -68
- sp_api/asyncio/api/application_management/application_management.py +20 -13
- sp_api/asyncio/api/authorization/authorization.py +8 -26
- sp_api/asyncio/api/catalog/catalog.py +27 -61
- sp_api/asyncio/api/catalog_items/catalog_items.py +94 -71
- sp_api/asyncio/api/catalog_items/catalog_items_2020_12_01.py +87 -0
- sp_api/asyncio/api/catalog_items/catalog_items_2022_04_01.py +90 -0
- sp_api/asyncio/api/customer_feedback/customer_feedback.py +100 -0
- sp_api/asyncio/api/data_kiosk/data_kiosk.py +80 -75
- sp_api/asyncio/api/delivery_by_amazon/__init__.py +0 -0
- sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
- sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +82 -0
- sp_api/asyncio/api/easy_ship/easy_ship.py +121 -111
- sp_api/asyncio/api/external_fulfillment/external_fulfillment.py +212 -435
- sp_api/asyncio/api/external_fulfillment/inventory.py +126 -0
- sp_api/asyncio/api/external_fulfillment/inventory_2021_01_06.py +73 -0
- sp_api/asyncio/api/external_fulfillment/inventory_2024_09_11.py +98 -0
- sp_api/asyncio/api/external_fulfillment/returns.py +124 -0
- sp_api/asyncio/api/external_fulfillment/returns_2021_08_19.py +90 -0
- sp_api/asyncio/api/external_fulfillment/returns_2024_09_11.py +143 -0
- sp_api/asyncio/api/external_fulfillment/shipping.py +124 -0
- sp_api/asyncio/api/external_fulfillment/shipping_2021_01_06.py +258 -0
- sp_api/asyncio/api/external_fulfillment/shipping_2024_09_11.py +235 -0
- sp_api/asyncio/api/fba_inbound_eligibility/fba_inbound_eligibility.py +31 -25
- sp_api/asyncio/api/fba_small_and_light/fba_small_and_light.py +61 -100
- sp_api/asyncio/api/feeds/feeds.py +75 -243
- sp_api/asyncio/api/feeds/feeds_2021_06_30.py +318 -0
- sp_api/asyncio/api/finances/finances.py +123 -91
- sp_api/asyncio/api/finances/finances_2024_06_01.py +72 -0
- sp_api/asyncio/api/finances/finances_2024_06_19.py +115 -0
- sp_api/asyncio/api/finances/finances_v0.py +117 -0
- sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound.py +107 -1785
- sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1723 -0
- sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_v0.py +1385 -0
- sp_api/asyncio/api/fulfillment_outbound/fulfillment_outbound.py +257 -481
- sp_api/asyncio/api/inventories/inventories.py +79 -42
- sp_api/asyncio/api/invoices/__init__.py +0 -0
- sp_api/asyncio/api/invoices/invoices.py +92 -0
- sp_api/asyncio/api/invoices/invoices_2024_06_19.py +345 -0
- sp_api/asyncio/api/listings_items/listings_items.py +109 -163
- sp_api/asyncio/api/listings_items/listings_items_2020_09_01.py +190 -0
- sp_api/asyncio/api/listings_items/listings_items_2021_08_01.py +233 -0
- sp_api/asyncio/api/listings_restrictions/listings_restrictions.py +23 -10
- sp_api/asyncio/api/merchant_fulfillment/merchant_fulfillment.py +110 -222
- sp_api/asyncio/api/messaging/messaging.py +185 -199
- sp_api/asyncio/api/notifications/notifications.py +145 -107
- sp_api/asyncio/api/orders/orders.py +9 -46
- sp_api/asyncio/api/orders/orders_2026_01_01.py +19 -65
- sp_api/asyncio/api/orders/orders_v0.py +152 -184
- sp_api/asyncio/api/product_fees/product_fees.py +101 -75
- sp_api/asyncio/api/product_type_definitions/product_type_definitions.py +47 -36
- sp_api/asyncio/api/products/products.py +94 -387
- sp_api/asyncio/api/products/products_2022_05_01.py +109 -0
- sp_api/asyncio/api/products/products_v0.py +388 -0
- sp_api/asyncio/api/replenishment/replenishment.py +59 -70
- sp_api/asyncio/api/reports/reports.py +124 -157
- sp_api/asyncio/api/sales/sales.py +22 -39
- sp_api/asyncio/api/seller_wallet/__init__.py +0 -0
- sp_api/asyncio/api/seller_wallet/seller_wallet.py +92 -0
- sp_api/asyncio/api/seller_wallet/seller_wallet_2024_03_01.py +301 -0
- sp_api/asyncio/api/sellers/sellers.py +16 -36
- sp_api/asyncio/api/services/services.py +479 -82
- sp_api/asyncio/api/shipment_invoicing/__init__.py +0 -0
- sp_api/asyncio/api/shipment_invoicing/shipment_invoicing.py +92 -0
- sp_api/asyncio/api/shipment_invoicing/shipment_invoicing_v0.py +102 -0
- sp_api/asyncio/api/shipping/shipping.py +94 -441
- sp_api/asyncio/api/shipping/shippingV2.py +181 -472
- sp_api/asyncio/api/shipping/shipping_v1.py +331 -0
- sp_api/asyncio/api/shipping/shipping_v2.py +717 -0
- sp_api/asyncio/api/solicitations/solicitations.py +29 -19
- sp_api/asyncio/api/supply_sources/supply_sources.py +67 -57
- sp_api/asyncio/api/tokens/tokens.py +14 -35
- sp_api/asyncio/api/vehicles/__init__.py +0 -0
- sp_api/asyncio/api/vehicles/vehicles.py +92 -0
- sp_api/asyncio/api/vehicles/vehicles_2024_11_01.py +34 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +120 -192
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +116 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +115 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
- sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +51 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +120 -623
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +392 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +321 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +112 -29
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +49 -0
- sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +48 -0
- sp_api/asyncio/api/vendor_invoices/vendor_invoices.py +16 -265
- sp_api/asyncio/api/vendor_orders/vendor_orders.py +84 -132
- sp_api/asyncio/api/vendor_shipments/vendor_shipments.py +150 -69
- sp_api/asyncio/api/vendor_transaction_status/vendor_transaction_status.py +17 -12
- sp_api/asyncio/base/client.py +2 -2
- sp_api/asyncio/util/load_date_bound.py +1 -1
- sp_api/base/__init__.py +10 -0
- sp_api/base/_core.py +2 -2
- sp_api/base/client.py +3 -3
- sp_api/base/helpers.py +12 -1
- sp_api/base/marketplaces.py +6 -3
- sp_api/util/__init__.py +2 -0
- sp_api/util/load_date_bound.py +1 -1
- sp_api/util/versioned_client.py +45 -0
- python_amazon_sp_api-2.0.15.dist-info/RECORD +0 -255
- sp_api/asyncio/api/models/__init__.py +0 -4
- sp_api/asyncio/api/overrides/__init__.py +0 -1
- {python_amazon_sp_api-2.0.15.data → python_amazon_sp_api-2.1.3.data}/scripts/make_endpoint +0 -0
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/WHEEL +0 -0
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/licenses/LICENSE +0 -0
- {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/top_level.txt +0 -0
|
@@ -15,239 +15,29 @@ class VendorDirectFulfillmentPayments(Client):
|
|
|
15
15
|
def submit_invoice(self, **kwargs) -> ApiResponse:
|
|
16
16
|
"""
|
|
17
17
|
submit_invoice(self, **kwargs) -> ApiResponse
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
Submits one or more invoices for a vendor's direct fulfillment orders.
|
|
20
|
-
|
|
21
|
-
**Usage
|
|
22
|
-
|
|
20
|
+
|
|
21
|
+
**Usage Plan:**
|
|
22
|
+
|
|
23
23
|
====================================== ==============
|
|
24
24
|
Rate (requests per second) Burst
|
|
25
25
|
====================================== ==============
|
|
26
26
|
10 10
|
|
27
27
|
====================================== ==============
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
|
|
29
|
+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
|
|
30
|
+
|
|
31
|
+
Examples:
|
|
32
|
+
literal blocks::
|
|
33
|
+
|
|
34
|
+
VendorDirectFulfillmentPayments().submit_invoice()
|
|
35
|
+
|
|
31
36
|
Args:
|
|
32
|
-
body:
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
"invoiceNumber": "string",
|
|
36
|
-
"invoiceDate": "2019-08-24T14:15:22Z",
|
|
37
|
-
"referenceNumber": "string",
|
|
38
|
-
"remitToParty": {
|
|
39
|
-
"partyId": "string",
|
|
40
|
-
"address": {
|
|
41
|
-
"name": "string",
|
|
42
|
-
"addressLine1": "string",
|
|
43
|
-
"addressLine2": "string",
|
|
44
|
-
"addressLine3": "string",
|
|
45
|
-
"city": "string",
|
|
46
|
-
"county": "string",
|
|
47
|
-
"district": "string",
|
|
48
|
-
"stateOrRegion": "string",
|
|
49
|
-
"postalCode": "string",
|
|
50
|
-
"countryCode": "string",
|
|
51
|
-
"phone": "string"
|
|
52
|
-
},
|
|
53
|
-
"taxRegistrationDetails": [
|
|
54
|
-
{
|
|
55
|
-
"taxRegistrationType": "VAT",
|
|
56
|
-
"taxRegistrationNumber": "string",
|
|
57
|
-
"taxRegistrationAddress": {
|
|
58
|
-
"name": "string",
|
|
59
|
-
"addressLine1": "string",
|
|
60
|
-
"addressLine2": "string",
|
|
61
|
-
"addressLine3": "string",
|
|
62
|
-
"city": "string",
|
|
63
|
-
"county": "string",
|
|
64
|
-
"district": "string",
|
|
65
|
-
"stateOrRegion": "string",
|
|
66
|
-
"postalCode": "string",
|
|
67
|
-
"countryCode": "string",
|
|
68
|
-
"phone": "string"
|
|
69
|
-
},
|
|
70
|
-
"taxRegistrationMessage": "string"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"shipFromParty": {
|
|
75
|
-
"partyId": "string",
|
|
76
|
-
"address": {
|
|
77
|
-
"name": "string",
|
|
78
|
-
"addressLine1": "string",
|
|
79
|
-
"addressLine2": "string",
|
|
80
|
-
"addressLine3": "string",
|
|
81
|
-
"city": "string",
|
|
82
|
-
"county": "string",
|
|
83
|
-
"district": "string",
|
|
84
|
-
"stateOrRegion": "string",
|
|
85
|
-
"postalCode": "string",
|
|
86
|
-
"countryCode": "string",
|
|
87
|
-
"phone": "string"
|
|
88
|
-
},
|
|
89
|
-
"taxRegistrationDetails": [
|
|
90
|
-
{
|
|
91
|
-
"taxRegistrationType": "VAT",
|
|
92
|
-
"taxRegistrationNumber": "string",
|
|
93
|
-
"taxRegistrationAddress": {
|
|
94
|
-
"name": "string",
|
|
95
|
-
"addressLine1": "string",
|
|
96
|
-
"addressLine2": "string",
|
|
97
|
-
"addressLine3": "string",
|
|
98
|
-
"city": "string",
|
|
99
|
-
"county": "string",
|
|
100
|
-
"district": "string",
|
|
101
|
-
"stateOrRegion": "string",
|
|
102
|
-
"postalCode": "string",
|
|
103
|
-
"countryCode": "string",
|
|
104
|
-
"phone": "string"
|
|
105
|
-
},
|
|
106
|
-
"taxRegistrationMessage": "string"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
"billToParty": {
|
|
111
|
-
"partyId": "string",
|
|
112
|
-
"address": {
|
|
113
|
-
"name": "string",
|
|
114
|
-
"addressLine1": "string",
|
|
115
|
-
"addressLine2": "string",
|
|
116
|
-
"addressLine3": "string",
|
|
117
|
-
"city": "string",
|
|
118
|
-
"county": "string",
|
|
119
|
-
"district": "string",
|
|
120
|
-
"stateOrRegion": "string",
|
|
121
|
-
"postalCode": "string",
|
|
122
|
-
"countryCode": "string",
|
|
123
|
-
"phone": "string"
|
|
124
|
-
},
|
|
125
|
-
"taxRegistrationDetails": [
|
|
126
|
-
{
|
|
127
|
-
"taxRegistrationType": "VAT",
|
|
128
|
-
"taxRegistrationNumber": "string",
|
|
129
|
-
"taxRegistrationAddress": {
|
|
130
|
-
"name": "string",
|
|
131
|
-
"addressLine1": "string",
|
|
132
|
-
"addressLine2": "string",
|
|
133
|
-
"addressLine3": "string",
|
|
134
|
-
"city": "string",
|
|
135
|
-
"county": "string",
|
|
136
|
-
"district": "string",
|
|
137
|
-
"stateOrRegion": "string",
|
|
138
|
-
"postalCode": "string",
|
|
139
|
-
"countryCode": "string",
|
|
140
|
-
"phone": "string"
|
|
141
|
-
},
|
|
142
|
-
"taxRegistrationMessage": "string"
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"shipToCountryCode": "string",
|
|
147
|
-
"paymentTermsCode": "string",
|
|
148
|
-
"invoiceTotal": {
|
|
149
|
-
"currencyCode": "string",
|
|
150
|
-
"amount": "string"
|
|
151
|
-
},
|
|
152
|
-
"taxTotals": [
|
|
153
|
-
{
|
|
154
|
-
"taxType": "CGST",
|
|
155
|
-
"taxRate": "string",
|
|
156
|
-
"taxAmount": {
|
|
157
|
-
"currencyCode": "string",
|
|
158
|
-
"amount": "string"
|
|
159
|
-
},
|
|
160
|
-
"taxableAmount": {
|
|
161
|
-
"currencyCode": "string",
|
|
162
|
-
"amount": "string"
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"additionalDetails": [
|
|
167
|
-
{
|
|
168
|
-
"type": "SUR",
|
|
169
|
-
"detail": "string",
|
|
170
|
-
"languageCode": "string"
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"chargeDetails": [
|
|
174
|
-
{
|
|
175
|
-
"type": "GIFTWRAP",
|
|
176
|
-
"chargeAmount": {
|
|
177
|
-
"currencyCode": "string",
|
|
178
|
-
"amount": "string"
|
|
179
|
-
},
|
|
180
|
-
"taxDetails": [
|
|
181
|
-
{
|
|
182
|
-
"taxType": "CGST",
|
|
183
|
-
"taxRate": "string",
|
|
184
|
-
"taxAmount": {
|
|
185
|
-
"currencyCode": "string",
|
|
186
|
-
"amount": "string"
|
|
187
|
-
},
|
|
188
|
-
"taxableAmount": {
|
|
189
|
-
"currencyCode": "string",
|
|
190
|
-
"amount": "string"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"items": [
|
|
197
|
-
{
|
|
198
|
-
"itemSequenceNumber": "string",
|
|
199
|
-
"buyerProductIdentifier": "string",
|
|
200
|
-
"vendorProductIdentifier": "string",
|
|
201
|
-
"invoicedQuantity": {
|
|
202
|
-
"amount": 0,
|
|
203
|
-
"unitOfMeasure": "string"
|
|
204
|
-
},
|
|
205
|
-
"netCost": {
|
|
206
|
-
"currencyCode": "string",
|
|
207
|
-
"amount": "string"
|
|
208
|
-
},
|
|
209
|
-
"purchaseOrderNumber": "string",
|
|
210
|
-
"vendorOrderNumber": "string",
|
|
211
|
-
"hsnCode": "string",
|
|
212
|
-
"taxDetails": [
|
|
213
|
-
{
|
|
214
|
-
"taxType": "CGST",
|
|
215
|
-
"taxRate": "string",
|
|
216
|
-
"taxAmount": {
|
|
217
|
-
"currencyCode": "string",
|
|
218
|
-
"amount": "string"
|
|
219
|
-
},
|
|
220
|
-
"taxableAmount": {
|
|
221
|
-
"currencyCode": "string",
|
|
222
|
-
"amount": "string"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"chargeDetails": [
|
|
227
|
-
{
|
|
228
|
-
"type": "GIFTWRAP",
|
|
229
|
-
"chargeAmount": {
|
|
230
|
-
"currencyCode": "string",
|
|
231
|
-
"amount": "string"
|
|
232
|
-
},
|
|
233
|
-
"taxDetails": [
|
|
234
|
-
{
|
|
235
|
-
"taxType": "CGST",
|
|
236
|
-
"taxRate": "string",
|
|
237
|
-
"taxAmount": {},
|
|
238
|
-
"taxableAmount": {}
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
}
|
|
246
|
-
]
|
|
247
|
-
}
|
|
248
|
-
|
|
37
|
+
body: SubmitInvoiceRequest | required The request body containing one or more invoices for vendor orders.
|
|
38
|
+
|
|
249
39
|
Returns:
|
|
250
|
-
ApiResponse
|
|
40
|
+
ApiResponse
|
|
251
41
|
"""
|
|
252
42
|
|
|
253
43
|
return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
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 .vendor_direct_fulfillment_sandbox_test_data_2021_10_28 import VendorDirectFulfillmentSandboxTestDataV20211028
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class VendorDirectFulfillmentSandboxTestDataVersion(str, enum.Enum):
|
|
13
|
+
V_2021_10_28 = "2021-10-28"
|
|
14
|
+
LATEST = "2021-10-28"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if TYPE_CHECKING:
|
|
18
|
+
|
|
19
|
+
class _VendorDirectFulfillmentSandboxTestDataMeta(VersionedClientMeta):
|
|
20
|
+
@overload
|
|
21
|
+
def __call__(
|
|
22
|
+
cls,
|
|
23
|
+
*args: Any,
|
|
24
|
+
version: Literal[VendorDirectFulfillmentSandboxTestDataVersion.V_2021_10_28, VendorDirectFulfillmentSandboxTestDataVersion.LATEST, "2021-10-28"],
|
|
25
|
+
**kwargs: Any,
|
|
26
|
+
) -> VendorDirectFulfillmentSandboxTestDataV20211028: ...
|
|
27
|
+
|
|
28
|
+
@overload
|
|
29
|
+
def __call__(
|
|
30
|
+
cls,
|
|
31
|
+
*args: Any,
|
|
32
|
+
version: None = None,
|
|
33
|
+
**kwargs: Any,
|
|
34
|
+
) -> VendorDirectFulfillmentSandboxTestDataV20211028: ...
|
|
35
|
+
|
|
36
|
+
@overload
|
|
37
|
+
def __call__(
|
|
38
|
+
cls,
|
|
39
|
+
*args: Any,
|
|
40
|
+
version: str | VendorDirectFulfillmentSandboxTestDataVersion,
|
|
41
|
+
**kwargs: Any,
|
|
42
|
+
) -> Client: ...
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
else:
|
|
46
|
+
_VendorDirectFulfillmentSandboxTestDataMeta = VersionedClientMeta
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class VendorDirectFulfillmentSandboxTestData(Client, metaclass=_VendorDirectFulfillmentSandboxTestDataMeta):
|
|
50
|
+
"""VendorDirectFulfillmentSandboxTestData API client.
|
|
51
|
+
|
|
52
|
+
This class dispatches to a versioned VendorDirectFulfillmentSandboxTestData API client.
|
|
53
|
+
|
|
54
|
+
If you do not pass a version, the constructor returns the oldest supported implementation ("2021-10-28").
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
if TYPE_CHECKING:
|
|
58
|
+
@overload
|
|
59
|
+
def __new__(
|
|
60
|
+
cls,
|
|
61
|
+
*args: Any,
|
|
62
|
+
version: Literal[VendorDirectFulfillmentSandboxTestDataVersion.V_2021_10_28, VendorDirectFulfillmentSandboxTestDataVersion.LATEST, "2021-10-28"],
|
|
63
|
+
**kwargs: Any,
|
|
64
|
+
) -> VendorDirectFulfillmentSandboxTestDataV20211028: ...
|
|
65
|
+
|
|
66
|
+
@overload
|
|
67
|
+
def __new__(
|
|
68
|
+
cls,
|
|
69
|
+
*args: Any,
|
|
70
|
+
version: None = None,
|
|
71
|
+
**kwargs: Any,
|
|
72
|
+
) -> VendorDirectFulfillmentSandboxTestDataV20211028: ...
|
|
73
|
+
|
|
74
|
+
@overload
|
|
75
|
+
def __new__(
|
|
76
|
+
cls,
|
|
77
|
+
*args: Any,
|
|
78
|
+
version: str | VendorDirectFulfillmentSandboxTestDataVersion,
|
|
79
|
+
**kwargs: Any,
|
|
80
|
+
) -> Client: ...
|
|
81
|
+
|
|
82
|
+
_DISPATCH = True
|
|
83
|
+
|
|
84
|
+
_DEFAULT_VERSION = "2021-10-28"
|
|
85
|
+
|
|
86
|
+
_VERSION_MAP = {
|
|
87
|
+
"2021-10-28": VendorDirectFulfillmentSandboxTestDataV20211028,
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
_VERSION_ALIASES = {
|
|
91
|
+
"2021-10-28": "2021-10-28",
|
|
92
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class VendorDirectFulfillmentSandboxTestDataV20211028(Client):
|
|
5
|
+
"""
|
|
6
|
+
VendorDirectFulfillmentSandboxTestData SP-API Client
|
|
7
|
+
:link:
|
|
8
|
+
|
|
9
|
+
The Selling Partner API for Vendor Direct Fulfillment Sandbox Test Data provides programmatic access to vendor direct fulfillment sandbox test data.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
@sp_endpoint("/vendor/directFulfillment/sandbox/2021-10-28/orders", method="POST")
|
|
13
|
+
def generate_order_scenarios(self, **kwargs) -> ApiResponse:
|
|
14
|
+
"""
|
|
15
|
+
generate_order_scenarios(self, **kwargs) -> ApiResponse
|
|
16
|
+
|
|
17
|
+
Submits a request to generate test order data for Vendor Direct Fulfillment API entities.
|
|
18
|
+
|
|
19
|
+
Examples:
|
|
20
|
+
literal blocks::
|
|
21
|
+
|
|
22
|
+
VendorDirectFulfillmentSandboxTestDataV20211028().generate_order_scenarios()
|
|
23
|
+
|
|
24
|
+
Args:
|
|
25
|
+
body: GenerateOrderScenarioRequest | required The request payload containing parameters for generating test order data scenarios.
|
|
26
|
+
|
|
27
|
+
Returns:
|
|
28
|
+
ApiResponse
|
|
29
|
+
"""
|
|
30
|
+
return self._request(kwargs.pop("path"), data=kwargs, add_marketplace=False)
|
|
31
|
+
|
|
32
|
+
@sp_endpoint("/vendor/directFulfillment/sandbox/2021-10-28/transactions/{transactionId}", method="GET")
|
|
33
|
+
def get_order_scenarios(self, transactionId, **kwargs) -> ApiResponse:
|
|
34
|
+
"""
|
|
35
|
+
get_order_scenarios(self, transactionId, **kwargs) -> ApiResponse
|
|
36
|
+
|
|
37
|
+
Returns the status of the transaction indicated by the specified transactionId. If the transaction was successful, also returns the requested test order data.
|
|
38
|
+
|
|
39
|
+
Examples:
|
|
40
|
+
literal blocks::
|
|
41
|
+
|
|
42
|
+
VendorDirectFulfillmentSandboxTestDataV20211028().get_order_scenarios("value")
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
transactionId: object | required The transaction identifier returned in the response to the generateOrderScenarios operation.
|
|
46
|
+
|
|
47
|
+
Returns:
|
|
48
|
+
ApiResponse
|
|
49
|
+
"""
|
|
50
|
+
return self._request(fill_query_params(kwargs.pop("path"), transactionId), params=kwargs, add_marketplace=False)
|