orb-billing 4.58.0 → 4.60.0

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.
@@ -814,9 +814,9 @@ export class Subscriptions extends APIResource {
814
814
  * `plan_phase_order` key to indicate which phase the price should be added to.
815
815
  *
816
816
  * An object in the list can specify an optional `start_date` and optional
817
- * `end_date`. This is equivalent to creating a price interval with the
818
- * [add/edit price intervals endpoint](/api-reference/price-interval/add-or-edit-price-intervals).
819
- * If unspecified, the start or end date of the phase or subscription will be used.
817
+ * `end_date`. If `start_date` is unspecified, the start of the phase / plan change
818
+ * time will be used. If `end_date` is unspecified, it will finish at the end of
819
+ * the phase / have no end time.
820
820
  *
821
821
  * An object in the list can specify an optional `minimum_amount`,
822
822
  * `maximum_amount`, or `discounts`. This will create adjustments which apply only
@@ -875,8 +875,9 @@ export class Subscriptions extends APIResource {
875
875
  * to.
876
876
  *
877
877
  * An object in the list can specify an optional `start_date` and optional
878
- * `end_date`. If unspecified, the start or end date of the phase or subscription
879
- * will be used.
878
+ * `end_date`. If `start_date` is unspecified, the start of the phase / plan change
879
+ * time will be used. If `end_date` is unspecified, it will finish at the end of
880
+ * the phase / have no end time.
880
881
  *
881
882
  * ### Removing adjustments
882
883
  *
@@ -8026,6 +8027,16 @@ export interface SubscriptionCreateParams {
8026
8027
  * skipped.
8027
8028
  */
8028
8029
  trial_duration_days?: number | null;
8030
+
8031
+ /**
8032
+ * A list of customer IDs whose usage events will be aggregated and billed under
8033
+ * this subscription. By default, a subscription only considers usage events
8034
+ * associated with its attached customer's customer_id. When usage_customer_ids is
8035
+ * provided, the subscription includes usage events from the specified customers
8036
+ * only. Provided usage_customer_ids must be either the customer for this
8037
+ * subscription itself, or any of that customer's children.
8038
+ */
8039
+ usage_customer_ids?: Array<string> | null;
8029
8040
  }
8030
8041
 
8031
8042
  export namespace SubscriptionCreateParams {
@@ -8285,7 +8296,7 @@ export namespace SubscriptionCreateParams {
8285
8296
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8286
8297
 
8287
8298
  /**
8288
- * The id of the item the plan will be associated with.
8299
+ * The id of the item the price will be associated with.
8289
8300
  */
8290
8301
  item_id: string;
8291
8302
 
@@ -8411,7 +8422,7 @@ export namespace SubscriptionCreateParams {
8411
8422
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8412
8423
 
8413
8424
  /**
8414
- * The id of the item the plan will be associated with.
8425
+ * The id of the item the price will be associated with.
8415
8426
  */
8416
8427
  item_id: string;
8417
8428
 
@@ -8543,7 +8554,7 @@ export namespace SubscriptionCreateParams {
8543
8554
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8544
8555
 
8545
8556
  /**
8546
- * The id of the item the plan will be associated with.
8557
+ * The id of the item the price will be associated with.
8547
8558
  */
8548
8559
  item_id: string;
8549
8560
 
@@ -8695,7 +8706,7 @@ export namespace SubscriptionCreateParams {
8695
8706
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8696
8707
 
8697
8708
  /**
8698
- * The id of the item the plan will be associated with.
8709
+ * The id of the item the price will be associated with.
8699
8710
  */
8700
8711
  item_id: string;
8701
8712
 
@@ -8840,7 +8851,7 @@ export namespace SubscriptionCreateParams {
8840
8851
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8841
8852
 
8842
8853
  /**
8843
- * The id of the item the plan will be associated with.
8854
+ * The id of the item the price will be associated with.
8844
8855
  */
8845
8856
  item_id: string;
8846
8857
 
@@ -8993,7 +9004,7 @@ export namespace SubscriptionCreateParams {
8993
9004
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8994
9005
 
8995
9006
  /**
8996
- * The id of the item the plan will be associated with.
9007
+ * The id of the item the price will be associated with.
8997
9008
  */
8998
9009
  item_id: string;
8999
9010
 
@@ -9124,7 +9135,7 @@ export namespace SubscriptionCreateParams {
9124
9135
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9125
9136
 
9126
9137
  /**
9127
- * The id of the item the plan will be associated with.
9138
+ * The id of the item the price will be associated with.
9128
9139
  */
9129
9140
  item_id: string;
9130
9141
 
@@ -9270,7 +9281,7 @@ export namespace SubscriptionCreateParams {
9270
9281
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9271
9282
 
9272
9283
  /**
9273
- * The id of the item the plan will be associated with.
9284
+ * The id of the item the price will be associated with.
9274
9285
  */
9275
9286
  item_id: string;
9276
9287
 
@@ -9408,7 +9419,7 @@ export namespace SubscriptionCreateParams {
9408
9419
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9409
9420
 
9410
9421
  /**
9411
- * The id of the item the plan will be associated with.
9422
+ * The id of the item the price will be associated with.
9412
9423
  */
9413
9424
  item_id: string;
9414
9425
 
@@ -9527,7 +9538,7 @@ export namespace SubscriptionCreateParams {
9527
9538
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9528
9539
 
9529
9540
  /**
9530
- * The id of the item the plan will be associated with.
9541
+ * The id of the item the price will be associated with.
9531
9542
  */
9532
9543
  item_id: string;
9533
9544
 
@@ -9646,7 +9657,7 @@ export namespace SubscriptionCreateParams {
9646
9657
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9647
9658
 
9648
9659
  /**
9649
- * The id of the item the plan will be associated with.
9660
+ * The id of the item the price will be associated with.
9650
9661
  */
9651
9662
  item_id: string;
9652
9663
 
@@ -9765,7 +9776,7 @@ export namespace SubscriptionCreateParams {
9765
9776
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9766
9777
 
9767
9778
  /**
9768
- * The id of the item the plan will be associated with.
9779
+ * The id of the item the price will be associated with.
9769
9780
  */
9770
9781
  item_id: string;
9771
9782
 
@@ -9884,7 +9895,7 @@ export namespace SubscriptionCreateParams {
9884
9895
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9885
9896
 
9886
9897
  /**
9887
- * The id of the item the plan will be associated with.
9898
+ * The id of the item the price will be associated with.
9888
9899
  */
9889
9900
  item_id: string;
9890
9901
 
@@ -10003,7 +10014,7 @@ export namespace SubscriptionCreateParams {
10003
10014
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10004
10015
 
10005
10016
  /**
10006
- * The id of the item the plan will be associated with.
10017
+ * The id of the item the price will be associated with.
10007
10018
  */
10008
10019
  item_id: string;
10009
10020
 
@@ -10122,7 +10133,7 @@ export namespace SubscriptionCreateParams {
10122
10133
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10123
10134
 
10124
10135
  /**
10125
- * The id of the item the plan will be associated with.
10136
+ * The id of the item the price will be associated with.
10126
10137
  */
10127
10138
  item_id: string;
10128
10139
 
@@ -10243,7 +10254,7 @@ export namespace SubscriptionCreateParams {
10243
10254
  grouped_allocation_config: Record<string, unknown>;
10244
10255
 
10245
10256
  /**
10246
- * The id of the item the plan will be associated with.
10257
+ * The id of the item the price will be associated with.
10247
10258
  */
10248
10259
  item_id: string;
10249
10260
 
@@ -10362,7 +10373,7 @@ export namespace SubscriptionCreateParams {
10362
10373
  grouped_with_prorated_minimum_config: Record<string, unknown>;
10363
10374
 
10364
10375
  /**
10365
- * The id of the item the plan will be associated with.
10376
+ * The id of the item the price will be associated with.
10366
10377
  */
10367
10378
  item_id: string;
10368
10379
 
@@ -10481,7 +10492,7 @@ export namespace SubscriptionCreateParams {
10481
10492
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10482
10493
 
10483
10494
  /**
10484
- * The id of the item the plan will be associated with.
10495
+ * The id of the item the price will be associated with.
10485
10496
  */
10486
10497
  item_id: string;
10487
10498
 
@@ -10868,7 +10879,7 @@ export namespace SubscriptionCreateParams {
10868
10879
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10869
10880
 
10870
10881
  /**
10871
- * The id of the item the plan will be associated with.
10882
+ * The id of the item the price will be associated with.
10872
10883
  */
10873
10884
  item_id: string;
10874
10885
 
@@ -10994,7 +11005,7 @@ export namespace SubscriptionCreateParams {
10994
11005
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10995
11006
 
10996
11007
  /**
10997
- * The id of the item the plan will be associated with.
11008
+ * The id of the item the price will be associated with.
10998
11009
  */
10999
11010
  item_id: string;
11000
11011
 
@@ -11126,7 +11137,7 @@ export namespace SubscriptionCreateParams {
11126
11137
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
11127
11138
 
11128
11139
  /**
11129
- * The id of the item the plan will be associated with.
11140
+ * The id of the item the price will be associated with.
11130
11141
  */
11131
11142
  item_id: string;
11132
11143
 
@@ -11278,7 +11289,7 @@ export namespace SubscriptionCreateParams {
11278
11289
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
11279
11290
 
11280
11291
  /**
11281
- * The id of the item the plan will be associated with.
11292
+ * The id of the item the price will be associated with.
11282
11293
  */
11283
11294
  item_id: string;
11284
11295
 
@@ -11423,7 +11434,7 @@ export namespace SubscriptionCreateParams {
11423
11434
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
11424
11435
 
11425
11436
  /**
11426
- * The id of the item the plan will be associated with.
11437
+ * The id of the item the price will be associated with.
11427
11438
  */
11428
11439
  item_id: string;
11429
11440
 
@@ -11576,7 +11587,7 @@ export namespace SubscriptionCreateParams {
11576
11587
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
11577
11588
 
11578
11589
  /**
11579
- * The id of the item the plan will be associated with.
11590
+ * The id of the item the price will be associated with.
11580
11591
  */
11581
11592
  item_id: string;
11582
11593
 
@@ -11707,7 +11718,7 @@ export namespace SubscriptionCreateParams {
11707
11718
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
11708
11719
 
11709
11720
  /**
11710
- * The id of the item the plan will be associated with.
11721
+ * The id of the item the price will be associated with.
11711
11722
  */
11712
11723
  item_id: string;
11713
11724
 
@@ -11853,7 +11864,7 @@ export namespace SubscriptionCreateParams {
11853
11864
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
11854
11865
 
11855
11866
  /**
11856
- * The id of the item the plan will be associated with.
11867
+ * The id of the item the price will be associated with.
11857
11868
  */
11858
11869
  item_id: string;
11859
11870
 
@@ -11991,7 +12002,7 @@ export namespace SubscriptionCreateParams {
11991
12002
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
11992
12003
 
11993
12004
  /**
11994
- * The id of the item the plan will be associated with.
12005
+ * The id of the item the price will be associated with.
11995
12006
  */
11996
12007
  item_id: string;
11997
12008
 
@@ -12110,7 +12121,7 @@ export namespace SubscriptionCreateParams {
12110
12121
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
12111
12122
 
12112
12123
  /**
12113
- * The id of the item the plan will be associated with.
12124
+ * The id of the item the price will be associated with.
12114
12125
  */
12115
12126
  item_id: string;
12116
12127
 
@@ -12229,7 +12240,7 @@ export namespace SubscriptionCreateParams {
12229
12240
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
12230
12241
 
12231
12242
  /**
12232
- * The id of the item the plan will be associated with.
12243
+ * The id of the item the price will be associated with.
12233
12244
  */
12234
12245
  item_id: string;
12235
12246
 
@@ -12348,7 +12359,7 @@ export namespace SubscriptionCreateParams {
12348
12359
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
12349
12360
 
12350
12361
  /**
12351
- * The id of the item the plan will be associated with.
12362
+ * The id of the item the price will be associated with.
12352
12363
  */
12353
12364
  item_id: string;
12354
12365
 
@@ -12467,7 +12478,7 @@ export namespace SubscriptionCreateParams {
12467
12478
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
12468
12479
 
12469
12480
  /**
12470
- * The id of the item the plan will be associated with.
12481
+ * The id of the item the price will be associated with.
12471
12482
  */
12472
12483
  item_id: string;
12473
12484
 
@@ -12586,7 +12597,7 @@ export namespace SubscriptionCreateParams {
12586
12597
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
12587
12598
 
12588
12599
  /**
12589
- * The id of the item the plan will be associated with.
12600
+ * The id of the item the price will be associated with.
12590
12601
  */
12591
12602
  item_id: string;
12592
12603
 
@@ -12705,7 +12716,7 @@ export namespace SubscriptionCreateParams {
12705
12716
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
12706
12717
 
12707
12718
  /**
12708
- * The id of the item the plan will be associated with.
12719
+ * The id of the item the price will be associated with.
12709
12720
  */
12710
12721
  item_id: string;
12711
12722
 
@@ -12826,7 +12837,7 @@ export namespace SubscriptionCreateParams {
12826
12837
  grouped_allocation_config: Record<string, unknown>;
12827
12838
 
12828
12839
  /**
12829
- * The id of the item the plan will be associated with.
12840
+ * The id of the item the price will be associated with.
12830
12841
  */
12831
12842
  item_id: string;
12832
12843
 
@@ -12945,7 +12956,7 @@ export namespace SubscriptionCreateParams {
12945
12956
  grouped_with_prorated_minimum_config: Record<string, unknown>;
12946
12957
 
12947
12958
  /**
12948
- * The id of the item the plan will be associated with.
12959
+ * The id of the item the price will be associated with.
12949
12960
  */
12950
12961
  item_id: string;
12951
12962
 
@@ -13064,7 +13075,7 @@ export namespace SubscriptionCreateParams {
13064
13075
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
13065
13076
 
13066
13077
  /**
13067
- * The id of the item the plan will be associated with.
13078
+ * The id of the item the price will be associated with.
13068
13079
  */
13069
13080
  item_id: string;
13070
13081
 
@@ -13529,7 +13540,7 @@ export namespace SubscriptionPriceIntervalsParams {
13529
13540
  currency: string;
13530
13541
 
13531
13542
  /**
13532
- * The id of the item the plan will be associated with.
13543
+ * The id of the item the price will be associated with.
13533
13544
  */
13534
13545
  item_id: string;
13535
13546
 
@@ -13648,7 +13659,7 @@ export namespace SubscriptionPriceIntervalsParams {
13648
13659
  currency: string;
13649
13660
 
13650
13661
  /**
13651
- * The id of the item the plan will be associated with.
13662
+ * The id of the item the price will be associated with.
13652
13663
  */
13653
13664
  item_id: string;
13654
13665
 
@@ -13773,7 +13784,7 @@ export namespace SubscriptionPriceIntervalsParams {
13773
13784
  currency: string;
13774
13785
 
13775
13786
  /**
13776
- * The id of the item the plan will be associated with.
13787
+ * The id of the item the price will be associated with.
13777
13788
  */
13778
13789
  item_id: string;
13779
13790
 
@@ -13918,7 +13929,7 @@ export namespace SubscriptionPriceIntervalsParams {
13918
13929
  currency: string;
13919
13930
 
13920
13931
  /**
13921
- * The id of the item the plan will be associated with.
13932
+ * The id of the item the price will be associated with.
13922
13933
  */
13923
13934
  item_id: string;
13924
13935
 
@@ -14068,7 +14079,7 @@ export namespace SubscriptionPriceIntervalsParams {
14068
14079
  currency: string;
14069
14080
 
14070
14081
  /**
14071
- * The id of the item the plan will be associated with.
14082
+ * The id of the item the price will be associated with.
14072
14083
  */
14073
14084
  item_id: string;
14074
14085
 
@@ -14206,7 +14217,7 @@ export namespace SubscriptionPriceIntervalsParams {
14206
14217
  currency: string;
14207
14218
 
14208
14219
  /**
14209
- * The id of the item the plan will be associated with.
14220
+ * The id of the item the price will be associated with.
14210
14221
  */
14211
14222
  item_id: string;
14212
14223
 
@@ -14352,7 +14363,7 @@ export namespace SubscriptionPriceIntervalsParams {
14352
14363
  currency: string;
14353
14364
 
14354
14365
  /**
14355
- * The id of the item the plan will be associated with.
14366
+ * The id of the item the price will be associated with.
14356
14367
  */
14357
14368
  item_id: string;
14358
14369
 
@@ -14476,7 +14487,7 @@ export namespace SubscriptionPriceIntervalsParams {
14476
14487
  currency: string;
14477
14488
 
14478
14489
  /**
14479
- * The id of the item the plan will be associated with.
14490
+ * The id of the item the price will be associated with.
14480
14491
  */
14481
14492
  item_id: string;
14482
14493
 
@@ -14615,7 +14626,7 @@ export namespace SubscriptionPriceIntervalsParams {
14615
14626
  currency: string;
14616
14627
 
14617
14628
  /**
14618
- * The id of the item the plan will be associated with.
14629
+ * The id of the item the price will be associated with.
14619
14630
  */
14620
14631
  item_id: string;
14621
14632
 
@@ -14746,7 +14757,7 @@ export namespace SubscriptionPriceIntervalsParams {
14746
14757
  currency: string;
14747
14758
 
14748
14759
  /**
14749
- * The id of the item the plan will be associated with.
14760
+ * The id of the item the price will be associated with.
14750
14761
  */
14751
14762
  item_id: string;
14752
14763
 
@@ -14858,7 +14869,7 @@ export namespace SubscriptionPriceIntervalsParams {
14858
14869
  currency: string;
14859
14870
 
14860
14871
  /**
14861
- * The id of the item the plan will be associated with.
14872
+ * The id of the item the price will be associated with.
14862
14873
  */
14863
14874
  item_id: string;
14864
14875
 
@@ -14972,7 +14983,7 @@ export namespace SubscriptionPriceIntervalsParams {
14972
14983
  grouped_tiered_config: Record<string, unknown>;
14973
14984
 
14974
14985
  /**
14975
- * The id of the item the plan will be associated with.
14986
+ * The id of the item the price will be associated with.
14976
14987
  */
14977
14988
  item_id: string;
14978
14989
 
@@ -15082,7 +15093,7 @@ export namespace SubscriptionPriceIntervalsParams {
15082
15093
  currency: string;
15083
15094
 
15084
15095
  /**
15085
- * The id of the item the plan will be associated with.
15096
+ * The id of the item the price will be associated with.
15086
15097
  */
15087
15098
  item_id: string;
15088
15099
 
@@ -15194,7 +15205,7 @@ export namespace SubscriptionPriceIntervalsParams {
15194
15205
  currency: string;
15195
15206
 
15196
15207
  /**
15197
- * The id of the item the plan will be associated with.
15208
+ * The id of the item the price will be associated with.
15198
15209
  */
15199
15210
  item_id: string;
15200
15211
 
@@ -15306,7 +15317,7 @@ export namespace SubscriptionPriceIntervalsParams {
15306
15317
  currency: string;
15307
15318
 
15308
15319
  /**
15309
- * The id of the item the plan will be associated with.
15320
+ * The id of the item the price will be associated with.
15310
15321
  */
15311
15322
  item_id: string;
15312
15323
 
@@ -15418,7 +15429,7 @@ export namespace SubscriptionPriceIntervalsParams {
15418
15429
  currency: string;
15419
15430
 
15420
15431
  /**
15421
- * The id of the item the plan will be associated with.
15432
+ * The id of the item the price will be associated with.
15422
15433
  */
15423
15434
  item_id: string;
15424
15435
 
@@ -15530,7 +15541,7 @@ export namespace SubscriptionPriceIntervalsParams {
15530
15541
  currency: string;
15531
15542
 
15532
15543
  /**
15533
- * The id of the item the plan will be associated with.
15544
+ * The id of the item the price will be associated with.
15534
15545
  */
15535
15546
  item_id: string;
15536
15547
 
@@ -15642,7 +15653,7 @@ export namespace SubscriptionPriceIntervalsParams {
15642
15653
  currency: string;
15643
15654
 
15644
15655
  /**
15645
- * The id of the item the plan will be associated with.
15656
+ * The id of the item the price will be associated with.
15646
15657
  */
15647
15658
  item_id: string;
15648
15659
 
@@ -15754,7 +15765,7 @@ export namespace SubscriptionPriceIntervalsParams {
15754
15765
  currency: string;
15755
15766
 
15756
15767
  /**
15757
- * The id of the item the plan will be associated with.
15768
+ * The id of the item the price will be associated with.
15758
15769
  */
15759
15770
  item_id: string;
15760
15771
 
@@ -15868,7 +15879,7 @@ export namespace SubscriptionPriceIntervalsParams {
15868
15879
  grouped_allocation_config: Record<string, unknown>;
15869
15880
 
15870
15881
  /**
15871
- * The id of the item the plan will be associated with.
15882
+ * The id of the item the price will be associated with.
15872
15883
  */
15873
15884
  item_id: string;
15874
15885
 
@@ -15980,7 +15991,7 @@ export namespace SubscriptionPriceIntervalsParams {
15980
15991
  grouped_with_prorated_minimum_config: Record<string, unknown>;
15981
15992
 
15982
15993
  /**
15983
- * The id of the item the plan will be associated with.
15994
+ * The id of the item the price will be associated with.
15984
15995
  */
15985
15996
  item_id: string;
15986
15997
 
@@ -16092,7 +16103,7 @@ export namespace SubscriptionPriceIntervalsParams {
16092
16103
  grouped_with_metered_minimum_config: Record<string, unknown>;
16093
16104
 
16094
16105
  /**
16095
- * The id of the item the plan will be associated with.
16106
+ * The id of the item the price will be associated with.
16096
16107
  */
16097
16108
  item_id: string;
16098
16109
 
@@ -16202,7 +16213,7 @@ export namespace SubscriptionPriceIntervalsParams {
16202
16213
  currency: string;
16203
16214
 
16204
16215
  /**
16205
- * The id of the item the plan will be associated with.
16216
+ * The id of the item the price will be associated with.
16206
16217
  */
16207
16218
  item_id: string;
16208
16219
 
@@ -16316,7 +16327,7 @@ export namespace SubscriptionPriceIntervalsParams {
16316
16327
  currency: string;
16317
16328
 
16318
16329
  /**
16319
- * The id of the item the plan will be associated with.
16330
+ * The id of the item the price will be associated with.
16320
16331
  */
16321
16332
  item_id: string;
16322
16333
 
@@ -16428,7 +16439,7 @@ export namespace SubscriptionPriceIntervalsParams {
16428
16439
  grouped_tiered_package_config: Record<string, unknown>;
16429
16440
 
16430
16441
  /**
16431
- * The id of the item the plan will be associated with.
16442
+ * The id of the item the price will be associated with.
16432
16443
  */
16433
16444
  item_id: string;
16434
16445
 
@@ -16538,7 +16549,7 @@ export namespace SubscriptionPriceIntervalsParams {
16538
16549
  currency: string;
16539
16550
 
16540
16551
  /**
16541
- * The id of the item the plan will be associated with.
16552
+ * The id of the item the price will be associated with.
16542
16553
  */
16543
16554
  item_id: string;
16544
16555
 
@@ -16650,7 +16661,7 @@ export namespace SubscriptionPriceIntervalsParams {
16650
16661
  currency: string;
16651
16662
 
16652
16663
  /**
16653
- * The id of the item the plan will be associated with.
16664
+ * The id of the item the price will be associated with.
16654
16665
  */
16655
16666
  item_id: string;
16656
16667
 
@@ -16764,7 +16775,7 @@ export namespace SubscriptionPriceIntervalsParams {
16764
16775
  currency: string;
16765
16776
 
16766
16777
  /**
16767
- * The id of the item the plan will be associated with.
16778
+ * The id of the item the price will be associated with.
16768
16779
  */
16769
16780
  item_id: string;
16770
16781
 
@@ -17188,6 +17199,16 @@ export interface SubscriptionSchedulePlanChangeParams {
17188
17199
  * skipped.
17189
17200
  */
17190
17201
  trial_duration_days?: number | null;
17202
+
17203
+ /**
17204
+ * A list of customer IDs whose usage events will be aggregated and billed under
17205
+ * this subscription. By default, a subscription only considers usage events
17206
+ * associated with its attached customer's customer_id. When usage_customer_ids is
17207
+ * provided, the subscription includes usage events from the specified customers
17208
+ * only. Provided usage_customer_ids must be either the customer for this
17209
+ * subscription itself, or any of that customer's children.
17210
+ */
17211
+ usage_customer_ids?: Array<string> | null;
17191
17212
  }
17192
17213
 
17193
17214
  export namespace SubscriptionSchedulePlanChangeParams {
@@ -17447,7 +17468,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
17447
17468
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17448
17469
 
17449
17470
  /**
17450
- * The id of the item the plan will be associated with.
17471
+ * The id of the item the price will be associated with.
17451
17472
  */
17452
17473
  item_id: string;
17453
17474
 
@@ -17573,7 +17594,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
17573
17594
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17574
17595
 
17575
17596
  /**
17576
- * The id of the item the plan will be associated with.
17597
+ * The id of the item the price will be associated with.
17577
17598
  */
17578
17599
  item_id: string;
17579
17600
 
@@ -17705,7 +17726,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
17705
17726
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17706
17727
 
17707
17728
  /**
17708
- * The id of the item the plan will be associated with.
17729
+ * The id of the item the price will be associated with.
17709
17730
  */
17710
17731
  item_id: string;
17711
17732
 
@@ -17857,7 +17878,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
17857
17878
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17858
17879
 
17859
17880
  /**
17860
- * The id of the item the plan will be associated with.
17881
+ * The id of the item the price will be associated with.
17861
17882
  */
17862
17883
  item_id: string;
17863
17884
 
@@ -18002,7 +18023,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18002
18023
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18003
18024
 
18004
18025
  /**
18005
- * The id of the item the plan will be associated with.
18026
+ * The id of the item the price will be associated with.
18006
18027
  */
18007
18028
  item_id: string;
18008
18029
 
@@ -18155,7 +18176,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18155
18176
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18156
18177
 
18157
18178
  /**
18158
- * The id of the item the plan will be associated with.
18179
+ * The id of the item the price will be associated with.
18159
18180
  */
18160
18181
  item_id: string;
18161
18182
 
@@ -18286,7 +18307,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18286
18307
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18287
18308
 
18288
18309
  /**
18289
- * The id of the item the plan will be associated with.
18310
+ * The id of the item the price will be associated with.
18290
18311
  */
18291
18312
  item_id: string;
18292
18313
 
@@ -18432,7 +18453,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18432
18453
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18433
18454
 
18434
18455
  /**
18435
- * The id of the item the plan will be associated with.
18456
+ * The id of the item the price will be associated with.
18436
18457
  */
18437
18458
  item_id: string;
18438
18459
 
@@ -18570,7 +18591,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18570
18591
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18571
18592
 
18572
18593
  /**
18573
- * The id of the item the plan will be associated with.
18594
+ * The id of the item the price will be associated with.
18574
18595
  */
18575
18596
  item_id: string;
18576
18597
 
@@ -18689,7 +18710,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18689
18710
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18690
18711
 
18691
18712
  /**
18692
- * The id of the item the plan will be associated with.
18713
+ * The id of the item the price will be associated with.
18693
18714
  */
18694
18715
  item_id: string;
18695
18716
 
@@ -18808,7 +18829,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18808
18829
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18809
18830
 
18810
18831
  /**
18811
- * The id of the item the plan will be associated with.
18832
+ * The id of the item the price will be associated with.
18812
18833
  */
18813
18834
  item_id: string;
18814
18835
 
@@ -18927,7 +18948,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
18927
18948
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18928
18949
 
18929
18950
  /**
18930
- * The id of the item the plan will be associated with.
18951
+ * The id of the item the price will be associated with.
18931
18952
  */
18932
18953
  item_id: string;
18933
18954
 
@@ -19046,7 +19067,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
19046
19067
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
19047
19068
 
19048
19069
  /**
19049
- * The id of the item the plan will be associated with.
19070
+ * The id of the item the price will be associated with.
19050
19071
  */
19051
19072
  item_id: string;
19052
19073
 
@@ -19165,7 +19186,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
19165
19186
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
19166
19187
 
19167
19188
  /**
19168
- * The id of the item the plan will be associated with.
19189
+ * The id of the item the price will be associated with.
19169
19190
  */
19170
19191
  item_id: string;
19171
19192
 
@@ -19284,7 +19305,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
19284
19305
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
19285
19306
 
19286
19307
  /**
19287
- * The id of the item the plan will be associated with.
19308
+ * The id of the item the price will be associated with.
19288
19309
  */
19289
19310
  item_id: string;
19290
19311
 
@@ -19405,7 +19426,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
19405
19426
  grouped_allocation_config: Record<string, unknown>;
19406
19427
 
19407
19428
  /**
19408
- * The id of the item the plan will be associated with.
19429
+ * The id of the item the price will be associated with.
19409
19430
  */
19410
19431
  item_id: string;
19411
19432
 
@@ -19524,7 +19545,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
19524
19545
  grouped_with_prorated_minimum_config: Record<string, unknown>;
19525
19546
 
19526
19547
  /**
19527
- * The id of the item the plan will be associated with.
19548
+ * The id of the item the price will be associated with.
19528
19549
  */
19529
19550
  item_id: string;
19530
19551
 
@@ -19643,7 +19664,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
19643
19664
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
19644
19665
 
19645
19666
  /**
19646
- * The id of the item the plan will be associated with.
19667
+ * The id of the item the price will be associated with.
19647
19668
  */
19648
19669
  item_id: string;
19649
19670
 
@@ -20030,7 +20051,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
20030
20051
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
20031
20052
 
20032
20053
  /**
20033
- * The id of the item the plan will be associated with.
20054
+ * The id of the item the price will be associated with.
20034
20055
  */
20035
20056
  item_id: string;
20036
20057
 
@@ -20156,7 +20177,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
20156
20177
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
20157
20178
 
20158
20179
  /**
20159
- * The id of the item the plan will be associated with.
20180
+ * The id of the item the price will be associated with.
20160
20181
  */
20161
20182
  item_id: string;
20162
20183
 
@@ -20288,7 +20309,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
20288
20309
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
20289
20310
 
20290
20311
  /**
20291
- * The id of the item the plan will be associated with.
20312
+ * The id of the item the price will be associated with.
20292
20313
  */
20293
20314
  item_id: string;
20294
20315
 
@@ -20440,7 +20461,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
20440
20461
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
20441
20462
 
20442
20463
  /**
20443
- * The id of the item the plan will be associated with.
20464
+ * The id of the item the price will be associated with.
20444
20465
  */
20445
20466
  item_id: string;
20446
20467
 
@@ -20585,7 +20606,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
20585
20606
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
20586
20607
 
20587
20608
  /**
20588
- * The id of the item the plan will be associated with.
20609
+ * The id of the item the price will be associated with.
20589
20610
  */
20590
20611
  item_id: string;
20591
20612
 
@@ -20738,7 +20759,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
20738
20759
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
20739
20760
 
20740
20761
  /**
20741
- * The id of the item the plan will be associated with.
20762
+ * The id of the item the price will be associated with.
20742
20763
  */
20743
20764
  item_id: string;
20744
20765
 
@@ -20869,7 +20890,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
20869
20890
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
20870
20891
 
20871
20892
  /**
20872
- * The id of the item the plan will be associated with.
20893
+ * The id of the item the price will be associated with.
20873
20894
  */
20874
20895
  item_id: string;
20875
20896
 
@@ -21015,7 +21036,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21015
21036
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21016
21037
 
21017
21038
  /**
21018
- * The id of the item the plan will be associated with.
21039
+ * The id of the item the price will be associated with.
21019
21040
  */
21020
21041
  item_id: string;
21021
21042
 
@@ -21153,7 +21174,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21153
21174
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21154
21175
 
21155
21176
  /**
21156
- * The id of the item the plan will be associated with.
21177
+ * The id of the item the price will be associated with.
21157
21178
  */
21158
21179
  item_id: string;
21159
21180
 
@@ -21272,7 +21293,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21272
21293
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21273
21294
 
21274
21295
  /**
21275
- * The id of the item the plan will be associated with.
21296
+ * The id of the item the price will be associated with.
21276
21297
  */
21277
21298
  item_id: string;
21278
21299
 
@@ -21391,7 +21412,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21391
21412
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21392
21413
 
21393
21414
  /**
21394
- * The id of the item the plan will be associated with.
21415
+ * The id of the item the price will be associated with.
21395
21416
  */
21396
21417
  item_id: string;
21397
21418
 
@@ -21510,7 +21531,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21510
21531
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21511
21532
 
21512
21533
  /**
21513
- * The id of the item the plan will be associated with.
21534
+ * The id of the item the price will be associated with.
21514
21535
  */
21515
21536
  item_id: string;
21516
21537
 
@@ -21629,7 +21650,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21629
21650
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21630
21651
 
21631
21652
  /**
21632
- * The id of the item the plan will be associated with.
21653
+ * The id of the item the price will be associated with.
21633
21654
  */
21634
21655
  item_id: string;
21635
21656
 
@@ -21748,7 +21769,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21748
21769
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21749
21770
 
21750
21771
  /**
21751
- * The id of the item the plan will be associated with.
21772
+ * The id of the item the price will be associated with.
21752
21773
  */
21753
21774
  item_id: string;
21754
21775
 
@@ -21867,7 +21888,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21867
21888
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
21868
21889
 
21869
21890
  /**
21870
- * The id of the item the plan will be associated with.
21891
+ * The id of the item the price will be associated with.
21871
21892
  */
21872
21893
  item_id: string;
21873
21894
 
@@ -21988,7 +22009,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
21988
22009
  grouped_allocation_config: Record<string, unknown>;
21989
22010
 
21990
22011
  /**
21991
- * The id of the item the plan will be associated with.
22012
+ * The id of the item the price will be associated with.
21992
22013
  */
21993
22014
  item_id: string;
21994
22015
 
@@ -22107,7 +22128,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
22107
22128
  grouped_with_prorated_minimum_config: Record<string, unknown>;
22108
22129
 
22109
22130
  /**
22110
- * The id of the item the plan will be associated with.
22131
+ * The id of the item the price will be associated with.
22111
22132
  */
22112
22133
  item_id: string;
22113
22134
 
@@ -22226,7 +22247,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
22226
22247
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
22227
22248
 
22228
22249
  /**
22229
- * The id of the item the plan will be associated with.
22250
+ * The id of the item the price will be associated with.
22230
22251
  */
22231
22252
  item_id: string;
22232
22253