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
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
from sp_api.base import Client, ApiResponse
|
|
2
|
+
from sp_api.base import sp_endpoint, fill_query_params
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FinancesV20240619(Client):
|
|
6
|
+
|
|
7
|
+
@sp_endpoint("/finances/2024-06-19/orders/{}/financialEvents")
|
|
8
|
+
def get_financial_events_for_order(self, order_id, **kwargs) -> ApiResponse:
|
|
9
|
+
"""
|
|
10
|
+
get_financial_events_for_order(self, order_id, **kwargs) -> ApiResponse
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Examples:
|
|
15
|
+
literal blocks::
|
|
16
|
+
|
|
17
|
+
FinancesV20240619().get_financial_events_for_order("value")
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
order_id: | required
|
|
21
|
+
**kwargs:
|
|
22
|
+
|
|
23
|
+
Returns:
|
|
24
|
+
ApiResponse
|
|
25
|
+
"""
|
|
26
|
+
return self._request(
|
|
27
|
+
fill_query_params(kwargs.pop("path"), order_id), params={**kwargs}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
@sp_endpoint("/finances/2024-06-19/financialEvents")
|
|
31
|
+
def list_financial_events(self, **kwargs) -> ApiResponse:
|
|
32
|
+
"""
|
|
33
|
+
list_financial_events(self, **kwargs) -> ApiResponse
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Examples:
|
|
38
|
+
literal blocks::
|
|
39
|
+
|
|
40
|
+
FinancesV20240619().list_financial_events()
|
|
41
|
+
|
|
42
|
+
Args:
|
|
43
|
+
**kwargs:
|
|
44
|
+
|
|
45
|
+
Returns:
|
|
46
|
+
ApiResponse
|
|
47
|
+
"""
|
|
48
|
+
return self._request(fill_query_params(kwargs.pop("path")), params={**kwargs})
|
|
49
|
+
|
|
50
|
+
@sp_endpoint("/finances/2024-06-19/financialEventGroups/{}/financialEvents")
|
|
51
|
+
def list_financial_events_by_group_id(
|
|
52
|
+
self, event_group_id, **kwargs
|
|
53
|
+
) -> ApiResponse:
|
|
54
|
+
"""
|
|
55
|
+
list_financial_events_by_group_id(self, event_group_id, **kwargs) -> ApiResponse
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Examples:
|
|
60
|
+
literal blocks::
|
|
61
|
+
|
|
62
|
+
FinancesV20240619().list_financial_events_by_group_id("value")
|
|
63
|
+
|
|
64
|
+
Args:
|
|
65
|
+
event_group_id: | required
|
|
66
|
+
**kwargs:
|
|
67
|
+
|
|
68
|
+
Returns:
|
|
69
|
+
ApiResponse
|
|
70
|
+
"""
|
|
71
|
+
return self._request(
|
|
72
|
+
fill_query_params(kwargs.pop("path"), event_group_id), params={**kwargs}
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
@sp_endpoint("/finances/2024-06-19/financialEventGroups")
|
|
76
|
+
def list_financial_event_groups(self, **kwargs) -> ApiResponse:
|
|
77
|
+
"""
|
|
78
|
+
list_financial_event_groups(self, **kwargs) -> ApiResponse
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
Examples:
|
|
83
|
+
literal blocks::
|
|
84
|
+
|
|
85
|
+
FinancesV20240619().list_financial_event_groups()
|
|
86
|
+
|
|
87
|
+
Args:
|
|
88
|
+
**kwargs:
|
|
89
|
+
|
|
90
|
+
Returns:
|
|
91
|
+
ApiResponse
|
|
92
|
+
"""
|
|
93
|
+
return self._request(kwargs.pop("path"), params={**kwargs})
|
|
94
|
+
|
|
95
|
+
@sp_endpoint("/finances/2024-06-19/transactions")
|
|
96
|
+
def list_transactions(self, **kwargs) -> ApiResponse:
|
|
97
|
+
"""
|
|
98
|
+
list_transactions(self, **kwargs) -> ApiResponse
|
|
99
|
+
|
|
100
|
+
Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours.
|
|
101
|
+
|
|
102
|
+
Examples:
|
|
103
|
+
literal blocks::
|
|
104
|
+
|
|
105
|
+
FinancesV20240619().list_transactions()
|
|
106
|
+
|
|
107
|
+
Args:
|
|
108
|
+
**kwargs:
|
|
109
|
+
|
|
110
|
+
Returns:
|
|
111
|
+
ApiResponse
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
return self._request(kwargs.pop("path"), params={**kwargs})
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
from sp_api.base import Client, ApiResponse
|
|
2
|
+
from sp_api.base import sp_endpoint, fill_query_params
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FinancesV0(Client):
|
|
6
|
+
|
|
7
|
+
@sp_endpoint("/finances/v0/orders/{}/financialEvents")
|
|
8
|
+
def get_financial_events_for_order(self, order_id, **kwargs) -> ApiResponse:
|
|
9
|
+
"""
|
|
10
|
+
get_financial_events_for_order(self, order_id, **kwargs) -> ApiResponse
|
|
11
|
+
|
|
12
|
+
Returns all financial events for the specified order. Orders from the last 48 hours might not be included in financial events.
|
|
13
|
+
|
|
14
|
+
Examples:
|
|
15
|
+
literal blocks::
|
|
16
|
+
|
|
17
|
+
FinancesV0().get_financial_events_for_order("value")
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
order_id: | required
|
|
21
|
+
**kwargs:
|
|
22
|
+
|
|
23
|
+
Returns:
|
|
24
|
+
ApiResponse
|
|
25
|
+
"""
|
|
26
|
+
return self._request(
|
|
27
|
+
fill_query_params(kwargs.pop("path"), order_id), params={**kwargs}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
@sp_endpoint("/finances/v0/financialEvents")
|
|
31
|
+
def list_financial_events(self, **kwargs) -> ApiResponse:
|
|
32
|
+
"""
|
|
33
|
+
list_financial_events(self, **kwargs) -> ApiResponse
|
|
34
|
+
|
|
35
|
+
Returns financial events for the specified data range. Orders from the last 48 hours might not be included in financial events.
|
|
36
|
+
**Note:** in `ListFinancialEvents`, deferred events don't show up in responses until they are released.
|
|
37
|
+
|
|
38
|
+
Examples:
|
|
39
|
+
literal blocks::
|
|
40
|
+
|
|
41
|
+
FinancesV0().list_financial_events()
|
|
42
|
+
|
|
43
|
+
Args:
|
|
44
|
+
**kwargs:
|
|
45
|
+
|
|
46
|
+
Returns:
|
|
47
|
+
ApiResponse
|
|
48
|
+
"""
|
|
49
|
+
return self._request(fill_query_params(kwargs.pop("path")), params={**kwargs})
|
|
50
|
+
|
|
51
|
+
@sp_endpoint("/finances/v0/financialEventGroups/{}/financialEvents")
|
|
52
|
+
def list_financial_events_by_group_id(
|
|
53
|
+
self, event_group_id, **kwargs
|
|
54
|
+
) -> ApiResponse:
|
|
55
|
+
"""
|
|
56
|
+
list_financial_events_by_group_id(self, event_group_id, **kwargs) -> ApiResponse
|
|
57
|
+
|
|
58
|
+
Returns all financial events for the specified financial event group. Orders from the last 48 hours might not be included in financial events.
|
|
59
|
+
**Note:** This operation only retrieves a group's data for the past two years. A request for data spanning more than two years produces an empty response.
|
|
60
|
+
|
|
61
|
+
Examples:
|
|
62
|
+
literal blocks::
|
|
63
|
+
|
|
64
|
+
FinancesV0().list_financial_events_by_group_id("value")
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
event_group_id: | required
|
|
68
|
+
**kwargs:
|
|
69
|
+
|
|
70
|
+
Returns:
|
|
71
|
+
ApiResponse
|
|
72
|
+
"""
|
|
73
|
+
return self._request(
|
|
74
|
+
fill_query_params(kwargs.pop("path"), event_group_id), params={**kwargs}
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
@sp_endpoint("/finances/v0/financialEventGroups")
|
|
78
|
+
def list_financial_event_groups(self, **kwargs) -> ApiResponse:
|
|
79
|
+
"""
|
|
80
|
+
list_financial_event_groups(self, **kwargs) -> ApiResponse
|
|
81
|
+
|
|
82
|
+
Returns financial event groups for a given date range. Orders from the last 48 hours might not be included in financial events.
|
|
83
|
+
|
|
84
|
+
Examples:
|
|
85
|
+
literal blocks::
|
|
86
|
+
|
|
87
|
+
FinancesV0().list_financial_event_groups()
|
|
88
|
+
|
|
89
|
+
Args:
|
|
90
|
+
**kwargs:
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
ApiResponse
|
|
94
|
+
"""
|
|
95
|
+
return self._request(kwargs.pop("path"), params={**kwargs})
|
|
96
|
+
|
|
97
|
+
@sp_endpoint("/finances/v0/transactions")
|
|
98
|
+
def list_transactions(self, **kwargs) -> ApiResponse:
|
|
99
|
+
"""
|
|
100
|
+
list_transactions(self, **kwargs) -> ApiResponse
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Examples:
|
|
105
|
+
literal blocks::
|
|
106
|
+
|
|
107
|
+
FinancesV0().list_transactions()
|
|
108
|
+
|
|
109
|
+
Args:
|
|
110
|
+
**kwargs:
|
|
111
|
+
|
|
112
|
+
Returns:
|
|
113
|
+
ApiResponse
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
return self._request(kwargs.pop("path"), params={**kwargs})
|