orb-billing 5.31.0 → 5.32.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.
@@ -4869,6 +4869,7 @@ export namespace SubscriptionCreateParams {
4869
4869
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice
4870
4870
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice
4871
4871
  | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice
4872
+ | AddPrice.NewSubscriptionCumulativeGroupedAllocationPrice
4872
4873
  | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
4873
4874
  | AddPrice.NewSubscriptionPercentCompositePrice
4874
4875
  | AddPrice.NewSubscriptionEventOutputPrice
@@ -5297,6 +5298,134 @@ export namespace SubscriptionCreateParams {
5297
5298
  }
5298
5299
  }
5299
5300
 
5301
+ export interface NewSubscriptionCumulativeGroupedAllocationPrice {
5302
+ /**
5303
+ * The cadence to bill for this price on.
5304
+ */
5305
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
5306
+
5307
+ /**
5308
+ * Configuration for cumulative_grouped_allocation pricing
5309
+ */
5310
+ cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
5311
+
5312
+ /**
5313
+ * The id of the item the price will be associated with.
5314
+ */
5315
+ item_id: string;
5316
+
5317
+ /**
5318
+ * The pricing model type
5319
+ */
5320
+ model_type: 'cumulative_grouped_allocation';
5321
+
5322
+ /**
5323
+ * The name of the price.
5324
+ */
5325
+ name: string;
5326
+
5327
+ /**
5328
+ * The id of the billable metric for the price. Only needed if the price is
5329
+ * usage-based.
5330
+ */
5331
+ billable_metric_id?: string | null;
5332
+
5333
+ /**
5334
+ * If the Price represents a fixed cost, the price will be billed in-advance if
5335
+ * this is true, and in-arrears if this is false.
5336
+ */
5337
+ billed_in_advance?: boolean | null;
5338
+
5339
+ /**
5340
+ * For custom cadence: specifies the duration of the billing period in days or
5341
+ * months.
5342
+ */
5343
+ billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
5344
+
5345
+ /**
5346
+ * The per unit conversion rate of the price currency to the invoicing currency.
5347
+ */
5348
+ conversion_rate?: number | null;
5349
+
5350
+ /**
5351
+ * The configuration for the rate of the price currency to the invoicing currency.
5352
+ */
5353
+ conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
5354
+
5355
+ /**
5356
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
5357
+ * price is billed.
5358
+ */
5359
+ currency?: string | null;
5360
+
5361
+ /**
5362
+ * For dimensional price: specifies a price group and dimension values
5363
+ */
5364
+ dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
5365
+
5366
+ /**
5367
+ * An alias for the price.
5368
+ */
5369
+ external_price_id?: string | null;
5370
+
5371
+ /**
5372
+ * If the Price represents a fixed cost, this represents the quantity of units
5373
+ * applied.
5374
+ */
5375
+ fixed_price_quantity?: number | null;
5376
+
5377
+ /**
5378
+ * The property used to group this price on an invoice
5379
+ */
5380
+ invoice_grouping_key?: string | null;
5381
+
5382
+ /**
5383
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
5384
+ * If unspecified, a single invoice is produced per billing cycle.
5385
+ */
5386
+ invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
5387
+
5388
+ /**
5389
+ * User-specified key/value pairs for the resource. Individual keys can be removed
5390
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
5391
+ * by setting `metadata` to `null`.
5392
+ */
5393
+ metadata?: { [key: string]: string | null } | null;
5394
+
5395
+ /**
5396
+ * A transient ID that can be used to reference this price when adding adjustments
5397
+ * in the same API call.
5398
+ */
5399
+ reference_id?: string | null;
5400
+ }
5401
+
5402
+ export namespace NewSubscriptionCumulativeGroupedAllocationPrice {
5403
+ /**
5404
+ * Configuration for cumulative_grouped_allocation pricing
5405
+ */
5406
+ export interface CumulativeGroupedAllocationConfig {
5407
+ /**
5408
+ * The overall allocation across all groups
5409
+ */
5410
+ cumulative_allocation: string;
5411
+
5412
+ /**
5413
+ * The allocation per individual group
5414
+ */
5415
+ group_allocation: string;
5416
+
5417
+ /**
5418
+ * The event property used to group usage before applying allocations
5419
+ */
5420
+ grouping_key: string;
5421
+
5422
+ /**
5423
+ * The amount to charge for each unit outside of the allocation
5424
+ */
5425
+ unit_amount: string;
5426
+ }
5427
+ }
5428
+
5300
5429
  export interface NewSubscriptionPercentCompositePrice {
5301
5430
  /**
5302
5431
  * The cadence to bill for this price on.
@@ -5643,6 +5772,7 @@ export namespace SubscriptionCreateParams {
5643
5772
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice
5644
5773
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice
5645
5774
  | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice
5775
+ | ReplacePrice.NewSubscriptionCumulativeGroupedAllocationPrice
5646
5776
  | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
5647
5777
  | ReplacePrice.NewSubscriptionPercentCompositePrice
5648
5778
  | ReplacePrice.NewSubscriptionEventOutputPrice
@@ -6064,6 +6194,134 @@ export namespace SubscriptionCreateParams {
6064
6194
  }
6065
6195
  }
6066
6196
 
6197
+ export interface NewSubscriptionCumulativeGroupedAllocationPrice {
6198
+ /**
6199
+ * The cadence to bill for this price on.
6200
+ */
6201
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
6202
+
6203
+ /**
6204
+ * Configuration for cumulative_grouped_allocation pricing
6205
+ */
6206
+ cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
6207
+
6208
+ /**
6209
+ * The id of the item the price will be associated with.
6210
+ */
6211
+ item_id: string;
6212
+
6213
+ /**
6214
+ * The pricing model type
6215
+ */
6216
+ model_type: 'cumulative_grouped_allocation';
6217
+
6218
+ /**
6219
+ * The name of the price.
6220
+ */
6221
+ name: string;
6222
+
6223
+ /**
6224
+ * The id of the billable metric for the price. Only needed if the price is
6225
+ * usage-based.
6226
+ */
6227
+ billable_metric_id?: string | null;
6228
+
6229
+ /**
6230
+ * If the Price represents a fixed cost, the price will be billed in-advance if
6231
+ * this is true, and in-arrears if this is false.
6232
+ */
6233
+ billed_in_advance?: boolean | null;
6234
+
6235
+ /**
6236
+ * For custom cadence: specifies the duration of the billing period in days or
6237
+ * months.
6238
+ */
6239
+ billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
6240
+
6241
+ /**
6242
+ * The per unit conversion rate of the price currency to the invoicing currency.
6243
+ */
6244
+ conversion_rate?: number | null;
6245
+
6246
+ /**
6247
+ * The configuration for the rate of the price currency to the invoicing currency.
6248
+ */
6249
+ conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
6250
+
6251
+ /**
6252
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
6253
+ * price is billed.
6254
+ */
6255
+ currency?: string | null;
6256
+
6257
+ /**
6258
+ * For dimensional price: specifies a price group and dimension values
6259
+ */
6260
+ dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
6261
+
6262
+ /**
6263
+ * An alias for the price.
6264
+ */
6265
+ external_price_id?: string | null;
6266
+
6267
+ /**
6268
+ * If the Price represents a fixed cost, this represents the quantity of units
6269
+ * applied.
6270
+ */
6271
+ fixed_price_quantity?: number | null;
6272
+
6273
+ /**
6274
+ * The property used to group this price on an invoice
6275
+ */
6276
+ invoice_grouping_key?: string | null;
6277
+
6278
+ /**
6279
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
6280
+ * If unspecified, a single invoice is produced per billing cycle.
6281
+ */
6282
+ invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
6283
+
6284
+ /**
6285
+ * User-specified key/value pairs for the resource. Individual keys can be removed
6286
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
6287
+ * by setting `metadata` to `null`.
6288
+ */
6289
+ metadata?: { [key: string]: string | null } | null;
6290
+
6291
+ /**
6292
+ * A transient ID that can be used to reference this price when adding adjustments
6293
+ * in the same API call.
6294
+ */
6295
+ reference_id?: string | null;
6296
+ }
6297
+
6298
+ export namespace NewSubscriptionCumulativeGroupedAllocationPrice {
6299
+ /**
6300
+ * Configuration for cumulative_grouped_allocation pricing
6301
+ */
6302
+ export interface CumulativeGroupedAllocationConfig {
6303
+ /**
6304
+ * The overall allocation across all groups
6305
+ */
6306
+ cumulative_allocation: string;
6307
+
6308
+ /**
6309
+ * The allocation per individual group
6310
+ */
6311
+ group_allocation: string;
6312
+
6313
+ /**
6314
+ * The event property used to group usage before applying allocations
6315
+ */
6316
+ grouping_key: string;
6317
+
6318
+ /**
6319
+ * The amount to charge for each unit outside of the allocation
6320
+ */
6321
+ unit_amount: string;
6322
+ }
6323
+ }
6324
+
6067
6325
  export interface NewSubscriptionPercentCompositePrice {
6068
6326
  /**
6069
6327
  * The cadence to bill for this price on.
@@ -6587,6 +6845,7 @@ export namespace SubscriptionPriceIntervalsParams {
6587
6845
  | Shared.NewFloatingScalableMatrixWithUnitPricingPrice
6588
6846
  | Shared.NewFloatingScalableMatrixWithTieredPricingPrice
6589
6847
  | Shared.NewFloatingCumulativeGroupedBulkPrice
6848
+ | Add.NewFloatingCumulativeGroupedAllocationPrice
6590
6849
  | Shared.NewFloatingMinimumCompositePrice
6591
6850
  | Add.NewFloatingPercentCompositePrice
6592
6851
  | Add.NewFloatingEventOutputPrice
@@ -6793,21 +7052,142 @@ export namespace SubscriptionPriceIntervalsParams {
6793
7052
  }
6794
7053
  }
6795
7054
 
6796
- export interface NewFloatingGroupedWithMinMaxThresholdsPrice {
7055
+ export interface NewFloatingGroupedWithMinMaxThresholdsPrice {
7056
+ /**
7057
+ * The cadence to bill for this price on.
7058
+ */
7059
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
7060
+
7061
+ /**
7062
+ * An ISO 4217 currency string for which this price is billed in.
7063
+ */
7064
+ currency: string;
7065
+
7066
+ /**
7067
+ * Configuration for grouped_with_min_max_thresholds pricing
7068
+ */
7069
+ grouped_with_min_max_thresholds_config: NewFloatingGroupedWithMinMaxThresholdsPrice.GroupedWithMinMaxThresholdsConfig;
7070
+
7071
+ /**
7072
+ * The id of the item the price will be associated with.
7073
+ */
7074
+ item_id: string;
7075
+
7076
+ /**
7077
+ * The pricing model type
7078
+ */
7079
+ model_type: 'grouped_with_min_max_thresholds';
7080
+
7081
+ /**
7082
+ * The name of the price.
7083
+ */
7084
+ name: string;
7085
+
7086
+ /**
7087
+ * The id of the billable metric for the price. Only needed if the price is
7088
+ * usage-based.
7089
+ */
7090
+ billable_metric_id?: string | null;
7091
+
7092
+ /**
7093
+ * If the Price represents a fixed cost, the price will be billed in-advance if
7094
+ * this is true, and in-arrears if this is false.
7095
+ */
7096
+ billed_in_advance?: boolean | null;
7097
+
7098
+ /**
7099
+ * For custom cadence: specifies the duration of the billing period in days or
7100
+ * months.
7101
+ */
7102
+ billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
7103
+
7104
+ /**
7105
+ * The per unit conversion rate of the price currency to the invoicing currency.
7106
+ */
7107
+ conversion_rate?: number | null;
7108
+
7109
+ /**
7110
+ * The configuration for the rate of the price currency to the invoicing currency.
7111
+ */
7112
+ conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
7113
+
7114
+ /**
7115
+ * For dimensional price: specifies a price group and dimension values
7116
+ */
7117
+ dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
7118
+
7119
+ /**
7120
+ * An alias for the price.
7121
+ */
7122
+ external_price_id?: string | null;
7123
+
7124
+ /**
7125
+ * If the Price represents a fixed cost, this represents the quantity of units
7126
+ * applied.
7127
+ */
7128
+ fixed_price_quantity?: number | null;
7129
+
7130
+ /**
7131
+ * The property used to group this price on an invoice
7132
+ */
7133
+ invoice_grouping_key?: string | null;
7134
+
7135
+ /**
7136
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
7137
+ * If unspecified, a single invoice is produced per billing cycle.
7138
+ */
7139
+ invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
7140
+
7141
+ /**
7142
+ * User-specified key/value pairs for the resource. Individual keys can be removed
7143
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
7144
+ * by setting `metadata` to `null`.
7145
+ */
7146
+ metadata?: { [key: string]: string | null } | null;
7147
+ }
7148
+
7149
+ export namespace NewFloatingGroupedWithMinMaxThresholdsPrice {
7150
+ /**
7151
+ * Configuration for grouped_with_min_max_thresholds pricing
7152
+ */
7153
+ export interface GroupedWithMinMaxThresholdsConfig {
7154
+ /**
7155
+ * The event property used to group before applying thresholds
7156
+ */
7157
+ grouping_key: string;
7158
+
7159
+ /**
7160
+ * The maximum amount to charge each group
7161
+ */
7162
+ maximum_charge: string;
7163
+
7164
+ /**
7165
+ * The minimum amount to charge each group, regardless of usage
7166
+ */
7167
+ minimum_charge: string;
7168
+
7169
+ /**
7170
+ * The base price charged per group
7171
+ */
7172
+ per_unit_rate: string;
7173
+ }
7174
+ }
7175
+
7176
+ export interface NewFloatingCumulativeGroupedAllocationPrice {
6797
7177
  /**
6798
7178
  * The cadence to bill for this price on.
6799
7179
  */
6800
7180
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
6801
7181
 
6802
7182
  /**
6803
- * An ISO 4217 currency string for which this price is billed in.
7183
+ * Configuration for cumulative_grouped_allocation pricing
6804
7184
  */
6805
- currency: string;
7185
+ cumulative_grouped_allocation_config: NewFloatingCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
6806
7186
 
6807
7187
  /**
6808
- * Configuration for grouped_with_min_max_thresholds pricing
7188
+ * An ISO 4217 currency string for which this price is billed in.
6809
7189
  */
6810
- grouped_with_min_max_thresholds_config: NewFloatingGroupedWithMinMaxThresholdsPrice.GroupedWithMinMaxThresholdsConfig;
7190
+ currency: string;
6811
7191
 
6812
7192
  /**
6813
7193
  * The id of the item the price will be associated with.
@@ -6817,7 +7197,7 @@ export namespace SubscriptionPriceIntervalsParams {
6817
7197
  /**
6818
7198
  * The pricing model type
6819
7199
  */
6820
- model_type: 'grouped_with_min_max_thresholds';
7200
+ model_type: 'cumulative_grouped_allocation';
6821
7201
 
6822
7202
  /**
6823
7203
  * The name of the price.
@@ -6887,30 +7267,30 @@ export namespace SubscriptionPriceIntervalsParams {
6887
7267
  metadata?: { [key: string]: string | null } | null;
6888
7268
  }
6889
7269
 
6890
- export namespace NewFloatingGroupedWithMinMaxThresholdsPrice {
7270
+ export namespace NewFloatingCumulativeGroupedAllocationPrice {
6891
7271
  /**
6892
- * Configuration for grouped_with_min_max_thresholds pricing
7272
+ * Configuration for cumulative_grouped_allocation pricing
6893
7273
  */
6894
- export interface GroupedWithMinMaxThresholdsConfig {
7274
+ export interface CumulativeGroupedAllocationConfig {
6895
7275
  /**
6896
- * The event property used to group before applying thresholds
7276
+ * The overall allocation across all groups
6897
7277
  */
6898
- grouping_key: string;
7278
+ cumulative_allocation: string;
6899
7279
 
6900
7280
  /**
6901
- * The maximum amount to charge each group
7281
+ * The allocation per individual group
6902
7282
  */
6903
- maximum_charge: string;
7283
+ group_allocation: string;
6904
7284
 
6905
7285
  /**
6906
- * The minimum amount to charge each group, regardless of usage
7286
+ * The event property used to group usage before applying allocations
6907
7287
  */
6908
- minimum_charge: string;
7288
+ grouping_key: string;
6909
7289
 
6910
7290
  /**
6911
- * The base price charged per group
7291
+ * The amount to charge for each unit outside of the allocation
6912
7292
  */
6913
- per_unit_rate: string;
7293
+ unit_amount: string;
6914
7294
  }
6915
7295
  }
6916
7296
 
@@ -7558,6 +7938,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
7558
7938
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice
7559
7939
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice
7560
7940
  | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice
7941
+ | AddPrice.NewSubscriptionCumulativeGroupedAllocationPrice
7561
7942
  | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
7562
7943
  | AddPrice.NewSubscriptionPercentCompositePrice
7563
7944
  | AddPrice.NewSubscriptionEventOutputPrice
@@ -7986,6 +8367,134 @@ export namespace SubscriptionSchedulePlanChangeParams {
7986
8367
  }
7987
8368
  }
7988
8369
 
8370
+ export interface NewSubscriptionCumulativeGroupedAllocationPrice {
8371
+ /**
8372
+ * The cadence to bill for this price on.
8373
+ */
8374
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
8375
+
8376
+ /**
8377
+ * Configuration for cumulative_grouped_allocation pricing
8378
+ */
8379
+ cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
8380
+
8381
+ /**
8382
+ * The id of the item the price will be associated with.
8383
+ */
8384
+ item_id: string;
8385
+
8386
+ /**
8387
+ * The pricing model type
8388
+ */
8389
+ model_type: 'cumulative_grouped_allocation';
8390
+
8391
+ /**
8392
+ * The name of the price.
8393
+ */
8394
+ name: string;
8395
+
8396
+ /**
8397
+ * The id of the billable metric for the price. Only needed if the price is
8398
+ * usage-based.
8399
+ */
8400
+ billable_metric_id?: string | null;
8401
+
8402
+ /**
8403
+ * If the Price represents a fixed cost, the price will be billed in-advance if
8404
+ * this is true, and in-arrears if this is false.
8405
+ */
8406
+ billed_in_advance?: boolean | null;
8407
+
8408
+ /**
8409
+ * For custom cadence: specifies the duration of the billing period in days or
8410
+ * months.
8411
+ */
8412
+ billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
8413
+
8414
+ /**
8415
+ * The per unit conversion rate of the price currency to the invoicing currency.
8416
+ */
8417
+ conversion_rate?: number | null;
8418
+
8419
+ /**
8420
+ * The configuration for the rate of the price currency to the invoicing currency.
8421
+ */
8422
+ conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
8423
+
8424
+ /**
8425
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
8426
+ * price is billed.
8427
+ */
8428
+ currency?: string | null;
8429
+
8430
+ /**
8431
+ * For dimensional price: specifies a price group and dimension values
8432
+ */
8433
+ dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
8434
+
8435
+ /**
8436
+ * An alias for the price.
8437
+ */
8438
+ external_price_id?: string | null;
8439
+
8440
+ /**
8441
+ * If the Price represents a fixed cost, this represents the quantity of units
8442
+ * applied.
8443
+ */
8444
+ fixed_price_quantity?: number | null;
8445
+
8446
+ /**
8447
+ * The property used to group this price on an invoice
8448
+ */
8449
+ invoice_grouping_key?: string | null;
8450
+
8451
+ /**
8452
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
8453
+ * If unspecified, a single invoice is produced per billing cycle.
8454
+ */
8455
+ invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
8456
+
8457
+ /**
8458
+ * User-specified key/value pairs for the resource. Individual keys can be removed
8459
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
8460
+ * by setting `metadata` to `null`.
8461
+ */
8462
+ metadata?: { [key: string]: string | null } | null;
8463
+
8464
+ /**
8465
+ * A transient ID that can be used to reference this price when adding adjustments
8466
+ * in the same API call.
8467
+ */
8468
+ reference_id?: string | null;
8469
+ }
8470
+
8471
+ export namespace NewSubscriptionCumulativeGroupedAllocationPrice {
8472
+ /**
8473
+ * Configuration for cumulative_grouped_allocation pricing
8474
+ */
8475
+ export interface CumulativeGroupedAllocationConfig {
8476
+ /**
8477
+ * The overall allocation across all groups
8478
+ */
8479
+ cumulative_allocation: string;
8480
+
8481
+ /**
8482
+ * The allocation per individual group
8483
+ */
8484
+ group_allocation: string;
8485
+
8486
+ /**
8487
+ * The event property used to group usage before applying allocations
8488
+ */
8489
+ grouping_key: string;
8490
+
8491
+ /**
8492
+ * The amount to charge for each unit outside of the allocation
8493
+ */
8494
+ unit_amount: string;
8495
+ }
8496
+ }
8497
+
7989
8498
  export interface NewSubscriptionPercentCompositePrice {
7990
8499
  /**
7991
8500
  * The cadence to bill for this price on.
@@ -8332,6 +8841,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
8332
8841
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice
8333
8842
  | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice
8334
8843
  | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice
8844
+ | ReplacePrice.NewSubscriptionCumulativeGroupedAllocationPrice
8335
8845
  | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
8336
8846
  | ReplacePrice.NewSubscriptionPercentCompositePrice
8337
8847
  | ReplacePrice.NewSubscriptionEventOutputPrice
@@ -8753,6 +9263,134 @@ export namespace SubscriptionSchedulePlanChangeParams {
8753
9263
  }
8754
9264
  }
8755
9265
 
9266
+ export interface NewSubscriptionCumulativeGroupedAllocationPrice {
9267
+ /**
9268
+ * The cadence to bill for this price on.
9269
+ */
9270
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
9271
+
9272
+ /**
9273
+ * Configuration for cumulative_grouped_allocation pricing
9274
+ */
9275
+ cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
9276
+
9277
+ /**
9278
+ * The id of the item the price will be associated with.
9279
+ */
9280
+ item_id: string;
9281
+
9282
+ /**
9283
+ * The pricing model type
9284
+ */
9285
+ model_type: 'cumulative_grouped_allocation';
9286
+
9287
+ /**
9288
+ * The name of the price.
9289
+ */
9290
+ name: string;
9291
+
9292
+ /**
9293
+ * The id of the billable metric for the price. Only needed if the price is
9294
+ * usage-based.
9295
+ */
9296
+ billable_metric_id?: string | null;
9297
+
9298
+ /**
9299
+ * If the Price represents a fixed cost, the price will be billed in-advance if
9300
+ * this is true, and in-arrears if this is false.
9301
+ */
9302
+ billed_in_advance?: boolean | null;
9303
+
9304
+ /**
9305
+ * For custom cadence: specifies the duration of the billing period in days or
9306
+ * months.
9307
+ */
9308
+ billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
9309
+
9310
+ /**
9311
+ * The per unit conversion rate of the price currency to the invoicing currency.
9312
+ */
9313
+ conversion_rate?: number | null;
9314
+
9315
+ /**
9316
+ * The configuration for the rate of the price currency to the invoicing currency.
9317
+ */
9318
+ conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
9319
+
9320
+ /**
9321
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
9322
+ * price is billed.
9323
+ */
9324
+ currency?: string | null;
9325
+
9326
+ /**
9327
+ * For dimensional price: specifies a price group and dimension values
9328
+ */
9329
+ dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
9330
+
9331
+ /**
9332
+ * An alias for the price.
9333
+ */
9334
+ external_price_id?: string | null;
9335
+
9336
+ /**
9337
+ * If the Price represents a fixed cost, this represents the quantity of units
9338
+ * applied.
9339
+ */
9340
+ fixed_price_quantity?: number | null;
9341
+
9342
+ /**
9343
+ * The property used to group this price on an invoice
9344
+ */
9345
+ invoice_grouping_key?: string | null;
9346
+
9347
+ /**
9348
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
9349
+ * If unspecified, a single invoice is produced per billing cycle.
9350
+ */
9351
+ invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
9352
+
9353
+ /**
9354
+ * User-specified key/value pairs for the resource. Individual keys can be removed
9355
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
9356
+ * by setting `metadata` to `null`.
9357
+ */
9358
+ metadata?: { [key: string]: string | null } | null;
9359
+
9360
+ /**
9361
+ * A transient ID that can be used to reference this price when adding adjustments
9362
+ * in the same API call.
9363
+ */
9364
+ reference_id?: string | null;
9365
+ }
9366
+
9367
+ export namespace NewSubscriptionCumulativeGroupedAllocationPrice {
9368
+ /**
9369
+ * Configuration for cumulative_grouped_allocation pricing
9370
+ */
9371
+ export interface CumulativeGroupedAllocationConfig {
9372
+ /**
9373
+ * The overall allocation across all groups
9374
+ */
9375
+ cumulative_allocation: string;
9376
+
9377
+ /**
9378
+ * The allocation per individual group
9379
+ */
9380
+ group_allocation: string;
9381
+
9382
+ /**
9383
+ * The event property used to group usage before applying allocations
9384
+ */
9385
+ grouping_key: string;
9386
+
9387
+ /**
9388
+ * The amount to charge for each unit outside of the allocation
9389
+ */
9390
+ unit_amount: string;
9391
+ }
9392
+ }
9393
+
8756
9394
  export interface NewSubscriptionPercentCompositePrice {
8757
9395
  /**
8758
9396
  * The cadence to bill for this price on.