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.

Files changed (43) hide show
  1. dodopayments/__init__.py +3 -1
  2. dodopayments/_base_client.py +9 -9
  3. dodopayments/_client.py +12 -12
  4. dodopayments/_qs.py +7 -7
  5. dodopayments/_types.py +18 -11
  6. dodopayments/_utils/_transform.py +2 -2
  7. dodopayments/_utils/_utils.py +4 -4
  8. dodopayments/_version.py +1 -1
  9. dodopayments/resources/addons.py +29 -29
  10. dodopayments/resources/brands.py +29 -29
  11. dodopayments/resources/checkout_sessions.py +35 -27
  12. dodopayments/resources/customers/customer_portal.py +5 -5
  13. dodopayments/resources/customers/customers.py +21 -21
  14. dodopayments/resources/customers/wallets/ledger_entries.py +15 -15
  15. dodopayments/resources/customers/wallets/wallets.py +3 -3
  16. dodopayments/resources/discounts.py +43 -43
  17. dodopayments/resources/disputes.py +19 -19
  18. dodopayments/resources/invoices/payments.py +5 -5
  19. dodopayments/resources/license_key_instances.py +13 -13
  20. dodopayments/resources/license_keys.py +23 -23
  21. dodopayments/resources/licenses.py +9 -9
  22. dodopayments/resources/meters.py +21 -21
  23. dodopayments/resources/misc.py +3 -3
  24. dodopayments/resources/payments.py +49 -41
  25. dodopayments/resources/payouts.py +26 -7
  26. dodopayments/resources/products/images.py +5 -5
  27. dodopayments/resources/products/products.py +71 -71
  28. dodopayments/resources/refunds.py +23 -23
  29. dodopayments/resources/subscriptions.py +95 -87
  30. dodopayments/resources/usage_events.py +21 -21
  31. dodopayments/resources/webhooks/headers.py +5 -5
  32. dodopayments/resources/webhooks/webhooks.py +43 -43
  33. dodopayments/types/checkout_session_create_params.py +6 -0
  34. dodopayments/types/customer_limited_details.py +5 -0
  35. dodopayments/types/payment_create_params.py +3 -0
  36. dodopayments/types/payout_list_params.py +11 -1
  37. dodopayments/types/subscription.py +3 -0
  38. dodopayments/types/subscription_create_params.py +3 -0
  39. dodopayments/types/subscription_list_response.py +3 -0
  40. {dodopayments-1.53.4.dist-info → dodopayments-1.55.0.dist-info}/METADATA +1 -1
  41. {dodopayments-1.53.4.dist-info → dodopayments-1.55.0.dist-info}/RECORD +43 -43
  42. {dodopayments-1.53.4.dist-info → dodopayments-1.55.0.dist-info}/WHEEL +0 -0
  43. {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 NOT_GIVEN, Body, Query, Headers, NotGiven
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]] | NotGiven = NOT_GIVEN,
64
- billing_currency: Optional[Currency] | NotGiven = NOT_GIVEN,
65
- discount_code: Optional[str] | NotGiven = NOT_GIVEN,
66
- metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
67
- payment_link: Optional[bool] | NotGiven = NOT_GIVEN,
68
- return_url: Optional[str] | NotGiven = NOT_GIVEN,
69
- show_saved_payment_methods: bool | NotGiven = NOT_GIVEN,
70
- tax_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 | NotGiven = NOT_GIVEN,
178
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
179
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
180
- customer_id: str | NotGiven = NOT_GIVEN,
181
- page_number: int | NotGiven = NOT_GIVEN,
182
- page_size: int | NotGiven = NOT_GIVEN,
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
- | NotGiven = NOT_GIVEN,
197
- subscription_id: str | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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]] | NotGiven = NOT_GIVEN,
315
- billing_currency: Optional[Currency] | NotGiven = NOT_GIVEN,
316
- discount_code: Optional[str] | NotGiven = NOT_GIVEN,
317
- metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
318
- payment_link: Optional[bool] | NotGiven = NOT_GIVEN,
319
- return_url: Optional[str] | NotGiven = NOT_GIVEN,
320
- show_saved_payment_methods: bool | NotGiven = NOT_GIVEN,
321
- tax_id: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 | NotGiven = NOT_GIVEN,
429
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
430
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
431
- customer_id: str | NotGiven = NOT_GIVEN,
432
- page_number: int | NotGiven = NOT_GIVEN,
433
- page_size: int | NotGiven = NOT_GIVEN,
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
- | NotGiven = NOT_GIVEN,
448
- subscription_id: str | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 NOT_GIVEN, Body, Query, Headers, NotGiven
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
- page_number: int | NotGiven = NOT_GIVEN,
49
- page_size: int | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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
- page_number: int | NotGiven = NOT_GIVEN,
115
- page_size: int | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 NOT_GIVEN, Body, Query, Headers, NotGiven
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 | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, SequenceNotStr
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]] | NotGiven = NOT_GIVEN,
76
- brand_id: Optional[str] | NotGiven = NOT_GIVEN,
77
- description: Optional[str] | NotGiven = NOT_GIVEN,
78
- digital_product_delivery: Optional[product_create_params.DigitalProductDelivery] | NotGiven = NOT_GIVEN,
79
- license_key_activation_message: Optional[str] | NotGiven = NOT_GIVEN,
80
- license_key_activations_limit: Optional[int] | NotGiven = NOT_GIVEN,
81
- license_key_duration: Optional[LicenseKeyDurationParam] | NotGiven = NOT_GIVEN,
82
- license_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
83
- metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
84
- name: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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]] | NotGiven = NOT_GIVEN,
189
- brand_id: Optional[str] | NotGiven = NOT_GIVEN,
190
- description: Optional[str] | NotGiven = NOT_GIVEN,
191
- digital_product_delivery: Optional[product_update_params.DigitalProductDelivery] | NotGiven = NOT_GIVEN,
192
- image_id: Optional[str] | NotGiven = NOT_GIVEN,
193
- license_key_activation_message: Optional[str] | NotGiven = NOT_GIVEN,
194
- license_key_activations_limit: Optional[int] | NotGiven = NOT_GIVEN,
195
- license_key_duration: Optional[LicenseKeyDurationParam] | NotGiven = NOT_GIVEN,
196
- license_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
197
- metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
198
- name: Optional[str] | NotGiven = NOT_GIVEN,
199
- price: Optional[PriceParam] | NotGiven = NOT_GIVEN,
200
- tax_category: Optional[TaxCategory] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 | NotGiven = NOT_GIVEN,
287
- brand_id: str | NotGiven = NOT_GIVEN,
288
- page_number: int | NotGiven = NOT_GIVEN,
289
- page_size: int | NotGiven = NOT_GIVEN,
290
- recurring: bool | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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]] | NotGiven = NOT_GIVEN,
473
- brand_id: Optional[str] | NotGiven = NOT_GIVEN,
474
- description: Optional[str] | NotGiven = NOT_GIVEN,
475
- digital_product_delivery: Optional[product_create_params.DigitalProductDelivery] | NotGiven = NOT_GIVEN,
476
- license_key_activation_message: Optional[str] | NotGiven = NOT_GIVEN,
477
- license_key_activations_limit: Optional[int] | NotGiven = NOT_GIVEN,
478
- license_key_duration: Optional[LicenseKeyDurationParam] | NotGiven = NOT_GIVEN,
479
- license_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
480
- metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
481
- name: Optional[str] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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]] | NotGiven = NOT_GIVEN,
586
- brand_id: Optional[str] | NotGiven = NOT_GIVEN,
587
- description: Optional[str] | NotGiven = NOT_GIVEN,
588
- digital_product_delivery: Optional[product_update_params.DigitalProductDelivery] | NotGiven = NOT_GIVEN,
589
- image_id: Optional[str] | NotGiven = NOT_GIVEN,
590
- license_key_activation_message: Optional[str] | NotGiven = NOT_GIVEN,
591
- license_key_activations_limit: Optional[int] | NotGiven = NOT_GIVEN,
592
- license_key_duration: Optional[LicenseKeyDurationParam] | NotGiven = NOT_GIVEN,
593
- license_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
594
- metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
595
- name: Optional[str] | NotGiven = NOT_GIVEN,
596
- price: Optional[PriceParam] | NotGiven = NOT_GIVEN,
597
- tax_category: Optional[TaxCategory] | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 | NotGiven = NOT_GIVEN,
684
- brand_id: str | NotGiven = NOT_GIVEN,
685
- page_number: int | NotGiven = NOT_GIVEN,
686
- page_size: int | NotGiven = NOT_GIVEN,
687
- recurring: bool | NotGiven = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
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 = NOT_GIVEN,
816
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
817
817
  ) -> ProductUpdateFilesResponse:
818
818
  """
819
819
  Args: