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 dispute_list_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
14
14
  from .._compat import cached_property
15
15
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -56,7 +56,7 @@ class DisputesResource(SyncAPIResource):
56
56
  extra_headers: Headers | None = None,
57
57
  extra_query: Query | None = None,
58
58
  extra_body: Body | None = None,
59
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
59
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
60
60
  ) -> GetDispute:
61
61
  """
62
62
  Args:
@@ -81,10 +81,10 @@ class DisputesResource(SyncAPIResource):
81
81
  def list(
82
82
  self,
83
83
  *,
84
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
85
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
86
- customer_id: str | NotGiven = NOT_GIVEN,
87
- dispute_stage: Literal["pre_dispute", "dispute", "pre_arbitration"] | NotGiven = NOT_GIVEN,
84
+ created_at_gte: Union[str, datetime] | Omit = omit,
85
+ created_at_lte: Union[str, datetime] | Omit = omit,
86
+ customer_id: str | Omit = omit,
87
+ dispute_stage: Literal["pre_dispute", "dispute", "pre_arbitration"] | Omit = omit,
88
88
  dispute_status: Literal[
89
89
  "dispute_opened",
90
90
  "dispute_expired",
@@ -94,15 +94,15 @@ class DisputesResource(SyncAPIResource):
94
94
  "dispute_won",
95
95
  "dispute_lost",
96
96
  ]
97
- | NotGiven = NOT_GIVEN,
98
- page_number: int | NotGiven = NOT_GIVEN,
99
- page_size: int | NotGiven = NOT_GIVEN,
97
+ | Omit = omit,
98
+ page_number: int | Omit = omit,
99
+ page_size: int | Omit = omit,
100
100
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
101
101
  # The extra values given here take precedence over values defined on the client or passed to this method.
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> SyncDefaultPageNumberPagination[DisputeListResponse]:
107
107
  """
108
108
  Args:
@@ -182,7 +182,7 @@ class AsyncDisputesResource(AsyncAPIResource):
182
182
  extra_headers: Headers | None = None,
183
183
  extra_query: Query | None = None,
184
184
  extra_body: Body | None = None,
185
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
185
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
186
186
  ) -> GetDispute:
187
187
  """
188
188
  Args:
@@ -207,10 +207,10 @@ class AsyncDisputesResource(AsyncAPIResource):
207
207
  def list(
208
208
  self,
209
209
  *,
210
- created_at_gte: Union[str, datetime] | NotGiven = NOT_GIVEN,
211
- created_at_lte: Union[str, datetime] | NotGiven = NOT_GIVEN,
212
- customer_id: str | NotGiven = NOT_GIVEN,
213
- dispute_stage: Literal["pre_dispute", "dispute", "pre_arbitration"] | NotGiven = NOT_GIVEN,
210
+ created_at_gte: Union[str, datetime] | Omit = omit,
211
+ created_at_lte: Union[str, datetime] | Omit = omit,
212
+ customer_id: str | Omit = omit,
213
+ dispute_stage: Literal["pre_dispute", "dispute", "pre_arbitration"] | Omit = omit,
214
214
  dispute_status: Literal[
215
215
  "dispute_opened",
216
216
  "dispute_expired",
@@ -220,15 +220,15 @@ class AsyncDisputesResource(AsyncAPIResource):
220
220
  "dispute_won",
221
221
  "dispute_lost",
222
222
  ]
223
- | NotGiven = NOT_GIVEN,
224
- page_number: int | NotGiven = NOT_GIVEN,
225
- page_size: int | NotGiven = NOT_GIVEN,
223
+ | Omit = omit,
224
+ page_number: int | Omit = omit,
225
+ page_size: int | Omit = omit,
226
226
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
227
227
  # The extra values given here take precedence over values defined on the client or passed to this method.
228
228
  extra_headers: Headers | None = None,
229
229
  extra_query: Query | None = None,
230
230
  extra_body: Body | None = None,
231
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
231
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
232
232
  ) -> AsyncPaginator[DisputeListResponse, AsyncDefaultPageNumberPagination[DisputeListResponse]]:
233
233
  """
234
234
  Args:
@@ -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, Query, Headers, NotGiven, not_given
8
8
  from ..._compat import cached_property
9
9
  from ..._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ..._response import (
@@ -51,7 +51,7 @@ class PaymentsResource(SyncAPIResource):
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
  ) -> BinaryAPIResponse:
56
56
  """
57
57
  Args:
@@ -83,7 +83,7 @@ class PaymentsResource(SyncAPIResource):
83
83
  extra_headers: Headers | None = None,
84
84
  extra_query: Query | None = None,
85
85
  extra_body: Body | None = None,
86
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
86
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
87
87
  ) -> BinaryAPIResponse:
88
88
  """
89
89
  Args:
@@ -136,7 +136,7 @@ class AsyncPaymentsResource(AsyncAPIResource):
136
136
  extra_headers: Headers | None = None,
137
137
  extra_query: Query | None = None,
138
138
  extra_body: Body | None = None,
139
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
139
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
140
140
  ) -> AsyncBinaryAPIResponse:
141
141
  """
142
142
  Args:
@@ -168,7 +168,7 @@ class AsyncPaymentsResource(AsyncAPIResource):
168
168
  extra_headers: Headers | None = None,
169
169
  extra_query: Query | None = None,
170
170
  extra_body: Body | None = None,
171
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
171
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
172
172
  ) -> AsyncBinaryAPIResponse:
173
173
  """
174
174
  Args:
@@ -7,7 +7,7 @@ from typing import Optional
7
7
  import httpx
8
8
 
9
9
  from ..types import license_key_instance_list_params, license_key_instance_update_params
10
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from .._utils import maybe_transform, async_maybe_transform
12
12
  from .._compat import cached_property
13
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -53,7 +53,7 @@ class LicenseKeyInstancesResource(SyncAPIResource):
53
53
  extra_headers: Headers | None = None,
54
54
  extra_query: Query | None = None,
55
55
  extra_body: Body | None = None,
56
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
57
57
  ) -> LicenseKeyInstance:
58
58
  """
59
59
  Args:
@@ -85,7 +85,7 @@ class LicenseKeyInstancesResource(SyncAPIResource):
85
85
  extra_headers: Headers | None = None,
86
86
  extra_query: Query | None = None,
87
87
  extra_body: Body | None = None,
88
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
88
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
89
89
  ) -> LicenseKeyInstance:
90
90
  """
91
91
  Args:
@@ -111,15 +111,15 @@ class LicenseKeyInstancesResource(SyncAPIResource):
111
111
  def list(
112
112
  self,
113
113
  *,
114
- license_key_id: Optional[str] | NotGiven = NOT_GIVEN,
115
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
116
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
114
+ license_key_id: Optional[str] | Omit = omit,
115
+ page_number: Optional[int] | Omit = omit,
116
+ page_size: Optional[int] | Omit = omit,
117
117
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
118
118
  # The extra values given here take precedence over values defined on the client or passed to this method.
119
119
  extra_headers: Headers | None = None,
120
120
  extra_query: Query | None = None,
121
121
  extra_body: Body | None = None,
122
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
122
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
123
123
  ) -> SyncDefaultPageNumberPagination[LicenseKeyInstance]:
124
124
  """
125
125
  Args:
@@ -187,7 +187,7 @@ class AsyncLicenseKeyInstancesResource(AsyncAPIResource):
187
187
  extra_headers: Headers | None = None,
188
188
  extra_query: Query | None = None,
189
189
  extra_body: Body | None = None,
190
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
190
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
191
191
  ) -> LicenseKeyInstance:
192
192
  """
193
193
  Args:
@@ -219,7 +219,7 @@ class AsyncLicenseKeyInstancesResource(AsyncAPIResource):
219
219
  extra_headers: Headers | None = None,
220
220
  extra_query: Query | None = None,
221
221
  extra_body: Body | None = None,
222
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
222
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
223
223
  ) -> LicenseKeyInstance:
224
224
  """
225
225
  Args:
@@ -247,15 +247,15 @@ class AsyncLicenseKeyInstancesResource(AsyncAPIResource):
247
247
  def list(
248
248
  self,
249
249
  *,
250
- license_key_id: Optional[str] | NotGiven = NOT_GIVEN,
251
- page_number: Optional[int] | NotGiven = NOT_GIVEN,
252
- page_size: Optional[int] | NotGiven = NOT_GIVEN,
250
+ license_key_id: Optional[str] | Omit = omit,
251
+ page_number: Optional[int] | Omit = omit,
252
+ page_size: Optional[int] | Omit = omit,
253
253
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
254
254
  # The extra values given here take precedence over values defined on the client or passed to this method.
255
255
  extra_headers: Headers | None = None,
256
256
  extra_query: Query | None = None,
257
257
  extra_body: Body | None = None,
258
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
258
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
259
259
  ) -> AsyncPaginator[LicenseKeyInstance, AsyncDefaultPageNumberPagination[LicenseKeyInstance]]:
260
260
  """
261
261
  Args:
@@ -9,7 +9,7 @@ from typing_extensions import Literal
9
9
  import httpx
10
10
 
11
11
  from ..types import license_key_list_params, license_key_update_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
@@ -55,7 +55,7 @@ class LicenseKeysResource(SyncAPIResource):
55
55
  extra_headers: Headers | None = None,
56
56
  extra_query: Query | None = None,
57
57
  extra_body: Body | None = None,
58
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
58
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
59
  ) -> LicenseKey:
60
60
  """
61
61
  Args:
@@ -81,15 +81,15 @@ class LicenseKeysResource(SyncAPIResource):
81
81
  self,
82
82
  id: str,
83
83
  *,
84
- activations_limit: Optional[int] | NotGiven = NOT_GIVEN,
85
- disabled: Optional[bool] | NotGiven = NOT_GIVEN,
86
- expires_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
84
+ activations_limit: Optional[int] | Omit = omit,
85
+ disabled: Optional[bool] | Omit = omit,
86
+ expires_at: Union[str, datetime, None] | Omit = omit,
87
87
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
88
88
  # The extra values given here take precedence over values defined on the client or passed to this method.
89
89
  extra_headers: Headers | None = None,
90
90
  extra_query: Query | None = None,
91
91
  extra_body: Body | None = None,
92
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
92
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
93
93
  ) -> LicenseKey:
94
94
  """Args:
95
95
  activations_limit: The updated activation limit for the license key.
@@ -132,17 +132,17 @@ class LicenseKeysResource(SyncAPIResource):
132
132
  def list(
133
133
  self,
134
134
  *,
135
- customer_id: str | NotGiven = NOT_GIVEN,
136
- page_number: int | NotGiven = NOT_GIVEN,
137
- page_size: int | NotGiven = NOT_GIVEN,
138
- product_id: str | NotGiven = NOT_GIVEN,
139
- status: Literal["active", "expired", "disabled"] | NotGiven = NOT_GIVEN,
135
+ customer_id: str | Omit = omit,
136
+ page_number: int | Omit = omit,
137
+ page_size: int | Omit = omit,
138
+ product_id: str | Omit = omit,
139
+ status: Literal["active", "expired", "disabled"] | Omit = omit,
140
140
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
141
141
  # The extra values given here take precedence over values defined on the client or passed to this method.
142
142
  extra_headers: Headers | None = None,
143
143
  extra_query: Query | None = None,
144
144
  extra_body: Body | None = None,
145
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
145
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
146
146
  ) -> SyncDefaultPageNumberPagination[LicenseKey]:
147
147
  """
148
148
  Args:
@@ -216,7 +216,7 @@ class AsyncLicenseKeysResource(AsyncAPIResource):
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 = NOT_GIVEN,
219
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
220
220
  ) -> LicenseKey:
221
221
  """
222
222
  Args:
@@ -242,15 +242,15 @@ class AsyncLicenseKeysResource(AsyncAPIResource):
242
242
  self,
243
243
  id: str,
244
244
  *,
245
- activations_limit: Optional[int] | NotGiven = NOT_GIVEN,
246
- disabled: Optional[bool] | NotGiven = NOT_GIVEN,
247
- expires_at: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
245
+ activations_limit: Optional[int] | Omit = omit,
246
+ disabled: Optional[bool] | Omit = omit,
247
+ expires_at: Union[str, datetime, None] | Omit = omit,
248
248
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
249
249
  # The extra values given here take precedence over values defined on the client or passed to this method.
250
250
  extra_headers: Headers | None = None,
251
251
  extra_query: Query | None = None,
252
252
  extra_body: Body | None = None,
253
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
253
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
254
254
  ) -> LicenseKey:
255
255
  """Args:
256
256
  activations_limit: The updated activation limit for the license key.
@@ -293,17 +293,17 @@ class AsyncLicenseKeysResource(AsyncAPIResource):
293
293
  def list(
294
294
  self,
295
295
  *,
296
- customer_id: str | NotGiven = NOT_GIVEN,
297
- page_number: int | NotGiven = NOT_GIVEN,
298
- page_size: int | NotGiven = NOT_GIVEN,
299
- product_id: str | NotGiven = NOT_GIVEN,
300
- status: Literal["active", "expired", "disabled"] | NotGiven = NOT_GIVEN,
296
+ customer_id: str | Omit = omit,
297
+ page_number: int | Omit = omit,
298
+ page_size: int | Omit = omit,
299
+ product_id: str | Omit = omit,
300
+ status: Literal["active", "expired", "disabled"] | Omit = omit,
301
301
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
302
302
  # The extra values given here take precedence over values defined on the client or passed to this method.
303
303
  extra_headers: Headers | None = None,
304
304
  extra_query: Query | None = None,
305
305
  extra_body: Body | None = None,
306
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
306
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
307
307
  ) -> AsyncPaginator[LicenseKey, AsyncDefaultPageNumberPagination[LicenseKey]]:
308
308
  """
309
309
  Args:
@@ -7,7 +7,7 @@ from typing import Optional
7
7
  import httpx
8
8
 
9
9
  from ..types import license_activate_params, license_validate_params, license_deactivate_params
10
- from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
10
+ from .._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
11
11
  from .._utils import maybe_transform, async_maybe_transform
12
12
  from .._compat import cached_property
13
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -54,7 +54,7 @@ class LicensesResource(SyncAPIResource):
54
54
  extra_headers: Headers | None = None,
55
55
  extra_query: Query | None = None,
56
56
  extra_body: Body | None = None,
57
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
58
58
  ) -> LicenseActivateResponse:
59
59
  """
60
60
  Args:
@@ -91,7 +91,7 @@ class LicensesResource(SyncAPIResource):
91
91
  extra_headers: Headers | None = None,
92
92
  extra_query: Query | None = None,
93
93
  extra_body: Body | None = None,
94
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
94
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
95
95
  ) -> None:
96
96
  """
97
97
  Args:
@@ -123,13 +123,13 @@ class LicensesResource(SyncAPIResource):
123
123
  self,
124
124
  *,
125
125
  license_key: str,
126
- license_key_instance_id: Optional[str] | NotGiven = NOT_GIVEN,
126
+ license_key_instance_id: Optional[str] | Omit = omit,
127
127
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
128
128
  # The extra values given here take precedence over values defined on the client or passed to this method.
129
129
  extra_headers: Headers | None = None,
130
130
  extra_query: Query | None = None,
131
131
  extra_body: Body | None = None,
132
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
133
133
  ) -> LicenseValidateResponse:
134
134
  """
135
135
  Args:
@@ -187,7 +187,7 @@ class AsyncLicensesResource(AsyncAPIResource):
187
187
  extra_headers: Headers | None = None,
188
188
  extra_query: Query | None = None,
189
189
  extra_body: Body | None = None,
190
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
190
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
191
191
  ) -> LicenseActivateResponse:
192
192
  """
193
193
  Args:
@@ -224,7 +224,7 @@ class AsyncLicensesResource(AsyncAPIResource):
224
224
  extra_headers: Headers | None = None,
225
225
  extra_query: Query | None = None,
226
226
  extra_body: Body | None = None,
227
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
227
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
228
228
  ) -> None:
229
229
  """
230
230
  Args:
@@ -256,13 +256,13 @@ class AsyncLicensesResource(AsyncAPIResource):
256
256
  self,
257
257
  *,
258
258
  license_key: str,
259
- license_key_instance_id: Optional[str] | NotGiven = NOT_GIVEN,
259
+ license_key_instance_id: Optional[str] | Omit = omit,
260
260
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
261
261
  # The extra values given here take precedence over values defined on the client or passed to this method.
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 = NOT_GIVEN,
265
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
266
266
  ) -> LicenseValidateResponse:
267
267
  """
268
268
  Args:
@@ -7,7 +7,7 @@ from typing import Optional
7
7
  import httpx
8
8
 
9
9
  from ..types import meter_list_params, meter_create_params
10
- from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
10
+ from .._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
11
11
  from .._utils import maybe_transform, async_maybe_transform
12
12
  from .._compat import cached_property
13
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -53,14 +53,14 @@ class MetersResource(SyncAPIResource):
53
53
  event_name: str,
54
54
  measurement_unit: str,
55
55
  name: str,
56
- description: Optional[str] | NotGiven = NOT_GIVEN,
57
- filter: Optional[MeterFilterParam] | NotGiven = NOT_GIVEN,
56
+ description: Optional[str] | Omit = omit,
57
+ filter: Optional[MeterFilterParam] | Omit = omit,
58
58
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
59
59
  # The extra values given here take precedence over values defined on the client or passed to this method.
60
60
  extra_headers: Headers | None = None,
61
61
  extra_query: Query | None = None,
62
62
  extra_body: Body | None = None,
63
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
63
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
64
64
  ) -> Meter:
65
65
  """
66
66
  Args:
@@ -112,7 +112,7 @@ class MetersResource(SyncAPIResource):
112
112
  extra_headers: Headers | None = None,
113
113
  extra_query: Query | None = None,
114
114
  extra_body: Body | None = None,
115
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
115
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
116
116
  ) -> Meter:
117
117
  """
118
118
  Args:
@@ -137,15 +137,15 @@ class MetersResource(SyncAPIResource):
137
137
  def list(
138
138
  self,
139
139
  *,
140
- archived: bool | NotGiven = NOT_GIVEN,
141
- page_number: int | NotGiven = NOT_GIVEN,
142
- page_size: int | NotGiven = NOT_GIVEN,
140
+ archived: bool | Omit = omit,
141
+ page_number: int | Omit = omit,
142
+ page_size: int | Omit = omit,
143
143
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144
144
  # The extra values given here take precedence over values defined on the client or passed to this method.
145
145
  extra_headers: Headers | None = None,
146
146
  extra_query: Query | None = None,
147
147
  extra_body: Body | None = None,
148
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
148
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
149
149
  ) -> SyncDefaultPageNumberPagination[Meter]:
150
150
  """
151
151
  Args:
@@ -192,7 +192,7 @@ class MetersResource(SyncAPIResource):
192
192
  extra_headers: Headers | None = None,
193
193
  extra_query: Query | None = None,
194
194
  extra_body: Body | None = None,
195
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
195
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
196
196
  ) -> None:
197
197
  """
198
198
  Args:
@@ -224,7 +224,7 @@ class MetersResource(SyncAPIResource):
224
224
  extra_headers: Headers | None = None,
225
225
  extra_query: Query | None = None,
226
226
  extra_body: Body | None = None,
227
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
227
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
228
228
  ) -> None:
229
229
  """
230
230
  Args:
@@ -275,14 +275,14 @@ class AsyncMetersResource(AsyncAPIResource):
275
275
  event_name: str,
276
276
  measurement_unit: str,
277
277
  name: str,
278
- description: Optional[str] | NotGiven = NOT_GIVEN,
279
- filter: Optional[MeterFilterParam] | NotGiven = NOT_GIVEN,
278
+ description: Optional[str] | Omit = omit,
279
+ filter: Optional[MeterFilterParam] | Omit = omit,
280
280
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
281
281
  # The extra values given here take precedence over values defined on the client or passed to this method.
282
282
  extra_headers: Headers | None = None,
283
283
  extra_query: Query | None = None,
284
284
  extra_body: Body | None = None,
285
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
285
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
286
286
  ) -> Meter:
287
287
  """
288
288
  Args:
@@ -334,7 +334,7 @@ class AsyncMetersResource(AsyncAPIResource):
334
334
  extra_headers: Headers | None = None,
335
335
  extra_query: Query | None = None,
336
336
  extra_body: Body | None = None,
337
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
337
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
338
338
  ) -> Meter:
339
339
  """
340
340
  Args:
@@ -359,15 +359,15 @@ class AsyncMetersResource(AsyncAPIResource):
359
359
  def list(
360
360
  self,
361
361
  *,
362
- archived: bool | NotGiven = NOT_GIVEN,
363
- page_number: int | NotGiven = NOT_GIVEN,
364
- page_size: int | NotGiven = NOT_GIVEN,
362
+ archived: bool | Omit = omit,
363
+ page_number: int | Omit = omit,
364
+ page_size: int | Omit = omit,
365
365
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
366
366
  # The extra values given here take precedence over values defined on the client or passed to this method.
367
367
  extra_headers: Headers | None = None,
368
368
  extra_query: Query | None = None,
369
369
  extra_body: Body | None = None,
370
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
370
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
371
371
  ) -> AsyncPaginator[Meter, AsyncDefaultPageNumberPagination[Meter]]:
372
372
  """
373
373
  Args:
@@ -414,7 +414,7 @@ class AsyncMetersResource(AsyncAPIResource):
414
414
  extra_headers: Headers | None = None,
415
415
  extra_query: Query | None = None,
416
416
  extra_body: Body | None = None,
417
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
417
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
418
418
  ) -> None:
419
419
  """
420
420
  Args:
@@ -446,7 +446,7 @@ class AsyncMetersResource(AsyncAPIResource):
446
446
  extra_headers: Headers | None = None,
447
447
  extra_query: Query | None = None,
448
448
  extra_body: Body | None = None,
449
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
449
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
450
450
  ) -> None:
451
451
  """
452
452
  Args:
@@ -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, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -47,7 +47,7 @@ class MiscResource(SyncAPIResource):
47
47
  extra_headers: Headers | None = None,
48
48
  extra_query: Query | None = None,
49
49
  extra_body: Body | None = None,
50
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
51
51
  ) -> MiscListSupportedCountriesResponse:
52
52
  return self._get(
53
53
  "/checkout/supported_countries",
@@ -86,7 +86,7 @@ class AsyncMiscResource(AsyncAPIResource):
86
86
  extra_headers: Headers | None = None,
87
87
  extra_query: Query | None = None,
88
88
  extra_body: Body | None = None,
89
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
89
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
90
90
  ) -> MiscListSupportedCountriesResponse:
91
91
  return await self._get(
92
92
  "/checkout/supported_countries",