dodopayments 1.53.3__py3-none-any.whl → 1.53.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.
Potentially problematic release.
This version of dodopayments might be problematic. Click here for more details.
- dodopayments/__init__.py +3 -1
- dodopayments/_base_client.py +9 -9
- dodopayments/_client.py +12 -12
- dodopayments/_models.py +10 -4
- dodopayments/_qs.py +7 -7
- dodopayments/_types.py +18 -11
- dodopayments/_utils/_transform.py +2 -2
- dodopayments/_utils/_utils.py +4 -4
- dodopayments/_version.py +1 -1
- dodopayments/resources/addons.py +29 -29
- dodopayments/resources/brands.py +29 -29
- dodopayments/resources/checkout_sessions.py +27 -27
- dodopayments/resources/customers/customer_portal.py +5 -5
- dodopayments/resources/customers/customers.py +21 -21
- dodopayments/resources/customers/wallets/ledger_entries.py +15 -15
- dodopayments/resources/customers/wallets/wallets.py +3 -3
- dodopayments/resources/discounts.py +43 -43
- dodopayments/resources/disputes.py +19 -19
- dodopayments/resources/invoices/payments.py +5 -5
- dodopayments/resources/license_key_instances.py +13 -13
- dodopayments/resources/license_keys.py +23 -23
- dodopayments/resources/licenses.py +9 -9
- dodopayments/resources/meters.py +21 -21
- dodopayments/resources/misc.py +3 -3
- dodopayments/resources/payments.py +41 -41
- dodopayments/resources/payouts.py +7 -7
- dodopayments/resources/products/images.py +5 -5
- dodopayments/resources/products/products.py +71 -71
- dodopayments/resources/refunds.py +23 -23
- dodopayments/resources/subscriptions.py +87 -87
- dodopayments/resources/usage_events.py +21 -21
- dodopayments/resources/webhooks/headers.py +5 -5
- dodopayments/resources/webhooks/webhooks.py +43 -43
- {dodopayments-1.53.3.dist-info → dodopayments-1.53.5.dist-info}/METADATA +1 -1
- {dodopayments-1.53.3.dist-info → dodopayments-1.53.5.dist-info}/RECORD +37 -37
- {dodopayments-1.53.3.dist-info → dodopayments-1.53.5.dist-info}/WHEEL +0 -0
- {dodopayments-1.53.3.dist-info → dodopayments-1.53.5.dist-info}/licenses/LICENSE +0 -0
dodopayments/resources/meters.py
CHANGED
|
@@ -7,7 +7,7 @@ from typing import Optional
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from ..types import meter_list_params, meter_create_params
|
|
10
|
-
from .._types import
|
|
10
|
+
from .._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
11
11
|
from .._utils import maybe_transform, async_maybe_transform
|
|
12
12
|
from .._compat import cached_property
|
|
13
13
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -53,14 +53,14 @@ class MetersResource(SyncAPIResource):
|
|
|
53
53
|
event_name: str,
|
|
54
54
|
measurement_unit: str,
|
|
55
55
|
name: str,
|
|
56
|
-
description: Optional[str] |
|
|
57
|
-
filter: Optional[MeterFilterParam] |
|
|
56
|
+
description: Optional[str] | Omit = omit,
|
|
57
|
+
filter: Optional[MeterFilterParam] | Omit = omit,
|
|
58
58
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
59
59
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
60
60
|
extra_headers: Headers | None = None,
|
|
61
61
|
extra_query: Query | None = None,
|
|
62
62
|
extra_body: Body | None = None,
|
|
63
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
63
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
64
64
|
) -> Meter:
|
|
65
65
|
"""
|
|
66
66
|
Args:
|
|
@@ -112,7 +112,7 @@ class MetersResource(SyncAPIResource):
|
|
|
112
112
|
extra_headers: Headers | None = None,
|
|
113
113
|
extra_query: Query | None = None,
|
|
114
114
|
extra_body: Body | None = None,
|
|
115
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
115
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
116
116
|
) -> Meter:
|
|
117
117
|
"""
|
|
118
118
|
Args:
|
|
@@ -137,15 +137,15 @@ class MetersResource(SyncAPIResource):
|
|
|
137
137
|
def list(
|
|
138
138
|
self,
|
|
139
139
|
*,
|
|
140
|
-
archived: bool |
|
|
141
|
-
page_number: int |
|
|
142
|
-
page_size: int |
|
|
140
|
+
archived: bool | Omit = omit,
|
|
141
|
+
page_number: int | Omit = omit,
|
|
142
|
+
page_size: int | Omit = omit,
|
|
143
143
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
144
144
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
145
145
|
extra_headers: Headers | None = None,
|
|
146
146
|
extra_query: Query | None = None,
|
|
147
147
|
extra_body: Body | None = None,
|
|
148
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
148
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
149
149
|
) -> SyncDefaultPageNumberPagination[Meter]:
|
|
150
150
|
"""
|
|
151
151
|
Args:
|
|
@@ -192,7 +192,7 @@ class MetersResource(SyncAPIResource):
|
|
|
192
192
|
extra_headers: Headers | None = None,
|
|
193
193
|
extra_query: Query | None = None,
|
|
194
194
|
extra_body: Body | None = None,
|
|
195
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
195
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
196
196
|
) -> None:
|
|
197
197
|
"""
|
|
198
198
|
Args:
|
|
@@ -224,7 +224,7 @@ class MetersResource(SyncAPIResource):
|
|
|
224
224
|
extra_headers: Headers | None = None,
|
|
225
225
|
extra_query: Query | None = None,
|
|
226
226
|
extra_body: Body | None = None,
|
|
227
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
227
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
228
228
|
) -> None:
|
|
229
229
|
"""
|
|
230
230
|
Args:
|
|
@@ -275,14 +275,14 @@ class AsyncMetersResource(AsyncAPIResource):
|
|
|
275
275
|
event_name: str,
|
|
276
276
|
measurement_unit: str,
|
|
277
277
|
name: str,
|
|
278
|
-
description: Optional[str] |
|
|
279
|
-
filter: Optional[MeterFilterParam] |
|
|
278
|
+
description: Optional[str] | Omit = omit,
|
|
279
|
+
filter: Optional[MeterFilterParam] | Omit = omit,
|
|
280
280
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
281
281
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
282
282
|
extra_headers: Headers | None = None,
|
|
283
283
|
extra_query: Query | None = None,
|
|
284
284
|
extra_body: Body | None = None,
|
|
285
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
285
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
286
286
|
) -> Meter:
|
|
287
287
|
"""
|
|
288
288
|
Args:
|
|
@@ -334,7 +334,7 @@ class AsyncMetersResource(AsyncAPIResource):
|
|
|
334
334
|
extra_headers: Headers | None = None,
|
|
335
335
|
extra_query: Query | None = None,
|
|
336
336
|
extra_body: Body | None = None,
|
|
337
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
337
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
338
338
|
) -> Meter:
|
|
339
339
|
"""
|
|
340
340
|
Args:
|
|
@@ -359,15 +359,15 @@ class AsyncMetersResource(AsyncAPIResource):
|
|
|
359
359
|
def list(
|
|
360
360
|
self,
|
|
361
361
|
*,
|
|
362
|
-
archived: bool |
|
|
363
|
-
page_number: int |
|
|
364
|
-
page_size: int |
|
|
362
|
+
archived: bool | Omit = omit,
|
|
363
|
+
page_number: int | Omit = omit,
|
|
364
|
+
page_size: int | Omit = omit,
|
|
365
365
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
366
366
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
367
367
|
extra_headers: Headers | None = None,
|
|
368
368
|
extra_query: Query | None = None,
|
|
369
369
|
extra_body: Body | None = None,
|
|
370
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
370
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
371
371
|
) -> AsyncPaginator[Meter, AsyncDefaultPageNumberPagination[Meter]]:
|
|
372
372
|
"""
|
|
373
373
|
Args:
|
|
@@ -414,7 +414,7 @@ class AsyncMetersResource(AsyncAPIResource):
|
|
|
414
414
|
extra_headers: Headers | None = None,
|
|
415
415
|
extra_query: Query | None = None,
|
|
416
416
|
extra_body: Body | None = None,
|
|
417
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
417
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
418
418
|
) -> None:
|
|
419
419
|
"""
|
|
420
420
|
Args:
|
|
@@ -446,7 +446,7 @@ class AsyncMetersResource(AsyncAPIResource):
|
|
|
446
446
|
extra_headers: Headers | None = None,
|
|
447
447
|
extra_query: Query | None = None,
|
|
448
448
|
extra_body: Body | None = None,
|
|
449
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
449
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
450
450
|
) -> None:
|
|
451
451
|
"""
|
|
452
452
|
Args:
|
dodopayments/resources/misc.py
CHANGED
|
@@ -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, Query, Headers, NotGiven, not_given
|
|
8
8
|
from .._compat import cached_property
|
|
9
9
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
10
10
|
from .._response import (
|
|
@@ -47,7 +47,7 @@ class MiscResource(SyncAPIResource):
|
|
|
47
47
|
extra_headers: Headers | None = None,
|
|
48
48
|
extra_query: Query | None = None,
|
|
49
49
|
extra_body: Body | None = None,
|
|
50
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
50
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
51
51
|
) -> MiscListSupportedCountriesResponse:
|
|
52
52
|
return self._get(
|
|
53
53
|
"/checkout/supported_countries",
|
|
@@ -86,7 +86,7 @@ class AsyncMiscResource(AsyncAPIResource):
|
|
|
86
86
|
extra_headers: Headers | None = None,
|
|
87
87
|
extra_query: Query | None = None,
|
|
88
88
|
extra_body: Body | None = None,
|
|
89
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
89
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
90
90
|
) -> MiscListSupportedCountriesResponse:
|
|
91
91
|
return await self._get(
|
|
92
92
|
"/checkout/supported_countries",
|
|
@@ -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,20 @@ 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
|
-
metadata: Dict[str, str] |
|
|
67
|
-
payment_link: Optional[bool] |
|
|
68
|
-
return_url: Optional[str] |
|
|
69
|
-
show_saved_payment_methods: bool |
|
|
70
|
-
tax_id: Optional[str] |
|
|
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
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
67
|
+
payment_link: Optional[bool] | Omit = omit,
|
|
68
|
+
return_url: Optional[str] | Omit = omit,
|
|
69
|
+
show_saved_payment_methods: bool | Omit = omit,
|
|
70
|
+
tax_id: Optional[str] | Omit = omit,
|
|
71
71
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
72
72
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
73
73
|
extra_headers: Headers | None = None,
|
|
74
74
|
extra_query: Query | None = None,
|
|
75
75
|
extra_body: Body | None = None,
|
|
76
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
76
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
77
77
|
) -> PaymentCreateResponse:
|
|
78
78
|
"""
|
|
79
79
|
Args:
|
|
@@ -149,7 +149,7 @@ class PaymentsResource(SyncAPIResource):
|
|
|
149
149
|
extra_headers: Headers | None = None,
|
|
150
150
|
extra_query: Query | None = None,
|
|
151
151
|
extra_body: Body | None = None,
|
|
152
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
152
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
153
153
|
) -> Payment:
|
|
154
154
|
"""
|
|
155
155
|
Args:
|
|
@@ -174,12 +174,12 @@ class PaymentsResource(SyncAPIResource):
|
|
|
174
174
|
def list(
|
|
175
175
|
self,
|
|
176
176
|
*,
|
|
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 |
|
|
177
|
+
brand_id: str | Omit = omit,
|
|
178
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
179
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
180
|
+
customer_id: str | Omit = omit,
|
|
181
|
+
page_number: int | Omit = omit,
|
|
182
|
+
page_size: int | Omit = omit,
|
|
183
183
|
status: Literal[
|
|
184
184
|
"succeeded",
|
|
185
185
|
"failed",
|
|
@@ -193,14 +193,14 @@ class PaymentsResource(SyncAPIResource):
|
|
|
193
193
|
"partially_captured",
|
|
194
194
|
"partially_captured_and_capturable",
|
|
195
195
|
]
|
|
196
|
-
|
|
|
197
|
-
subscription_id: str |
|
|
196
|
+
| Omit = omit,
|
|
197
|
+
subscription_id: str | Omit = omit,
|
|
198
198
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
199
199
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
200
200
|
extra_headers: Headers | None = None,
|
|
201
201
|
extra_query: Query | None = None,
|
|
202
202
|
extra_body: Body | None = None,
|
|
203
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
203
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
204
204
|
) -> SyncDefaultPageNumberPagination[PaymentListResponse]:
|
|
205
205
|
"""
|
|
206
206
|
Args:
|
|
@@ -262,7 +262,7 @@ class PaymentsResource(SyncAPIResource):
|
|
|
262
262
|
extra_headers: Headers | None = None,
|
|
263
263
|
extra_query: Query | None = None,
|
|
264
264
|
extra_body: Body | None = None,
|
|
265
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
265
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
266
266
|
) -> PaymentRetrieveLineItemsResponse:
|
|
267
267
|
"""
|
|
268
268
|
Args:
|
|
@@ -311,20 +311,20 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
311
311
|
billing: BillingAddressParam,
|
|
312
312
|
customer: CustomerRequestParam,
|
|
313
313
|
product_cart: Iterable[OneTimeProductCartItemParam],
|
|
314
|
-
allowed_payment_method_types: Optional[List[PaymentMethodTypes]] |
|
|
315
|
-
billing_currency: Optional[Currency] |
|
|
316
|
-
discount_code: Optional[str] |
|
|
317
|
-
metadata: Dict[str, str] |
|
|
318
|
-
payment_link: Optional[bool] |
|
|
319
|
-
return_url: Optional[str] |
|
|
320
|
-
show_saved_payment_methods: bool |
|
|
321
|
-
tax_id: Optional[str] |
|
|
314
|
+
allowed_payment_method_types: Optional[List[PaymentMethodTypes]] | Omit = omit,
|
|
315
|
+
billing_currency: Optional[Currency] | Omit = omit,
|
|
316
|
+
discount_code: Optional[str] | Omit = omit,
|
|
317
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
318
|
+
payment_link: Optional[bool] | Omit = omit,
|
|
319
|
+
return_url: Optional[str] | Omit = omit,
|
|
320
|
+
show_saved_payment_methods: bool | Omit = omit,
|
|
321
|
+
tax_id: Optional[str] | Omit = omit,
|
|
322
322
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
323
323
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
324
324
|
extra_headers: Headers | None = None,
|
|
325
325
|
extra_query: Query | None = None,
|
|
326
326
|
extra_body: Body | None = None,
|
|
327
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
327
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
328
328
|
) -> PaymentCreateResponse:
|
|
329
329
|
"""
|
|
330
330
|
Args:
|
|
@@ -400,7 +400,7 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
400
400
|
extra_headers: Headers | None = None,
|
|
401
401
|
extra_query: Query | None = None,
|
|
402
402
|
extra_body: Body | None = None,
|
|
403
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
403
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
404
404
|
) -> Payment:
|
|
405
405
|
"""
|
|
406
406
|
Args:
|
|
@@ -425,12 +425,12 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
425
425
|
def list(
|
|
426
426
|
self,
|
|
427
427
|
*,
|
|
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 |
|
|
428
|
+
brand_id: str | Omit = omit,
|
|
429
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
430
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
431
|
+
customer_id: str | Omit = omit,
|
|
432
|
+
page_number: int | Omit = omit,
|
|
433
|
+
page_size: int | Omit = omit,
|
|
434
434
|
status: Literal[
|
|
435
435
|
"succeeded",
|
|
436
436
|
"failed",
|
|
@@ -444,14 +444,14 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
444
444
|
"partially_captured",
|
|
445
445
|
"partially_captured_and_capturable",
|
|
446
446
|
]
|
|
447
|
-
|
|
|
448
|
-
subscription_id: str |
|
|
447
|
+
| Omit = omit,
|
|
448
|
+
subscription_id: str | Omit = omit,
|
|
449
449
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
450
450
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
451
451
|
extra_headers: Headers | None = None,
|
|
452
452
|
extra_query: Query | None = None,
|
|
453
453
|
extra_body: Body | None = None,
|
|
454
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
454
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
455
455
|
) -> AsyncPaginator[PaymentListResponse, AsyncDefaultPageNumberPagination[PaymentListResponse]]:
|
|
456
456
|
"""
|
|
457
457
|
Args:
|
|
@@ -513,7 +513,7 @@ class AsyncPaymentsResource(AsyncAPIResource):
|
|
|
513
513
|
extra_headers: Headers | None = None,
|
|
514
514
|
extra_query: Query | None = None,
|
|
515
515
|
extra_body: Body | None = None,
|
|
516
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
516
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
517
517
|
) -> PaymentRetrieveLineItemsResponse:
|
|
518
518
|
"""
|
|
519
519
|
Args:
|
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
7
|
from ..types import payout_list_params
|
|
8
|
-
from .._types import
|
|
8
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
9
9
|
from .._utils import maybe_transform
|
|
10
10
|
from .._compat import cached_property
|
|
11
11
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -45,14 +45,14 @@ class PayoutsResource(SyncAPIResource):
|
|
|
45
45
|
def list(
|
|
46
46
|
self,
|
|
47
47
|
*,
|
|
48
|
-
page_number: int |
|
|
49
|
-
page_size: int |
|
|
48
|
+
page_number: int | Omit = omit,
|
|
49
|
+
page_size: int | Omit = omit,
|
|
50
50
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
51
51
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
52
52
|
extra_headers: Headers | None = None,
|
|
53
53
|
extra_query: Query | None = None,
|
|
54
54
|
extra_body: Body | None = None,
|
|
55
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
55
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
56
56
|
) -> SyncDefaultPageNumberPagination[PayoutListResponse]:
|
|
57
57
|
"""
|
|
58
58
|
Args:
|
|
@@ -111,14 +111,14 @@ class AsyncPayoutsResource(AsyncAPIResource):
|
|
|
111
111
|
def list(
|
|
112
112
|
self,
|
|
113
113
|
*,
|
|
114
|
-
page_number: int |
|
|
115
|
-
page_size: int |
|
|
114
|
+
page_number: int | Omit = omit,
|
|
115
|
+
page_size: int | Omit = omit,
|
|
116
116
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
117
117
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
118
118
|
extra_headers: Headers | None = None,
|
|
119
119
|
extra_query: Query | None = None,
|
|
120
120
|
extra_body: Body | None = None,
|
|
121
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
121
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
122
122
|
) -> AsyncPaginator[PayoutListResponse, AsyncDefaultPageNumberPagination[PayoutListResponse]]:
|
|
123
123
|
"""
|
|
124
124
|
Args:
|
|
@@ -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:
|