dodopayments 1.53.4__py3-none-any.whl → 1.55.0__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 +35 -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 +49 -41
- dodopayments/resources/payouts.py +26 -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 +95 -87
- dodopayments/resources/usage_events.py +21 -21
- dodopayments/resources/webhooks/headers.py +5 -5
- dodopayments/resources/webhooks/webhooks.py +43 -43
- dodopayments/types/checkout_session_create_params.py +6 -0
- dodopayments/types/customer_limited_details.py +5 -0
- dodopayments/types/payment_create_params.py +3 -0
- dodopayments/types/payout_list_params.py +11 -1
- dodopayments/types/subscription.py +3 -0
- dodopayments/types/subscription_create_params.py +3 -0
- dodopayments/types/subscription_list_response.py +3 -0
- {dodopayments-1.53.4.dist-info → dodopayments-1.55.0.dist-info}/METADATA +1 -1
- {dodopayments-1.53.4.dist-info → dodopayments-1.55.0.dist-info}/RECORD +43 -43
- {dodopayments-1.53.4.dist-info → dodopayments-1.55.0.dist-info}/WHEEL +0 -0
- {dodopayments-1.53.4.dist-info → dodopayments-1.55.0.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:
|
|
@@ -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:
|