dodopayments 1.27.0__py3-none-any.whl → 1.30.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/_version.py +1 -1
- dodopayments/resources/customers/customers.py +1 -19
- dodopayments/resources/subscriptions.py +0 -41
- dodopayments/types/__init__.py +0 -2
- dodopayments/types/payment.py +3 -0
- {dodopayments-1.27.0.dist-info → dodopayments-1.30.0.dist-info}/METADATA +1 -1
- {dodopayments-1.27.0.dist-info → dodopayments-1.30.0.dist-info}/RECORD +9 -11
- dodopayments/types/customer_update_params.py +0 -14
- dodopayments/types/subscription_change_plan_params.py +0 -30
- {dodopayments-1.27.0.dist-info → dodopayments-1.30.0.dist-info}/WHEEL +0 -0
- {dodopayments-1.27.0.dist-info → dodopayments-1.30.0.dist-info}/licenses/LICENSE +0 -0
dodopayments/_version.py
CHANGED
|
@@ -6,7 +6,7 @@ from typing import Optional
|
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
|
-
from ...types import customer_list_params, customer_create_params
|
|
9
|
+
from ...types import customer_list_params, customer_create_params
|
|
10
10
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
11
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
12
12
|
from ..._compat import cached_property
|
|
@@ -130,8 +130,6 @@ class CustomersResource(SyncAPIResource):
|
|
|
130
130
|
self,
|
|
131
131
|
customer_id: str,
|
|
132
132
|
*,
|
|
133
|
-
name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
134
|
-
phone_number: Optional[str] | NotGiven = NOT_GIVEN,
|
|
135
133
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
136
134
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
137
135
|
extra_headers: Headers | None = None,
|
|
@@ -153,13 +151,6 @@ class CustomersResource(SyncAPIResource):
|
|
|
153
151
|
raise ValueError(f"Expected a non-empty value for `customer_id` but received {customer_id!r}")
|
|
154
152
|
return self._patch(
|
|
155
153
|
f"/customers/{customer_id}",
|
|
156
|
-
body=maybe_transform(
|
|
157
|
-
{
|
|
158
|
-
"name": name,
|
|
159
|
-
"phone_number": phone_number,
|
|
160
|
-
},
|
|
161
|
-
customer_update_params.CustomerUpdateParams,
|
|
162
|
-
),
|
|
163
154
|
options=make_request_options(
|
|
164
155
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
165
156
|
),
|
|
@@ -310,8 +301,6 @@ class AsyncCustomersResource(AsyncAPIResource):
|
|
|
310
301
|
self,
|
|
311
302
|
customer_id: str,
|
|
312
303
|
*,
|
|
313
|
-
name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
314
|
-
phone_number: Optional[str] | NotGiven = NOT_GIVEN,
|
|
315
304
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
316
305
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
317
306
|
extra_headers: Headers | None = None,
|
|
@@ -333,13 +322,6 @@ class AsyncCustomersResource(AsyncAPIResource):
|
|
|
333
322
|
raise ValueError(f"Expected a non-empty value for `customer_id` but received {customer_id!r}")
|
|
334
323
|
return await self._patch(
|
|
335
324
|
f"/customers/{customer_id}",
|
|
336
|
-
body=await async_maybe_transform(
|
|
337
|
-
{
|
|
338
|
-
"name": name,
|
|
339
|
-
"phone_number": phone_number,
|
|
340
|
-
},
|
|
341
|
-
customer_update_params.CustomerUpdateParams,
|
|
342
|
-
),
|
|
343
325
|
options=make_request_options(
|
|
344
326
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
345
327
|
),
|
|
@@ -15,7 +15,6 @@ from ..types import (
|
|
|
15
15
|
subscription_charge_params,
|
|
16
16
|
subscription_create_params,
|
|
17
17
|
subscription_update_params,
|
|
18
|
-
subscription_change_plan_params,
|
|
19
18
|
)
|
|
20
19
|
from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
|
|
21
20
|
from .._utils import maybe_transform, async_maybe_transform
|
|
@@ -321,10 +320,6 @@ class SubscriptionsResource(SyncAPIResource):
|
|
|
321
320
|
self,
|
|
322
321
|
subscription_id: str,
|
|
323
322
|
*,
|
|
324
|
-
product_id: str,
|
|
325
|
-
proration_billing_mode: Literal["prorated_immediately"],
|
|
326
|
-
quantity: int,
|
|
327
|
-
addons: Optional[Iterable[subscription_change_plan_params.Addon]] | NotGiven = NOT_GIVEN,
|
|
328
323
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
329
324
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
330
325
|
extra_headers: Headers | None = None,
|
|
@@ -334,13 +329,6 @@ class SubscriptionsResource(SyncAPIResource):
|
|
|
334
329
|
) -> None:
|
|
335
330
|
"""
|
|
336
331
|
Args:
|
|
337
|
-
product_id: Unique identifier of the product to subscribe to
|
|
338
|
-
|
|
339
|
-
quantity: Number of units to subscribe for. Must be at least 1.
|
|
340
|
-
|
|
341
|
-
addons: Addons for the new plan. Note : Leaving this empty would remove any existing
|
|
342
|
-
addons
|
|
343
|
-
|
|
344
332
|
extra_headers: Send extra headers
|
|
345
333
|
|
|
346
334
|
extra_query: Add additional query parameters to the request
|
|
@@ -354,15 +342,6 @@ class SubscriptionsResource(SyncAPIResource):
|
|
|
354
342
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
355
343
|
return self._post(
|
|
356
344
|
f"/subscriptions/{subscription_id}/change-plan",
|
|
357
|
-
body=maybe_transform(
|
|
358
|
-
{
|
|
359
|
-
"product_id": product_id,
|
|
360
|
-
"proration_billing_mode": proration_billing_mode,
|
|
361
|
-
"quantity": quantity,
|
|
362
|
-
"addons": addons,
|
|
363
|
-
},
|
|
364
|
-
subscription_change_plan_params.SubscriptionChangePlanParams,
|
|
365
|
-
),
|
|
366
345
|
options=make_request_options(
|
|
367
346
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
368
347
|
),
|
|
@@ -694,10 +673,6 @@ class AsyncSubscriptionsResource(AsyncAPIResource):
|
|
|
694
673
|
self,
|
|
695
674
|
subscription_id: str,
|
|
696
675
|
*,
|
|
697
|
-
product_id: str,
|
|
698
|
-
proration_billing_mode: Literal["prorated_immediately"],
|
|
699
|
-
quantity: int,
|
|
700
|
-
addons: Optional[Iterable[subscription_change_plan_params.Addon]] | NotGiven = NOT_GIVEN,
|
|
701
676
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
702
677
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
703
678
|
extra_headers: Headers | None = None,
|
|
@@ -707,13 +682,6 @@ class AsyncSubscriptionsResource(AsyncAPIResource):
|
|
|
707
682
|
) -> None:
|
|
708
683
|
"""
|
|
709
684
|
Args:
|
|
710
|
-
product_id: Unique identifier of the product to subscribe to
|
|
711
|
-
|
|
712
|
-
quantity: Number of units to subscribe for. Must be at least 1.
|
|
713
|
-
|
|
714
|
-
addons: Addons for the new plan. Note : Leaving this empty would remove any existing
|
|
715
|
-
addons
|
|
716
|
-
|
|
717
685
|
extra_headers: Send extra headers
|
|
718
686
|
|
|
719
687
|
extra_query: Add additional query parameters to the request
|
|
@@ -727,15 +695,6 @@ class AsyncSubscriptionsResource(AsyncAPIResource):
|
|
|
727
695
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
728
696
|
return await self._post(
|
|
729
697
|
f"/subscriptions/{subscription_id}/change-plan",
|
|
730
|
-
body=await async_maybe_transform(
|
|
731
|
-
{
|
|
732
|
-
"product_id": product_id,
|
|
733
|
-
"proration_billing_mode": proration_billing_mode,
|
|
734
|
-
"quantity": quantity,
|
|
735
|
-
"addons": addons,
|
|
736
|
-
},
|
|
737
|
-
subscription_change_plan_params.SubscriptionChangePlanParams,
|
|
738
|
-
),
|
|
739
698
|
options=make_request_options(
|
|
740
699
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
741
700
|
),
|
dodopayments/types/__init__.py
CHANGED
|
@@ -54,7 +54,6 @@ from .product_list_response import ProductListResponse as ProductListResponse
|
|
|
54
54
|
from .product_update_params import ProductUpdateParams as ProductUpdateParams
|
|
55
55
|
from .customer_create_params import CustomerCreateParams as CustomerCreateParams
|
|
56
56
|
from .customer_request_param import CustomerRequestParam as CustomerRequestParam
|
|
57
|
-
from .customer_update_params import CustomerUpdateParams as CustomerUpdateParams
|
|
58
57
|
from .discount_create_params import DiscountCreateParams as DiscountCreateParams
|
|
59
58
|
from .discount_update_params import DiscountUpdateParams as DiscountUpdateParams
|
|
60
59
|
from .brand_retrieve_response import BrandRetrieveResponse as BrandRetrieveResponse
|
|
@@ -83,7 +82,6 @@ from .brand_update_images_response import BrandUpdateImagesResponse as BrandUpda
|
|
|
83
82
|
from .subscription_charge_response import SubscriptionChargeResponse as SubscriptionChargeResponse
|
|
84
83
|
from .subscription_create_response import SubscriptionCreateResponse as SubscriptionCreateResponse
|
|
85
84
|
from .attach_existing_customer_param import AttachExistingCustomerParam as AttachExistingCustomerParam
|
|
86
|
-
from .subscription_change_plan_params import SubscriptionChangePlanParams as SubscriptionChangePlanParams
|
|
87
85
|
from .license_key_instance_list_params import LicenseKeyInstanceListParams as LicenseKeyInstanceListParams
|
|
88
86
|
from .one_time_product_cart_item_param import OneTimeProductCartItemParam as OneTimeProductCartItemParam
|
|
89
87
|
from .license_key_instance_update_params import LicenseKeyInstanceUpdateParams as LicenseKeyInstanceUpdateParams
|
dodopayments/types/payment.py
CHANGED
|
@@ -78,6 +78,9 @@ class Payment(BaseModel):
|
|
|
78
78
|
discount_id: Optional[str] = None
|
|
79
79
|
"""The discount id if discount is applied"""
|
|
80
80
|
|
|
81
|
+
error_code: Optional[str] = None
|
|
82
|
+
"""An error code if the payment failed"""
|
|
83
|
+
|
|
81
84
|
error_message: Optional[str] = None
|
|
82
85
|
"""An error message if the payment failed"""
|
|
83
86
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dodopayments
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.30.0
|
|
4
4
|
Summary: The official Python library for the Dodo Payments API
|
|
5
5
|
Project-URL: Homepage, https://github.com/dodopayments/dodopayments-python
|
|
6
6
|
Project-URL: Repository, https://github.com/dodopayments/dodopayments-python
|
|
@@ -11,7 +11,7 @@ dodopayments/_resource.py,sha256=Jfh17Q3kKzAhO-dlfIwYlueN9t1edaaY_vmnC9vErpA,113
|
|
|
11
11
|
dodopayments/_response.py,sha256=PDvrSN3E3IkXVw2GvyOCTNB8ch0Xn9yaWQz4w1nHZEQ,28854
|
|
12
12
|
dodopayments/_streaming.py,sha256=U4D6MhotaUaGaHz32lBt0XM98IOPIpPbKHUfbb0HGCk,10124
|
|
13
13
|
dodopayments/_types.py,sha256=xr6JCSMzA-ItAyUrj6yw3GuC5rwQFVUo-Uiw9OTOWyo,6149
|
|
14
|
-
dodopayments/_version.py,sha256=
|
|
14
|
+
dodopayments/_version.py,sha256=Tg2SIr1bdPe6ehsD1iVxiOsu7yAbBXKBiKtVF4QhGtE,165
|
|
15
15
|
dodopayments/pagination.py,sha256=WYDrAWHvGL58Fe6X2yYZyYTAFvzWOR63JAsKURk2ti4,1308
|
|
16
16
|
dodopayments/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
dodopayments/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
@@ -37,18 +37,18 @@ dodopayments/resources/misc.py,sha256=BRPUna3lLIrJ-gMGOOQL1-xYx_oMwVDzKL4d498C7p
|
|
|
37
37
|
dodopayments/resources/payments.py,sha256=-eNGFfIH1y6OwJhLgu7b6WMHr7UrkJC6EZzZA6roHDk,24362
|
|
38
38
|
dodopayments/resources/payouts.py,sha256=NjBQALlhMcbMDO5AdWLioSFrGdMvpqki_HydRl0XJyE,6995
|
|
39
39
|
dodopayments/resources/refunds.py,sha256=zHDxUmpS1zlFcbuMRDTN0P2EKO2CYtqyWYMWigflMms,15094
|
|
40
|
-
dodopayments/resources/subscriptions.py,sha256=
|
|
40
|
+
dodopayments/resources/subscriptions.py,sha256=MJAH0JqaC3143a938wWY5g6TQzfCahBouGceloZNLS0,34379
|
|
41
41
|
dodopayments/resources/webhook_events.py,sha256=1OrWx7h4_Nb_yyl3ySCTz0QXM7LAYqVC2ipcveOvSdM,11726
|
|
42
42
|
dodopayments/resources/customers/__init__.py,sha256=RIP1WYqO_PIq9b57tDaJWf9zIRxG_iFeFkOVhe3apAo,1146
|
|
43
43
|
dodopayments/resources/customers/customer_portal.py,sha256=E967nei40PZfCRFDv5K0jxxVBEOFpmZsEIkseOGsUM0,7010
|
|
44
|
-
dodopayments/resources/customers/customers.py,sha256=
|
|
44
|
+
dodopayments/resources/customers/customers.py,sha256=mZK-Vi9jw7FFg3Wy6X4HCOz_fQPimYQApJtnv1IgOZE,17403
|
|
45
45
|
dodopayments/resources/invoices/__init__.py,sha256=r81DwjI_F6B-ydnyJLSpowqPN0eTcROcPEvvzAkGPds,1054
|
|
46
46
|
dodopayments/resources/invoices/invoices.py,sha256=-XZWHtZk92Wbbz5qO0DgiOCZGNKv4Slsd95feusnTnI,3761
|
|
47
47
|
dodopayments/resources/invoices/payments.py,sha256=Kq32Cpzca3YuPdk8XjmF6wkRi6_BQ2aegyLf2FZ7KG8,6346
|
|
48
48
|
dodopayments/resources/products/__init__.py,sha256=GKmDlI7Pw4UnnCRlnhb5WBh2Y3UYhqme7RqC35aztGo,1028
|
|
49
49
|
dodopayments/resources/products/images.py,sha256=Dl-hxas2F6C30yhBifxCMy5xdLIgPSENHOhS8J6klJs,6388
|
|
50
50
|
dodopayments/resources/products/products.py,sha256=gzsm2LyIUNNqTXkMa6u0xax8KbxMl-f3dJFLLRvLVjA,33139
|
|
51
|
-
dodopayments/types/__init__.py,sha256=
|
|
51
|
+
dodopayments/types/__init__.py,sha256=Is3Sts1qwgxRbw_xtwyEG07rzLxAmRV6gufY2qiubvM,6539
|
|
52
52
|
dodopayments/types/addon_cart_response_item.py,sha256=R-I8Zd2HJKn0DmXmv6Oyu4oo-oEC1-dud0Q6_yqDB7k,235
|
|
53
53
|
dodopayments/types/addon_create_params.py,sha256=TxMBkJG5ZJXdLiyAzJ8YJPzMg98nGn6stXYQ7I1sH-A,731
|
|
54
54
|
dodopayments/types/addon_list_params.py,sha256=M3CxvfBwcirkJeNAIaOF2c5JdRR3GpTBVAZUdlfctg0,412
|
|
@@ -74,7 +74,6 @@ dodopayments/types/customer_limited_details.py,sha256=Q9o6uDLx2-XXMqLf5r_c4BMPJg
|
|
|
74
74
|
dodopayments/types/customer_list_params.py,sha256=a-YOlDGSvcsY-KGIlzQnX-mquupsjazOu_HgPU9-0xs,418
|
|
75
75
|
dodopayments/types/customer_portal_session.py,sha256=XwfDZMfoaiuVoJ4OmulTfLrfGurjgaCDiBKbUxA6Q08,212
|
|
76
76
|
dodopayments/types/customer_request_param.py,sha256=Y0a3YTcwB1JHIgTUcLIKWfVIfZljcYCnQu7YaP-0Qsg,453
|
|
77
|
-
dodopayments/types/customer_update_params.py,sha256=FRS6J8xSI4i6ZvZW72DIxZLm1CAYKZHnShzduGcwvu0,338
|
|
78
77
|
dodopayments/types/discount.py,sha256=_EyxXQsnMGbTrHI-3DGAwnDuVmY1khrdCXAhkU71Ttg,1206
|
|
79
78
|
dodopayments/types/discount_create_params.py,sha256=6eGm-CdPKVUnYKqhs6QqE_GntT7KIrfKT66LZMU5f4Q,1372
|
|
80
79
|
dodopayments/types/discount_list_params.py,sha256=o0Ui9uqFxJHw-lxFLZmttW9SmJWDmEwmKf9HT_RNxAc,422
|
|
@@ -103,7 +102,7 @@ dodopayments/types/license_validate_response.py,sha256=vlSrdtsVYmQcsJpPMI-ENCf_a
|
|
|
103
102
|
dodopayments/types/misc_list_supported_countries_response.py,sha256=Imr7f0CAjq04iikVbDSUvG1ZSYzB9Fopx8pVfVtt-zw,307
|
|
104
103
|
dodopayments/types/one_time_product_cart_item.py,sha256=3l7J3KEE-SCXgArN25qKIXbIIu44Q2kxqd7jf73AGto,544
|
|
105
104
|
dodopayments/types/one_time_product_cart_item_param.py,sha256=JydRYPBnLhON1pCQPRpQzKLaGJTSrDn1IRVCcMK8iAE,633
|
|
106
|
-
dodopayments/types/payment.py,sha256=
|
|
105
|
+
dodopayments/types/payment.py,sha256=Z5RTmxvwStxZkY4KEZ51iz67MpiguSlPzrNm2ur4rXI,3269
|
|
107
106
|
dodopayments/types/payment_create_params.py,sha256=GlxEMIxXu7FzlMxltv2ZRyh70tnhsJdGXQIDWTKztwo,2395
|
|
108
107
|
dodopayments/types/payment_create_response.py,sha256=6Evr_32yYRrMUnSTxD9QOLAgF-qAd8t85UGcLXI4BhE,1034
|
|
109
108
|
dodopayments/types/payment_list_params.py,sha256=6HNPenBx7OPl_u-K5rNRH5Yf2iJxeNOBan80q3Fi8Os,1069
|
|
@@ -123,7 +122,6 @@ dodopayments/types/refund_create_params.py,sha256=hua-rUlW_5ZfKaPsh8O06yPgsj0gH7
|
|
|
123
122
|
dodopayments/types/refund_list_params.py,sha256=oBgwuTJNhXpCOY0LKc-sItxPdOJUVYnS5KqcNqcXpgM,937
|
|
124
123
|
dodopayments/types/refund_status.py,sha256=ftnBnLvslfMYcUg8t7nEvb6-m5NWyVVnNcgyVu9eZto,243
|
|
125
124
|
dodopayments/types/subscription.py,sha256=8lcM-Yqn8uV2vpMABEEZPR3mT1bdCWgUTLyshuYn_B8,2238
|
|
126
|
-
dodopayments/types/subscription_change_plan_params.py,sha256=eE_PKfkf-LwHL3H94EKxDzSpfH3NJOzH6OJez_glH60,831
|
|
127
125
|
dodopayments/types/subscription_charge_params.py,sha256=pgniOwmevUGAMPZIlzdVZEPjSGZ8nDZuMzHLIhbEhaE,541
|
|
128
126
|
dodopayments/types/subscription_charge_response.py,sha256=aDFuOKqqQ-_v1szx9oUT89QaeM3nvwrlAExzZhF0O-Q,228
|
|
129
127
|
dodopayments/types/subscription_create_params.py,sha256=vzr2_alFQKsbt5dzBLA_WWhOZdPBrf7faf8vsXxpbNE,3259
|
|
@@ -142,7 +140,7 @@ dodopayments/types/invoices/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekD
|
|
|
142
140
|
dodopayments/types/products/__init__.py,sha256=-W2ETtkni8cZpsC4Eg1aRwuLg1plV1U429JFOR1U4Rw,273
|
|
143
141
|
dodopayments/types/products/image_update_params.py,sha256=JmSZGjXI9uZgKdO9_7CINyIOmuphlmZr7-7P7kE-R5Q,308
|
|
144
142
|
dodopayments/types/products/image_update_response.py,sha256=TcJyXjoJlONpwwR6yZdIuBTu2VNyLRZFELfstD9_V-o,273
|
|
145
|
-
dodopayments-1.
|
|
146
|
-
dodopayments-1.
|
|
147
|
-
dodopayments-1.
|
|
148
|
-
dodopayments-1.
|
|
143
|
+
dodopayments-1.30.0.dist-info/METADATA,sha256=xKl_1ngCnL52XXkVl7hW_tB-596Ne9Aq5dBN4FKFgbA,17402
|
|
144
|
+
dodopayments-1.30.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
145
|
+
dodopayments-1.30.0.dist-info/licenses/LICENSE,sha256=3_sqrBb5J3AT3FsjMKEOBRZhweWVsl_s_RjFlclm1vQ,11343
|
|
146
|
+
dodopayments-1.30.0.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Optional
|
|
6
|
-
from typing_extensions import TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["CustomerUpdateParams"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class CustomerUpdateParams(TypedDict, total=False):
|
|
12
|
-
name: Optional[str]
|
|
13
|
-
|
|
14
|
-
phone_number: Optional[str]
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Iterable, Optional
|
|
6
|
-
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["SubscriptionChangePlanParams", "Addon"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class SubscriptionChangePlanParams(TypedDict, total=False):
|
|
12
|
-
product_id: Required[str]
|
|
13
|
-
"""Unique identifier of the product to subscribe to"""
|
|
14
|
-
|
|
15
|
-
proration_billing_mode: Required[Literal["prorated_immediately"]]
|
|
16
|
-
|
|
17
|
-
quantity: Required[int]
|
|
18
|
-
"""Number of units to subscribe for. Must be at least 1."""
|
|
19
|
-
|
|
20
|
-
addons: Optional[Iterable[Addon]]
|
|
21
|
-
"""
|
|
22
|
-
Addons for the new plan. Note : Leaving this empty would remove any existing
|
|
23
|
-
addons
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class Addon(TypedDict, total=False):
|
|
28
|
-
addon_id: Required[str]
|
|
29
|
-
|
|
30
|
-
quantity: Required[int]
|
|
File without changes
|
|
File without changes
|