31
31
)
32
32
from .._wrappers import ResultWrapper
33
33
from ..pagination import SyncSinglePage , AsyncSinglePage
34
- from ..types .user import Subscription
34
+ from ..types .user import (
35
+ Subscription ,
36
+ RatePlanParam ,
37
+ SubscriptionZoneParam ,
38
+ SubscriptionComponentParam ,
39
+ )
35
40
from .._base_client import (
36
41
AsyncPaginator ,
37
42
make_request_options ,
@@ -54,10 +59,10 @@ def create(
54
59
identifier : str ,
55
60
* ,
56
61
app : subscription_create_params .App | NotGiven = NOT_GIVEN ,
57
- component_values : Iterable [subscription_create_params . ComponentValue ] | NotGiven = NOT_GIVEN ,
62
+ component_values : Iterable [SubscriptionComponentParam ] | NotGiven = NOT_GIVEN ,
58
63
frequency : Literal ["weekly" , "monthly" , "quarterly" , "yearly" ] | NotGiven = NOT_GIVEN ,
59
- rate_plan : subscription_create_params . RatePlan | NotGiven = NOT_GIVEN ,
60
- zone : subscription_create_params . Zone | NotGiven = NOT_GIVEN ,
64
+ rate_plan : RatePlanParam | NotGiven = NOT_GIVEN ,
65
+ zone : SubscriptionZoneParam | NotGiven = NOT_GIVEN ,
61
66
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
62
67
# The extra values given here take precedence over values defined on the client or passed to this method.
63
68
extra_headers : Headers | None = None ,
@@ -122,10 +127,10 @@ def update(
122
127
* ,
123
128
account_identifier : str ,
124
129
app : subscription_update_params .App | NotGiven = NOT_GIVEN ,
125
- component_values : Iterable [subscription_update_params . ComponentValue ] | NotGiven = NOT_GIVEN ,
130
+ component_values : Iterable [SubscriptionComponentParam ] | NotGiven = NOT_GIVEN ,
126
131
frequency : Literal ["weekly" , "monthly" , "quarterly" , "yearly" ] | NotGiven = NOT_GIVEN ,
127
- rate_plan : subscription_update_params . RatePlan | NotGiven = NOT_GIVEN ,
128
- zone : subscription_update_params . Zone | NotGiven = NOT_GIVEN ,
132
+ rate_plan : RatePlanParam | NotGiven = NOT_GIVEN ,
133
+ zone : SubscriptionZoneParam | NotGiven = NOT_GIVEN ,
129
134
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
130
135
# The extra values given here take precedence over values defined on the client or passed to this method.
131
136
extra_headers : Headers | None = None ,
@@ -333,10 +338,10 @@ async def create(
333
338
identifier : str ,
334
339
* ,
335
340
app : subscription_create_params .App | NotGiven = NOT_GIVEN ,
336
- component_values : Iterable [subscription_create_params . ComponentValue ] | NotGiven = NOT_GIVEN ,
341
+ component_values : Iterable [SubscriptionComponentParam ] | NotGiven = NOT_GIVEN ,
337
342
frequency : Literal ["weekly" , "monthly" , "quarterly" , "yearly" ] | NotGiven = NOT_GIVEN ,
338
- rate_plan : subscription_create_params . RatePlan | NotGiven = NOT_GIVEN ,
339
- zone : subscription_create_params . Zone | NotGiven = NOT_GIVEN ,
343
+ rate_plan : RatePlanParam | NotGiven = NOT_GIVEN ,
344
+ zone : SubscriptionZoneParam | NotGiven = NOT_GIVEN ,
340
345
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
341
346
# The extra values given here take precedence over values defined on the client or passed to this method.
342
347
extra_headers : Headers | None = None ,
@@ -401,10 +406,10 @@ async def update(
401
406
* ,
402
407
account_identifier : str ,
403
408
app : subscription_update_params .App | NotGiven = NOT_GIVEN ,
404
- component_values : Iterable [subscription_update_params . ComponentValue ] | NotGiven = NOT_GIVEN ,
409
+ component_values : Iterable [SubscriptionComponentParam ] | NotGiven = NOT_GIVEN ,
405
410
frequency : Literal ["weekly" , "monthly" , "quarterly" , "yearly" ] | NotGiven = NOT_GIVEN ,
406
- rate_plan : subscription_update_params . RatePlan | NotGiven = NOT_GIVEN ,
407
- zone : subscription_update_params . Zone | NotGiven = NOT_GIVEN ,
411
+ rate_plan : RatePlanParam | NotGiven = NOT_GIVEN ,
412
+ zone : SubscriptionZoneParam | NotGiven = NOT_GIVEN ,
408
413
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
409
414
# The extra values given here take precedence over values defined on the client or passed to this method.
410
415
extra_headers : Headers | None = None ,
0 commit comments