orb-billing 4.24.0 → 4.25.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.
@@ -2578,6 +2578,12 @@ export namespace SubscriptionCreateParams {
2578
2578
  * by setting `metadata` to `null`.
2579
2579
  */
2580
2580
  metadata?: Record<string, string | null> | null;
2581
+
2582
+ /**
2583
+ * A transient ID that can be used to reference this price when adding adjustments
2584
+ * in the same API call.
2585
+ */
2586
+ reference_id?: string | null;
2581
2587
  }
2582
2588
 
2583
2589
  export namespace NewSubscriptionUnitPrice {
@@ -2698,6 +2704,12 @@ export namespace SubscriptionCreateParams {
2698
2704
  * by setting `metadata` to `null`.
2699
2705
  */
2700
2706
  metadata?: Record<string, string | null> | null;
2707
+
2708
+ /**
2709
+ * A transient ID that can be used to reference this price when adding adjustments
2710
+ * in the same API call.
2711
+ */
2712
+ reference_id?: string | null;
2701
2713
  }
2702
2714
 
2703
2715
  export namespace NewSubscriptionPackagePrice {
@@ -2824,6 +2836,12 @@ export namespace SubscriptionCreateParams {
2824
2836
  * by setting `metadata` to `null`.
2825
2837
  */
2826
2838
  metadata?: Record<string, string | null> | null;
2839
+
2840
+ /**
2841
+ * A transient ID that can be used to reference this price when adding adjustments
2842
+ * in the same API call.
2843
+ */
2844
+ reference_id?: string | null;
2827
2845
  }
2828
2846
 
2829
2847
  export namespace NewSubscriptionMatrixPrice {
@@ -2970,6 +2988,12 @@ export namespace SubscriptionCreateParams {
2970
2988
  * by setting `metadata` to `null`.
2971
2989
  */
2972
2990
  metadata?: Record<string, string | null> | null;
2991
+
2992
+ /**
2993
+ * A transient ID that can be used to reference this price when adding adjustments
2994
+ * in the same API call.
2995
+ */
2996
+ reference_id?: string | null;
2973
2997
  }
2974
2998
 
2975
2999
  export namespace NewSubscriptionTieredPrice {
@@ -3109,6 +3133,12 @@ export namespace SubscriptionCreateParams {
3109
3133
  * by setting `metadata` to `null`.
3110
3134
  */
3111
3135
  metadata?: Record<string, string | null> | null;
3136
+
3137
+ /**
3138
+ * A transient ID that can be used to reference this price when adding adjustments
3139
+ * in the same API call.
3140
+ */
3141
+ reference_id?: string | null;
3112
3142
  }
3113
3143
 
3114
3144
  export namespace NewSubscriptionTieredBpsPrice {
@@ -3254,6 +3284,12 @@ export namespace SubscriptionCreateParams {
3254
3284
  * by setting `metadata` to `null`.
3255
3285
  */
3256
3286
  metadata?: Record<string, string | null> | null;
3287
+
3288
+ /**
3289
+ * A transient ID that can be used to reference this price when adding adjustments
3290
+ * in the same API call.
3291
+ */
3292
+ reference_id?: string | null;
3257
3293
  }
3258
3294
 
3259
3295
  export namespace NewSubscriptionBpsPrice {
@@ -3379,6 +3415,12 @@ export namespace SubscriptionCreateParams {
3379
3415
  * by setting `metadata` to `null`.
3380
3416
  */
3381
3417
  metadata?: Record<string, string | null> | null;
3418
+
3419
+ /**
3420
+ * A transient ID that can be used to reference this price when adding adjustments
3421
+ * in the same API call.
3422
+ */
3423
+ reference_id?: string | null;
3382
3424
  }
3383
3425
 
3384
3426
  export namespace NewSubscriptionBulkBpsPrice {
@@ -3519,6 +3561,12 @@ export namespace SubscriptionCreateParams {
3519
3561
  * by setting `metadata` to `null`.
3520
3562
  */
3521
3563
  metadata?: Record<string, string | null> | null;
3564
+
3565
+ /**
3566
+ * A transient ID that can be used to reference this price when adding adjustments
3567
+ * in the same API call.
3568
+ */
3569
+ reference_id?: string | null;
3522
3570
  }
3523
3571
 
3524
3572
  export namespace NewSubscriptionBulkPrice {
@@ -3653,6 +3701,12 @@ export namespace SubscriptionCreateParams {
3653
3701
  * by setting `metadata` to `null`.
3654
3702
  */
3655
3703
  metadata?: Record<string, string | null> | null;
3704
+
3705
+ /**
3706
+ * A transient ID that can be used to reference this price when adding adjustments
3707
+ * in the same API call.
3708
+ */
3709
+ reference_id?: string | null;
3656
3710
  }
3657
3711
 
3658
3712
  export namespace NewSubscriptionThresholdTotalAmountPrice {
@@ -3766,6 +3820,12 @@ export namespace SubscriptionCreateParams {
3766
3820
  * by setting `metadata` to `null`.
3767
3821
  */
3768
3822
  metadata?: Record<string, string | null> | null;
3823
+
3824
+ /**
3825
+ * A transient ID that can be used to reference this price when adding adjustments
3826
+ * in the same API call.
3827
+ */
3828
+ reference_id?: string | null;
3769
3829
  }
3770
3830
 
3771
3831
  export namespace NewSubscriptionTieredPackagePrice {
@@ -3879,6 +3939,12 @@ export namespace SubscriptionCreateParams {
3879
3939
  * by setting `metadata` to `null`.
3880
3940
  */
3881
3941
  metadata?: Record<string, string | null> | null;
3942
+
3943
+ /**
3944
+ * A transient ID that can be used to reference this price when adding adjustments
3945
+ * in the same API call.
3946
+ */
3947
+ reference_id?: string | null;
3882
3948
  }
3883
3949
 
3884
3950
  export namespace NewSubscriptionTieredWithMinimumPrice {
@@ -3992,6 +4058,12 @@ export namespace SubscriptionCreateParams {
3992
4058
  * by setting `metadata` to `null`.
3993
4059
  */
3994
4060
  metadata?: Record<string, string | null> | null;
4061
+
4062
+ /**
4063
+ * A transient ID that can be used to reference this price when adding adjustments
4064
+ * in the same API call.
4065
+ */
4066
+ reference_id?: string | null;
3995
4067
  }
3996
4068
 
3997
4069
  export namespace NewSubscriptionUnitWithPercentPrice {
@@ -4105,6 +4177,12 @@ export namespace SubscriptionCreateParams {
4105
4177
  * by setting `metadata` to `null`.
4106
4178
  */
4107
4179
  metadata?: Record<string, string | null> | null;
4180
+
4181
+ /**
4182
+ * A transient ID that can be used to reference this price when adding adjustments
4183
+ * in the same API call.
4184
+ */
4185
+ reference_id?: string | null;
4108
4186
  }
4109
4187
 
4110
4188
  export namespace NewSubscriptionPackageWithAllocationPrice {
@@ -4218,6 +4296,12 @@ export namespace SubscriptionCreateParams {
4218
4296
  * by setting `metadata` to `null`.
4219
4297
  */
4220
4298
  metadata?: Record<string, string | null> | null;
4299
+
4300
+ /**
4301
+ * A transient ID that can be used to reference this price when adding adjustments
4302
+ * in the same API call.
4303
+ */
4304
+ reference_id?: string | null;
4221
4305
  }
4222
4306
 
4223
4307
  export namespace NewSubscriptionTierWithProrationPrice {
@@ -4331,6 +4415,12 @@ export namespace SubscriptionCreateParams {
4331
4415
  * by setting `metadata` to `null`.
4332
4416
  */
4333
4417
  metadata?: Record<string, string | null> | null;
4418
+
4419
+ /**
4420
+ * A transient ID that can be used to reference this price when adding adjustments
4421
+ * in the same API call.
4422
+ */
4423
+ reference_id?: string | null;
4334
4424
  }
4335
4425
 
4336
4426
  export namespace NewSubscriptionUnitWithProrationPrice {
@@ -4444,6 +4534,12 @@ export namespace SubscriptionCreateParams {
4444
4534
  * by setting `metadata` to `null`.
4445
4535
  */
4446
4536
  metadata?: Record<string, string | null> | null;
4537
+
4538
+ /**
4539
+ * A transient ID that can be used to reference this price when adding adjustments
4540
+ * in the same API call.
4541
+ */
4542
+ reference_id?: string | null;
4447
4543
  }
4448
4544
 
4449
4545
  export namespace NewSubscriptionGroupedAllocationPrice {
@@ -4557,6 +4653,12 @@ export namespace SubscriptionCreateParams {
4557
4653
  * by setting `metadata` to `null`.
4558
4654
  */
4559
4655
  metadata?: Record<string, string | null> | null;
4656
+
4657
+ /**
4658
+ * A transient ID that can be used to reference this price when adding adjustments
4659
+ * in the same API call.
4660
+ */
4661
+ reference_id?: string | null;
4560
4662
  }
4561
4663
 
4562
4664
  export namespace NewSubscriptionGroupedWithProratedMinimumPrice {
@@ -4670,6 +4772,12 @@ export namespace SubscriptionCreateParams {
4670
4772
  * by setting `metadata` to `null`.
4671
4773
  */
4672
4774
  metadata?: Record<string, string | null> | null;
4775
+
4776
+ /**
4777
+ * A transient ID that can be used to reference this price when adding adjustments
4778
+ * in the same API call.
4779
+ */
4780
+ reference_id?: string | null;
4673
4781
  }
4674
4782
 
4675
4783
  export namespace NewSubscriptionBulkWithProrationPrice {
@@ -6432,10 +6540,25 @@ export namespace SubscriptionCreateParams {
6432
6540
  }
6433
6541
 
6434
6542
  export interface ReplacePrice {
6543
+ /**
6544
+ * The id of the price on the plan to replace in the subscription.
6545
+ */
6546
+ replaces_price_id: string;
6547
+
6548
+ /**
6549
+ * The external price id of the price to add to the subscription.
6550
+ */
6551
+ external_price_id?: string | null;
6552
+
6553
+ /**
6554
+ * The new quantity of the price, if the price is a fixed price.
6555
+ */
6556
+ fixed_price_quantity?: number | null;
6557
+
6435
6558
  /**
6436
6559
  * The definition of a new price to create and add to the subscription.
6437
6560
  */
6438
- price:
6561
+ price?:
6439
6562
  | ReplacePrice.NewSubscriptionUnitPrice
6440
6563
  | ReplacePrice.NewSubscriptionPackagePrice
6441
6564
  | ReplacePrice.NewSubscriptionMatrixPrice
@@ -6453,12 +6576,13 @@ export namespace SubscriptionCreateParams {
6453
6576
  | ReplacePrice.NewSubscriptionUnitWithProrationPrice
6454
6577
  | ReplacePrice.NewSubscriptionGroupedAllocationPrice
6455
6578
  | ReplacePrice.NewSubscriptionGroupedWithProratedMinimumPrice
6456
- | ReplacePrice.NewSubscriptionBulkWithProrationPrice;
6579
+ | ReplacePrice.NewSubscriptionBulkWithProrationPrice
6580
+ | null;
6457
6581
 
6458
6582
  /**
6459
- * The id of the price on the plan to replace in the subscription.
6583
+ * The id of the price to add to the subscription.
6460
6584
  */
6461
- replaces_price_id: string;
6585
+ price_id?: string | null;
6462
6586
  }
6463
6587
 
6464
6588
  export namespace ReplacePrice {
@@ -6539,6 +6663,12 @@ export namespace SubscriptionCreateParams {
6539
6663
  * by setting `metadata` to `null`.
6540
6664
  */
6541
6665
  metadata?: Record<string, string | null> | null;
6666
+
6667
+ /**
6668
+ * A transient ID that can be used to reference this price when adding adjustments
6669
+ * in the same API call.
6670
+ */
6671
+ reference_id?: string | null;
6542
6672
  }
6543
6673
 
6544
6674
  export namespace NewSubscriptionUnitPrice {
@@ -6659,6 +6789,12 @@ export namespace SubscriptionCreateParams {
6659
6789
  * by setting `metadata` to `null`.
6660
6790
  */
6661
6791
  metadata?: Record<string, string | null> | null;
6792
+
6793
+ /**
6794
+ * A transient ID that can be used to reference this price when adding adjustments
6795
+ * in the same API call.
6796
+ */
6797
+ reference_id?: string | null;
6662
6798
  }
6663
6799
 
6664
6800
  export namespace NewSubscriptionPackagePrice {
@@ -6785,6 +6921,12 @@ export namespace SubscriptionCreateParams {
6785
6921
  * by setting `metadata` to `null`.
6786
6922
  */
6787
6923
  metadata?: Record<string, string | null> | null;
6924
+
6925
+ /**
6926
+ * A transient ID that can be used to reference this price when adding adjustments
6927
+ * in the same API call.
6928
+ */
6929
+ reference_id?: string | null;
6788
6930
  }
6789
6931
 
6790
6932
  export namespace NewSubscriptionMatrixPrice {
@@ -6931,6 +7073,12 @@ export namespace SubscriptionCreateParams {
6931
7073
  * by setting `metadata` to `null`.
6932
7074
  */
6933
7075
  metadata?: Record<string, string | null> | null;
7076
+
7077
+ /**
7078
+ * A transient ID that can be used to reference this price when adding adjustments
7079
+ * in the same API call.
7080
+ */
7081
+ reference_id?: string | null;
6934
7082
  }
6935
7083
 
6936
7084
  export namespace NewSubscriptionTieredPrice {
@@ -7070,6 +7218,12 @@ export namespace SubscriptionCreateParams {
7070
7218
  * by setting `metadata` to `null`.
7071
7219
  */
7072
7220
  metadata?: Record<string, string | null> | null;
7221
+
7222
+ /**
7223
+ * A transient ID that can be used to reference this price when adding adjustments
7224
+ * in the same API call.
7225
+ */
7226
+ reference_id?: string | null;
7073
7227
  }
7074
7228
 
7075
7229
  export namespace NewSubscriptionTieredBpsPrice {
@@ -7215,6 +7369,12 @@ export namespace SubscriptionCreateParams {
7215
7369
  * by setting `metadata` to `null`.
7216
7370
  */
7217
7371
  metadata?: Record<string, string | null> | null;
7372
+
7373
+ /**
7374
+ * A transient ID that can be used to reference this price when adding adjustments
7375
+ * in the same API call.
7376
+ */
7377
+ reference_id?: string | null;
7218
7378
  }
7219
7379
 
7220
7380
  export namespace NewSubscriptionBpsPrice {
@@ -7340,6 +7500,12 @@ export namespace SubscriptionCreateParams {
7340
7500
  * by setting `metadata` to `null`.
7341
7501
  */
7342
7502
  metadata?: Record<string, string | null> | null;
7503
+
7504
+ /**
7505
+ * A transient ID that can be used to reference this price when adding adjustments
7506
+ * in the same API call.
7507
+ */
7508
+ reference_id?: string | null;
7343
7509
  }
7344
7510
 
7345
7511
  export namespace NewSubscriptionBulkBpsPrice {
@@ -7480,6 +7646,12 @@ export namespace SubscriptionCreateParams {
7480
7646
  * by setting `metadata` to `null`.
7481
7647
  */
7482
7648
  metadata?: Record<string, string | null> | null;
7649
+
7650
+ /**
7651
+ * A transient ID that can be used to reference this price when adding adjustments
7652
+ * in the same API call.
7653
+ */
7654
+ reference_id?: string | null;
7483
7655
  }
7484
7656
 
7485
7657
  export namespace NewSubscriptionBulkPrice {
@@ -7614,6 +7786,12 @@ export namespace SubscriptionCreateParams {
7614
7786
  * by setting `metadata` to `null`.
7615
7787
  */
7616
7788
  metadata?: Record<string, string | null> | null;
7789
+
7790
+ /**
7791
+ * A transient ID that can be used to reference this price when adding adjustments
7792
+ * in the same API call.
7793
+ */
7794
+ reference_id?: string | null;
7617
7795
  }
7618
7796
 
7619
7797
  export namespace NewSubscriptionThresholdTotalAmountPrice {
@@ -7727,6 +7905,12 @@ export namespace SubscriptionCreateParams {
7727
7905
  * by setting `metadata` to `null`.
7728
7906
  */
7729
7907
  metadata?: Record<string, string | null> | null;
7908
+
7909
+ /**
7910
+ * A transient ID that can be used to reference this price when adding adjustments
7911
+ * in the same API call.
7912
+ */
7913
+ reference_id?: string | null;
7730
7914
  }
7731
7915
 
7732
7916
  export namespace NewSubscriptionTieredPackagePrice {
@@ -7840,6 +8024,12 @@ export namespace SubscriptionCreateParams {
7840
8024
  * by setting `metadata` to `null`.
7841
8025
  */
7842
8026
  metadata?: Record<string, string | null> | null;
8027
+
8028
+ /**
8029
+ * A transient ID that can be used to reference this price when adding adjustments
8030
+ * in the same API call.
8031
+ */
8032
+ reference_id?: string | null;
7843
8033
  }
7844
8034
 
7845
8035
  export namespace NewSubscriptionTieredWithMinimumPrice {
@@ -7953,6 +8143,12 @@ export namespace SubscriptionCreateParams {
7953
8143
  * by setting `metadata` to `null`.
7954
8144
  */
7955
8145
  metadata?: Record<string, string | null> | null;
8146
+
8147
+ /**
8148
+ * A transient ID that can be used to reference this price when adding adjustments
8149
+ * in the same API call.
8150
+ */
8151
+ reference_id?: string | null;
7956
8152
  }
7957
8153
 
7958
8154
  export namespace NewSubscriptionUnitWithPercentPrice {
@@ -8066,6 +8262,12 @@ export namespace SubscriptionCreateParams {
8066
8262
  * by setting `metadata` to `null`.
8067
8263
  */
8068
8264
  metadata?: Record<string, string | null> | null;
8265
+
8266
+ /**
8267
+ * A transient ID that can be used to reference this price when adding adjustments
8268
+ * in the same API call.
8269
+ */
8270
+ reference_id?: string | null;
8069
8271
  }
8070
8272
 
8071
8273
  export namespace NewSubscriptionPackageWithAllocationPrice {
@@ -8179,6 +8381,12 @@ export namespace SubscriptionCreateParams {
8179
8381
  * by setting `metadata` to `null`.
8180
8382
  */
8181
8383
  metadata?: Record<string, string | null> | null;
8384
+
8385
+ /**
8386
+ * A transient ID that can be used to reference this price when adding adjustments
8387
+ * in the same API call.
8388
+ */
8389
+ reference_id?: string | null;
8182
8390
  }
8183
8391
 
8184
8392
  export namespace NewSubscriptionTierWithProrationPrice {
@@ -8292,6 +8500,12 @@ export namespace SubscriptionCreateParams {
8292
8500
  * by setting `metadata` to `null`.
8293
8501
  */
8294
8502
  metadata?: Record<string, string | null> | null;
8503
+
8504
+ /**
8505
+ * A transient ID that can be used to reference this price when adding adjustments
8506
+ * in the same API call.
8507
+ */
8508
+ reference_id?: string | null;
8295
8509
  }
8296
8510
 
8297
8511
  export namespace NewSubscriptionUnitWithProrationPrice {
@@ -8405,6 +8619,12 @@ export namespace SubscriptionCreateParams {
8405
8619
  * by setting `metadata` to `null`.
8406
8620
  */
8407
8621
  metadata?: Record<string, string | null> | null;
8622
+
8623
+ /**
8624
+ * A transient ID that can be used to reference this price when adding adjustments
8625
+ * in the same API call.
8626
+ */
8627
+ reference_id?: string | null;
8408
8628
  }
8409
8629
 
8410
8630
  export namespace NewSubscriptionGroupedAllocationPrice {
@@ -8518,6 +8738,12 @@ export namespace SubscriptionCreateParams {
8518
8738
  * by setting `metadata` to `null`.
8519
8739
  */
8520
8740
  metadata?: Record<string, string | null> | null;
8741
+
8742
+ /**
8743
+ * A transient ID that can be used to reference this price when adding adjustments
8744
+ * in the same API call.
8745
+ */
8746
+ reference_id?: string | null;
8521
8747
  }
8522
8748
 
8523
8749
  export namespace NewSubscriptionGroupedWithProratedMinimumPrice {
@@ -8631,6 +8857,12 @@ export namespace SubscriptionCreateParams {
8631
8857
  * by setting `metadata` to `null`.
8632
8858
  */
8633
8859
  metadata?: Record<string, string | null> | null;
8860
+
8861
+ /**
8862
+ * A transient ID that can be used to reference this price when adding adjustments
8863
+ * in the same API call.
8864
+ */
8865
+ reference_id?: string | null;
8634
8866
  }
8635
8867
 
8636
8868
  export namespace NewSubscriptionBulkWithProrationPrice {
@@ -12153,6 +12385,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
12153
12385
  * by setting `metadata` to `null`.
12154
12386
  */
12155
12387
  metadata?: Record<string, string | null> | null;
12388
+
12389
+ /**
12390
+ * A transient ID that can be used to reference this price when adding adjustments
12391
+ * in the same API call.
12392
+ */
12393
+ reference_id?: string | null;
12156
12394
  }
12157
12395
 
12158
12396
  export namespace NewSubscriptionUnitPrice {
@@ -12273,6 +12511,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
12273
12511
  * by setting `metadata` to `null`.
12274
12512
  */
12275
12513
  metadata?: Record<string, string | null> | null;
12514
+
12515
+ /**
12516
+ * A transient ID that can be used to reference this price when adding adjustments
12517
+ * in the same API call.
12518
+ */
12519
+ reference_id?: string | null;
12276
12520
  }
12277
12521
 
12278
12522
  export namespace NewSubscriptionPackagePrice {
@@ -12399,6 +12643,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
12399
12643
  * by setting `metadata` to `null`.
12400
12644
  */
12401
12645
  metadata?: Record<string, string | null> | null;
12646
+
12647
+ /**
12648
+ * A transient ID that can be used to reference this price when adding adjustments
12649
+ * in the same API call.
12650
+ */
12651
+ reference_id?: string | null;
12402
12652
  }
12403
12653
 
12404
12654
  export namespace NewSubscriptionMatrixPrice {
@@ -12545,6 +12795,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
12545
12795
  * by setting `metadata` to `null`.
12546
12796
  */
12547
12797
  metadata?: Record<string, string | null> | null;
12798
+
12799
+ /**
12800
+ * A transient ID that can be used to reference this price when adding adjustments
12801
+ * in the same API call.
12802
+ */
12803
+ reference_id?: string | null;
12548
12804
  }
12549
12805
 
12550
12806
  export namespace NewSubscriptionTieredPrice {
@@ -12684,6 +12940,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
12684
12940
  * by setting `metadata` to `null`.
12685
12941
  */
12686
12942
  metadata?: Record<string, string | null> | null;
12943
+
12944
+ /**
12945
+ * A transient ID that can be used to reference this price when adding adjustments
12946
+ * in the same API call.
12947
+ */
12948
+ reference_id?: string | null;
12687
12949
  }
12688
12950
 
12689
12951
  export namespace NewSubscriptionTieredBpsPrice {
@@ -12829,6 +13091,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
12829
13091
  * by setting `metadata` to `null`.
12830
13092
  */
12831
13093
  metadata?: Record<string, string | null> | null;
13094
+
13095
+ /**
13096
+ * A transient ID that can be used to reference this price when adding adjustments
13097
+ * in the same API call.
13098
+ */
13099
+ reference_id?: string | null;
12832
13100
  }
12833
13101
 
12834
13102
  export namespace NewSubscriptionBpsPrice {
@@ -12954,6 +13222,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
12954
13222
  * by setting `metadata` to `null`.
12955
13223
  */
12956
13224
  metadata?: Record<string, string | null> | null;
13225
+
13226
+ /**
13227
+ * A transient ID that can be used to reference this price when adding adjustments
13228
+ * in the same API call.
13229
+ */
13230
+ reference_id?: string | null;
12957
13231
  }
12958
13232
 
12959
13233
  export namespace NewSubscriptionBulkBpsPrice {
@@ -13094,6 +13368,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13094
13368
  * by setting `metadata` to `null`.
13095
13369
  */
13096
13370
  metadata?: Record<string, string | null> | null;
13371
+
13372
+ /**
13373
+ * A transient ID that can be used to reference this price when adding adjustments
13374
+ * in the same API call.
13375
+ */
13376
+ reference_id?: string | null;
13097
13377
  }
13098
13378
 
13099
13379
  export namespace NewSubscriptionBulkPrice {
@@ -13228,6 +13508,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13228
13508
  * by setting `metadata` to `null`.
13229
13509
  */
13230
13510
  metadata?: Record<string, string | null> | null;
13511
+
13512
+ /**
13513
+ * A transient ID that can be used to reference this price when adding adjustments
13514
+ * in the same API call.
13515
+ */
13516
+ reference_id?: string | null;
13231
13517
  }
13232
13518
 
13233
13519
  export namespace NewSubscriptionThresholdTotalAmountPrice {
@@ -13341,6 +13627,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13341
13627
  * by setting `metadata` to `null`.
13342
13628
  */
13343
13629
  metadata?: Record<string, string | null> | null;
13630
+
13631
+ /**
13632
+ * A transient ID that can be used to reference this price when adding adjustments
13633
+ * in the same API call.
13634
+ */
13635
+ reference_id?: string | null;
13344
13636
  }
13345
13637
 
13346
13638
  export namespace NewSubscriptionTieredPackagePrice {
@@ -13454,6 +13746,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13454
13746
  * by setting `metadata` to `null`.
13455
13747
  */
13456
13748
  metadata?: Record<string, string | null> | null;
13749
+
13750
+ /**
13751
+ * A transient ID that can be used to reference this price when adding adjustments
13752
+ * in the same API call.
13753
+ */
13754
+ reference_id?: string | null;
13457
13755
  }
13458
13756
 
13459
13757
  export namespace NewSubscriptionTieredWithMinimumPrice {
@@ -13567,6 +13865,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13567
13865
  * by setting `metadata` to `null`.
13568
13866
  */
13569
13867
  metadata?: Record<string, string | null> | null;
13868
+
13869
+ /**
13870
+ * A transient ID that can be used to reference this price when adding adjustments
13871
+ * in the same API call.
13872
+ */
13873
+ reference_id?: string | null;
13570
13874
  }
13571
13875
 
13572
13876
  export namespace NewSubscriptionUnitWithPercentPrice {
@@ -13680,6 +13984,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13680
13984
  * by setting `metadata` to `null`.
13681
13985
  */
13682
13986
  metadata?: Record<string, string | null> | null;
13987
+
13988
+ /**
13989
+ * A transient ID that can be used to reference this price when adding adjustments
13990
+ * in the same API call.
13991
+ */
13992
+ reference_id?: string | null;
13683
13993
  }
13684
13994
 
13685
13995
  export namespace NewSubscriptionPackageWithAllocationPrice {
@@ -13793,6 +14103,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13793
14103
  * by setting `metadata` to `null`.
13794
14104
  */
13795
14105
  metadata?: Record<string, string | null> | null;
14106
+
14107
+ /**
14108
+ * A transient ID that can be used to reference this price when adding adjustments
14109
+ * in the same API call.
14110
+ */
14111
+ reference_id?: string | null;
13796
14112
  }
13797
14113
 
13798
14114
  export namespace NewSubscriptionTierWithProrationPrice {
@@ -13906,6 +14222,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
13906
14222
  * by setting `metadata` to `null`.
13907
14223
  */
13908
14224
  metadata?: Record<string, string | null> | null;
14225
+
14226
+ /**
14227
+ * A transient ID that can be used to reference this price when adding adjustments
14228
+ * in the same API call.
14229
+ */
14230
+ reference_id?: string | null;
13909
14231
  }
13910
14232
 
13911
14233
  export namespace NewSubscriptionUnitWithProrationPrice {
@@ -14019,6 +14341,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
14019
14341
  * by setting `metadata` to `null`.
14020
14342
  */
14021
14343
  metadata?: Record<string, string | null> | null;
14344
+
14345
+ /**
14346
+ * A transient ID that can be used to reference this price when adding adjustments
14347
+ * in the same API call.
14348
+ */
14349
+ reference_id?: string | null;
14022
14350
  }
14023
14351
 
14024
14352
  export namespace NewSubscriptionGroupedAllocationPrice {
@@ -14132,6 +14460,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
14132
14460
  * by setting `metadata` to `null`.
14133
14461
  */
14134
14462
  metadata?: Record<string, string | null> | null;
14463
+
14464
+ /**
14465
+ * A transient ID that can be used to reference this price when adding adjustments
14466
+ * in the same API call.
14467
+ */
14468
+ reference_id?: string | null;
14135
14469
  }
14136
14470
 
14137
14471
  export namespace NewSubscriptionGroupedWithProratedMinimumPrice {
@@ -14245,6 +14579,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
14245
14579
  * by setting `metadata` to `null`.
14246
14580
  */
14247
14581
  metadata?: Record<string, string | null> | null;
14582
+
14583
+ /**
14584
+ * A transient ID that can be used to reference this price when adding adjustments
14585
+ * in the same API call.
14586
+ */
14587
+ reference_id?: string | null;
14248
14588
  }
14249
14589
 
14250
14590
  export namespace NewSubscriptionBulkWithProrationPrice {
@@ -15984,10 +16324,25 @@ export namespace SubscriptionSchedulePlanChangeParams {
15984
16324
  }
15985
16325
 
15986
16326
  export interface ReplacePrice {
16327
+ /**
16328
+ * The id of the price on the plan to replace in the subscription.
16329
+ */
16330
+ replaces_price_id: string;
16331
+
16332
+ /**
16333
+ * The external price id of the price to add to the subscription.
16334
+ */
16335
+ external_price_id?: string | null;
16336
+
16337
+ /**
16338
+ * The new quantity of the price, if the price is a fixed price.
16339
+ */
16340
+ fixed_price_quantity?: number | null;
16341
+
15987
16342
  /**
15988
16343
  * The definition of a new price to create and add to the subscription.
15989
16344
  */
15990
- price:
16345
+ price?:
15991
16346
  | ReplacePrice.NewSubscriptionUnitPrice
15992
16347
  | ReplacePrice.NewSubscriptionPackagePrice
15993
16348
  | ReplacePrice.NewSubscriptionMatrixPrice
@@ -16005,12 +16360,13 @@ export namespace SubscriptionSchedulePlanChangeParams {
16005
16360
  | ReplacePrice.NewSubscriptionUnitWithProrationPrice
16006
16361
  | ReplacePrice.NewSubscriptionGroupedAllocationPrice
16007
16362
  | ReplacePrice.NewSubscriptionGroupedWithProratedMinimumPrice
16008
- | ReplacePrice.NewSubscriptionBulkWithProrationPrice;
16363
+ | ReplacePrice.NewSubscriptionBulkWithProrationPrice
16364
+ | null;
16009
16365
 
16010
16366
  /**
16011
- * The id of the price on the plan to replace in the subscription.
16367
+ * The id of the price to add to the subscription.
16012
16368
  */
16013
- replaces_price_id: string;
16369
+ price_id?: string | null;
16014
16370
  }
16015
16371
 
16016
16372
  export namespace ReplacePrice {
@@ -16091,6 +16447,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
16091
16447
  * by setting `metadata` to `null`.
16092
16448
  */
16093
16449
  metadata?: Record<string, string | null> | null;
16450
+
16451
+ /**
16452
+ * A transient ID that can be used to reference this price when adding adjustments
16453
+ * in the same API call.
16454
+ */
16455
+ reference_id?: string | null;
16094
16456
  }
16095
16457
 
16096
16458
  export namespace NewSubscriptionUnitPrice {
@@ -16211,6 +16573,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
16211
16573
  * by setting `metadata` to `null`.
16212
16574
  */
16213
16575
  metadata?: Record<string, string | null> | null;
16576
+
16577
+ /**
16578
+ * A transient ID that can be used to reference this price when adding adjustments
16579
+ * in the same API call.
16580
+ */
16581
+ reference_id?: string | null;
16214
16582
  }
16215
16583
 
16216
16584
  export namespace NewSubscriptionPackagePrice {
@@ -16337,6 +16705,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
16337
16705
  * by setting `metadata` to `null`.
16338
16706
  */
16339
16707
  metadata?: Record<string, string | null> | null;
16708
+
16709
+ /**
16710
+ * A transient ID that can be used to reference this price when adding adjustments
16711
+ * in the same API call.
16712
+ */
16713
+ reference_id?: string | null;
16340
16714
  }
16341
16715
 
16342
16716
  export namespace NewSubscriptionMatrixPrice {
@@ -16483,6 +16857,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
16483
16857
  * by setting `metadata` to `null`.
16484
16858
  */
16485
16859
  metadata?: Record<string, string | null> | null;
16860
+
16861
+ /**
16862
+ * A transient ID that can be used to reference this price when adding adjustments
16863
+ * in the same API call.
16864
+ */
16865
+ reference_id?: string | null;
16486
16866
  }
16487
16867
 
16488
16868
  export namespace NewSubscriptionTieredPrice {
@@ -16622,6 +17002,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
16622
17002
  * by setting `metadata` to `null`.
16623
17003
  */
16624
17004
  metadata?: Record<string, string | null> | null;
17005
+
17006
+ /**
17007
+ * A transient ID that can be used to reference this price when adding adjustments
17008
+ * in the same API call.
17009
+ */
17010
+ reference_id?: string | null;
16625
17011
  }
16626
17012
 
16627
17013
  export namespace NewSubscriptionTieredBpsPrice {
@@ -16767,6 +17153,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
16767
17153
  * by setting `metadata` to `null`.
16768
17154
  */
16769
17155
  metadata?: Record<string, string | null> | null;
17156
+
17157
+ /**
17158
+ * A transient ID that can be used to reference this price when adding adjustments
17159
+ * in the same API call.
17160
+ */
17161
+ reference_id?: string | null;
16770
17162
  }
16771
17163
 
16772
17164
  export namespace NewSubscriptionBpsPrice {
@@ -16892,6 +17284,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
16892
17284
  * by setting `metadata` to `null`.
16893
17285
  */
16894
17286
  metadata?: Record<string, string | null> | null;
17287
+
17288
+ /**
17289
+ * A transient ID that can be used to reference this price when adding adjustments
17290
+ * in the same API call.
17291
+ */
17292
+ reference_id?: string | null;
16895
17293
  }
16896
17294
 
16897
17295
  export namespace NewSubscriptionBulkBpsPrice {
@@ -17032,6 +17430,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17032
17430
  * by setting `metadata` to `null`.
17033
17431
  */
17034
17432
  metadata?: Record<string, string | null> | null;
17433
+
17434
+ /**
17435
+ * A transient ID that can be used to reference this price when adding adjustments
17436
+ * in the same API call.
17437
+ */
17438
+ reference_id?: string | null;
17035
17439
  }
17036
17440
 
17037
17441
  export namespace NewSubscriptionBulkPrice {
@@ -17166,6 +17570,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17166
17570
  * by setting `metadata` to `null`.
17167
17571
  */
17168
17572
  metadata?: Record<string, string | null> | null;
17573
+
17574
+ /**
17575
+ * A transient ID that can be used to reference this price when adding adjustments
17576
+ * in the same API call.
17577
+ */
17578
+ reference_id?: string | null;
17169
17579
  }
17170
17580
 
17171
17581
  export namespace NewSubscriptionThresholdTotalAmountPrice {
@@ -17279,6 +17689,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17279
17689
  * by setting `metadata` to `null`.
17280
17690
  */
17281
17691
  metadata?: Record<string, string | null> | null;
17692
+
17693
+ /**
17694
+ * A transient ID that can be used to reference this price when adding adjustments
17695
+ * in the same API call.
17696
+ */
17697
+ reference_id?: string | null;
17282
17698
  }
17283
17699
 
17284
17700
  export namespace NewSubscriptionTieredPackagePrice {
@@ -17392,6 +17808,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17392
17808
  * by setting `metadata` to `null`.
17393
17809
  */
17394
17810
  metadata?: Record<string, string | null> | null;
17811
+
17812
+ /**
17813
+ * A transient ID that can be used to reference this price when adding adjustments
17814
+ * in the same API call.
17815
+ */
17816
+ reference_id?: string | null;
17395
17817
  }
17396
17818
 
17397
17819
  export namespace NewSubscriptionTieredWithMinimumPrice {
@@ -17505,6 +17927,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17505
17927
  * by setting `metadata` to `null`.
17506
17928
  */
17507
17929
  metadata?: Record<string, string | null> | null;
17930
+
17931
+ /**
17932
+ * A transient ID that can be used to reference this price when adding adjustments
17933
+ * in the same API call.
17934
+ */
17935
+ reference_id?: string | null;
17508
17936
  }
17509
17937
 
17510
17938
  export namespace NewSubscriptionUnitWithPercentPrice {
@@ -17618,6 +18046,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17618
18046
  * by setting `metadata` to `null`.
17619
18047
  */
17620
18048
  metadata?: Record<string, string | null> | null;
18049
+
18050
+ /**
18051
+ * A transient ID that can be used to reference this price when adding adjustments
18052
+ * in the same API call.
18053
+ */
18054
+ reference_id?: string | null;
17621
18055
  }
17622
18056
 
17623
18057
  export namespace NewSubscriptionPackageWithAllocationPrice {
@@ -17731,6 +18165,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17731
18165
  * by setting `metadata` to `null`.
17732
18166
  */
17733
18167
  metadata?: Record<string, string | null> | null;
18168
+
18169
+ /**
18170
+ * A transient ID that can be used to reference this price when adding adjustments
18171
+ * in the same API call.
18172
+ */
18173
+ reference_id?: string | null;
17734
18174
  }
17735
18175
 
17736
18176
  export namespace NewSubscriptionTierWithProrationPrice {
@@ -17844,6 +18284,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17844
18284
  * by setting `metadata` to `null`.
17845
18285
  */
17846
18286
  metadata?: Record<string, string | null> | null;
18287
+
18288
+ /**
18289
+ * A transient ID that can be used to reference this price when adding adjustments
18290
+ * in the same API call.
18291
+ */
18292
+ reference_id?: string | null;
17847
18293
  }
17848
18294
 
17849
18295
  export namespace NewSubscriptionUnitWithProrationPrice {
@@ -17957,6 +18403,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
17957
18403
  * by setting `metadata` to `null`.
17958
18404
  */
17959
18405
  metadata?: Record<string, string | null> | null;
18406
+
18407
+ /**
18408
+ * A transient ID that can be used to reference this price when adding adjustments
18409
+ * in the same API call.
18410
+ */
18411
+ reference_id?: string | null;
17960
18412
  }
17961
18413
 
17962
18414
  export namespace NewSubscriptionGroupedAllocationPrice {
@@ -18070,6 +18522,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
18070
18522
  * by setting `metadata` to `null`.
18071
18523
  */
18072
18524
  metadata?: Record<string, string | null> | null;
18525
+
18526
+ /**
18527
+ * A transient ID that can be used to reference this price when adding adjustments
18528
+ * in the same API call.
18529
+ */
18530
+ reference_id?: string | null;
18073
18531
  }
18074
18532
 
18075
18533
  export namespace NewSubscriptionGroupedWithProratedMinimumPrice {
@@ -18183,6 +18641,12 @@ export namespace SubscriptionSchedulePlanChangeParams {
18183
18641
  * by setting `metadata` to `null`.
18184
18642
  */
18185
18643
  metadata?: Record<string, string | null> | null;
18644
+
18645
+ /**
18646
+ * A transient ID that can be used to reference this price when adding adjustments
18647
+ * in the same API call.
18648
+ */
18649
+ reference_id?: string | null;
18186
18650
  }
18187
18651
 
18188
18652
  export namespace NewSubscriptionBulkWithProrationPrice {