orb-billing 5.14.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 +22 -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 +284 -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 +342 -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
  /**
@@ -1568,6 +1578,10 @@ export interface MatrixSubLineItem {
1568
1578
  name: string;
1569
1579
  quantity: number;
1570
1580
  type: 'matrix';
1581
+ /**
1582
+ * The scaled quantity for this line item for specific pricing structures
1583
+ */
1584
+ scaled_quantity?: number | null;
1571
1585
  }
1572
1586
  /**
1573
1587
  * Configuration for a single matrix value
@@ -7766,7 +7780,7 @@ export interface PlanPhaseUsageDiscountAdjustment {
7766
7780
  * For more on the types of prices, see
7767
7781
  * [the core concepts documentation](/core-concepts#plan-and-price)
7768
7782
  */
7769
- 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;
7770
7784
  export declare namespace Price {
7771
7785
  interface UnitPrice {
7772
7786
  id: string;
@@ -7787,6 +7801,10 @@ export declare namespace Price {
7787
7801
  external_price_id: string | null;
7788
7802
  fixed_price_quantity: number | null;
7789
7803
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
7804
+ /**
7805
+ * A minimal representation of an Item containing only the essential identifying
7806
+ * information.
7807
+ */
7790
7808
  item: Shared.ItemSlim;
7791
7809
  /**
7792
7810
  * @deprecated
@@ -7850,6 +7868,10 @@ export declare namespace Price {
7850
7868
  external_price_id: string | null;
7851
7869
  fixed_price_quantity: number | null;
7852
7870
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
7871
+ /**
7872
+ * A minimal representation of an Item containing only the essential identifying
7873
+ * information.
7874
+ */
7853
7875
  item: Shared.ItemSlim;
7854
7876
  /**
7855
7877
  * @deprecated
@@ -7917,6 +7939,10 @@ export declare namespace Price {
7917
7939
  external_price_id: string | null;
7918
7940
  fixed_price_quantity: number | null;
7919
7941
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
7942
+ /**
7943
+ * A minimal representation of an Item containing only the essential identifying
7944
+ * information.
7945
+ */
7920
7946
  item: Shared.ItemSlim;
7921
7947
  /**
7922
7948
  * @deprecated
@@ -7976,6 +8002,10 @@ export declare namespace Price {
7976
8002
  external_price_id: string | null;
7977
8003
  fixed_price_quantity: number | null;
7978
8004
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8005
+ /**
8006
+ * A minimal representation of an Item containing only the essential identifying
8007
+ * information.
8008
+ */
7979
8009
  item: Shared.ItemSlim;
7980
8010
  /**
7981
8011
  * @deprecated
@@ -8039,6 +8069,10 @@ export declare namespace Price {
8039
8069
  external_price_id: string | null;
8040
8070
  fixed_price_quantity: number | null;
8041
8071
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8072
+ /**
8073
+ * A minimal representation of an Item containing only the essential identifying
8074
+ * information.
8075
+ */
8042
8076
  item: Shared.ItemSlim;
8043
8077
  /**
8044
8078
  * Configuration for matrix pricing
@@ -8102,6 +8136,10 @@ export declare namespace Price {
8102
8136
  external_price_id: string | null;
8103
8137
  fixed_price_quantity: number | null;
8104
8138
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8139
+ /**
8140
+ * A minimal representation of an Item containing only the essential identifying
8141
+ * information.
8142
+ */
8105
8143
  item: Shared.ItemSlim;
8106
8144
  /**
8107
8145
  * @deprecated
@@ -8196,6 +8234,10 @@ export declare namespace Price {
8196
8234
  external_price_id: string | null;
8197
8235
  fixed_price_quantity: number | null;
8198
8236
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8237
+ /**
8238
+ * A minimal representation of an Item containing only the essential identifying
8239
+ * information.
8240
+ */
8199
8241
  item: Shared.ItemSlim;
8200
8242
  /**
8201
8243
  * @deprecated
@@ -8292,6 +8334,10 @@ export declare namespace Price {
8292
8334
  external_price_id: string | null;
8293
8335
  fixed_price_quantity: number | null;
8294
8336
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8337
+ /**
8338
+ * A minimal representation of an Item containing only the essential identifying
8339
+ * information.
8340
+ */
8295
8341
  item: Shared.ItemSlim;
8296
8342
  /**
8297
8343
  * @deprecated
@@ -8398,6 +8444,10 @@ export declare namespace Price {
8398
8444
  */
8399
8445
  grouped_tiered_config: GroupedTieredPrice.GroupedTieredConfig;
8400
8446
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8447
+ /**
8448
+ * A minimal representation of an Item containing only the essential identifying
8449
+ * information.
8450
+ */
8401
8451
  item: Shared.ItemSlim;
8402
8452
  /**
8403
8453
  * @deprecated
@@ -8488,6 +8538,10 @@ export declare namespace Price {
8488
8538
  external_price_id: string | null;
8489
8539
  fixed_price_quantity: number | null;
8490
8540
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8541
+ /**
8542
+ * A minimal representation of an Item containing only the essential identifying
8543
+ * information.
8544
+ */
8491
8545
  item: Shared.ItemSlim;
8492
8546
  /**
8493
8547
  * @deprecated
@@ -8586,6 +8640,10 @@ export declare namespace Price {
8586
8640
  external_price_id: string | null;
8587
8641
  fixed_price_quantity: number | null;
8588
8642
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8643
+ /**
8644
+ * A minimal representation of an Item containing only the essential identifying
8645
+ * information.
8646
+ */
8589
8647
  item: Shared.ItemSlim;
8590
8648
  /**
8591
8649
  * @deprecated
@@ -8668,6 +8726,10 @@ export declare namespace Price {
8668
8726
  external_price_id: string | null;
8669
8727
  fixed_price_quantity: number | null;
8670
8728
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8729
+ /**
8730
+ * A minimal representation of an Item containing only the essential identifying
8731
+ * information.
8732
+ */
8671
8733
  item: Shared.ItemSlim;
8672
8734
  /**
8673
8735
  * @deprecated
@@ -8746,6 +8808,10 @@ export declare namespace Price {
8746
8808
  external_price_id: string | null;
8747
8809
  fixed_price_quantity: number | null;
8748
8810
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8811
+ /**
8812
+ * A minimal representation of an Item containing only the essential identifying
8813
+ * information.
8814
+ */
8749
8815
  item: Shared.ItemSlim;
8750
8816
  /**
8751
8817
  * Configuration for matrix_with_allocation pricing
@@ -8809,6 +8875,10 @@ export declare namespace Price {
8809
8875
  external_price_id: string | null;
8810
8876
  fixed_price_quantity: number | null;
8811
8877
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8878
+ /**
8879
+ * A minimal representation of an Item containing only the essential identifying
8880
+ * information.
8881
+ */
8812
8882
  item: Shared.ItemSlim;
8813
8883
  /**
8814
8884
  * @deprecated
@@ -8899,6 +8969,10 @@ export declare namespace Price {
8899
8969
  external_price_id: string | null;
8900
8970
  fixed_price_quantity: number | null;
8901
8971
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8972
+ /**
8973
+ * A minimal representation of an Item containing only the essential identifying
8974
+ * information.
8975
+ */
8902
8976
  item: Shared.ItemSlim;
8903
8977
  /**
8904
8978
  * @deprecated
@@ -8977,6 +9051,10 @@ export declare namespace Price {
8977
9051
  */
8978
9052
  grouped_allocation_config: GroupedAllocationPrice.GroupedAllocationConfig;
8979
9053
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9054
+ /**
9055
+ * A minimal representation of an Item containing only the essential identifying
9056
+ * information.
9057
+ */
8980
9058
  item: Shared.ItemSlim;
8981
9059
  /**
8982
9060
  * @deprecated
@@ -9059,6 +9137,10 @@ export declare namespace Price {
9059
9137
  external_price_id: string | null;
9060
9138
  fixed_price_quantity: number | null;
9061
9139
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9140
+ /**
9141
+ * A minimal representation of an Item containing only the essential identifying
9142
+ * information.
9143
+ */
9062
9144
  item: Shared.ItemSlim;
9063
9145
  /**
9064
9146
  * @deprecated
@@ -9148,6 +9230,10 @@ export declare namespace Price {
9148
9230
  */
9149
9231
  grouped_with_prorated_minimum_config: GroupedWithProratedMinimumPrice.GroupedWithProratedMinimumConfig;
9150
9232
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9233
+ /**
9234
+ * A minimal representation of an Item containing only the essential identifying
9235
+ * information.
9236
+ */
9151
9237
  item: Shared.ItemSlim;
9152
9238
  /**
9153
9239
  * @deprecated
@@ -9230,6 +9316,10 @@ export declare namespace Price {
9230
9316
  */
9231
9317
  grouped_with_metered_minimum_config: GroupedWithMeteredMinimumPrice.GroupedWithMeteredMinimumConfig;
9232
9318
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9319
+ /**
9320
+ * A minimal representation of an Item containing only the essential identifying
9321
+ * information.
9322
+ */
9233
9323
  item: Shared.ItemSlim;
9234
9324
  /**
9235
9325
  * @deprecated
@@ -9354,6 +9444,10 @@ export declare namespace Price {
9354
9444
  */
9355
9445
  grouped_with_min_max_thresholds_config: GroupedWithMinMaxThresholdsPrice.GroupedWithMinMaxThresholdsConfig;
9356
9446
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9447
+ /**
9448
+ * A minimal representation of an Item containing only the essential identifying
9449
+ * information.
9450
+ */
9357
9451
  item: Shared.ItemSlim;
9358
9452
  /**
9359
9453
  * @deprecated
@@ -9436,6 +9530,10 @@ export declare namespace Price {
9436
9530
  external_price_id: string | null;
9437
9531
  fixed_price_quantity: number | null;
9438
9532
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9533
+ /**
9534
+ * A minimal representation of an Item containing only the essential identifying
9535
+ * information.
9536
+ */
9439
9537
  item: Shared.ItemSlim;
9440
9538
  /**
9441
9539
  * Configuration for matrix_with_display_name pricing
@@ -9537,6 +9635,10 @@ export declare namespace Price {
9537
9635
  */
9538
9636
  grouped_tiered_package_config: GroupedTieredPackagePrice.GroupedTieredPackageConfig;
9539
9637
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9638
+ /**
9639
+ * A minimal representation of an Item containing only the essential identifying
9640
+ * information.
9641
+ */
9540
9642
  item: Shared.ItemSlim;
9541
9643
  /**
9542
9644
  * @deprecated
@@ -9631,6 +9733,10 @@ export declare namespace Price {
9631
9733
  external_price_id: string | null;
9632
9734
  fixed_price_quantity: number | null;
9633
9735
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9736
+ /**
9737
+ * A minimal representation of an Item containing only the essential identifying
9738
+ * information.
9739
+ */
9634
9740
  item: Shared.ItemSlim;
9635
9741
  /**
9636
9742
  * Configuration for max_group_tiered_package pricing
@@ -9728,6 +9834,10 @@ export declare namespace Price {
9728
9834
  external_price_id: string | null;
9729
9835
  fixed_price_quantity: number | null;
9730
9836
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9837
+ /**
9838
+ * A minimal representation of an Item containing only the essential identifying
9839
+ * information.
9840
+ */
9731
9841
  item: Shared.ItemSlim;
9732
9842
  /**
9733
9843
  * @deprecated
@@ -9837,6 +9947,10 @@ export declare namespace Price {
9837
9947
  external_price_id: string | null;
9838
9948
  fixed_price_quantity: number | null;
9839
9949
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9950
+ /**
9951
+ * A minimal representation of an Item containing only the essential identifying
9952
+ * information.
9953
+ */
9840
9954
  item: Shared.ItemSlim;
9841
9955
  /**
9842
9956
  * @deprecated
@@ -9959,6 +10073,10 @@ export declare namespace Price {
9959
10073
  external_price_id: string | null;
9960
10074
  fixed_price_quantity: number | null;
9961
10075
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
10076
+ /**
10077
+ * A minimal representation of an Item containing only the essential identifying
10078
+ * information.
10079
+ */
9962
10080
  item: Shared.ItemSlim;
9963
10081
  /**
9964
10082
  * @deprecated
@@ -10052,6 +10170,10 @@ export declare namespace Price {
10052
10170
  external_price_id: string | null;
10053
10171
  fixed_price_quantity: number | null;
10054
10172
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
10173
+ /**
10174
+ * A minimal representation of an Item containing only the essential identifying
10175
+ * information.
10176
+ */
10055
10177
  item: Shared.ItemSlim;
10056
10178
  /**
10057
10179
  * @deprecated
@@ -10111,6 +10233,167 @@ export declare namespace Price {
10111
10233
  prorated?: boolean;
10112
10234
  }
10113
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
+ }
10114
10397
  }
10115
10398
  /**
10116
10399
  * The Price Interval resource represents a period of time for which a price will