dodopayments 1.53.4__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/_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.4.dist-info → dodopayments-1.53.5.dist-info}/METADATA +1 -1
- {dodopayments-1.53.4.dist-info → dodopayments-1.53.5.dist-info}/RECORD +36 -36
- {dodopayments-1.53.4.dist-info → dodopayments-1.53.5.dist-info}/WHEEL +0 -0
- {dodopayments-1.53.4.dist-info → dodopayments-1.53.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,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:
|
|
@@ -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:
|