dodopayments 1.51.1__py3-none-any.whl → 1.56.5__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.
- dodopayments/__init__.py +5 -1
- dodopayments/_base_client.py +12 -12
- dodopayments/_client.py +52 -14
- dodopayments/_compat.py +48 -48
- dodopayments/_exceptions.py +4 -0
- dodopayments/_models.py +50 -44
- dodopayments/_qs.py +7 -7
- dodopayments/_streaming.py +4 -6
- dodopayments/_types.py +18 -11
- dodopayments/_utils/__init__.py +8 -2
- dodopayments/_utils/_compat.py +45 -0
- dodopayments/_utils/_datetime_parse.py +136 -0
- dodopayments/_utils/_transform.py +13 -3
- dodopayments/_utils/_typing.py +1 -1
- dodopayments/_utils/_utils.py +5 -6
- dodopayments/_version.py +1 -1
- dodopayments/resources/__init__.py +28 -0
- dodopayments/resources/addons.py +29 -29
- dodopayments/resources/brands.py +29 -29
- dodopayments/resources/checkout_sessions.py +110 -27
- dodopayments/resources/customers/__init__.py +14 -0
- dodopayments/resources/customers/customer_portal.py +5 -5
- dodopayments/resources/customers/customers.py +53 -21
- dodopayments/resources/customers/wallets/__init__.py +33 -0
- dodopayments/resources/customers/wallets/ledger_entries.py +318 -0
- dodopayments/resources/customers/wallets/wallets.py +191 -0
- dodopayments/resources/discounts.py +44 -44
- dodopayments/resources/disputes.py +19 -19
- dodopayments/resources/invoices/payments.py +83 -3
- dodopayments/resources/license_key_instances.py +13 -13
- dodopayments/resources/license_keys.py +23 -23
- dodopayments/resources/licenses.py +14 -14
- dodopayments/resources/meters.py +554 -0
- dodopayments/resources/misc.py +3 -3
- dodopayments/resources/payments.py +49 -41
- dodopayments/resources/payouts.py +26 -7
- dodopayments/resources/products/images.py +5 -5
- dodopayments/resources/products/products.py +82 -82
- dodopayments/resources/refunds.py +39 -30
- dodopayments/resources/subscriptions.py +316 -73
- dodopayments/resources/usage_events.py +597 -0
- dodopayments/resources/webhooks/headers.py +5 -5
- dodopayments/resources/webhooks/webhooks.py +119 -44
- dodopayments/types/__init__.py +48 -0
- dodopayments/types/add_meter_to_price.py +29 -0
- dodopayments/types/add_meter_to_price_param.py +30 -0
- dodopayments/types/checkout_session_create_params.py +6 -0
- dodopayments/types/checkout_session_status.py +35 -0
- dodopayments/types/customer_limited_details.py +5 -0
- dodopayments/types/customers/__init__.py +2 -0
- dodopayments/types/customers/customer_wallet.py +20 -0
- dodopayments/types/customers/wallet_list_response.py +15 -0
- dodopayments/types/customers/wallets/__init__.py +7 -0
- dodopayments/types/customers/wallets/customer_wallet_transaction.py +38 -0
- dodopayments/types/customers/wallets/ledger_entry_create_params.py +25 -0
- dodopayments/types/customers/wallets/ledger_entry_list_params.py +18 -0
- dodopayments/types/discount_create_params.py +3 -2
- dodopayments/types/discount_update_params.py +3 -2
- dodopayments/types/dispute_accepted_webhook_event.py +29 -0
- dodopayments/types/dispute_accepted_webhook_event1.py +29 -0
- dodopayments/types/dispute_cancelled_webhook_event.py +29 -0
- dodopayments/types/dispute_cancelled_webhook_event1.py +29 -0
- dodopayments/types/dispute_challenged_webhook_event.py +29 -0
- dodopayments/types/dispute_challenged_webhook_event1.py +29 -0
- dodopayments/types/dispute_expired_webhook_event.py +29 -0
- dodopayments/types/dispute_expired_webhook_event1.py +29 -0
- dodopayments/types/dispute_lost_webhook_event.py +29 -0
- dodopayments/types/dispute_lost_webhook_event1.py +29 -0
- dodopayments/types/dispute_opened_webhook_event.py +29 -0
- dodopayments/types/dispute_opened_webhook_event1.py +29 -0
- dodopayments/types/dispute_won_webhook_event.py +29 -0
- dodopayments/types/dispute_won_webhook_event1.py +29 -0
- dodopayments/types/event.py +26 -0
- dodopayments/types/event_input_param.py +38 -0
- dodopayments/types/license_activate_response.py +40 -0
- dodopayments/types/license_key_created_webhook_event.py +29 -0
- dodopayments/types/license_key_created_webhook_event1.py +29 -0
- dodopayments/types/meter.py +40 -0
- dodopayments/types/meter_aggregation.py +16 -0
- dodopayments/types/meter_aggregation_param.py +16 -0
- dodopayments/types/meter_create_params.py +31 -0
- dodopayments/types/meter_filter.py +131 -0
- dodopayments/types/meter_filter_param.py +143 -0
- dodopayments/types/meter_list_params.py +18 -0
- dodopayments/types/new_customer_param.py +7 -1
- dodopayments/types/payment.py +37 -2
- dodopayments/types/payment_cancelled_webhook_event.py +29 -0
- dodopayments/types/payment_cancelled_webhook_event1.py +29 -0
- dodopayments/types/payment_create_params.py +3 -0
- dodopayments/types/payment_failed_webhook_event.py +29 -0
- dodopayments/types/payment_failed_webhook_event1.py +29 -0
- dodopayments/types/payment_method_types.py +1 -0
- dodopayments/types/payment_processing_webhook_event.py +29 -0
- dodopayments/types/payment_processing_webhook_event1.py +29 -0
- dodopayments/types/payment_succeeded_webhook_event.py +29 -0
- dodopayments/types/payment_succeeded_webhook_event1.py +29 -0
- dodopayments/types/payout_list_params.py +11 -1
- dodopayments/types/price.py +52 -5
- dodopayments/types/price_param.py +52 -5
- dodopayments/types/product_create_params.py +3 -2
- dodopayments/types/product_update_params.py +4 -3
- dodopayments/types/refund.py +8 -1
- dodopayments/types/refund_create_params.py +4 -1
- dodopayments/types/refund_failed_webhook_event.py +29 -0
- dodopayments/types/refund_failed_webhook_event1.py +29 -0
- dodopayments/types/refund_list_response.py +39 -0
- dodopayments/types/refund_succeeded_webhook_event.py +29 -0
- dodopayments/types/refund_succeeded_webhook_event1.py +29 -0
- dodopayments/types/subscription.py +23 -1
- dodopayments/types/subscription_active_webhook_event.py +29 -0
- dodopayments/types/subscription_active_webhook_event1.py +29 -0
- dodopayments/types/subscription_cancelled_webhook_event.py +29 -0
- dodopayments/types/subscription_cancelled_webhook_event1.py +29 -0
- dodopayments/types/subscription_charge_params.py +12 -1
- dodopayments/types/subscription_create_params.py +3 -0
- dodopayments/types/subscription_expired_webhook_event.py +29 -0
- dodopayments/types/subscription_expired_webhook_event1.py +29 -0
- dodopayments/types/subscription_failed_webhook_event.py +29 -0
- dodopayments/types/subscription_failed_webhook_event1.py +29 -0
- dodopayments/types/subscription_list_response.py +3 -0
- dodopayments/types/subscription_on_hold_webhook_event.py +29 -0
- dodopayments/types/subscription_on_hold_webhook_event1.py +29 -0
- dodopayments/types/subscription_plan_changed_webhook_event.py +29 -0
- dodopayments/types/subscription_plan_changed_webhook_event1.py +29 -0
- dodopayments/types/subscription_renewed_webhook_event.py +29 -0
- dodopayments/types/subscription_renewed_webhook_event1.py +29 -0
- dodopayments/types/subscription_retrieve_usage_history_params.py +28 -0
- dodopayments/types/subscription_retrieve_usage_history_response.py +46 -0
- dodopayments/types/subscription_update_params.py +2 -0
- dodopayments/types/unsafe_unwrap_webhook_event.py +52 -0
- dodopayments/types/unwrap_webhook_event.py +52 -0
- dodopayments/types/usage_event_ingest_params.py +15 -0
- dodopayments/types/usage_event_ingest_response.py +9 -0
- dodopayments/types/usage_event_list_params.py +42 -0
- {dodopayments-1.51.1.dist-info → dodopayments-1.56.5.dist-info}/METADATA +6 -4
- dodopayments-1.56.5.dist-info/RECORD +239 -0
- dodopayments-1.51.1.dist-info/RECORD +0 -163
- {dodopayments-1.51.1.dist-info → dodopayments-1.56.5.dist-info}/WHEEL +0 -0
- {dodopayments-1.51.1.dist-info → dodopayments-1.56.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,7 +9,7 @@ from typing_extensions import Literal
|
|
|
9
9
|
import httpx
|
|
10
10
|
|
|
11
11
|
from ..types import Currency, payment_list_params, payment_create_params
|
|
12
|
-
from .._types import
|
|
12
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
13
13
|
from .._utils import maybe_transform, async_maybe_transform
|
|
14
14
|
from .._compat import cached_property
|
|
15
15
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -60,20 +60,21 @@ class PaymentsResource(SyncAPIResource):
|
|
|
60
60
|
billing: BillingAddressParam,
|
|
61
61
|
customer: CustomerRequestParam,
|
|
62
62
|
product_cart: Iterable[OneTimeProductCartItemParam],
|
|
63
|
-
allowed_payment_method_types: Optional[List[PaymentMethodTypes]] |
|
|
64
|
-
billing_currency: Optional[Currency] |
|
|
65
|
-
discount_code: Optional[str] |
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
allowed_payment_method_types: Optional[List[PaymentMethodTypes]] | Omit = omit,
|
|
64
|
+
billing_currency: Optional[Currency] | Omit = omit,
|
|
65
|
+
discount_code: Optional[str] | Omit = omit,
|
|
66
|
+
force_3ds: Optional[bool] | Omit = omit,
|
|
67
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
68
|
+
payment_link: Optional[bool] | Omit = omit,
|
|
69
|
+
return_url: Optional[str] | Omit = omit,
|
|
70
|
+
show_saved_payment_methods: bool | Omit = omit,
|
|
71
|
+
tax_id: Optional[str] | Omit = omit,
|
|
71
72
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
72
73
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
73
74
|
extra_headers: Headers | None = None,
|
|
74
75
|
extra_query: Query | None = None,
|
|
75
76
|
extra_body: Body | None = None,
|
|
76
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
77
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
77
78
|
) -> PaymentCreateResponse:
|
|
78
79
|
"""
|
|
79
80
|
Args:
|
|
@@ -95,6 +96,8 @@ class PaymentsResource(SyncAPIResource):
|
|
|
95
96
|
|
|
96
97
|
discount_code: Discount Code to apply to the transaction
|
|
97
98
|
|
|
99
|
+
force_3ds: Override merchant default 3DS behaviour for this payment
|
|
100
|
+
|
|
98
101
|
metadata: Additional metadata associated with the payment. Defaults to empty if not
|
|
99
102
|
provided.
|
|
100
103
|
|
|
@@ -126,6 +129,7 @@ class PaymentsResource(SyncAPIResource):
|
|
|
126
129
|
"allowed_payment_method_types": allowed_payment_method_types,
|
|
127
130
|
"billing_currency": billing_currency,
|
|
128
131
|
"discount_code": discount_code,
|
|
132
|
+
"force_3ds": force_3ds,
|
|
129
133
|
"metadata": metadata,
|
|
130
134
|
"payment_link": payment_link,
|
|
131
135
|
"return_url": return_url,
|
|
@@ -149,7 +153,7 @@ class PaymentsResource(SyncAPIResource):
|
|
|
149
153
|
extra_headers: Headers | None = None,
|
|
150
154
|
extra_query: Query | None = None,
|
|
151
155
|
extra_body: Body | None = None,
|
|
152
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
156
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
153
157
|
) -> Payment:
|
|
154
158
|
"""
|
|
155
159
|
Args:
|
|
@@ -174,12 +178,12 @@ class PaymentsResource(SyncAPIResource):
|
|
|
174
178
|
def list(
|
|
175
179
|
self,
|
|
176
180
|
*,
|
|
177
|
-
brand_id: str |
|
|
178
|
-
created_at_gte: Union[str, datetime] |
|
|
179
|
-
created_at_lte: Union[str, datetime] |
|
|
180
|
-
customer_id: str |
|
|
181
|
-
page_number: int |
|
|
182
|
-
page_size: int |
|
|
181
|
+
brand_id: str | Omit = omit,
|
|
182
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
183
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
184
|
+
customer_id: str | Omit = omit,
|
|
185
|
+
page_number: int | Omit = omit,
|
|
186
|
+
page_size: int | Omit = omit,
|
|
183
187
|
status: Literal[
|
|
184
188
|
"succeeded",
|
|
185
189
|
"failed",
|
|
@@ -193,14 +197,14 @@ class PaymentsResource(SyncAPIResource):
|
|
|
193
197
|
"partially_captured",
|
|
194
198
|
"partially_captured_and_capturable",
|
|
195
199
|
]
|
|
196
|
-
|
|
|
197
|
-
subscription_id: str |
|
|
200
|
+
| Omit = omit,
|
|
201
|
+
subscription_id: str | Omit = omit,
|
|
198
202
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
199
203
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
200
204
|
extra_headers: Headers | None = None,
|
|
201
205
|
extra_query: Query | None = None,
|
|
202
206
|
extra_body: Body | None = None,
|
|
203
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
207
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
204
208
|
) -> SyncDefaultPageNumberPagination[PaymentListResponse]:
|
|
205
209
|
"""
|
|
206
210
|
Args:
|
|
@@ -262,7 +266,7 @@ class PaymentsResource(SyncAPIResource):
|
|
|
262
266
|
extra_headers: Headers | None = None,
|
|
263
267
|
extra_query: Query | None = None,
|
|
264
268
|
extra_body: Body | None = None,
|
|
265
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
269
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
266
270
|
) -> PaymentRetrieveLineItemsResponse:
|
|
267
271
|
"""
|
|
268
272
|
Args:
|
|
@@ -311,20 +315,21 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
311
315
|
billing: BillingAddressParam,
|
|
312
316
|
customer: CustomerRequestParam,
|
|
313
317
|
product_cart: Iterable[OneTimeProductCartItemParam],
|
|
314
|
-
allowed_payment_method_types: Optional[List[PaymentMethodTypes]] |
|
|
315
|
-
billing_currency: Optional[Currency] |
|
|
316
|
-
discount_code: Optional[str] |
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
allowed_payment_method_types: Optional[List[PaymentMethodTypes]] | Omit = omit,
|
|
319
|
+
billing_currency: Optional[Currency] | Omit = omit,
|
|
320
|
+
discount_code: Optional[str] | Omit = omit,
|
|
321
|
+
force_3ds: Optional[bool] | Omit = omit,
|
|
322
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
323
|
+
payment_link: Optional[bool] | Omit = omit,
|
|
324
|
+
return_url: Optional[str] | Omit = omit,
|
|
325
|
+
show_saved_payment_methods: bool | Omit = omit,
|
|
326
|
+
tax_id: Optional[str] | Omit = omit,
|
|
322
327
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
323
328
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
324
329
|
extra_headers: Headers | None = None,
|
|
325
330
|
extra_query: Query | None = None,
|
|
326
331
|
extra_body: Body | None = None,
|
|
327
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
332
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
328
333
|
) -> PaymentCreateResponse:
|
|
329
334
|
"""
|
|
330
335
|
Args:
|
|
@@ -346,6 +351,8 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
346
351
|
|
|
347
352
|
discount_code: Discount Code to apply to the transaction
|
|
348
353
|
|
|
354
|
+
force_3ds: Override merchant default 3DS behaviour for this payment
|
|
355
|
+
|
|
349
356
|
metadata: Additional metadata associated with the payment. Defaults to empty if not
|
|
350
357
|
provided.
|
|
351
358
|
|
|
@@ -377,6 +384,7 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
377
384
|
"allowed_payment_method_types": allowed_payment_method_types,
|
|
378
385
|
"billing_currency": billing_currency,
|
|
379
386
|
"discount_code": discount_code,
|
|
387
|
+
"force_3ds": force_3ds,
|
|
380
388
|
"metadata": metadata,
|
|
381
389
|
"payment_link": payment_link,
|
|
382
390
|
"return_url": return_url,
|
|
@@ -400,7 +408,7 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
400
408
|
extra_headers: Headers | None = None,
|
|
401
409
|
extra_query: Query | None = None,
|
|
402
410
|
extra_body: Body | None = None,
|
|
403
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
411
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
404
412
|
) -> Payment:
|
|
405
413
|
"""
|
|
406
414
|
Args:
|
|
@@ -425,12 +433,12 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
425
433
|
def list(
|
|
426
434
|
self,
|
|
427
435
|
*,
|
|
428
|
-
brand_id: str |
|
|
429
|
-
created_at_gte: Union[str, datetime] |
|
|
430
|
-
created_at_lte: Union[str, datetime] |
|
|
431
|
-
customer_id: str |
|
|
432
|
-
page_number: int |
|
|
433
|
-
page_size: int |
|
|
436
|
+
brand_id: str | Omit = omit,
|
|
437
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
438
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
439
|
+
customer_id: str | Omit = omit,
|
|
440
|
+
page_number: int | Omit = omit,
|
|
441
|
+
page_size: int | Omit = omit,
|
|
434
442
|
status: Literal[
|
|
435
443
|
"succeeded",
|
|
436
444
|
"failed",
|
|
@@ -444,14 +452,14 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
444
452
|
"partially_captured",
|
|
445
453
|
"partially_captured_and_capturable",
|
|
446
454
|
]
|
|
447
|
-
|
|
|
448
|
-
subscription_id: str |
|
|
455
|
+
| Omit = omit,
|
|
456
|
+
subscription_id: str | Omit = omit,
|
|
449
457
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
450
458
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
451
459
|
extra_headers: Headers | None = None,
|
|
452
460
|
extra_query: Query | None = None,
|
|
453
461
|
extra_body: Body | None = None,
|
|
454
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
462
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
455
463
|
) -> AsyncPaginator[PaymentListResponse, AsyncDefaultPageNumberPagination[PaymentListResponse]]:
|
|
456
464
|
"""
|
|
457
465
|
Args:
|
|
@@ -513,7 +521,7 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
513
521
|
extra_headers: Headers | None = None,
|
|
514
522
|
extra_query: Query | None = None,
|
|
515
523
|
extra_body: Body | None = None,
|
|
516
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
524
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
517
525
|
) -> PaymentRetrieveLineItemsResponse:
|
|
518
526
|
"""
|
|
519
527
|
Args:
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Union
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
|
|
5
8
|
import httpx
|
|
6
9
|
|
|
7
10
|
from ..types import payout_list_params
|
|
8
|
-
from .._types import
|
|
11
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
9
12
|
from .._utils import maybe_transform
|
|
10
13
|
from .._compat import cached_property
|
|
11
14
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -45,17 +48,23 @@ class PayoutsResource(SyncAPIResource):
|
|
|
45
48
|
def list(
|
|
46
49
|
self,
|
|
47
50
|
*,
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
52
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
53
|
+
page_number: int | Omit = omit,
|
|
54
|
+
page_size: int | Omit = omit,
|
|
50
55
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
51
56
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
52
57
|
extra_headers: Headers | None = None,
|
|
53
58
|
extra_query: Query | None = None,
|
|
54
59
|
extra_body: Body | None = None,
|
|
55
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
60
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
56
61
|
) -> SyncDefaultPageNumberPagination[PayoutListResponse]:
|
|
57
62
|
"""
|
|
58
63
|
Args:
|
|
64
|
+
created_at_gte: Get payouts created after this time (inclusive)
|
|
65
|
+
|
|
66
|
+
created_at_lte: Get payouts created before this time (inclusive)
|
|
67
|
+
|
|
59
68
|
page_number: Page number default is 0
|
|
60
69
|
|
|
61
70
|
page_size: Page size default is 10 max is 100
|
|
@@ -78,6 +87,8 @@ class PayoutsResource(SyncAPIResource):
|
|
|
78
87
|
timeout=timeout,
|
|
79
88
|
query=maybe_transform(
|
|
80
89
|
{
|
|
90
|
+
"created_at_gte": created_at_gte,
|
|
91
|
+
"created_at_lte": created_at_lte,
|
|
81
92
|
"page_number": page_number,
|
|
82
93
|
"page_size": page_size,
|
|
83
94
|
},
|
|
@@ -111,17 +122,23 @@ class AsyncPayoutsResource(AsyncAPIResource):
|
|
|
111
122
|
def list(
|
|
112
123
|
self,
|
|
113
124
|
*,
|
|
114
|
-
|
|
115
|
-
|
|
125
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
126
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
127
|
+
page_number: int | Omit = omit,
|
|
128
|
+
page_size: int | Omit = omit,
|
|
116
129
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
117
130
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
118
131
|
extra_headers: Headers | None = None,
|
|
119
132
|
extra_query: Query | None = None,
|
|
120
133
|
extra_body: Body | None = None,
|
|
121
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
134
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
122
135
|
) -> AsyncPaginator[PayoutListResponse, AsyncDefaultPageNumberPagination[PayoutListResponse]]:
|
|
123
136
|
"""
|
|
124
137
|
Args:
|
|
138
|
+
created_at_gte: Get payouts created after this time (inclusive)
|
|
139
|
+
|
|
140
|
+
created_at_lte: Get payouts created before this time (inclusive)
|
|
141
|
+
|
|
125
142
|
page_number: Page number default is 0
|
|
126
143
|
|
|
127
144
|
page_size: Page size default is 10 max is 100
|
|
@@ -144,6 +161,8 @@ class AsyncPayoutsResource(AsyncAPIResource):
|
|
|
144
161
|
timeout=timeout,
|
|
145
162
|
query=maybe_transform(
|
|
146
163
|
{
|
|
164
|
+
"created_at_gte": created_at_gte,
|
|
165
|
+
"created_at_lte": created_at_lte,
|
|
147
166
|
"page_number": page_number,
|
|
148
167
|
"page_size": page_size,
|
|
149
168
|
},
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ..._types import
|
|
7
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
8
8
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
9
9
|
from ..._compat import cached_property
|
|
10
10
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -45,13 +45,13 @@ class ImagesResource(SyncAPIResource):
|
|
|
45
45
|
self,
|
|
46
46
|
id: str,
|
|
47
47
|
*,
|
|
48
|
-
force_update: bool |
|
|
48
|
+
force_update: bool | Omit = omit,
|
|
49
49
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
50
50
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
51
51
|
extra_headers: Headers | None = None,
|
|
52
52
|
extra_query: Query | None = None,
|
|
53
53
|
extra_body: Body | None = None,
|
|
54
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
54
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
55
55
|
) -> ImageUpdateResponse:
|
|
56
56
|
"""
|
|
57
57
|
Args:
|
|
@@ -102,13 +102,13 @@ class AsyncImagesResource(AsyncAPIResource):
|
|
|
102
102
|
self,
|
|
103
103
|
id: str,
|
|
104
104
|
*,
|
|
105
|
-
force_update: bool |
|
|
105
|
+
force_update: bool | Omit = omit,
|
|
106
106
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
107
107
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
108
108
|
extra_headers: Headers | None = None,
|
|
109
109
|
extra_query: Query | None = None,
|
|
110
110
|
extra_body: Body | None = None,
|
|
111
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
111
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
112
112
|
) -> ImageUpdateResponse:
|
|
113
113
|
"""
|
|
114
114
|
Args:
|