orb-billing 5.15.0 → 5.16.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/beta/beta.d.ts +396 -2
  4. package/resources/beta/beta.d.ts.map +1 -1
  5. package/resources/beta/beta.js.map +1 -1
  6. package/resources/beta/beta.mjs.map +1 -1
  7. package/resources/beta/external-plan-id.d.ts +396 -2
  8. package/resources/beta/external-plan-id.d.ts.map +1 -1
  9. package/resources/items.d.ts +37 -0
  10. package/resources/items.d.ts.map +1 -1
  11. package/resources/items.js.map +1 -1
  12. package/resources/items.mjs.map +1 -1
  13. package/resources/plans/plans.d.ts +198 -1
  14. package/resources/plans/plans.d.ts.map +1 -1
  15. package/resources/plans/plans.js.map +1 -1
  16. package/resources/plans/plans.mjs.map +1 -1
  17. package/resources/prices/prices.d.ts +558 -3
  18. package/resources/prices/prices.d.ts.map +1 -1
  19. package/resources/prices/prices.js.map +1 -1
  20. package/resources/prices/prices.mjs.map +1 -1
  21. package/resources/shared.d.ts +280 -1
  22. package/resources/shared.d.ts.map +1 -1
  23. package/resources/shared.js.map +1 -1
  24. package/resources/shared.mjs.map +1 -1
  25. package/resources/subscriptions.d.ts +1104 -131
  26. package/resources/subscriptions.d.ts.map +1 -1
  27. package/resources/subscriptions.js.map +1 -1
  28. package/resources/subscriptions.mjs.map +1 -1
  29. package/src/resources/beta/beta.ts +468 -0
  30. package/src/resources/beta/external-plan-id.ts +468 -0
  31. package/src/resources/items.ts +38 -0
  32. package/src/resources/plans/plans.ts +234 -0
  33. package/src/resources/prices/prices.ts +688 -28
  34. package/src/resources/shared.ts +337 -1
  35. package/src/resources/subscriptions.ts +1250 -94
  36. package/src/version.ts +1 -1
  37. package/version.d.ts +1 -1
  38. package/version.js +1 -1
  39. package/version.mjs +1 -1
@@ -1537,8 +1537,18 @@ export interface InvoiceTiny {
1537
1537
  */
1538
1538
  id: string;
1539
1539
  }
1540
+ /**
1541
+ * A minimal representation of an Item containing only the essential identifying
1542
+ * information.
1543
+ */
1540
1544
  export interface ItemSlim {
1545
+ /**
1546
+ * The Orb-assigned unique identifier for the item.
1547
+ */
1541
1548
  id: string;
1549
+ /**
1550
+ * The name of the item.
1551
+ */
1542
1552
  name: string;
1543
1553
  }
1544
1554
  /**
@@ -7770,7 +7780,7 @@ export interface PlanPhaseUsageDiscountAdjustment {
7770
7780
  * For more on the types of prices, see
7771
7781
  * [the core concepts documentation](/core-concepts#plan-and-price)
7772
7782
  */
7773
- export type Price = Price.UnitPrice | Price.TieredPrice | Price.BulkPrice | Price.PackagePrice | Price.MatrixPrice | Price.ThresholdTotalAmountPrice | Price.TieredPackagePrice | Price.TieredWithMinimumPrice | Price.GroupedTieredPrice | Price.TieredPackageWithMinimumPrice | Price.PackageWithAllocationPrice | Price.UnitWithPercentPrice | Price.MatrixWithAllocationPrice | Price.TieredWithProrationPrice | Price.UnitWithProrationPrice | Price.GroupedAllocationPrice | Price.BulkWithProrationPrice | Price.GroupedWithProratedMinimumPrice | Price.GroupedWithMeteredMinimumPrice | Price.GroupedWithMinMaxThresholdsPrice | Price.MatrixWithDisplayNamePrice | Price.GroupedTieredPackagePrice | Price.MaxGroupTieredPackagePrice | Price.ScalableMatrixWithUnitPricingPrice | Price.ScalableMatrixWithTieredPricingPrice | Price.CumulativeGroupedBulkPrice | Price.MinimumCompositePrice;
7783
+ export type Price = Price.UnitPrice | Price.TieredPrice | Price.BulkPrice | Price.PackagePrice | Price.MatrixPrice | Price.ThresholdTotalAmountPrice | Price.TieredPackagePrice | Price.TieredWithMinimumPrice | Price.GroupedTieredPrice | Price.TieredPackageWithMinimumPrice | Price.PackageWithAllocationPrice | Price.UnitWithPercentPrice | Price.MatrixWithAllocationPrice | Price.TieredWithProrationPrice | Price.UnitWithProrationPrice | Price.GroupedAllocationPrice | Price.BulkWithProrationPrice | Price.GroupedWithProratedMinimumPrice | Price.GroupedWithMeteredMinimumPrice | Price.GroupedWithMinMaxThresholdsPrice | Price.MatrixWithDisplayNamePrice | Price.GroupedTieredPackagePrice | Price.MaxGroupTieredPackagePrice | Price.ScalableMatrixWithUnitPricingPrice | Price.ScalableMatrixWithTieredPricingPrice | Price.CumulativeGroupedBulkPrice | Price.MinimumCompositePrice | Price.PercentCompositePrice | Price.EventOutputPrice;
7774
7784
  export declare namespace Price {
7775
7785
  interface UnitPrice {
7776
7786
  id: string;
@@ -7791,6 +7801,10 @@ export declare namespace Price {
7791
7801
  external_price_id: string | null;
7792
7802
  fixed_price_quantity: number | null;
7793
7803
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
7804
+ /**
7805
+ * A minimal representation of an Item containing only the essential identifying
7806
+ * information.
7807
+ */
7794
7808
  item: Shared.ItemSlim;
7795
7809
  /**
7796
7810
  * @deprecated
@@ -7854,6 +7868,10 @@ export declare namespace Price {
7854
7868
  external_price_id: string | null;
7855
7869
  fixed_price_quantity: number | null;
7856
7870
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
7871
+ /**
7872
+ * A minimal representation of an Item containing only the essential identifying
7873
+ * information.
7874
+ */
7857
7875
  item: Shared.ItemSlim;
7858
7876
  /**
7859
7877
  * @deprecated
@@ -7921,6 +7939,10 @@ export declare namespace Price {
7921
7939
  external_price_id: string | null;
7922
7940
  fixed_price_quantity: number | null;
7923
7941
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
7942
+ /**
7943
+ * A minimal representation of an Item containing only the essential identifying
7944
+ * information.
7945
+ */
7924
7946
  item: Shared.ItemSlim;
7925
7947
  /**
7926
7948
  * @deprecated
@@ -7980,6 +8002,10 @@ export declare namespace Price {
7980
8002
  external_price_id: string | null;
7981
8003
  fixed_price_quantity: number | null;
7982
8004
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8005
+ /**
8006
+ * A minimal representation of an Item containing only the essential identifying
8007
+ * information.
8008
+ */
7983
8009
  item: Shared.ItemSlim;
7984
8010
  /**
7985
8011
  * @deprecated
@@ -8043,6 +8069,10 @@ export declare namespace Price {
8043
8069
  external_price_id: string | null;
8044
8070
  fixed_price_quantity: number | null;
8045
8071
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8072
+ /**
8073
+ * A minimal representation of an Item containing only the essential identifying
8074
+ * information.
8075
+ */
8046
8076
  item: Shared.ItemSlim;
8047
8077
  /**
8048
8078
  * Configuration for matrix pricing
@@ -8106,6 +8136,10 @@ export declare namespace Price {
8106
8136
  external_price_id: string | null;
8107
8137
  fixed_price_quantity: number | null;
8108
8138
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8139
+ /**
8140
+ * A minimal representation of an Item containing only the essential identifying
8141
+ * information.
8142
+ */
8109
8143
  item: Shared.ItemSlim;
8110
8144
  /**
8111
8145
  * @deprecated
@@ -8200,6 +8234,10 @@ export declare namespace Price {
8200
8234
  external_price_id: string | null;
8201
8235
  fixed_price_quantity: number | null;
8202
8236
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8237
+ /**
8238
+ * A minimal representation of an Item containing only the essential identifying
8239
+ * information.
8240
+ */
8203
8241
  item: Shared.ItemSlim;
8204
8242
  /**
8205
8243
  * @deprecated
@@ -8296,6 +8334,10 @@ export declare namespace Price {
8296
8334
  external_price_id: string | null;
8297
8335
  fixed_price_quantity: number | null;
8298
8336
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8337
+ /**
8338
+ * A minimal representation of an Item containing only the essential identifying
8339
+ * information.
8340
+ */
8299
8341
  item: Shared.ItemSlim;
8300
8342
  /**
8301
8343
  * @deprecated
@@ -8402,6 +8444,10 @@ export declare namespace Price {
8402
8444
  */
8403
8445
  grouped_tiered_config: GroupedTieredPrice.GroupedTieredConfig;
8404
8446
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8447
+ /**
8448
+ * A minimal representation of an Item containing only the essential identifying
8449
+ * information.
8450
+ */
8405
8451
  item: Shared.ItemSlim;
8406
8452
  /**
8407
8453
  * @deprecated
@@ -8492,6 +8538,10 @@ export declare namespace Price {
8492
8538
  external_price_id: string | null;
8493
8539
  fixed_price_quantity: number | null;
8494
8540
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8541
+ /**
8542
+ * A minimal representation of an Item containing only the essential identifying
8543
+ * information.
8544
+ */
8495
8545
  item: Shared.ItemSlim;
8496
8546
  /**
8497
8547
  * @deprecated
@@ -8590,6 +8640,10 @@ export declare namespace Price {
8590
8640
  external_price_id: string | null;
8591
8641
  fixed_price_quantity: number | null;
8592
8642
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8643
+ /**
8644
+ * A minimal representation of an Item containing only the essential identifying
8645
+ * information.
8646
+ */
8593
8647
  item: Shared.ItemSlim;
8594
8648
  /**
8595
8649
  * @deprecated
@@ -8672,6 +8726,10 @@ export declare namespace Price {
8672
8726
  external_price_id: string | null;
8673
8727
  fixed_price_quantity: number | null;
8674
8728
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8729
+ /**
8730
+ * A minimal representation of an Item containing only the essential identifying
8731
+ * information.
8732
+ */
8675
8733
  item: Shared.ItemSlim;
8676
8734
  /**
8677
8735
  * @deprecated
@@ -8750,6 +8808,10 @@ export declare namespace Price {
8750
8808
  external_price_id: string | null;
8751
8809
  fixed_price_quantity: number | null;
8752
8810
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8811
+ /**
8812
+ * A minimal representation of an Item containing only the essential identifying
8813
+ * information.
8814
+ */
8753
8815
  item: Shared.ItemSlim;
8754
8816
  /**
8755
8817
  * Configuration for matrix_with_allocation pricing
@@ -8813,6 +8875,10 @@ export declare namespace Price {
8813
8875
  external_price_id: string | null;
8814
8876
  fixed_price_quantity: number | null;
8815
8877
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8878
+ /**
8879
+ * A minimal representation of an Item containing only the essential identifying
8880
+ * information.
8881
+ */
8816
8882
  item: Shared.ItemSlim;
8817
8883
  /**
8818
8884
  * @deprecated
@@ -8903,6 +8969,10 @@ export declare namespace Price {
8903
8969
  external_price_id: string | null;
8904
8970
  fixed_price_quantity: number | null;
8905
8971
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8972
+ /**
8973
+ * A minimal representation of an Item containing only the essential identifying
8974
+ * information.
8975
+ */
8906
8976
  item: Shared.ItemSlim;
8907
8977
  /**
8908
8978
  * @deprecated
@@ -8981,6 +9051,10 @@ export declare namespace Price {
8981
9051
  */
8982
9052
  grouped_allocation_config: GroupedAllocationPrice.GroupedAllocationConfig;
8983
9053
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9054
+ /**
9055
+ * A minimal representation of an Item containing only the essential identifying
9056
+ * information.
9057
+ */
8984
9058
  item: Shared.ItemSlim;
8985
9059
  /**
8986
9060
  * @deprecated
@@ -9063,6 +9137,10 @@ export declare namespace Price {
9063
9137
  external_price_id: string | null;
9064
9138
  fixed_price_quantity: number | null;
9065
9139
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9140
+ /**
9141
+ * A minimal representation of an Item containing only the essential identifying
9142
+ * information.
9143
+ */
9066
9144
  item: Shared.ItemSlim;
9067
9145
  /**
9068
9146
  * @deprecated
@@ -9152,6 +9230,10 @@ export declare namespace Price {
9152
9230
  */
9153
9231
  grouped_with_prorated_minimum_config: GroupedWithProratedMinimumPrice.GroupedWithProratedMinimumConfig;
9154
9232
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9233
+ /**
9234
+ * A minimal representation of an Item containing only the essential identifying
9235
+ * information.
9236
+ */
9155
9237
  item: Shared.ItemSlim;
9156
9238
  /**
9157
9239
  * @deprecated
@@ -9234,6 +9316,10 @@ export declare namespace Price {
9234
9316
  */
9235
9317
  grouped_with_metered_minimum_config: GroupedWithMeteredMinimumPrice.GroupedWithMeteredMinimumConfig;
9236
9318
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9319
+ /**
9320
+ * A minimal representation of an Item containing only the essential identifying
9321
+ * information.
9322
+ */
9237
9323
  item: Shared.ItemSlim;
9238
9324
  /**
9239
9325
  * @deprecated
@@ -9358,6 +9444,10 @@ export declare namespace Price {
9358
9444
  */
9359
9445
  grouped_with_min_max_thresholds_config: GroupedWithMinMaxThresholdsPrice.GroupedWithMinMaxThresholdsConfig;
9360
9446
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9447
+ /**
9448
+ * A minimal representation of an Item containing only the essential identifying
9449
+ * information.
9450
+ */
9361
9451
  item: Shared.ItemSlim;
9362
9452
  /**
9363
9453
  * @deprecated
@@ -9440,6 +9530,10 @@ export declare namespace Price {
9440
9530
  external_price_id: string | null;
9441
9531
  fixed_price_quantity: number | null;
9442
9532
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9533
+ /**
9534
+ * A minimal representation of an Item containing only the essential identifying
9535
+ * information.
9536
+ */
9443
9537
  item: Shared.ItemSlim;
9444
9538
  /**
9445
9539
  * Configuration for matrix_with_display_name pricing
@@ -9541,6 +9635,10 @@ export declare namespace Price {
9541
9635
  */
9542
9636
  grouped_tiered_package_config: GroupedTieredPackagePrice.GroupedTieredPackageConfig;
9543
9637
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9638
+ /**
9639
+ * A minimal representation of an Item containing only the essential identifying
9640
+ * information.
9641
+ */
9544
9642
  item: Shared.ItemSlim;
9545
9643
  /**
9546
9644
  * @deprecated
@@ -9635,6 +9733,10 @@ export declare namespace Price {
9635
9733
  external_price_id: string | null;
9636
9734
  fixed_price_quantity: number | null;
9637
9735
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9736
+ /**
9737
+ * A minimal representation of an Item containing only the essential identifying
9738
+ * information.
9739
+ */
9638
9740
  item: Shared.ItemSlim;
9639
9741
  /**
9640
9742
  * Configuration for max_group_tiered_package pricing
@@ -9732,6 +9834,10 @@ export declare namespace Price {
9732
9834
  external_price_id: string | null;
9733
9835
  fixed_price_quantity: number | null;
9734
9836
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9837
+ /**
9838
+ * A minimal representation of an Item containing only the essential identifying
9839
+ * information.
9840
+ */
9735
9841
  item: Shared.ItemSlim;
9736
9842
  /**
9737
9843
  * @deprecated
@@ -9841,6 +9947,10 @@ export declare namespace Price {
9841
9947
  external_price_id: string | null;
9842
9948
  fixed_price_quantity: number | null;
9843
9949
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9950
+ /**
9951
+ * A minimal representation of an Item containing only the essential identifying
9952
+ * information.
9953
+ */
9844
9954
  item: Shared.ItemSlim;
9845
9955
  /**
9846
9956
  * @deprecated
@@ -9963,6 +10073,10 @@ export declare namespace Price {
9963
10073
  external_price_id: string | null;
9964
10074
  fixed_price_quantity: number | null;
9965
10075
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
10076
+ /**
10077
+ * A minimal representation of an Item containing only the essential identifying
10078
+ * information.
10079
+ */
9966
10080
  item: Shared.ItemSlim;
9967
10081
  /**
9968
10082
  * @deprecated
@@ -10056,6 +10170,10 @@ export declare namespace Price {
10056
10170
  external_price_id: string | null;
10057
10171
  fixed_price_quantity: number | null;
10058
10172
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
10173
+ /**
10174
+ * A minimal representation of an Item containing only the essential identifying
10175
+ * information.
10176
+ */
10059
10177
  item: Shared.ItemSlim;
10060
10178
  /**
10061
10179
  * @deprecated
@@ -10115,6 +10233,167 @@ export declare namespace Price {
10115
10233
  prorated?: boolean;
10116
10234
  }
10117
10235
  }
10236
+ interface PercentCompositePrice {
10237
+ id: string;
10238
+ billable_metric: Shared.BillableMetricTiny | null;
10239
+ billing_cycle_configuration: Shared.BillingCycleConfiguration;
10240
+ billing_mode: 'in_advance' | 'in_arrear';
10241
+ cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
10242
+ composite_price_filters: Array<Shared.TransformPriceFilter> | null;
10243
+ conversion_rate: number | null;
10244
+ conversion_rate_config: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
10245
+ created_at: string;
10246
+ credit_allocation: Shared.Allocation | null;
10247
+ currency: string;
10248
+ /**
10249
+ * @deprecated
10250
+ */
10251
+ discount: Shared.Discount | null;
10252
+ external_price_id: string | null;
10253
+ fixed_price_quantity: number | null;
10254
+ invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
10255
+ /**
10256
+ * A minimal representation of an Item containing only the essential identifying
10257
+ * information.
10258
+ */
10259
+ item: Shared.ItemSlim;
10260
+ /**
10261
+ * @deprecated
10262
+ */
10263
+ maximum: Shared.Maximum | null;
10264
+ /**
10265
+ * @deprecated
10266
+ */
10267
+ maximum_amount: string | null;
10268
+ /**
10269
+ * User specified key-value pairs for the resource. If not present, this defaults
10270
+ * to an empty dictionary. Individual keys can be removed by setting the value to
10271
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
10272
+ * `null`.
10273
+ */
10274
+ metadata: {
10275
+ [key: string]: string;
10276
+ };
10277
+ /**
10278
+ * @deprecated
10279
+ */
10280
+ minimum: Shared.Minimum | null;
10281
+ /**
10282
+ * @deprecated
10283
+ */
10284
+ minimum_amount: string | null;
10285
+ /**
10286
+ * The pricing model type
10287
+ */
10288
+ model_type: 'percent';
10289
+ name: string;
10290
+ /**
10291
+ * Configuration for percent pricing
10292
+ */
10293
+ percent_config: PercentCompositePrice.PercentConfig;
10294
+ plan_phase_order: number | null;
10295
+ price_type: 'usage_price' | 'fixed_price' | 'composite_price';
10296
+ /**
10297
+ * The price id this price replaces. This price will take the place of the replaced
10298
+ * price in plan version migrations.
10299
+ */
10300
+ replaces_price_id: string | null;
10301
+ dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
10302
+ }
10303
+ namespace PercentCompositePrice {
10304
+ /**
10305
+ * Configuration for percent pricing
10306
+ */
10307
+ interface PercentConfig {
10308
+ /**
10309
+ * What percent of the component subtotals to charge
10310
+ */
10311
+ percent: number;
10312
+ }
10313
+ }
10314
+ interface EventOutputPrice {
10315
+ id: string;
10316
+ billable_metric: Shared.BillableMetricTiny | null;
10317
+ billing_cycle_configuration: Shared.BillingCycleConfiguration;
10318
+ billing_mode: 'in_advance' | 'in_arrear';
10319
+ cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
10320
+ composite_price_filters: Array<Shared.TransformPriceFilter> | null;
10321
+ conversion_rate: number | null;
10322
+ conversion_rate_config: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
10323
+ created_at: string;
10324
+ credit_allocation: Shared.Allocation | null;
10325
+ currency: string;
10326
+ /**
10327
+ * @deprecated
10328
+ */
10329
+ discount: Shared.Discount | null;
10330
+ /**
10331
+ * Configuration for event_output pricing
10332
+ */
10333
+ event_output_config: EventOutputPrice.EventOutputConfig;
10334
+ external_price_id: string | null;
10335
+ fixed_price_quantity: number | null;
10336
+ invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
10337
+ /**
10338
+ * A minimal representation of an Item containing only the essential identifying
10339
+ * information.
10340
+ */
10341
+ item: Shared.ItemSlim;
10342
+ /**
10343
+ * @deprecated
10344
+ */
10345
+ maximum: Shared.Maximum | null;
10346
+ /**
10347
+ * @deprecated
10348
+ */
10349
+ maximum_amount: string | null;
10350
+ /**
10351
+ * User specified key-value pairs for the resource. If not present, this defaults
10352
+ * to an empty dictionary. Individual keys can be removed by setting the value to
10353
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
10354
+ * `null`.
10355
+ */
10356
+ metadata: {
10357
+ [key: string]: string;
10358
+ };
10359
+ /**
10360
+ * @deprecated
10361
+ */
10362
+ minimum: Shared.Minimum | null;
10363
+ /**
10364
+ * @deprecated
10365
+ */
10366
+ minimum_amount: string | null;
10367
+ /**
10368
+ * The pricing model type
10369
+ */
10370
+ model_type: 'event_output';
10371
+ name: string;
10372
+ plan_phase_order: number | null;
10373
+ price_type: 'usage_price' | 'fixed_price' | 'composite_price';
10374
+ /**
10375
+ * The price id this price replaces. This price will take the place of the replaced
10376
+ * price in plan version migrations.
10377
+ */
10378
+ replaces_price_id: string | null;
10379
+ dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
10380
+ }
10381
+ namespace EventOutputPrice {
10382
+ /**
10383
+ * Configuration for event_output pricing
10384
+ */
10385
+ interface EventOutputConfig {
10386
+ /**
10387
+ * The key in the event data to extract the unit rate from.
10388
+ */
10389
+ unit_rating_key: string;
10390
+ /**
10391
+ * An optional key in the event data to group by (e.g., event ID). All events will
10392
+ * also be grouped by their unit rate.
10393
+ */
10394
+ grouping_key?: string | null;
10395
+ }
10396
+ }
10118
10397
  }
10119
10398
  /**
10120
10399
  * The Price Interval resource represents a period of time for which a price will