44
44
from ..types .subscription_fetch_schedule_response import SubscriptionFetchScheduleResponse
45
45
from ..types .subscription_price_intervals_response import SubscriptionPriceIntervalsResponse
46
46
from ..types .subscription_schedule_plan_change_response import SubscriptionSchedulePlanChangeResponse
47
- from ..types .shared_params .add_subscription_price_params import AddSubscriptionPriceParams
48
47
from ..types .subscription_unschedule_cancellation_response import SubscriptionUnscheduleCancellationResponse
49
- from ..types .shared_params .remove_subscription_price_params import RemoveSubscriptionPriceParams
50
- from ..types .shared_params .replace_subscription_price_params import ReplaceSubscriptionPriceParams
51
48
from ..types .subscription_update_fixed_fee_quantity_response import SubscriptionUpdateFixedFeeQuantityResponse
52
- from ..types .shared_params .add_subscription_adjustment_params import AddSubscriptionAdjustmentParams
53
- from ..types .shared_params .remove_subscription_adjustment_params import RemoveSubscriptionAdjustmentParams
54
- from ..types .shared_params .replace_subscription_adjustment_params import ReplaceSubscriptionAdjustmentParams
55
49
from ..types .subscription_unschedule_pending_plan_changes_response import (
56
50
SubscriptionUnschedulePendingPlanChangesResponse ,
57
51
)
@@ -85,8 +79,8 @@ def with_streaming_response(self) -> SubscriptionsWithStreamingResponse:
85
79
def create (
86
80
self ,
87
81
* ,
88
- add_adjustments : Optional [Iterable [AddSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
89
- add_prices : Optional [Iterable [AddSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
82
+ add_adjustments : Optional [Iterable [subscription_create_params . AddAdjustment ]] | NotGiven = NOT_GIVEN ,
83
+ add_prices : Optional [Iterable [subscription_create_params . AddPrice ]] | NotGiven = NOT_GIVEN ,
90
84
align_billing_with_subscription_start_date : bool | NotGiven = NOT_GIVEN ,
91
85
auto_collection : Optional [bool ] | NotGiven = NOT_GIVEN ,
92
86
aws_region : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -110,10 +104,10 @@ def create(
110
104
plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
111
105
plan_version_number : Optional [int ] | NotGiven = NOT_GIVEN ,
112
106
price_overrides : Optional [Iterable [object ]] | NotGiven = NOT_GIVEN ,
113
- remove_adjustments : Optional [Iterable [RemoveSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
114
- remove_prices : Optional [Iterable [RemoveSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
115
- replace_adjustments : Optional [Iterable [ReplaceSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
116
- replace_prices : Optional [Iterable [ReplaceSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
107
+ remove_adjustments : Optional [Iterable [subscription_create_params . RemoveAdjustment ]] | NotGiven = NOT_GIVEN ,
108
+ remove_prices : Optional [Iterable [subscription_create_params . RemovePrice ]] | NotGiven = NOT_GIVEN ,
109
+ replace_adjustments : Optional [Iterable [subscription_create_params . ReplaceAdjustment ]] | NotGiven = NOT_GIVEN ,
110
+ replace_prices : Optional [Iterable [subscription_create_params . ReplacePrice ]] | NotGiven = NOT_GIVEN ,
117
111
start_date : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
118
112
trial_duration_days : Optional [int ] | NotGiven = NOT_GIVEN ,
119
113
usage_customer_ids : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
@@ -1365,8 +1359,9 @@ def schedule_plan_change(
1365
1359
subscription_id : str ,
1366
1360
* ,
1367
1361
change_option : Literal ["requested_date" , "end_of_subscription_term" , "immediate" ],
1368
- add_adjustments : Optional [Iterable [AddSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
1369
- add_prices : Optional [Iterable [AddSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
1362
+ add_adjustments : Optional [Iterable [subscription_schedule_plan_change_params .AddAdjustment ]]
1363
+ | NotGiven = NOT_GIVEN ,
1364
+ add_prices : Optional [Iterable [subscription_schedule_plan_change_params .AddPrice ]] | NotGiven = NOT_GIVEN ,
1370
1365
align_billing_with_plan_change_date : Optional [bool ] | NotGiven = NOT_GIVEN ,
1371
1366
auto_collection : Optional [bool ] | NotGiven = NOT_GIVEN ,
1372
1367
billing_cycle_alignment : Optional [Literal ["unchanged" , "plan_change_date" , "start_of_month" ]]
@@ -1388,10 +1383,13 @@ def schedule_plan_change(
1388
1383
plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1389
1384
plan_version_number : Optional [int ] | NotGiven = NOT_GIVEN ,
1390
1385
price_overrides : Optional [Iterable [object ]] | NotGiven = NOT_GIVEN ,
1391
- remove_adjustments : Optional [Iterable [RemoveSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
1392
- remove_prices : Optional [Iterable [RemoveSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
1393
- replace_adjustments : Optional [Iterable [ReplaceSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
1394
- replace_prices : Optional [Iterable [ReplaceSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
1386
+ remove_adjustments : Optional [Iterable [subscription_schedule_plan_change_params .RemoveAdjustment ]]
1387
+ | NotGiven = NOT_GIVEN ,
1388
+ remove_prices : Optional [Iterable [subscription_schedule_plan_change_params .RemovePrice ]] | NotGiven = NOT_GIVEN ,
1389
+ replace_adjustments : Optional [Iterable [subscription_schedule_plan_change_params .ReplaceAdjustment ]]
1390
+ | NotGiven = NOT_GIVEN ,
1391
+ replace_prices : Optional [Iterable [subscription_schedule_plan_change_params .ReplacePrice ]]
1392
+ | NotGiven = NOT_GIVEN ,
1395
1393
trial_duration_days : Optional [int ] | NotGiven = NOT_GIVEN ,
1396
1394
usage_customer_ids : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
1397
1395
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2095,8 +2093,8 @@ def with_streaming_response(self) -> AsyncSubscriptionsWithStreamingResponse:
2095
2093
async def create (
2096
2094
self ,
2097
2095
* ,
2098
- add_adjustments : Optional [Iterable [AddSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
2099
- add_prices : Optional [Iterable [AddSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
2096
+ add_adjustments : Optional [Iterable [subscription_create_params . AddAdjustment ]] | NotGiven = NOT_GIVEN ,
2097
+ add_prices : Optional [Iterable [subscription_create_params . AddPrice ]] | NotGiven = NOT_GIVEN ,
2100
2098
align_billing_with_subscription_start_date : bool | NotGiven = NOT_GIVEN ,
2101
2099
auto_collection : Optional [bool ] | NotGiven = NOT_GIVEN ,
2102
2100
aws_region : Optional [str ] | NotGiven = NOT_GIVEN ,
@@ -2120,10 +2118,10 @@ async def create(
2120
2118
plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
2121
2119
plan_version_number : Optional [int ] | NotGiven = NOT_GIVEN ,
2122
2120
price_overrides : Optional [Iterable [object ]] | NotGiven = NOT_GIVEN ,
2123
- remove_adjustments : Optional [Iterable [RemoveSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
2124
- remove_prices : Optional [Iterable [RemoveSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
2125
- replace_adjustments : Optional [Iterable [ReplaceSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
2126
- replace_prices : Optional [Iterable [ReplaceSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
2121
+ remove_adjustments : Optional [Iterable [subscription_create_params . RemoveAdjustment ]] | NotGiven = NOT_GIVEN ,
2122
+ remove_prices : Optional [Iterable [subscription_create_params . RemovePrice ]] | NotGiven = NOT_GIVEN ,
2123
+ replace_adjustments : Optional [Iterable [subscription_create_params . ReplaceAdjustment ]] | NotGiven = NOT_GIVEN ,
2124
+ replace_prices : Optional [Iterable [subscription_create_params . ReplacePrice ]] | NotGiven = NOT_GIVEN ,
2127
2125
start_date : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
2128
2126
trial_duration_days : Optional [int ] | NotGiven = NOT_GIVEN ,
2129
2127
usage_customer_ids : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
@@ -3375,8 +3373,9 @@ async def schedule_plan_change(
3375
3373
subscription_id : str ,
3376
3374
* ,
3377
3375
change_option : Literal ["requested_date" , "end_of_subscription_term" , "immediate" ],
3378
- add_adjustments : Optional [Iterable [AddSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
3379
- add_prices : Optional [Iterable [AddSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
3376
+ add_adjustments : Optional [Iterable [subscription_schedule_plan_change_params .AddAdjustment ]]
3377
+ | NotGiven = NOT_GIVEN ,
3378
+ add_prices : Optional [Iterable [subscription_schedule_plan_change_params .AddPrice ]] | NotGiven = NOT_GIVEN ,
3380
3379
align_billing_with_plan_change_date : Optional [bool ] | NotGiven = NOT_GIVEN ,
3381
3380
auto_collection : Optional [bool ] | NotGiven = NOT_GIVEN ,
3382
3381
billing_cycle_alignment : Optional [Literal ["unchanged" , "plan_change_date" , "start_of_month" ]]
@@ -3398,10 +3397,13 @@ async def schedule_plan_change(
3398
3397
plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
3399
3398
plan_version_number : Optional [int ] | NotGiven = NOT_GIVEN ,
3400
3399
price_overrides : Optional [Iterable [object ]] | NotGiven = NOT_GIVEN ,
3401
- remove_adjustments : Optional [Iterable [RemoveSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
3402
- remove_prices : Optional [Iterable [RemoveSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
3403
- replace_adjustments : Optional [Iterable [ReplaceSubscriptionAdjustmentParams ]] | NotGiven = NOT_GIVEN ,
3404
- replace_prices : Optional [Iterable [ReplaceSubscriptionPriceParams ]] | NotGiven = NOT_GIVEN ,
3400
+ remove_adjustments : Optional [Iterable [subscription_schedule_plan_change_params .RemoveAdjustment ]]
3401
+ | NotGiven = NOT_GIVEN ,
3402
+ remove_prices : Optional [Iterable [subscription_schedule_plan_change_params .RemovePrice ]] | NotGiven = NOT_GIVEN ,
3403
+ replace_adjustments : Optional [Iterable [subscription_schedule_plan_change_params .ReplaceAdjustment ]]
3404
+ | NotGiven = NOT_GIVEN ,
3405
+ replace_prices : Optional [Iterable [subscription_schedule_plan_change_params .ReplacePrice ]]
3406
+ | NotGiven = NOT_GIVEN ,
3405
3407
trial_duration_days : Optional [int ] | NotGiven = NOT_GIVEN ,
3406
3408
usage_customer_ids : Optional [List [str ]] | NotGiven = NOT_GIVEN ,
3407
3409
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
0 commit comments