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
|
@@ -21,7 +21,7 @@ from ...types import (
|
|
|
21
21
|
product_update_params,
|
|
22
22
|
product_update_files_params,
|
|
23
23
|
)
|
|
24
|
-
from ..._types import
|
|
24
|
+
from ..._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given
|
|
25
25
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
26
26
|
from ..._compat import cached_property
|
|
27
27
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -72,22 +72,22 @@ class ProductsResource(SyncAPIResource):
|
|
|
72
72
|
*,
|
|
73
73
|
price: PriceParam,
|
|
74
74
|
tax_category: TaxCategory,
|
|
75
|
-
addons: Optional[SequenceNotStr[str]] |
|
|
76
|
-
brand_id: Optional[str] |
|
|
77
|
-
description: Optional[str] |
|
|
78
|
-
digital_product_delivery: Optional[product_create_params.DigitalProductDelivery] |
|
|
79
|
-
license_key_activation_message: Optional[str] |
|
|
80
|
-
license_key_activations_limit: Optional[int] |
|
|
81
|
-
license_key_duration: Optional[LicenseKeyDurationParam] |
|
|
82
|
-
license_key_enabled: Optional[bool] |
|
|
83
|
-
metadata: Dict[str, str] |
|
|
84
|
-
name: Optional[str] |
|
|
75
|
+
addons: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
76
|
+
brand_id: Optional[str] | Omit = omit,
|
|
77
|
+
description: Optional[str] | Omit = omit,
|
|
78
|
+
digital_product_delivery: Optional[product_create_params.DigitalProductDelivery] | Omit = omit,
|
|
79
|
+
license_key_activation_message: Optional[str] | Omit = omit,
|
|
80
|
+
license_key_activations_limit: Optional[int] | Omit = omit,
|
|
81
|
+
license_key_duration: Optional[LicenseKeyDurationParam] | Omit = omit,
|
|
82
|
+
license_key_enabled: Optional[bool] | Omit = omit,
|
|
83
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
84
|
+
name: Optional[str] | Omit = omit,
|
|
85
85
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
86
86
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
87
87
|
extra_headers: Headers | None = None,
|
|
88
88
|
extra_query: Query | None = None,
|
|
89
89
|
extra_body: Body | None = None,
|
|
90
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
90
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
91
91
|
) -> Product:
|
|
92
92
|
"""
|
|
93
93
|
Args:
|
|
@@ -159,7 +159,7 @@ class ProductsResource(SyncAPIResource):
|
|
|
159
159
|
extra_headers: Headers | None = None,
|
|
160
160
|
extra_query: Query | None = None,
|
|
161
161
|
extra_body: Body | None = None,
|
|
162
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
162
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
163
163
|
) -> Product:
|
|
164
164
|
"""
|
|
165
165
|
Args:
|
|
@@ -185,25 +185,25 @@ class ProductsResource(SyncAPIResource):
|
|
|
185
185
|
self,
|
|
186
186
|
id: str,
|
|
187
187
|
*,
|
|
188
|
-
addons: Optional[SequenceNotStr[str]] |
|
|
189
|
-
brand_id: Optional[str] |
|
|
190
|
-
description: Optional[str] |
|
|
191
|
-
digital_product_delivery: Optional[product_update_params.DigitalProductDelivery] |
|
|
192
|
-
image_id: Optional[str] |
|
|
193
|
-
license_key_activation_message: Optional[str] |
|
|
194
|
-
license_key_activations_limit: Optional[int] |
|
|
195
|
-
license_key_duration: Optional[LicenseKeyDurationParam] |
|
|
196
|
-
license_key_enabled: Optional[bool] |
|
|
197
|
-
metadata: Optional[Dict[str, str]] |
|
|
198
|
-
name: Optional[str] |
|
|
199
|
-
price: Optional[PriceParam] |
|
|
200
|
-
tax_category: Optional[TaxCategory] |
|
|
188
|
+
addons: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
189
|
+
brand_id: Optional[str] | Omit = omit,
|
|
190
|
+
description: Optional[str] | Omit = omit,
|
|
191
|
+
digital_product_delivery: Optional[product_update_params.DigitalProductDelivery] | Omit = omit,
|
|
192
|
+
image_id: Optional[str] | Omit = omit,
|
|
193
|
+
license_key_activation_message: Optional[str] | Omit = omit,
|
|
194
|
+
license_key_activations_limit: Optional[int] | Omit = omit,
|
|
195
|
+
license_key_duration: Optional[LicenseKeyDurationParam] | Omit = omit,
|
|
196
|
+
license_key_enabled: Optional[bool] | Omit = omit,
|
|
197
|
+
metadata: Optional[Dict[str, str]] | Omit = omit,
|
|
198
|
+
name: Optional[str] | Omit = omit,
|
|
199
|
+
price: Optional[PriceParam] | Omit = omit,
|
|
200
|
+
tax_category: Optional[TaxCategory] | Omit = omit,
|
|
201
201
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
202
202
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
203
203
|
extra_headers: Headers | None = None,
|
|
204
204
|
extra_query: Query | None = None,
|
|
205
205
|
extra_body: Body | None = None,
|
|
206
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
206
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
207
207
|
) -> None:
|
|
208
208
|
"""
|
|
209
209
|
Args:
|
|
@@ -283,17 +283,17 @@ class ProductsResource(SyncAPIResource):
|
|
|
283
283
|
def list(
|
|
284
284
|
self,
|
|
285
285
|
*,
|
|
286
|
-
archived: bool |
|
|
287
|
-
brand_id: str |
|
|
288
|
-
page_number: int |
|
|
289
|
-
page_size: int |
|
|
290
|
-
recurring: bool |
|
|
286
|
+
archived: bool | Omit = omit,
|
|
287
|
+
brand_id: str | Omit = omit,
|
|
288
|
+
page_number: int | Omit = omit,
|
|
289
|
+
page_size: int | Omit = omit,
|
|
290
|
+
recurring: bool | Omit = omit,
|
|
291
291
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
292
292
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
293
293
|
extra_headers: Headers | None = None,
|
|
294
294
|
extra_query: Query | None = None,
|
|
295
295
|
extra_body: Body | None = None,
|
|
296
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
296
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
297
297
|
) -> SyncDefaultPageNumberPagination[ProductListResponse]:
|
|
298
298
|
"""
|
|
299
299
|
Args:
|
|
@@ -351,7 +351,7 @@ class ProductsResource(SyncAPIResource):
|
|
|
351
351
|
extra_headers: Headers | None = None,
|
|
352
352
|
extra_query: Query | None = None,
|
|
353
353
|
extra_body: Body | None = None,
|
|
354
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
354
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
355
355
|
) -> None:
|
|
356
356
|
"""
|
|
357
357
|
Args:
|
|
@@ -383,7 +383,7 @@ class ProductsResource(SyncAPIResource):
|
|
|
383
383
|
extra_headers: Headers | None = None,
|
|
384
384
|
extra_query: Query | None = None,
|
|
385
385
|
extra_body: Body | None = None,
|
|
386
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
386
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
387
387
|
) -> None:
|
|
388
388
|
"""
|
|
389
389
|
Args:
|
|
@@ -416,7 +416,7 @@ class ProductsResource(SyncAPIResource):
|
|
|
416
416
|
extra_headers: Headers | None = None,
|
|
417
417
|
extra_query: Query | None = None,
|
|
418
418
|
extra_body: Body | None = None,
|
|
419
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
419
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
420
420
|
) -> ProductUpdateFilesResponse:
|
|
421
421
|
"""
|
|
422
422
|
Args:
|
|
@@ -469,22 +469,22 @@ class AsyncProductsResource(AsyncAPIResource):
|
|
|
469
469
|
*,
|
|
470
470
|
price: PriceParam,
|
|
471
471
|
tax_category: TaxCategory,
|
|
472
|
-
addons: Optional[SequenceNotStr[str]] |
|
|
473
|
-
brand_id: Optional[str] |
|
|
474
|
-
description: Optional[str] |
|
|
475
|
-
digital_product_delivery: Optional[product_create_params.DigitalProductDelivery] |
|
|
476
|
-
license_key_activation_message: Optional[str] |
|
|
477
|
-
license_key_activations_limit: Optional[int] |
|
|
478
|
-
license_key_duration: Optional[LicenseKeyDurationParam] |
|
|
479
|
-
license_key_enabled: Optional[bool] |
|
|
480
|
-
metadata: Dict[str, str] |
|
|
481
|
-
name: Optional[str] |
|
|
472
|
+
addons: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
473
|
+
brand_id: Optional[str] | Omit = omit,
|
|
474
|
+
description: Optional[str] | Omit = omit,
|
|
475
|
+
digital_product_delivery: Optional[product_create_params.DigitalProductDelivery] | Omit = omit,
|
|
476
|
+
license_key_activation_message: Optional[str] | Omit = omit,
|
|
477
|
+
license_key_activations_limit: Optional[int] | Omit = omit,
|
|
478
|
+
license_key_duration: Optional[LicenseKeyDurationParam] | Omit = omit,
|
|
479
|
+
license_key_enabled: Optional[bool] | Omit = omit,
|
|
480
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
481
|
+
name: Optional[str] | Omit = omit,
|
|
482
482
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
483
483
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
484
484
|
extra_headers: Headers | None = None,
|
|
485
485
|
extra_query: Query | None = None,
|
|
486
486
|
extra_body: Body | None = None,
|
|
487
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
487
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
488
488
|
) -> Product:
|
|
489
489
|
"""
|
|
490
490
|
Args:
|
|
@@ -556,7 +556,7 @@ class AsyncProductsResource(AsyncAPIResource):
|
|
|
556
556
|
extra_headers: Headers | None = None,
|
|
557
557
|
extra_query: Query | None = None,
|
|
558
558
|
extra_body: Body | None = None,
|
|
559
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
559
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
560
560
|
) -> Product:
|
|
561
561
|
"""
|
|
562
562
|
Args:
|
|
@@ -582,25 +582,25 @@ class AsyncProductsResource(AsyncAPIResource):
|
|
|
582
582
|
self,
|
|
583
583
|
id: str,
|
|
584
584
|
*,
|
|
585
|
-
addons: Optional[SequenceNotStr[str]] |
|
|
586
|
-
brand_id: Optional[str] |
|
|
587
|
-
description: Optional[str] |
|
|
588
|
-
digital_product_delivery: Optional[product_update_params.DigitalProductDelivery] |
|
|
589
|
-
image_id: Optional[str] |
|
|
590
|
-
license_key_activation_message: Optional[str] |
|
|
591
|
-
license_key_activations_limit: Optional[int] |
|
|
592
|
-
license_key_duration: Optional[LicenseKeyDurationParam] |
|
|
593
|
-
license_key_enabled: Optional[bool] |
|
|
594
|
-
metadata: Optional[Dict[str, str]] |
|
|
595
|
-
name: Optional[str] |
|
|
596
|
-
price: Optional[PriceParam] |
|
|
597
|
-
tax_category: Optional[TaxCategory] |
|
|
585
|
+
addons: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
586
|
+
brand_id: Optional[str] | Omit = omit,
|
|
587
|
+
description: Optional[str] | Omit = omit,
|
|
588
|
+
digital_product_delivery: Optional[product_update_params.DigitalProductDelivery] | Omit = omit,
|
|
589
|
+
image_id: Optional[str] | Omit = omit,
|
|
590
|
+
license_key_activation_message: Optional[str] | Omit = omit,
|
|
591
|
+
license_key_activations_limit: Optional[int] | Omit = omit,
|
|
592
|
+
license_key_duration: Optional[LicenseKeyDurationParam] | Omit = omit,
|
|
593
|
+
license_key_enabled: Optional[bool] | Omit = omit,
|
|
594
|
+
metadata: Optional[Dict[str, str]] | Omit = omit,
|
|
595
|
+
name: Optional[str] | Omit = omit,
|
|
596
|
+
price: Optional[PriceParam] | Omit = omit,
|
|
597
|
+
tax_category: Optional[TaxCategory] | Omit = omit,
|
|
598
598
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
599
599
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
600
600
|
extra_headers: Headers | None = None,
|
|
601
601
|
extra_query: Query | None = None,
|
|
602
602
|
extra_body: Body | None = None,
|
|
603
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
603
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
604
604
|
) -> None:
|
|
605
605
|
"""
|
|
606
606
|
Args:
|
|
@@ -680,17 +680,17 @@ class AsyncProductsResource(AsyncAPIResource):
|
|
|
680
680
|
def list(
|
|
681
681
|
self,
|
|
682
682
|
*,
|
|
683
|
-
archived: bool |
|
|
684
|
-
brand_id: str |
|
|
685
|
-
page_number: int |
|
|
686
|
-
page_size: int |
|
|
687
|
-
recurring: bool |
|
|
683
|
+
archived: bool | Omit = omit,
|
|
684
|
+
brand_id: str | Omit = omit,
|
|
685
|
+
page_number: int | Omit = omit,
|
|
686
|
+
page_size: int | Omit = omit,
|
|
687
|
+
recurring: bool | Omit = omit,
|
|
688
688
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
689
689
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
690
690
|
extra_headers: Headers | None = None,
|
|
691
691
|
extra_query: Query | None = None,
|
|
692
692
|
extra_body: Body | None = None,
|
|
693
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
693
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
694
694
|
) -> AsyncPaginator[ProductListResponse, AsyncDefaultPageNumberPagination[ProductListResponse]]:
|
|
695
695
|
"""
|
|
696
696
|
Args:
|
|
@@ -748,7 +748,7 @@ class AsyncProductsResource(AsyncAPIResource):
|
|
|
748
748
|
extra_headers: Headers | None = None,
|
|
749
749
|
extra_query: Query | None = None,
|
|
750
750
|
extra_body: Body | None = None,
|
|
751
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
751
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
752
752
|
) -> None:
|
|
753
753
|
"""
|
|
754
754
|
Args:
|
|
@@ -780,7 +780,7 @@ class AsyncProductsResource(AsyncAPIResource):
|
|
|
780
780
|
extra_headers: Headers | None = None,
|
|
781
781
|
extra_query: Query | None = None,
|
|
782
782
|
extra_body: Body | None = None,
|
|
783
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
783
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
784
784
|
) -> None:
|
|
785
785
|
"""
|
|
786
786
|
Args:
|
|
@@ -813,7 +813,7 @@ class AsyncProductsResource(AsyncAPIResource):
|
|
|
813
813
|
extra_headers: Headers | None = None,
|
|
814
814
|
extra_query: Query | None = None,
|
|
815
815
|
extra_body: Body | None = None,
|
|
816
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
816
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
817
817
|
) -> ProductUpdateFilesResponse:
|
|
818
818
|
"""
|
|
819
819
|
Args:
|
|
@@ -9,7 +9,7 @@ from typing_extensions import Literal
|
|
|
9
9
|
import httpx
|
|
10
10
|
|
|
11
11
|
from ..types import refund_list_params, refund_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
|
|
@@ -51,14 +51,14 @@ class RefundsResource(SyncAPIResource):
|
|
|
51
51
|
self,
|
|
52
52
|
*,
|
|
53
53
|
payment_id: str,
|
|
54
|
-
items: Optional[Iterable[refund_create_params.Item]] |
|
|
55
|
-
reason: Optional[str] |
|
|
54
|
+
items: Optional[Iterable[refund_create_params.Item]] | Omit = omit,
|
|
55
|
+
reason: Optional[str] | Omit = omit,
|
|
56
56
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
57
57
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
58
58
|
extra_headers: Headers | None = None,
|
|
59
59
|
extra_query: Query | None = None,
|
|
60
60
|
extra_body: Body | None = None,
|
|
61
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
61
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
62
62
|
) -> Refund:
|
|
63
63
|
"""
|
|
64
64
|
Args:
|
|
@@ -101,7 +101,7 @@ class RefundsResource(SyncAPIResource):
|
|
|
101
101
|
extra_headers: Headers | None = None,
|
|
102
102
|
extra_query: Query | None = None,
|
|
103
103
|
extra_body: Body | None = None,
|
|
104
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
104
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
105
105
|
) -> Refund:
|
|
106
106
|
"""
|
|
107
107
|
Args:
|
|
@@ -126,18 +126,18 @@ class RefundsResource(SyncAPIResource):
|
|
|
126
126
|
def list(
|
|
127
127
|
self,
|
|
128
128
|
*,
|
|
129
|
-
created_at_gte: Union[str, datetime] |
|
|
130
|
-
created_at_lte: Union[str, datetime] |
|
|
131
|
-
customer_id: str |
|
|
132
|
-
page_number: int |
|
|
133
|
-
page_size: int |
|
|
134
|
-
status: Literal["succeeded", "failed", "pending", "review"] |
|
|
129
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
130
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
131
|
+
customer_id: str | Omit = omit,
|
|
132
|
+
page_number: int | Omit = omit,
|
|
133
|
+
page_size: int | Omit = omit,
|
|
134
|
+
status: Literal["succeeded", "failed", "pending", "review"] | Omit = omit,
|
|
135
135
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
136
136
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
137
137
|
extra_headers: Headers | None = None,
|
|
138
138
|
extra_query: Query | None = None,
|
|
139
139
|
extra_body: Body | None = None,
|
|
140
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
140
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
141
141
|
) -> SyncDefaultPageNumberPagination[RefundListResponse]:
|
|
142
142
|
"""
|
|
143
143
|
Args:
|
|
@@ -209,14 +209,14 @@ class AsyncRefundsResource(AsyncAPIResource):
|
|
|
209
209
|
self,
|
|
210
210
|
*,
|
|
211
211
|
payment_id: str,
|
|
212
|
-
items: Optional[Iterable[refund_create_params.Item]] |
|
|
213
|
-
reason: Optional[str] |
|
|
212
|
+
items: Optional[Iterable[refund_create_params.Item]] | Omit = omit,
|
|
213
|
+
reason: Optional[str] | Omit = omit,
|
|
214
214
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
215
215
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
216
216
|
extra_headers: Headers | None = None,
|
|
217
217
|
extra_query: Query | None = None,
|
|
218
218
|
extra_body: Body | None = None,
|
|
219
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
219
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
220
220
|
) -> Refund:
|
|
221
221
|
"""
|
|
222
222
|
Args:
|
|
@@ -259,7 +259,7 @@ class AsyncRefundsResource(AsyncAPIResource):
|
|
|
259
259
|
extra_headers: Headers | None = None,
|
|
260
260
|
extra_query: Query | None = None,
|
|
261
261
|
extra_body: Body | None = None,
|
|
262
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
262
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
263
263
|
) -> Refund:
|
|
264
264
|
"""
|
|
265
265
|
Args:
|
|
@@ -284,18 +284,18 @@ class AsyncRefundsResource(AsyncAPIResource):
|
|
|
284
284
|
def list(
|
|
285
285
|
self,
|
|
286
286
|
*,
|
|
287
|
-
created_at_gte: Union[str, datetime] |
|
|
288
|
-
created_at_lte: Union[str, datetime] |
|
|
289
|
-
customer_id: str |
|
|
290
|
-
page_number: int |
|
|
291
|
-
page_size: int |
|
|
292
|
-
status: Literal["succeeded", "failed", "pending", "review"] |
|
|
287
|
+
created_at_gte: Union[str, datetime] | Omit = omit,
|
|
288
|
+
created_at_lte: Union[str, datetime] | Omit = omit,
|
|
289
|
+
customer_id: str | Omit = omit,
|
|
290
|
+
page_number: int | Omit = omit,
|
|
291
|
+
page_size: int | Omit = omit,
|
|
292
|
+
status: Literal["succeeded", "failed", "pending", "review"] | Omit = omit,
|
|
293
293
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
294
294
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
295
295
|
extra_headers: Headers | None = None,
|
|
296
296
|
extra_query: Query | None = None,
|
|
297
297
|
extra_body: Body | None = None,
|
|
298
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
298
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
299
299
|
) -> AsyncPaginator[RefundListResponse, AsyncDefaultPageNumberPagination[RefundListResponse]]:
|
|
300
300
|
"""
|
|
301
301
|
Args:
|