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.
@@ -712,9 +712,9 @@ export declare class Subscriptions extends APIResource {
712
712
  * `plan_phase_order` key to indicate which phase the price should be added to.
713
713
  *
714
714
  * An object in the list can specify an optional `start_date` and optional
715
- * `end_date`. This is equivalent to creating a price interval with the
716
- * [add/edit price intervals endpoint](/api-reference/price-interval/add-or-edit-price-intervals).
717
- * If unspecified, the start or end date of the phase or subscription will be used.
715
+ * `end_date`. If `start_date` is unspecified, the start of the phase / plan change
716
+ * time will be used. If `end_date` is unspecified, it will finish at the end of
717
+ * the phase / have no end time.
718
718
  *
719
719
  * An object in the list can specify an optional `minimum_amount`,
720
720
  * `maximum_amount`, or `discounts`. This will create adjustments which apply only
@@ -773,8 +773,9 @@ export declare class Subscriptions extends APIResource {
773
773
  * to.
774
774
  *
775
775
  * An object in the list can specify an optional `start_date` and optional
776
- * `end_date`. If unspecified, the start or end date of the phase or subscription
777
- * will be used.
776
+ * `end_date`. If `start_date` is unspecified, the start of the phase / plan change
777
+ * time will be used. If `end_date` is unspecified, it will finish at the end of
778
+ * the phase / have no end time.
778
779
  *
779
780
  * ### Removing adjustments
780
781
  *
@@ -6422,6 +6423,15 @@ export interface SubscriptionCreateParams {
6422
6423
  * skipped.
6423
6424
  */
6424
6425
  trial_duration_days?: number | null;
6426
+ /**
6427
+ * A list of customer IDs whose usage events will be aggregated and billed under
6428
+ * this subscription. By default, a subscription only considers usage events
6429
+ * associated with its attached customer's customer_id. When usage_customer_ids is
6430
+ * provided, the subscription includes usage events from the specified customers
6431
+ * only. Provided usage_customer_ids must be either the customer for this
6432
+ * subscription itself, or any of that customer's children.
6433
+ */
6434
+ usage_customer_ids?: Array<string> | null;
6425
6435
  }
6426
6436
  export declare namespace SubscriptionCreateParams {
6427
6437
  interface AddAdjustment {
@@ -6612,7 +6622,7 @@ export declare namespace SubscriptionCreateParams {
6612
6622
  */
6613
6623
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
6614
6624
  /**
6615
- * The id of the item the plan will be associated with.
6625
+ * The id of the item the price will be associated with.
6616
6626
  */
6617
6627
  item_id: string;
6618
6628
  model_type: 'unit';
@@ -6717,7 +6727,7 @@ export declare namespace SubscriptionCreateParams {
6717
6727
  */
6718
6728
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
6719
6729
  /**
6720
- * The id of the item the plan will be associated with.
6730
+ * The id of the item the price will be associated with.
6721
6731
  */
6722
6732
  item_id: string;
6723
6733
  model_type: 'package';
@@ -6827,7 +6837,7 @@ export declare namespace SubscriptionCreateParams {
6827
6837
  */
6828
6838
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
6829
6839
  /**
6830
- * The id of the item the plan will be associated with.
6840
+ * The id of the item the price will be associated with.
6831
6841
  */
6832
6842
  item_id: string;
6833
6843
  matrix_config: NewSubscriptionMatrixPrice.MatrixConfig;
@@ -6954,7 +6964,7 @@ export declare namespace SubscriptionCreateParams {
6954
6964
  */
6955
6965
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
6956
6966
  /**
6957
- * The id of the item the plan will be associated with.
6967
+ * The id of the item the price will be associated with.
6958
6968
  */
6959
6969
  item_id: string;
6960
6970
  model_type: 'tiered';
@@ -7075,7 +7085,7 @@ export declare namespace SubscriptionCreateParams {
7075
7085
  */
7076
7086
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7077
7087
  /**
7078
- * The id of the item the plan will be associated with.
7088
+ * The id of the item the price will be associated with.
7079
7089
  */
7080
7090
  item_id: string;
7081
7091
  model_type: 'tiered_bps';
@@ -7202,7 +7212,7 @@ export declare namespace SubscriptionCreateParams {
7202
7212
  */
7203
7213
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7204
7214
  /**
7205
- * The id of the item the plan will be associated with.
7215
+ * The id of the item the price will be associated with.
7206
7216
  */
7207
7217
  item_id: string;
7208
7218
  model_type: 'bps';
@@ -7311,7 +7321,7 @@ export declare namespace SubscriptionCreateParams {
7311
7321
  */
7312
7322
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7313
7323
  /**
7314
- * The id of the item the plan will be associated with.
7324
+ * The id of the item the price will be associated with.
7315
7325
  */
7316
7326
  item_id: string;
7317
7327
  model_type: 'bulk_bps';
@@ -7433,7 +7443,7 @@ export declare namespace SubscriptionCreateParams {
7433
7443
  */
7434
7444
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7435
7445
  /**
7436
- * The id of the item the plan will be associated with.
7446
+ * The id of the item the price will be associated with.
7437
7447
  */
7438
7448
  item_id: string;
7439
7449
  model_type: 'bulk';
@@ -7549,7 +7559,7 @@ export declare namespace SubscriptionCreateParams {
7549
7559
  */
7550
7560
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7551
7561
  /**
7552
- * The id of the item the plan will be associated with.
7562
+ * The id of the item the price will be associated with.
7553
7563
  */
7554
7564
  item_id: string;
7555
7565
  model_type: 'threshold_total_amount';
@@ -7648,7 +7658,7 @@ export declare namespace SubscriptionCreateParams {
7648
7658
  */
7649
7659
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7650
7660
  /**
7651
- * The id of the item the plan will be associated with.
7661
+ * The id of the item the price will be associated with.
7652
7662
  */
7653
7663
  item_id: string;
7654
7664
  model_type: 'tiered_package';
@@ -7747,7 +7757,7 @@ export declare namespace SubscriptionCreateParams {
7747
7757
  */
7748
7758
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7749
7759
  /**
7750
- * The id of the item the plan will be associated with.
7760
+ * The id of the item the price will be associated with.
7751
7761
  */
7752
7762
  item_id: string;
7753
7763
  model_type: 'tiered_with_minimum';
@@ -7846,7 +7856,7 @@ export declare namespace SubscriptionCreateParams {
7846
7856
  */
7847
7857
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7848
7858
  /**
7849
- * The id of the item the plan will be associated with.
7859
+ * The id of the item the price will be associated with.
7850
7860
  */
7851
7861
  item_id: string;
7852
7862
  model_type: 'unit_with_percent';
@@ -7945,7 +7955,7 @@ export declare namespace SubscriptionCreateParams {
7945
7955
  */
7946
7956
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7947
7957
  /**
7948
- * The id of the item the plan will be associated with.
7958
+ * The id of the item the price will be associated with.
7949
7959
  */
7950
7960
  item_id: string;
7951
7961
  model_type: 'package_with_allocation';
@@ -8044,7 +8054,7 @@ export declare namespace SubscriptionCreateParams {
8044
8054
  */
8045
8055
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8046
8056
  /**
8047
- * The id of the item the plan will be associated with.
8057
+ * The id of the item the price will be associated with.
8048
8058
  */
8049
8059
  item_id: string;
8050
8060
  model_type: 'tiered_with_proration';
@@ -8143,7 +8153,7 @@ export declare namespace SubscriptionCreateParams {
8143
8153
  */
8144
8154
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8145
8155
  /**
8146
- * The id of the item the plan will be associated with.
8156
+ * The id of the item the price will be associated with.
8147
8157
  */
8148
8158
  item_id: string;
8149
8159
  model_type: 'unit_with_proration';
@@ -8243,7 +8253,7 @@ export declare namespace SubscriptionCreateParams {
8243
8253
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8244
8254
  grouped_allocation_config: Record<string, unknown>;
8245
8255
  /**
8246
- * The id of the item the plan will be associated with.
8256
+ * The id of the item the price will be associated with.
8247
8257
  */
8248
8258
  item_id: string;
8249
8259
  model_type: 'grouped_allocation';
@@ -8342,7 +8352,7 @@ export declare namespace SubscriptionCreateParams {
8342
8352
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8343
8353
  grouped_with_prorated_minimum_config: Record<string, unknown>;
8344
8354
  /**
8345
- * The id of the item the plan will be associated with.
8355
+ * The id of the item the price will be associated with.
8346
8356
  */
8347
8357
  item_id: string;
8348
8358
  model_type: 'grouped_with_prorated_minimum';
@@ -8441,7 +8451,7 @@ export declare namespace SubscriptionCreateParams {
8441
8451
  */
8442
8452
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8443
8453
  /**
8444
- * The id of the item the plan will be associated with.
8454
+ * The id of the item the price will be associated with.
8445
8455
  */
8446
8456
  item_id: string;
8447
8457
  model_type: 'bulk_with_proration';
@@ -8739,7 +8749,7 @@ export declare namespace SubscriptionCreateParams {
8739
8749
  */
8740
8750
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8741
8751
  /**
8742
- * The id of the item the plan will be associated with.
8752
+ * The id of the item the price will be associated with.
8743
8753
  */
8744
8754
  item_id: string;
8745
8755
  model_type: 'unit';
@@ -8844,7 +8854,7 @@ export declare namespace SubscriptionCreateParams {
8844
8854
  */
8845
8855
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8846
8856
  /**
8847
- * The id of the item the plan will be associated with.
8857
+ * The id of the item the price will be associated with.
8848
8858
  */
8849
8859
  item_id: string;
8850
8860
  model_type: 'package';
@@ -8954,7 +8964,7 @@ export declare namespace SubscriptionCreateParams {
8954
8964
  */
8955
8965
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8956
8966
  /**
8957
- * The id of the item the plan will be associated with.
8967
+ * The id of the item the price will be associated with.
8958
8968
  */
8959
8969
  item_id: string;
8960
8970
  matrix_config: NewSubscriptionMatrixPrice.MatrixConfig;
@@ -9081,7 +9091,7 @@ export declare namespace SubscriptionCreateParams {
9081
9091
  */
9082
9092
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9083
9093
  /**
9084
- * The id of the item the plan will be associated with.
9094
+ * The id of the item the price will be associated with.
9085
9095
  */
9086
9096
  item_id: string;
9087
9097
  model_type: 'tiered';
@@ -9202,7 +9212,7 @@ export declare namespace SubscriptionCreateParams {
9202
9212
  */
9203
9213
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9204
9214
  /**
9205
- * The id of the item the plan will be associated with.
9215
+ * The id of the item the price will be associated with.
9206
9216
  */
9207
9217
  item_id: string;
9208
9218
  model_type: 'tiered_bps';
@@ -9329,7 +9339,7 @@ export declare namespace SubscriptionCreateParams {
9329
9339
  */
9330
9340
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9331
9341
  /**
9332
- * The id of the item the plan will be associated with.
9342
+ * The id of the item the price will be associated with.
9333
9343
  */
9334
9344
  item_id: string;
9335
9345
  model_type: 'bps';
@@ -9438,7 +9448,7 @@ export declare namespace SubscriptionCreateParams {
9438
9448
  */
9439
9449
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9440
9450
  /**
9441
- * The id of the item the plan will be associated with.
9451
+ * The id of the item the price will be associated with.
9442
9452
  */
9443
9453
  item_id: string;
9444
9454
  model_type: 'bulk_bps';
@@ -9560,7 +9570,7 @@ export declare namespace SubscriptionCreateParams {
9560
9570
  */
9561
9571
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9562
9572
  /**
9563
- * The id of the item the plan will be associated with.
9573
+ * The id of the item the price will be associated with.
9564
9574
  */
9565
9575
  item_id: string;
9566
9576
  model_type: 'bulk';
@@ -9676,7 +9686,7 @@ export declare namespace SubscriptionCreateParams {
9676
9686
  */
9677
9687
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9678
9688
  /**
9679
- * The id of the item the plan will be associated with.
9689
+ * The id of the item the price will be associated with.
9680
9690
  */
9681
9691
  item_id: string;
9682
9692
  model_type: 'threshold_total_amount';
@@ -9775,7 +9785,7 @@ export declare namespace SubscriptionCreateParams {
9775
9785
  */
9776
9786
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9777
9787
  /**
9778
- * The id of the item the plan will be associated with.
9788
+ * The id of the item the price will be associated with.
9779
9789
  */
9780
9790
  item_id: string;
9781
9791
  model_type: 'tiered_package';
@@ -9874,7 +9884,7 @@ export declare namespace SubscriptionCreateParams {
9874
9884
  */
9875
9885
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9876
9886
  /**
9877
- * The id of the item the plan will be associated with.
9887
+ * The id of the item the price will be associated with.
9878
9888
  */
9879
9889
  item_id: string;
9880
9890
  model_type: 'tiered_with_minimum';
@@ -9973,7 +9983,7 @@ export declare namespace SubscriptionCreateParams {
9973
9983
  */
9974
9984
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9975
9985
  /**
9976
- * The id of the item the plan will be associated with.
9986
+ * The id of the item the price will be associated with.
9977
9987
  */
9978
9988
  item_id: string;
9979
9989
  model_type: 'unit_with_percent';
@@ -10072,7 +10082,7 @@ export declare namespace SubscriptionCreateParams {
10072
10082
  */
10073
10083
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10074
10084
  /**
10075
- * The id of the item the plan will be associated with.
10085
+ * The id of the item the price will be associated with.
10076
10086
  */
10077
10087
  item_id: string;
10078
10088
  model_type: 'package_with_allocation';
@@ -10171,7 +10181,7 @@ export declare namespace SubscriptionCreateParams {
10171
10181
  */
10172
10182
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10173
10183
  /**
10174
- * The id of the item the plan will be associated with.
10184
+ * The id of the item the price will be associated with.
10175
10185
  */
10176
10186
  item_id: string;
10177
10187
  model_type: 'tiered_with_proration';
@@ -10270,7 +10280,7 @@ export declare namespace SubscriptionCreateParams {
10270
10280
  */
10271
10281
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10272
10282
  /**
10273
- * The id of the item the plan will be associated with.
10283
+ * The id of the item the price will be associated with.
10274
10284
  */
10275
10285
  item_id: string;
10276
10286
  model_type: 'unit_with_proration';
@@ -10370,7 +10380,7 @@ export declare namespace SubscriptionCreateParams {
10370
10380
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10371
10381
  grouped_allocation_config: Record<string, unknown>;
10372
10382
  /**
10373
- * The id of the item the plan will be associated with.
10383
+ * The id of the item the price will be associated with.
10374
10384
  */
10375
10385
  item_id: string;
10376
10386
  model_type: 'grouped_allocation';
@@ -10469,7 +10479,7 @@ export declare namespace SubscriptionCreateParams {
10469
10479
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10470
10480
  grouped_with_prorated_minimum_config: Record<string, unknown>;
10471
10481
  /**
10472
- * The id of the item the plan will be associated with.
10482
+ * The id of the item the price will be associated with.
10473
10483
  */
10474
10484
  item_id: string;
10475
10485
  model_type: 'grouped_with_prorated_minimum';
@@ -10568,7 +10578,7 @@ export declare namespace SubscriptionCreateParams {
10568
10578
  */
10569
10579
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
10570
10580
  /**
10571
- * The id of the item the plan will be associated with.
10581
+ * The id of the item the price will be associated with.
10572
10582
  */
10573
10583
  item_id: string;
10574
10584
  model_type: 'bulk_with_proration';
@@ -10920,7 +10930,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
10920
10930
  */
10921
10931
  currency: string;
10922
10932
  /**
10923
- * The id of the item the plan will be associated with.
10933
+ * The id of the item the price will be associated with.
10924
10934
  */
10925
10935
  item_id: string;
10926
10936
  model_type: 'unit';
@@ -11019,7 +11029,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11019
11029
  */
11020
11030
  currency: string;
11021
11031
  /**
11022
- * The id of the item the plan will be associated with.
11032
+ * The id of the item the price will be associated with.
11023
11033
  */
11024
11034
  item_id: string;
11025
11035
  model_type: 'package';
@@ -11123,7 +11133,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11123
11133
  */
11124
11134
  currency: string;
11125
11135
  /**
11126
- * The id of the item the plan will be associated with.
11136
+ * The id of the item the price will be associated with.
11127
11137
  */
11128
11138
  item_id: string;
11129
11139
  matrix_config: NewFloatingMatrixPrice.MatrixConfig;
@@ -11244,7 +11254,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11244
11254
  */
11245
11255
  currency: string;
11246
11256
  /**
11247
- * The id of the item the plan will be associated with.
11257
+ * The id of the item the price will be associated with.
11248
11258
  */
11249
11259
  item_id: string;
11250
11260
  matrix_with_allocation_config: NewFloatingMatrixWithAllocationPrice.MatrixWithAllocationConfig;
@@ -11369,7 +11379,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11369
11379
  */
11370
11380
  currency: string;
11371
11381
  /**
11372
- * The id of the item the plan will be associated with.
11382
+ * The id of the item the price will be associated with.
11373
11383
  */
11374
11384
  item_id: string;
11375
11385
  model_type: 'tiered';
@@ -11484,7 +11494,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11484
11494
  */
11485
11495
  currency: string;
11486
11496
  /**
11487
- * The id of the item the plan will be associated with.
11497
+ * The id of the item the price will be associated with.
11488
11498
  */
11489
11499
  item_id: string;
11490
11500
  model_type: 'tiered_bps';
@@ -11605,7 +11615,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11605
11615
  */
11606
11616
  currency: string;
11607
11617
  /**
11608
- * The id of the item the plan will be associated with.
11618
+ * The id of the item the price will be associated with.
11609
11619
  */
11610
11620
  item_id: string;
11611
11621
  model_type: 'bps';
@@ -11708,7 +11718,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11708
11718
  */
11709
11719
  currency: string;
11710
11720
  /**
11711
- * The id of the item the plan will be associated with.
11721
+ * The id of the item the price will be associated with.
11712
11722
  */
11713
11723
  item_id: string;
11714
11724
  model_type: 'bulk_bps';
@@ -11824,7 +11834,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11824
11834
  */
11825
11835
  currency: string;
11826
11836
  /**
11827
- * The id of the item the plan will be associated with.
11837
+ * The id of the item the price will be associated with.
11828
11838
  */
11829
11839
  item_id: string;
11830
11840
  model_type: 'bulk';
@@ -11934,7 +11944,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
11934
11944
  */
11935
11945
  currency: string;
11936
11946
  /**
11937
- * The id of the item the plan will be associated with.
11947
+ * The id of the item the price will be associated with.
11938
11948
  */
11939
11949
  item_id: string;
11940
11950
  model_type: 'threshold_total_amount';
@@ -12027,7 +12037,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12027
12037
  */
12028
12038
  currency: string;
12029
12039
  /**
12030
- * The id of the item the plan will be associated with.
12040
+ * The id of the item the price will be associated with.
12031
12041
  */
12032
12042
  item_id: string;
12033
12043
  model_type: 'tiered_package';
@@ -12121,7 +12131,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12121
12131
  currency: string;
12122
12132
  grouped_tiered_config: Record<string, unknown>;
12123
12133
  /**
12124
- * The id of the item the plan will be associated with.
12134
+ * The id of the item the price will be associated with.
12125
12135
  */
12126
12136
  item_id: string;
12127
12137
  model_type: 'grouped_tiered';
@@ -12213,7 +12223,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12213
12223
  */
12214
12224
  currency: string;
12215
12225
  /**
12216
- * The id of the item the plan will be associated with.
12226
+ * The id of the item the price will be associated with.
12217
12227
  */
12218
12228
  item_id: string;
12219
12229
  max_group_tiered_package_config: Record<string, unknown>;
@@ -12306,7 +12316,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12306
12316
  */
12307
12317
  currency: string;
12308
12318
  /**
12309
- * The id of the item the plan will be associated with.
12319
+ * The id of the item the price will be associated with.
12310
12320
  */
12311
12321
  item_id: string;
12312
12322
  model_type: 'tiered_with_minimum';
@@ -12399,7 +12409,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12399
12409
  */
12400
12410
  currency: string;
12401
12411
  /**
12402
- * The id of the item the plan will be associated with.
12412
+ * The id of the item the price will be associated with.
12403
12413
  */
12404
12414
  item_id: string;
12405
12415
  model_type: 'package_with_allocation';
@@ -12492,7 +12502,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12492
12502
  */
12493
12503
  currency: string;
12494
12504
  /**
12495
- * The id of the item the plan will be associated with.
12505
+ * The id of the item the price will be associated with.
12496
12506
  */
12497
12507
  item_id: string;
12498
12508
  model_type: 'tiered_package_with_minimum';
@@ -12585,7 +12595,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12585
12595
  */
12586
12596
  currency: string;
12587
12597
  /**
12588
- * The id of the item the plan will be associated with.
12598
+ * The id of the item the price will be associated with.
12589
12599
  */
12590
12600
  item_id: string;
12591
12601
  model_type: 'unit_with_percent';
@@ -12678,7 +12688,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12678
12688
  */
12679
12689
  currency: string;
12680
12690
  /**
12681
- * The id of the item the plan will be associated with.
12691
+ * The id of the item the price will be associated with.
12682
12692
  */
12683
12693
  item_id: string;
12684
12694
  model_type: 'tiered_with_proration';
@@ -12771,7 +12781,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12771
12781
  */
12772
12782
  currency: string;
12773
12783
  /**
12774
- * The id of the item the plan will be associated with.
12784
+ * The id of the item the price will be associated with.
12775
12785
  */
12776
12786
  item_id: string;
12777
12787
  model_type: 'unit_with_proration';
@@ -12865,7 +12875,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12865
12875
  currency: string;
12866
12876
  grouped_allocation_config: Record<string, unknown>;
12867
12877
  /**
12868
- * The id of the item the plan will be associated with.
12878
+ * The id of the item the price will be associated with.
12869
12879
  */
12870
12880
  item_id: string;
12871
12881
  model_type: 'grouped_allocation';
@@ -12958,7 +12968,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12958
12968
  currency: string;
12959
12969
  grouped_with_prorated_minimum_config: Record<string, unknown>;
12960
12970
  /**
12961
- * The id of the item the plan will be associated with.
12971
+ * The id of the item the price will be associated with.
12962
12972
  */
12963
12973
  item_id: string;
12964
12974
  model_type: 'grouped_with_prorated_minimum';
@@ -13051,7 +13061,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
13051
13061
  currency: string;
13052
13062
  grouped_with_metered_minimum_config: Record<string, unknown>;
13053
13063
  /**
13054
- * The id of the item the plan will be associated with.
13064
+ * The id of the item the price will be associated with.
13055
13065
  */
13056
13066
  item_id: string;
13057
13067
  model_type: 'grouped_with_metered_minimum';
@@ -13143,7 +13153,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
13143
13153
  */
13144
13154
  currency: string;
13145
13155
  /**
13146
- * The id of the item the plan will be associated with.
13156
+ * The id of the item the price will be associated with.
13147
13157
  */
13148
13158
  item_id: string;
13149
13159
  matrix_with_display_name_config: Record<string, unknown>;
@@ -13237,7 +13247,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
13237
13247
  */
13238
13248
  currency: string;
13239
13249
  /**
13240
- * The id of the item the plan will be associated with.
13250
+ * The id of the item the price will be associated with.
13241
13251
  */
13242
13252
  item_id: string;
13243
13253
  model_type: 'bulk_with_proration';
@@ -13330,7 +13340,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
13330
13340
  currency: string;
13331
13341
  grouped_tiered_package_config: Record<string, unknown>;
13332
13342
  /**
13333
- * The id of the item the plan will be associated with.
13343
+ * The id of the item the price will be associated with.
13334
13344
  */
13335
13345
  item_id: string;
13336
13346
  model_type: 'grouped_tiered_package';
@@ -13422,7 +13432,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
13422
13432
  */
13423
13433
  currency: string;
13424
13434
  /**
13425
- * The id of the item the plan will be associated with.
13435
+ * The id of the item the price will be associated with.
13426
13436
  */
13427
13437
  item_id: string;
13428
13438
  model_type: 'scalable_matrix_with_unit_pricing';
@@ -13515,7 +13525,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
13515
13525
  */
13516
13526
  currency: string;
13517
13527
  /**
13518
- * The id of the item the plan will be associated with.
13528
+ * The id of the item the price will be associated with.
13519
13529
  */
13520
13530
  item_id: string;
13521
13531
  model_type: 'scalable_matrix_with_tiered_pricing';
@@ -13609,7 +13619,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
13609
13619
  */
13610
13620
  currency: string;
13611
13621
  /**
13612
- * The id of the item the plan will be associated with.
13622
+ * The id of the item the price will be associated with.
13613
13623
  */
13614
13624
  item_id: string;
13615
13625
  model_type: 'cumulative_grouped_bulk';
@@ -13954,6 +13964,15 @@ export interface SubscriptionSchedulePlanChangeParams {
13954
13964
  * skipped.
13955
13965
  */
13956
13966
  trial_duration_days?: number | null;
13967
+ /**
13968
+ * A list of customer IDs whose usage events will be aggregated and billed under
13969
+ * this subscription. By default, a subscription only considers usage events
13970
+ * associated with its attached customer's customer_id. When usage_customer_ids is
13971
+ * provided, the subscription includes usage events from the specified customers
13972
+ * only. Provided usage_customer_ids must be either the customer for this
13973
+ * subscription itself, or any of that customer's children.
13974
+ */
13975
+ usage_customer_ids?: Array<string> | null;
13957
13976
  }
13958
13977
  export declare namespace SubscriptionSchedulePlanChangeParams {
13959
13978
  interface AddAdjustment {
@@ -14144,7 +14163,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14144
14163
  */
14145
14164
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14146
14165
  /**
14147
- * The id of the item the plan will be associated with.
14166
+ * The id of the item the price will be associated with.
14148
14167
  */
14149
14168
  item_id: string;
14150
14169
  model_type: 'unit';
@@ -14249,7 +14268,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14249
14268
  */
14250
14269
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14251
14270
  /**
14252
- * The id of the item the plan will be associated with.
14271
+ * The id of the item the price will be associated with.
14253
14272
  */
14254
14273
  item_id: string;
14255
14274
  model_type: 'package';
@@ -14359,7 +14378,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14359
14378
  */
14360
14379
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14361
14380
  /**
14362
- * The id of the item the plan will be associated with.
14381
+ * The id of the item the price will be associated with.
14363
14382
  */
14364
14383
  item_id: string;
14365
14384
  matrix_config: NewSubscriptionMatrixPrice.MatrixConfig;
@@ -14486,7 +14505,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14486
14505
  */
14487
14506
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14488
14507
  /**
14489
- * The id of the item the plan will be associated with.
14508
+ * The id of the item the price will be associated with.
14490
14509
  */
14491
14510
  item_id: string;
14492
14511
  model_type: 'tiered';
@@ -14607,7 +14626,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14607
14626
  */
14608
14627
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14609
14628
  /**
14610
- * The id of the item the plan will be associated with.
14629
+ * The id of the item the price will be associated with.
14611
14630
  */
14612
14631
  item_id: string;
14613
14632
  model_type: 'tiered_bps';
@@ -14734,7 +14753,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14734
14753
  */
14735
14754
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14736
14755
  /**
14737
- * The id of the item the plan will be associated with.
14756
+ * The id of the item the price will be associated with.
14738
14757
  */
14739
14758
  item_id: string;
14740
14759
  model_type: 'bps';
@@ -14843,7 +14862,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14843
14862
  */
14844
14863
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14845
14864
  /**
14846
- * The id of the item the plan will be associated with.
14865
+ * The id of the item the price will be associated with.
14847
14866
  */
14848
14867
  item_id: string;
14849
14868
  model_type: 'bulk_bps';
@@ -14965,7 +14984,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
14965
14984
  */
14966
14985
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
14967
14986
  /**
14968
- * The id of the item the plan will be associated with.
14987
+ * The id of the item the price will be associated with.
14969
14988
  */
14970
14989
  item_id: string;
14971
14990
  model_type: 'bulk';
@@ -15081,7 +15100,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15081
15100
  */
15082
15101
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15083
15102
  /**
15084
- * The id of the item the plan will be associated with.
15103
+ * The id of the item the price will be associated with.
15085
15104
  */
15086
15105
  item_id: string;
15087
15106
  model_type: 'threshold_total_amount';
@@ -15180,7 +15199,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15180
15199
  */
15181
15200
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15182
15201
  /**
15183
- * The id of the item the plan will be associated with.
15202
+ * The id of the item the price will be associated with.
15184
15203
  */
15185
15204
  item_id: string;
15186
15205
  model_type: 'tiered_package';
@@ -15279,7 +15298,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15279
15298
  */
15280
15299
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15281
15300
  /**
15282
- * The id of the item the plan will be associated with.
15301
+ * The id of the item the price will be associated with.
15283
15302
  */
15284
15303
  item_id: string;
15285
15304
  model_type: 'tiered_with_minimum';
@@ -15378,7 +15397,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15378
15397
  */
15379
15398
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15380
15399
  /**
15381
- * The id of the item the plan will be associated with.
15400
+ * The id of the item the price will be associated with.
15382
15401
  */
15383
15402
  item_id: string;
15384
15403
  model_type: 'unit_with_percent';
@@ -15477,7 +15496,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15477
15496
  */
15478
15497
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15479
15498
  /**
15480
- * The id of the item the plan will be associated with.
15499
+ * The id of the item the price will be associated with.
15481
15500
  */
15482
15501
  item_id: string;
15483
15502
  model_type: 'package_with_allocation';
@@ -15576,7 +15595,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15576
15595
  */
15577
15596
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15578
15597
  /**
15579
- * The id of the item the plan will be associated with.
15598
+ * The id of the item the price will be associated with.
15580
15599
  */
15581
15600
  item_id: string;
15582
15601
  model_type: 'tiered_with_proration';
@@ -15675,7 +15694,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15675
15694
  */
15676
15695
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15677
15696
  /**
15678
- * The id of the item the plan will be associated with.
15697
+ * The id of the item the price will be associated with.
15679
15698
  */
15680
15699
  item_id: string;
15681
15700
  model_type: 'unit_with_proration';
@@ -15775,7 +15794,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15775
15794
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15776
15795
  grouped_allocation_config: Record<string, unknown>;
15777
15796
  /**
15778
- * The id of the item the plan will be associated with.
15797
+ * The id of the item the price will be associated with.
15779
15798
  */
15780
15799
  item_id: string;
15781
15800
  model_type: 'grouped_allocation';
@@ -15874,7 +15893,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15874
15893
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15875
15894
  grouped_with_prorated_minimum_config: Record<string, unknown>;
15876
15895
  /**
15877
- * The id of the item the plan will be associated with.
15896
+ * The id of the item the price will be associated with.
15878
15897
  */
15879
15898
  item_id: string;
15880
15899
  model_type: 'grouped_with_prorated_minimum';
@@ -15973,7 +15992,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15973
15992
  */
15974
15993
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15975
15994
  /**
15976
- * The id of the item the plan will be associated with.
15995
+ * The id of the item the price will be associated with.
15977
15996
  */
15978
15997
  item_id: string;
15979
15998
  model_type: 'bulk_with_proration';
@@ -16271,7 +16290,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
16271
16290
  */
16272
16291
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16273
16292
  /**
16274
- * The id of the item the plan will be associated with.
16293
+ * The id of the item the price will be associated with.
16275
16294
  */
16276
16295
  item_id: string;
16277
16296
  model_type: 'unit';
@@ -16376,7 +16395,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
16376
16395
  */
16377
16396
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16378
16397
  /**
16379
- * The id of the item the plan will be associated with.
16398
+ * The id of the item the price will be associated with.
16380
16399
  */
16381
16400
  item_id: string;
16382
16401
  model_type: 'package';
@@ -16486,7 +16505,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
16486
16505
  */
16487
16506
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16488
16507
  /**
16489
- * The id of the item the plan will be associated with.
16508
+ * The id of the item the price will be associated with.
16490
16509
  */
16491
16510
  item_id: string;
16492
16511
  matrix_config: NewSubscriptionMatrixPrice.MatrixConfig;
@@ -16613,7 +16632,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
16613
16632
  */
16614
16633
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16615
16634
  /**
16616
- * The id of the item the plan will be associated with.
16635
+ * The id of the item the price will be associated with.
16617
16636
  */
16618
16637
  item_id: string;
16619
16638
  model_type: 'tiered';
@@ -16734,7 +16753,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
16734
16753
  */
16735
16754
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16736
16755
  /**
16737
- * The id of the item the plan will be associated with.
16756
+ * The id of the item the price will be associated with.
16738
16757
  */
16739
16758
  item_id: string;
16740
16759
  model_type: 'tiered_bps';
@@ -16861,7 +16880,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
16861
16880
  */
16862
16881
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16863
16882
  /**
16864
- * The id of the item the plan will be associated with.
16883
+ * The id of the item the price will be associated with.
16865
16884
  */
16866
16885
  item_id: string;
16867
16886
  model_type: 'bps';
@@ -16970,7 +16989,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
16970
16989
  */
16971
16990
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16972
16991
  /**
16973
- * The id of the item the plan will be associated with.
16992
+ * The id of the item the price will be associated with.
16974
16993
  */
16975
16994
  item_id: string;
16976
16995
  model_type: 'bulk_bps';
@@ -17092,7 +17111,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17092
17111
  */
17093
17112
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17094
17113
  /**
17095
- * The id of the item the plan will be associated with.
17114
+ * The id of the item the price will be associated with.
17096
17115
  */
17097
17116
  item_id: string;
17098
17117
  model_type: 'bulk';
@@ -17208,7 +17227,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17208
17227
  */
17209
17228
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17210
17229
  /**
17211
- * The id of the item the plan will be associated with.
17230
+ * The id of the item the price will be associated with.
17212
17231
  */
17213
17232
  item_id: string;
17214
17233
  model_type: 'threshold_total_amount';
@@ -17307,7 +17326,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17307
17326
  */
17308
17327
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17309
17328
  /**
17310
- * The id of the item the plan will be associated with.
17329
+ * The id of the item the price will be associated with.
17311
17330
  */
17312
17331
  item_id: string;
17313
17332
  model_type: 'tiered_package';
@@ -17406,7 +17425,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17406
17425
  */
17407
17426
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17408
17427
  /**
17409
- * The id of the item the plan will be associated with.
17428
+ * The id of the item the price will be associated with.
17410
17429
  */
17411
17430
  item_id: string;
17412
17431
  model_type: 'tiered_with_minimum';
@@ -17505,7 +17524,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17505
17524
  */
17506
17525
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17507
17526
  /**
17508
- * The id of the item the plan will be associated with.
17527
+ * The id of the item the price will be associated with.
17509
17528
  */
17510
17529
  item_id: string;
17511
17530
  model_type: 'unit_with_percent';
@@ -17604,7 +17623,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17604
17623
  */
17605
17624
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17606
17625
  /**
17607
- * The id of the item the plan will be associated with.
17626
+ * The id of the item the price will be associated with.
17608
17627
  */
17609
17628
  item_id: string;
17610
17629
  model_type: 'package_with_allocation';
@@ -17703,7 +17722,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17703
17722
  */
17704
17723
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17705
17724
  /**
17706
- * The id of the item the plan will be associated with.
17725
+ * The id of the item the price will be associated with.
17707
17726
  */
17708
17727
  item_id: string;
17709
17728
  model_type: 'tiered_with_proration';
@@ -17802,7 +17821,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17802
17821
  */
17803
17822
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17804
17823
  /**
17805
- * The id of the item the plan will be associated with.
17824
+ * The id of the item the price will be associated with.
17806
17825
  */
17807
17826
  item_id: string;
17808
17827
  model_type: 'unit_with_proration';
@@ -17902,7 +17921,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
17902
17921
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
17903
17922
  grouped_allocation_config: Record<string, unknown>;
17904
17923
  /**
17905
- * The id of the item the plan will be associated with.
17924
+ * The id of the item the price will be associated with.
17906
17925
  */
17907
17926
  item_id: string;
17908
17927
  model_type: 'grouped_allocation';
@@ -18001,7 +18020,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
18001
18020
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18002
18021
  grouped_with_prorated_minimum_config: Record<string, unknown>;
18003
18022
  /**
18004
- * The id of the item the plan will be associated with.
18023
+ * The id of the item the price will be associated with.
18005
18024
  */
18006
18025
  item_id: string;
18007
18026
  model_type: 'grouped_with_prorated_minimum';
@@ -18100,7 +18119,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
18100
18119
  */
18101
18120
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
18102
18121
  /**
18103
- * The id of the item the plan will be associated with.
18122
+ * The id of the item the price will be associated with.
18104
18123
  */
18105
18124
  item_id: string;
18106
18125
  model_type: 'bulk_with_proration';