@@ -477,13 +477,34 @@ def create(
477
477
$10.00 for a subscription that invoices in USD.
478
478
479
479
Args:
480
+ auto_collection: Determines whether issued invoices for this subscription will automatically be
481
+ charged with the saved payment method on the due date. If not specified, this
482
+ defaults to the behavior configured for this customer.
483
+
484
+ coupon_redemption_code: Redemption code to be used for this subscription. If the coupon cannot be found
485
+ by its redemption code, or cannot be redeemed, an error response will be
486
+ returned and the subscription creation or plan change will not be scheduled.
487
+
488
+ default_invoice_memo: Determines the default memo on this subscription's invoices. Note that if this
489
+ is not provided, it is determined by the plan configuration.
490
+
480
491
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
481
492
to. Note that either this property or `plan_id` must be specified.
482
493
494
+ initial_phase_order: The phase of the plan to start with
495
+
496
+ invoicing_threshold: When this subscription's accrued usage reaches this threshold, an invoice will
497
+ be issued for the subscription. If not specified, invoices will only be issued
498
+ at the end of the billing period.
499
+
483
500
metadata: User-specified key/value pairs for the resource. Individual keys can be removed
484
501
by setting the value to `null`, and the entire metadata mapping can be cleared
485
502
by setting `metadata` to `null`.
486
503
504
+ net_terms: The net terms determines the difference between the invoice date and the issue
505
+ date for the invoice. If you intend the invoice to be due on issue, set this
506
+ to 0. If not provided, this defaults to the value specified in the plan.
507
+
487
508
plan_id: The plan that the given subscription should be switched to. Note that either
488
509
this property or `external_plan_id` must be specified.
489
510
@@ -1377,14 +1398,17 @@ def schedule_plan_change(
1377
1398
* ,
1378
1399
change_option : Literal ["requested_date" , "end_of_subscription_term" , "immediate" ],
1379
1400
align_billing_with_plan_change_date : Optional [bool ] | NotGiven = NOT_GIVEN ,
1401
+ auto_collection : Optional [bool ] | NotGiven = NOT_GIVEN ,
1380
1402
billing_cycle_alignment : Optional [Literal ["unchanged" , "plan_change_date" , "start_of_month" ]]
1381
1403
| NotGiven = NOT_GIVEN ,
1382
1404
change_date : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
1383
1405
coupon_redemption_code : Optional [str ] | NotGiven = NOT_GIVEN ,
1384
1406
credits_overage_rate : Optional [float ] | NotGiven = NOT_GIVEN ,
1407
+ default_invoice_memo : Optional [str ] | NotGiven = NOT_GIVEN ,
1385
1408
external_plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1386
1409
initial_phase_order : Optional [int ] | NotGiven = NOT_GIVEN ,
1387
1410
invoicing_threshold : Optional [str ] | NotGiven = NOT_GIVEN ,
1411
+ net_terms : Optional [int ] | NotGiven = NOT_GIVEN ,
1388
1412
per_credit_overage_amount : Optional [float ] | NotGiven = NOT_GIVEN ,
1389
1413
plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1390
1414
price_overrides : Optional [Iterable [subscription_schedule_plan_change_params .PriceOverride ]]
@@ -1448,6 +1472,10 @@ def schedule_plan_change(
1448
1472
align_billing_with_plan_change_date: [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be
1449
1473
aligned with the plan change's effective date.
1450
1474
1475
+ auto_collection: Determines whether issued invoices for this subscription will automatically be
1476
+ charged with the saved payment method on the due date. If not specified, this
1477
+ defaults to the behavior configured for this customer.
1478
+
1451
1479
billing_cycle_alignment: Reset billing periods to be aligned with the plan change's effective date or
1452
1480
start of the month. Defaults to `unchanged` which keeps subscription's existing
1453
1481
billing cycle alignment.
@@ -1457,7 +1485,10 @@ def schedule_plan_change(
1457
1485
1458
1486
coupon_redemption_code: Redemption code to be used for this subscription. If the coupon cannot be found
1459
1487
by its redemption code, or cannot be redeemed, an error response will be
1460
- returned and the plan change will not be scheduled.
1488
+ returned and the subscription creation or plan change will not be scheduled.
1489
+
1490
+ default_invoice_memo: Determines the default memo on this subscription's invoices. Note that if this
1491
+ is not provided, it is determined by the plan configuration.
1461
1492
1462
1493
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
1463
1494
to. Note that either this property or `plan_id` must be specified.
@@ -1468,6 +1499,10 @@ def schedule_plan_change(
1468
1499
be issued for the subscription. If not specified, invoices will only be issued
1469
1500
at the end of the billing period.
1470
1501
1502
+ net_terms: The net terms determines the difference between the invoice date and the issue
1503
+ date for the invoice. If you intend the invoice to be due on issue, set this
1504
+ to 0. If not provided, this defaults to the value specified in the plan.
1505
+
1471
1506
plan_id: The plan that the given subscription should be switched to. Note that either
1472
1507
this property or `external_plan_id` must be specified.
1473
1508
@@ -1491,13 +1526,16 @@ def schedule_plan_change(
1491
1526
{
1492
1527
"change_option" : change_option ,
1493
1528
"align_billing_with_plan_change_date" : align_billing_with_plan_change_date ,
1529
+ "auto_collection" : auto_collection ,
1494
1530
"billing_cycle_alignment" : billing_cycle_alignment ,
1495
1531
"change_date" : change_date ,
1496
1532
"coupon_redemption_code" : coupon_redemption_code ,
1497
1533
"credits_overage_rate" : credits_overage_rate ,
1534
+ "default_invoice_memo" : default_invoice_memo ,
1498
1535
"external_plan_id" : external_plan_id ,
1499
1536
"initial_phase_order" : initial_phase_order ,
1500
1537
"invoicing_threshold" : invoicing_threshold ,
1538
+ "net_terms" : net_terms ,
1501
1539
"per_credit_overage_amount" : per_credit_overage_amount ,
1502
1540
"plan_id" : plan_id ,
1503
1541
"price_overrides" : price_overrides ,
@@ -2212,13 +2250,34 @@ async def create(
2212
2250
$10.00 for a subscription that invoices in USD.
2213
2251
2214
2252
Args:
2253
+ auto_collection: Determines whether issued invoices for this subscription will automatically be
2254
+ charged with the saved payment method on the due date. If not specified, this
2255
+ defaults to the behavior configured for this customer.
2256
+
2257
+ coupon_redemption_code: Redemption code to be used for this subscription. If the coupon cannot be found
2258
+ by its redemption code, or cannot be redeemed, an error response will be
2259
+ returned and the subscription creation or plan change will not be scheduled.
2260
+
2261
+ default_invoice_memo: Determines the default memo on this subscription's invoices. Note that if this
2262
+ is not provided, it is determined by the plan configuration.
2263
+
2215
2264
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
2216
2265
to. Note that either this property or `plan_id` must be specified.
2217
2266
2267
+ initial_phase_order: The phase of the plan to start with
2268
+
2269
+ invoicing_threshold: When this subscription's accrued usage reaches this threshold, an invoice will
2270
+ be issued for the subscription. If not specified, invoices will only be issued
2271
+ at the end of the billing period.
2272
+
2218
2273
metadata: User-specified key/value pairs for the resource. Individual keys can be removed
2219
2274
by setting the value to `null`, and the entire metadata mapping can be cleared
2220
2275
by setting `metadata` to `null`.
2221
2276
2277
+ net_terms: The net terms determines the difference between the invoice date and the issue
2278
+ date for the invoice. If you intend the invoice to be due on issue, set this
2279
+ to 0. If not provided, this defaults to the value specified in the plan.
2280
+
2222
2281
plan_id: The plan that the given subscription should be switched to. Note that either
2223
2282
this property or `external_plan_id` must be specified.
2224
2283
@@ -3112,14 +3171,17 @@ async def schedule_plan_change(
3112
3171
* ,
3113
3172
change_option : Literal ["requested_date" , "end_of_subscription_term" , "immediate" ],
3114
3173
align_billing_with_plan_change_date : Optional [bool ] | NotGiven = NOT_GIVEN ,
3174
+ auto_collection : Optional [bool ] | NotGiven = NOT_GIVEN ,
3115
3175
billing_cycle_alignment : Optional [Literal ["unchanged" , "plan_change_date" , "start_of_month" ]]
3116
3176
| NotGiven = NOT_GIVEN ,
3117
3177
change_date : Union [str , datetime , None ] | NotGiven = NOT_GIVEN ,
3118
3178
coupon_redemption_code : Optional [str ] | NotGiven = NOT_GIVEN ,
3119
3179
credits_overage_rate : Optional [float ] | NotGiven = NOT_GIVEN ,
3180
+ default_invoice_memo : Optional [str ] | NotGiven = NOT_GIVEN ,
3120
3181
external_plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
3121
3182
initial_phase_order : Optional [int ] | NotGiven = NOT_GIVEN ,
3122
3183
invoicing_threshold : Optional [str ] | NotGiven = NOT_GIVEN ,
3184
+ net_terms : Optional [int ] | NotGiven = NOT_GIVEN ,
3123
3185
per_credit_overage_amount : Optional [float ] | NotGiven = NOT_GIVEN ,
3124
3186
plan_id : Optional [str ] | NotGiven = NOT_GIVEN ,
3125
3187
price_overrides : Optional [Iterable [subscription_schedule_plan_change_params .PriceOverride ]]
@@ -3183,6 +3245,10 @@ async def schedule_plan_change(
3183
3245
align_billing_with_plan_change_date: [DEPRECATED] Use billing_cycle_alignment instead. Reset billing periods to be
3184
3246
aligned with the plan change's effective date.
3185
3247
3248
+ auto_collection: Determines whether issued invoices for this subscription will automatically be
3249
+ charged with the saved payment method on the due date. If not specified, this
3250
+ defaults to the behavior configured for this customer.
3251
+
3186
3252
billing_cycle_alignment: Reset billing periods to be aligned with the plan change's effective date or
3187
3253
start of the month. Defaults to `unchanged` which keeps subscription's existing
3188
3254
billing cycle alignment.
@@ -3192,7 +3258,10 @@ async def schedule_plan_change(
3192
3258
3193
3259
coupon_redemption_code: Redemption code to be used for this subscription. If the coupon cannot be found
3194
3260
by its redemption code, or cannot be redeemed, an error response will be
3195
- returned and the plan change will not be scheduled.
3261
+ returned and the subscription creation or plan change will not be scheduled.
3262
+
3263
+ default_invoice_memo: Determines the default memo on this subscription's invoices. Note that if this
3264
+ is not provided, it is determined by the plan configuration.
3196
3265
3197
3266
external_plan_id: The external_plan_id of the plan that the given subscription should be switched
3198
3267
to. Note that either this property or `plan_id` must be specified.
@@ -3203,6 +3272,10 @@ async def schedule_plan_change(
3203
3272
be issued for the subscription. If not specified, invoices will only be issued
3204
3273
at the end of the billing period.
3205
3274
3275
+ net_terms: The net terms determines the difference between the invoice date and the issue
3276
+ date for the invoice. If you intend the invoice to be due on issue, set this
3277
+ to 0. If not provided, this defaults to the value specified in the plan.
3278
+
3206
3279
plan_id: The plan that the given subscription should be switched to. Note that either
3207
3280
this property or `external_plan_id` must be specified.
3208
3281
@@ -3226,13 +3299,16 @@ async def schedule_plan_change(
3226
3299
{
3227
3300
"change_option" : change_option ,
3228
3301
"align_billing_with_plan_change_date" : align_billing_with_plan_change_date ,
3302
+ "auto_collection" : auto_collection ,
3229
3303
"billing_cycle_alignment" : billing_cycle_alignment ,
3230
3304
"change_date" : change_date ,
3231
3305
"coupon_redemption_code" : coupon_redemption_code ,
3232
3306
"credits_overage_rate" : credits_overage_rate ,
3307
+ "default_invoice_memo" : default_invoice_memo ,
3233
3308
"external_plan_id" : external_plan_id ,
3234
3309
"initial_phase_order" : initial_phase_order ,
3235
3310
"invoicing_threshold" : invoicing_threshold ,
3311
+ "net_terms" : net_terms ,
3236
3312
"per_credit_overage_amount" : per_credit_overage_amount ,
3237
3313
"plan_id" : plan_id ,
3238
3314
"price_overrides" : price_overrides ,
0 commit comments