orb-billing 5.0.0 → 5.2.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 (96) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/core.d.ts +7 -4
  3. package/core.d.ts.map +1 -1
  4. package/core.js +16 -9
  5. package/core.js.map +1 -1
  6. package/core.mjs +16 -9
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +3 -0
  9. package/index.d.ts +3 -0
  10. package/index.d.ts.map +1 -1
  11. package/index.js +6 -2
  12. package/index.js.map +1 -1
  13. package/index.mjs +6 -2
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resource.d.ts +1 -1
  17. package/resource.d.ts.map +1 -1
  18. package/resource.js.map +1 -1
  19. package/resource.mjs.map +1 -1
  20. package/resources/credit-notes.d.ts +54 -0
  21. package/resources/credit-notes.d.ts.map +1 -1
  22. package/resources/credit-notes.js +25 -0
  23. package/resources/credit-notes.js.map +1 -1
  24. package/resources/credit-notes.mjs +25 -0
  25. package/resources/credit-notes.mjs.map +1 -1
  26. package/resources/customers/costs.d.ts +18 -18
  27. package/resources/customers/credits/ledger.d.ts +75 -29
  28. package/resources/customers/credits/ledger.d.ts.map +1 -1
  29. package/resources/customers/credits/ledger.js.map +1 -1
  30. package/resources/customers/credits/ledger.mjs.map +1 -1
  31. package/resources/customers/customers.d.ts +12 -4
  32. package/resources/customers/customers.d.ts.map +1 -1
  33. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +6 -2
  34. package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -1
  35. package/resources/events/backfills.d.ts +2 -2
  36. package/resources/events/events.d.ts +9 -3
  37. package/resources/events/events.d.ts.map +1 -1
  38. package/resources/invoice-line-items.d.ts +3 -0
  39. package/resources/invoice-line-items.d.ts.map +1 -1
  40. package/resources/invoices.d.ts +13 -4
  41. package/resources/invoices.d.ts.map +1 -1
  42. package/resources/invoices.js +1 -1
  43. package/resources/invoices.js.map +1 -1
  44. package/resources/invoices.mjs +1 -1
  45. package/resources/invoices.mjs.map +1 -1
  46. package/resources/items.d.ts +9 -3
  47. package/resources/items.d.ts.map +1 -1
  48. package/resources/metrics.d.ts +9 -3
  49. package/resources/metrics.d.ts.map +1 -1
  50. package/resources/plans/external-plan-id.d.ts +3 -1
  51. package/resources/plans/external-plan-id.d.ts.map +1 -1
  52. package/resources/plans/plans.d.ts +62 -4
  53. package/resources/plans/plans.d.ts.map +1 -1
  54. package/resources/plans/plans.js.map +1 -1
  55. package/resources/plans/plans.mjs.map +1 -1
  56. package/resources/prices/external-price-id.d.ts +3 -1
  57. package/resources/prices/external-price-id.d.ts.map +1 -1
  58. package/resources/prices/prices.d.ts +163 -49
  59. package/resources/prices/prices.d.ts.map +1 -1
  60. package/resources/prices/prices.js.map +1 -1
  61. package/resources/prices/prices.mjs.map +1 -1
  62. package/resources/shared.d.ts +768 -143
  63. package/resources/shared.d.ts.map +1 -1
  64. package/resources/shared.js.map +1 -1
  65. package/resources/shared.mjs.map +1 -1
  66. package/resources/subscription-changes.d.ts +6 -4
  67. package/resources/subscription-changes.d.ts.map +1 -1
  68. package/resources/subscriptions.d.ts +159 -59
  69. package/resources/subscriptions.d.ts.map +1 -1
  70. package/resources/subscriptions.js +1 -1
  71. package/resources/subscriptions.mjs +1 -1
  72. package/src/core.ts +17 -8
  73. package/src/index.ts +10 -0
  74. package/src/resource.ts +1 -1
  75. package/src/resources/credit-notes.ts +58 -0
  76. package/src/resources/customers/costs.ts +18 -18
  77. package/src/resources/customers/credits/ledger.ts +45 -31
  78. package/src/resources/customers/customers.ts +4 -4
  79. package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +2 -2
  80. package/src/resources/events/backfills.ts +2 -2
  81. package/src/resources/events/events.ts +3 -3
  82. package/src/resources/invoice-line-items.ts +3 -0
  83. package/src/resources/invoices.ts +7 -4
  84. package/src/resources/items.ts +3 -3
  85. package/src/resources/metrics.ts +3 -3
  86. package/src/resources/plans/external-plan-id.ts +1 -1
  87. package/src/resources/plans/plans.ts +101 -33
  88. package/src/resources/prices/external-price-id.ts +1 -1
  89. package/src/resources/prices/prices.ts +69 -49
  90. package/src/resources/shared.ts +552 -143
  91. package/src/resources/subscription-changes.ts +4 -4
  92. package/src/resources/subscriptions.ts +59 -59
  93. package/src/version.ts +1 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
  96. package/version.mjs +1 -1
@@ -412,6 +412,16 @@ export namespace CreditNote {
412
412
  * Any line item discounts from the invoice's line item.
413
413
  */
414
414
  discounts?: Array<LineItem.Discount>;
415
+
416
+ /**
417
+ * The end time of the service period for this credit note line item.
418
+ */
419
+ end_time_exclusive?: string | null;
420
+
421
+ /**
422
+ * The start time of the service period for this credit note line item.
423
+ */
424
+ start_time_inclusive?: string | null;
415
425
  }
416
426
 
417
427
  export namespace LineItem {
@@ -1012,7 +1022,7 @@ export interface Invoice {
1012
1022
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1013
1023
  * `null`.
1014
1024
  */
1015
- metadata: Record<string, string>;
1025
+ metadata: { [key: string]: string };
1016
1026
 
1017
1027
  minimum: Minimum | null;
1018
1028
 
@@ -1224,6 +1234,9 @@ export namespace Invoice {
1224
1234
  */
1225
1235
  credits_applied: string;
1226
1236
 
1237
+ /**
1238
+ * @deprecated This field is deprecated in favor of `adjustments`
1239
+ */
1227
1240
  discount: Shared.Discount | null;
1228
1241
 
1229
1242
  /**
@@ -1566,6 +1579,12 @@ export interface MonetaryAmountDiscountAdjustment {
1566
1579
  * The reason for the adjustment.
1567
1580
  */
1568
1581
  reason: string | null;
1582
+
1583
+ /**
1584
+ * The adjustment id this adjustment replaces. This adjustment will take the place
1585
+ * of the replaced adjustment in plan version migrations.
1586
+ */
1587
+ replaces_adjustment_id: string | null;
1569
1588
  }
1570
1589
 
1571
1590
  export interface MonetaryMaximumAdjustment {
@@ -1604,6 +1623,12 @@ export interface MonetaryMaximumAdjustment {
1604
1623
  * The reason for the adjustment.
1605
1624
  */
1606
1625
  reason: string | null;
1626
+
1627
+ /**
1628
+ * The adjustment id this adjustment replaces. This adjustment will take the place
1629
+ * of the replaced adjustment in plan version migrations.
1630
+ */
1631
+ replaces_adjustment_id: string | null;
1607
1632
  }
1608
1633
 
1609
1634
  export interface MonetaryMinimumAdjustment {
@@ -1647,6 +1672,12 @@ export interface MonetaryMinimumAdjustment {
1647
1672
  * The reason for the adjustment.
1648
1673
  */
1649
1674
  reason: string | null;
1675
+
1676
+ /**
1677
+ * The adjustment id this adjustment replaces. This adjustment will take the place
1678
+ * of the replaced adjustment in plan version migrations.
1679
+ */
1680
+ replaces_adjustment_id: string | null;
1650
1681
  }
1651
1682
 
1652
1683
  export interface MonetaryPercentageDiscountAdjustment {
@@ -1685,6 +1716,12 @@ export interface MonetaryPercentageDiscountAdjustment {
1685
1716
  * The reason for the adjustment.
1686
1717
  */
1687
1718
  reason: string | null;
1719
+
1720
+ /**
1721
+ * The adjustment id this adjustment replaces. This adjustment will take the place
1722
+ * of the replaced adjustment in plan version migrations.
1723
+ */
1724
+ replaces_adjustment_id: string | null;
1688
1725
  }
1689
1726
 
1690
1727
  export interface MonetaryUsageDiscountAdjustment {
@@ -1718,6 +1755,12 @@ export interface MonetaryUsageDiscountAdjustment {
1718
1755
  */
1719
1756
  reason: string | null;
1720
1757
 
1758
+ /**
1759
+ * The adjustment id this adjustment replaces. This adjustment will take the place
1760
+ * of the replaced adjustment in plan version migrations.
1761
+ */
1762
+ replaces_adjustment_id: string | null;
1763
+
1721
1764
  /**
1722
1765
  * The number of usage units by which to discount the price this adjustment applies
1723
1766
  * to in a given billing period.
@@ -1734,7 +1777,7 @@ export interface NewAllocationPrice {
1734
1777
  /**
1735
1778
  * The cadence at which to allocate the amount to the customer.
1736
1779
  */
1737
- cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
1780
+ cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
1738
1781
 
1739
1782
  /**
1740
1783
  * An ISO 4217 currency string or a custom pricing unit identifier in which to bill
@@ -1911,7 +1954,7 @@ export interface NewFloatingBPSPrice {
1911
1954
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1912
1955
  * by setting `metadata` to `null`.
1913
1956
  */
1914
- metadata?: Record<string, string | null> | null;
1957
+ metadata?: { [key: string]: string | null } | null;
1915
1958
  }
1916
1959
 
1917
1960
  export interface NewFloatingBulkBPSPrice {
@@ -1999,7 +2042,7 @@ export interface NewFloatingBulkBPSPrice {
1999
2042
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2000
2043
  * by setting `metadata` to `null`.
2001
2044
  */
2002
- metadata?: Record<string, string | null> | null;
2045
+ metadata?: { [key: string]: string | null } | null;
2003
2046
  }
2004
2047
 
2005
2048
  export interface NewFloatingBulkPrice {
@@ -2087,11 +2130,11 @@ export interface NewFloatingBulkPrice {
2087
2130
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2088
2131
  * by setting `metadata` to `null`.
2089
2132
  */
2090
- metadata?: Record<string, string | null> | null;
2133
+ metadata?: { [key: string]: string | null } | null;
2091
2134
  }
2092
2135
 
2093
2136
  export interface NewFloatingBulkWithProrationPrice {
2094
- bulk_with_proration_config: Record<string, unknown>;
2137
+ bulk_with_proration_config: { [key: string]: unknown };
2095
2138
 
2096
2139
  /**
2097
2140
  * The cadence to bill for this price on.
@@ -2175,7 +2218,7 @@ export interface NewFloatingBulkWithProrationPrice {
2175
2218
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2176
2219
  * by setting `metadata` to `null`.
2177
2220
  */
2178
- metadata?: Record<string, string | null> | null;
2221
+ metadata?: { [key: string]: string | null } | null;
2179
2222
  }
2180
2223
 
2181
2224
  export interface NewFloatingCumulativeGroupedBulkPrice {
@@ -2184,7 +2227,7 @@ export interface NewFloatingCumulativeGroupedBulkPrice {
2184
2227
  */
2185
2228
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
2186
2229
 
2187
- cumulative_grouped_bulk_config: Record<string, unknown>;
2230
+ cumulative_grouped_bulk_config: { [key: string]: unknown };
2188
2231
 
2189
2232
  /**
2190
2233
  * An ISO 4217 currency string for which this price is billed in.
@@ -2263,7 +2306,7 @@ export interface NewFloatingCumulativeGroupedBulkPrice {
2263
2306
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2264
2307
  * by setting `metadata` to `null`.
2265
2308
  */
2266
- metadata?: Record<string, string | null> | null;
2309
+ metadata?: { [key: string]: string | null } | null;
2267
2310
  }
2268
2311
 
2269
2312
  export interface NewFloatingGroupedAllocationPrice {
@@ -2277,7 +2320,7 @@ export interface NewFloatingGroupedAllocationPrice {
2277
2320
  */
2278
2321
  currency: string;
2279
2322
 
2280
- grouped_allocation_config: Record<string, unknown>;
2323
+ grouped_allocation_config: { [key: string]: unknown };
2281
2324
 
2282
2325
  /**
2283
2326
  * The id of the item the price will be associated with.
@@ -2351,7 +2394,7 @@ export interface NewFloatingGroupedAllocationPrice {
2351
2394
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2352
2395
  * by setting `metadata` to `null`.
2353
2396
  */
2354
- metadata?: Record<string, string | null> | null;
2397
+ metadata?: { [key: string]: string | null } | null;
2355
2398
  }
2356
2399
 
2357
2400
  export interface NewFloatingGroupedTieredPackagePrice {
@@ -2365,7 +2408,7 @@ export interface NewFloatingGroupedTieredPackagePrice {
2365
2408
  */
2366
2409
  currency: string;
2367
2410
 
2368
- grouped_tiered_package_config: Record<string, unknown>;
2411
+ grouped_tiered_package_config: { [key: string]: unknown };
2369
2412
 
2370
2413
  /**
2371
2414
  * The id of the item the price will be associated with.
@@ -2439,7 +2482,7 @@ export interface NewFloatingGroupedTieredPackagePrice {
2439
2482
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2440
2483
  * by setting `metadata` to `null`.
2441
2484
  */
2442
- metadata?: Record<string, string | null> | null;
2485
+ metadata?: { [key: string]: string | null } | null;
2443
2486
  }
2444
2487
 
2445
2488
  export interface NewFloatingGroupedTieredPrice {
@@ -2453,7 +2496,7 @@ export interface NewFloatingGroupedTieredPrice {
2453
2496
  */
2454
2497
  currency: string;
2455
2498
 
2456
- grouped_tiered_config: Record<string, unknown>;
2499
+ grouped_tiered_config: { [key: string]: unknown };
2457
2500
 
2458
2501
  /**
2459
2502
  * The id of the item the price will be associated with.
@@ -2527,7 +2570,7 @@ export interface NewFloatingGroupedTieredPrice {
2527
2570
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2528
2571
  * by setting `metadata` to `null`.
2529
2572
  */
2530
- metadata?: Record<string, string | null> | null;
2573
+ metadata?: { [key: string]: string | null } | null;
2531
2574
  }
2532
2575
 
2533
2576
  export interface NewFloatingGroupedWithMeteredMinimumPrice {
@@ -2541,7 +2584,7 @@ export interface NewFloatingGroupedWithMeteredMinimumPrice {
2541
2584
  */
2542
2585
  currency: string;
2543
2586
 
2544
- grouped_with_metered_minimum_config: Record<string, unknown>;
2587
+ grouped_with_metered_minimum_config: { [key: string]: unknown };
2545
2588
 
2546
2589
  /**
2547
2590
  * The id of the item the price will be associated with.
@@ -2615,7 +2658,7 @@ export interface NewFloatingGroupedWithMeteredMinimumPrice {
2615
2658
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2616
2659
  * by setting `metadata` to `null`.
2617
2660
  */
2618
- metadata?: Record<string, string | null> | null;
2661
+ metadata?: { [key: string]: string | null } | null;
2619
2662
  }
2620
2663
 
2621
2664
  export interface NewFloatingGroupedWithProratedMinimumPrice {
@@ -2629,7 +2672,7 @@ export interface NewFloatingGroupedWithProratedMinimumPrice {
2629
2672
  */
2630
2673
  currency: string;
2631
2674
 
2632
- grouped_with_prorated_minimum_config: Record<string, unknown>;
2675
+ grouped_with_prorated_minimum_config: { [key: string]: unknown };
2633
2676
 
2634
2677
  /**
2635
2678
  * The id of the item the price will be associated with.
@@ -2703,7 +2746,7 @@ export interface NewFloatingGroupedWithProratedMinimumPrice {
2703
2746
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2704
2747
  * by setting `metadata` to `null`.
2705
2748
  */
2706
- metadata?: Record<string, string | null> | null;
2749
+ metadata?: { [key: string]: string | null } | null;
2707
2750
  }
2708
2751
 
2709
2752
  export interface NewFloatingMatrixPrice {
@@ -2791,7 +2834,7 @@ export interface NewFloatingMatrixPrice {
2791
2834
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2792
2835
  * by setting `metadata` to `null`.
2793
2836
  */
2794
- metadata?: Record<string, string | null> | null;
2837
+ metadata?: { [key: string]: string | null } | null;
2795
2838
  }
2796
2839
 
2797
2840
  export interface NewFloatingMatrixWithAllocationPrice {
@@ -2879,7 +2922,7 @@ export interface NewFloatingMatrixWithAllocationPrice {
2879
2922
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2880
2923
  * by setting `metadata` to `null`.
2881
2924
  */
2882
- metadata?: Record<string, string | null> | null;
2925
+ metadata?: { [key: string]: string | null } | null;
2883
2926
  }
2884
2927
 
2885
2928
  export interface NewFloatingMatrixWithDisplayNamePrice {
@@ -2898,7 +2941,7 @@ export interface NewFloatingMatrixWithDisplayNamePrice {
2898
2941
  */
2899
2942
  item_id: string;
2900
2943
 
2901
- matrix_with_display_name_config: Record<string, unknown>;
2944
+ matrix_with_display_name_config: { [key: string]: unknown };
2902
2945
 
2903
2946
  model_type: 'matrix_with_display_name';
2904
2947
 
@@ -2967,7 +3010,7 @@ export interface NewFloatingMatrixWithDisplayNamePrice {
2967
3010
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2968
3011
  * by setting `metadata` to `null`.
2969
3012
  */
2970
- metadata?: Record<string, string | null> | null;
3013
+ metadata?: { [key: string]: string | null } | null;
2971
3014
  }
2972
3015
 
2973
3016
  export interface NewFloatingMaxGroupTieredPackagePrice {
@@ -2986,7 +3029,7 @@ export interface NewFloatingMaxGroupTieredPackagePrice {
2986
3029
  */
2987
3030
  item_id: string;
2988
3031
 
2989
- max_group_tiered_package_config: Record<string, unknown>;
3032
+ max_group_tiered_package_config: { [key: string]: unknown };
2990
3033
 
2991
3034
  model_type: 'max_group_tiered_package';
2992
3035
 
@@ -3055,7 +3098,7 @@ export interface NewFloatingMaxGroupTieredPackagePrice {
3055
3098
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3056
3099
  * by setting `metadata` to `null`.
3057
3100
  */
3058
- metadata?: Record<string, string | null> | null;
3101
+ metadata?: { [key: string]: string | null } | null;
3059
3102
  }
3060
3103
 
3061
3104
  export interface NewFloatingPackagePrice {
@@ -3143,7 +3186,7 @@ export interface NewFloatingPackagePrice {
3143
3186
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3144
3187
  * by setting `metadata` to `null`.
3145
3188
  */
3146
- metadata?: Record<string, string | null> | null;
3189
+ metadata?: { [key: string]: string | null } | null;
3147
3190
  }
3148
3191
 
3149
3192
  export interface NewFloatingPackageWithAllocationPrice {
@@ -3169,7 +3212,7 @@ export interface NewFloatingPackageWithAllocationPrice {
3169
3212
  */
3170
3213
  name: string;
3171
3214
 
3172
- package_with_allocation_config: Record<string, unknown>;
3215
+ package_with_allocation_config: { [key: string]: unknown };
3173
3216
 
3174
3217
  /**
3175
3218
  * The id of the billable metric for the price. Only needed if the price is
@@ -3231,7 +3274,7 @@ export interface NewFloatingPackageWithAllocationPrice {
3231
3274
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3232
3275
  * by setting `metadata` to `null`.
3233
3276
  */
3234
- metadata?: Record<string, string | null> | null;
3277
+ metadata?: { [key: string]: string | null } | null;
3235
3278
  }
3236
3279
 
3237
3280
  export interface NewFloatingScalableMatrixWithTieredPricingPrice {
@@ -3257,7 +3300,7 @@ export interface NewFloatingScalableMatrixWithTieredPricingPrice {
3257
3300
  */
3258
3301
  name: string;
3259
3302
 
3260
- scalable_matrix_with_tiered_pricing_config: Record<string, unknown>;
3303
+ scalable_matrix_with_tiered_pricing_config: { [key: string]: unknown };
3261
3304
 
3262
3305
  /**
3263
3306
  * The id of the billable metric for the price. Only needed if the price is
@@ -3319,7 +3362,7 @@ export interface NewFloatingScalableMatrixWithTieredPricingPrice {
3319
3362
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3320
3363
  * by setting `metadata` to `null`.
3321
3364
  */
3322
- metadata?: Record<string, string | null> | null;
3365
+ metadata?: { [key: string]: string | null } | null;
3323
3366
  }
3324
3367
 
3325
3368
  export interface NewFloatingScalableMatrixWithUnitPricingPrice {
@@ -3345,7 +3388,7 @@ export interface NewFloatingScalableMatrixWithUnitPricingPrice {
3345
3388
  */
3346
3389
  name: string;
3347
3390
 
3348
- scalable_matrix_with_unit_pricing_config: Record<string, unknown>;
3391
+ scalable_matrix_with_unit_pricing_config: { [key: string]: unknown };
3349
3392
 
3350
3393
  /**
3351
3394
  * The id of the billable metric for the price. Only needed if the price is
@@ -3407,7 +3450,7 @@ export interface NewFloatingScalableMatrixWithUnitPricingPrice {
3407
3450
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3408
3451
  * by setting `metadata` to `null`.
3409
3452
  */
3410
- metadata?: Record<string, string | null> | null;
3453
+ metadata?: { [key: string]: string | null } | null;
3411
3454
  }
3412
3455
 
3413
3456
  export interface NewFloatingThresholdTotalAmountPrice {
@@ -3433,7 +3476,7 @@ export interface NewFloatingThresholdTotalAmountPrice {
3433
3476
  */
3434
3477
  name: string;
3435
3478
 
3436
- threshold_total_amount_config: Record<string, unknown>;
3479
+ threshold_total_amount_config: { [key: string]: unknown };
3437
3480
 
3438
3481
  /**
3439
3482
  * The id of the billable metric for the price. Only needed if the price is
@@ -3495,7 +3538,7 @@ export interface NewFloatingThresholdTotalAmountPrice {
3495
3538
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3496
3539
  * by setting `metadata` to `null`.
3497
3540
  */
3498
- metadata?: Record<string, string | null> | null;
3541
+ metadata?: { [key: string]: string | null } | null;
3499
3542
  }
3500
3543
 
3501
3544
  export interface NewFloatingTieredBPSPrice {
@@ -3583,7 +3626,7 @@ export interface NewFloatingTieredBPSPrice {
3583
3626
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3584
3627
  * by setting `metadata` to `null`.
3585
3628
  */
3586
- metadata?: Record<string, string | null> | null;
3629
+ metadata?: { [key: string]: string | null } | null;
3587
3630
  }
3588
3631
 
3589
3632
  export interface NewFloatingTieredPackagePrice {
@@ -3609,7 +3652,7 @@ export interface NewFloatingTieredPackagePrice {
3609
3652
  */
3610
3653
  name: string;
3611
3654
 
3612
- tiered_package_config: Record<string, unknown>;
3655
+ tiered_package_config: { [key: string]: unknown };
3613
3656
 
3614
3657
  /**
3615
3658
  * The id of the billable metric for the price. Only needed if the price is
@@ -3671,7 +3714,7 @@ export interface NewFloatingTieredPackagePrice {
3671
3714
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3672
3715
  * by setting `metadata` to `null`.
3673
3716
  */
3674
- metadata?: Record<string, string | null> | null;
3717
+ metadata?: { [key: string]: string | null } | null;
3675
3718
  }
3676
3719
 
3677
3720
  export interface NewFloatingTieredPackageWithMinimumPrice {
@@ -3697,7 +3740,7 @@ export interface NewFloatingTieredPackageWithMinimumPrice {
3697
3740
  */
3698
3741
  name: string;
3699
3742
 
3700
- tiered_package_with_minimum_config: Record<string, unknown>;
3743
+ tiered_package_with_minimum_config: { [key: string]: unknown };
3701
3744
 
3702
3745
  /**
3703
3746
  * The id of the billable metric for the price. Only needed if the price is
@@ -3759,7 +3802,7 @@ export interface NewFloatingTieredPackageWithMinimumPrice {
3759
3802
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3760
3803
  * by setting `metadata` to `null`.
3761
3804
  */
3762
- metadata?: Record<string, string | null> | null;
3805
+ metadata?: { [key: string]: string | null } | null;
3763
3806
  }
3764
3807
 
3765
3808
  export interface NewFloatingTieredPrice {
@@ -3847,7 +3890,7 @@ export interface NewFloatingTieredPrice {
3847
3890
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3848
3891
  * by setting `metadata` to `null`.
3849
3892
  */
3850
- metadata?: Record<string, string | null> | null;
3893
+ metadata?: { [key: string]: string | null } | null;
3851
3894
  }
3852
3895
 
3853
3896
  export interface NewFloatingTieredWithMinimumPrice {
@@ -3873,7 +3916,7 @@ export interface NewFloatingTieredWithMinimumPrice {
3873
3916
  */
3874
3917
  name: string;
3875
3918
 
3876
- tiered_with_minimum_config: Record<string, unknown>;
3919
+ tiered_with_minimum_config: { [key: string]: unknown };
3877
3920
 
3878
3921
  /**
3879
3922
  * The id of the billable metric for the price. Only needed if the price is
@@ -3935,7 +3978,7 @@ export interface NewFloatingTieredWithMinimumPrice {
3935
3978
  * by setting the value to `null`, and the entire metadata mapping can be cleared
3936
3979
  * by setting `metadata` to `null`.
3937
3980
  */
3938
- metadata?: Record<string, string | null> | null;
3981
+ metadata?: { [key: string]: string | null } | null;
3939
3982
  }
3940
3983
 
3941
3984
  export interface NewFloatingTieredWithProrationPrice {
@@ -3961,7 +4004,7 @@ export interface NewFloatingTieredWithProrationPrice {
3961
4004
  */
3962
4005
  name: string;
3963
4006
 
3964
- tiered_with_proration_config: Record<string, unknown>;
4007
+ tiered_with_proration_config: { [key: string]: unknown };
3965
4008
 
3966
4009
  /**
3967
4010
  * The id of the billable metric for the price. Only needed if the price is
@@ -4023,7 +4066,7 @@ export interface NewFloatingTieredWithProrationPrice {
4023
4066
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4024
4067
  * by setting `metadata` to `null`.
4025
4068
  */
4026
- metadata?: Record<string, string | null> | null;
4069
+ metadata?: { [key: string]: string | null } | null;
4027
4070
  }
4028
4071
 
4029
4072
  export interface NewFloatingUnitPrice {
@@ -4111,7 +4154,7 @@ export interface NewFloatingUnitPrice {
4111
4154
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4112
4155
  * by setting `metadata` to `null`.
4113
4156
  */
4114
- metadata?: Record<string, string | null> | null;
4157
+ metadata?: { [key: string]: string | null } | null;
4115
4158
  }
4116
4159
 
4117
4160
  export interface NewFloatingUnitWithPercentPrice {
@@ -4137,7 +4180,7 @@ export interface NewFloatingUnitWithPercentPrice {
4137
4180
  */
4138
4181
  name: string;
4139
4182
 
4140
- unit_with_percent_config: Record<string, unknown>;
4183
+ unit_with_percent_config: { [key: string]: unknown };
4141
4184
 
4142
4185
  /**
4143
4186
  * The id of the billable metric for the price. Only needed if the price is
@@ -4199,7 +4242,7 @@ export interface NewFloatingUnitWithPercentPrice {
4199
4242
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4200
4243
  * by setting `metadata` to `null`.
4201
4244
  */
4202
- metadata?: Record<string, string | null> | null;
4245
+ metadata?: { [key: string]: string | null } | null;
4203
4246
  }
4204
4247
 
4205
4248
  export interface NewFloatingUnitWithProrationPrice {
@@ -4225,7 +4268,7 @@ export interface NewFloatingUnitWithProrationPrice {
4225
4268
  */
4226
4269
  name: string;
4227
4270
 
4228
- unit_with_proration_config: Record<string, unknown>;
4271
+ unit_with_proration_config: { [key: string]: unknown };
4229
4272
 
4230
4273
  /**
4231
4274
  * The id of the billable metric for the price. Only needed if the price is
@@ -4287,7 +4330,7 @@ export interface NewFloatingUnitWithProrationPrice {
4287
4330
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4288
4331
  * by setting `metadata` to `null`.
4289
4332
  */
4290
- metadata?: Record<string, string | null> | null;
4333
+ metadata?: { [key: string]: string | null } | null;
4291
4334
  }
4292
4335
 
4293
4336
  export interface NewMaximum {
@@ -4507,7 +4550,13 @@ export interface NewPlanBPSPrice {
4507
4550
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4508
4551
  * by setting `metadata` to `null`.
4509
4552
  */
4510
- metadata?: Record<string, string | null> | null;
4553
+ metadata?: { [key: string]: string | null } | null;
4554
+
4555
+ /**
4556
+ * A transient ID that can be used to reference this price when adding adjustments
4557
+ * in the same API call.
4558
+ */
4559
+ reference_id?: string | null;
4511
4560
  }
4512
4561
 
4513
4562
  export interface NewPlanBulkBPSPrice {
@@ -4596,7 +4645,13 @@ export interface NewPlanBulkBPSPrice {
4596
4645
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4597
4646
  * by setting `metadata` to `null`.
4598
4647
  */
4599
- metadata?: Record<string, string | null> | null;
4648
+ metadata?: { [key: string]: string | null } | null;
4649
+
4650
+ /**
4651
+ * A transient ID that can be used to reference this price when adding adjustments
4652
+ * in the same API call.
4653
+ */
4654
+ reference_id?: string | null;
4600
4655
  }
4601
4656
 
4602
4657
  export interface NewPlanBulkPrice {
@@ -4685,11 +4740,17 @@ export interface NewPlanBulkPrice {
4685
4740
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4686
4741
  * by setting `metadata` to `null`.
4687
4742
  */
4688
- metadata?: Record<string, string | null> | null;
4743
+ metadata?: { [key: string]: string | null } | null;
4744
+
4745
+ /**
4746
+ * A transient ID that can be used to reference this price when adding adjustments
4747
+ * in the same API call.
4748
+ */
4749
+ reference_id?: string | null;
4689
4750
  }
4690
4751
 
4691
4752
  export interface NewPlanBulkWithProrationPrice {
4692
- bulk_with_proration_config: Record<string, unknown>;
4753
+ bulk_with_proration_config: { [key: string]: unknown };
4693
4754
 
4694
4755
  /**
4695
4756
  * The cadence to bill for this price on.
@@ -4774,7 +4835,13 @@ export interface NewPlanBulkWithProrationPrice {
4774
4835
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4775
4836
  * by setting `metadata` to `null`.
4776
4837
  */
4777
- metadata?: Record<string, string | null> | null;
4838
+ metadata?: { [key: string]: string | null } | null;
4839
+
4840
+ /**
4841
+ * A transient ID that can be used to reference this price when adding adjustments
4842
+ * in the same API call.
4843
+ */
4844
+ reference_id?: string | null;
4778
4845
  }
4779
4846
 
4780
4847
  export interface NewPlanCumulativeGroupedBulkPrice {
@@ -4783,7 +4850,7 @@ export interface NewPlanCumulativeGroupedBulkPrice {
4783
4850
  */
4784
4851
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
4785
4852
 
4786
- cumulative_grouped_bulk_config: Record<string, unknown>;
4853
+ cumulative_grouped_bulk_config: { [key: string]: unknown };
4787
4854
 
4788
4855
  /**
4789
4856
  * The id of the item the price will be associated with.
@@ -4863,7 +4930,13 @@ export interface NewPlanCumulativeGroupedBulkPrice {
4863
4930
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4864
4931
  * by setting `metadata` to `null`.
4865
4932
  */
4866
- metadata?: Record<string, string | null> | null;
4933
+ metadata?: { [key: string]: string | null } | null;
4934
+
4935
+ /**
4936
+ * A transient ID that can be used to reference this price when adding adjustments
4937
+ * in the same API call.
4938
+ */
4939
+ reference_id?: string | null;
4867
4940
  }
4868
4941
 
4869
4942
  export interface NewPlanGroupedAllocationPrice {
@@ -4872,7 +4945,7 @@ export interface NewPlanGroupedAllocationPrice {
4872
4945
  */
4873
4946
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
4874
4947
 
4875
- grouped_allocation_config: Record<string, unknown>;
4948
+ grouped_allocation_config: { [key: string]: unknown };
4876
4949
 
4877
4950
  /**
4878
4951
  * The id of the item the price will be associated with.
@@ -4952,7 +5025,13 @@ export interface NewPlanGroupedAllocationPrice {
4952
5025
  * by setting the value to `null`, and the entire metadata mapping can be cleared
4953
5026
  * by setting `metadata` to `null`.
4954
5027
  */
4955
- metadata?: Record<string, string | null> | null;
5028
+ metadata?: { [key: string]: string | null } | null;
5029
+
5030
+ /**
5031
+ * A transient ID that can be used to reference this price when adding adjustments
5032
+ * in the same API call.
5033
+ */
5034
+ reference_id?: string | null;
4956
5035
  }
4957
5036
 
4958
5037
  export interface NewPlanGroupedTieredPackagePrice {
@@ -4961,7 +5040,7 @@ export interface NewPlanGroupedTieredPackagePrice {
4961
5040
  */
4962
5041
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
4963
5042
 
4964
- grouped_tiered_package_config: Record<string, unknown>;
5043
+ grouped_tiered_package_config: { [key: string]: unknown };
4965
5044
 
4966
5045
  /**
4967
5046
  * The id of the item the price will be associated with.
@@ -5041,7 +5120,13 @@ export interface NewPlanGroupedTieredPackagePrice {
5041
5120
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5042
5121
  * by setting `metadata` to `null`.
5043
5122
  */
5044
- metadata?: Record<string, string | null> | null;
5123
+ metadata?: { [key: string]: string | null } | null;
5124
+
5125
+ /**
5126
+ * A transient ID that can be used to reference this price when adding adjustments
5127
+ * in the same API call.
5128
+ */
5129
+ reference_id?: string | null;
5045
5130
  }
5046
5131
 
5047
5132
  export interface NewPlanGroupedTieredPrice {
@@ -5050,7 +5135,7 @@ export interface NewPlanGroupedTieredPrice {
5050
5135
  */
5051
5136
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
5052
5137
 
5053
- grouped_tiered_config: Record<string, unknown>;
5138
+ grouped_tiered_config: { [key: string]: unknown };
5054
5139
 
5055
5140
  /**
5056
5141
  * The id of the item the price will be associated with.
@@ -5130,7 +5215,13 @@ export interface NewPlanGroupedTieredPrice {
5130
5215
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5131
5216
  * by setting `metadata` to `null`.
5132
5217
  */
5133
- metadata?: Record<string, string | null> | null;
5218
+ metadata?: { [key: string]: string | null } | null;
5219
+
5220
+ /**
5221
+ * A transient ID that can be used to reference this price when adding adjustments
5222
+ * in the same API call.
5223
+ */
5224
+ reference_id?: string | null;
5134
5225
  }
5135
5226
 
5136
5227
  export interface NewPlanGroupedWithMeteredMinimumPrice {
@@ -5139,7 +5230,7 @@ export interface NewPlanGroupedWithMeteredMinimumPrice {
5139
5230
  */
5140
5231
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
5141
5232
 
5142
- grouped_with_metered_minimum_config: Record<string, unknown>;
5233
+ grouped_with_metered_minimum_config: { [key: string]: unknown };
5143
5234
 
5144
5235
  /**
5145
5236
  * The id of the item the price will be associated with.
@@ -5219,7 +5310,13 @@ export interface NewPlanGroupedWithMeteredMinimumPrice {
5219
5310
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5220
5311
  * by setting `metadata` to `null`.
5221
5312
  */
5222
- metadata?: Record<string, string | null> | null;
5313
+ metadata?: { [key: string]: string | null } | null;
5314
+
5315
+ /**
5316
+ * A transient ID that can be used to reference this price when adding adjustments
5317
+ * in the same API call.
5318
+ */
5319
+ reference_id?: string | null;
5223
5320
  }
5224
5321
 
5225
5322
  export interface NewPlanGroupedWithProratedMinimumPrice {
@@ -5228,7 +5325,7 @@ export interface NewPlanGroupedWithProratedMinimumPrice {
5228
5325
  */
5229
5326
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
5230
5327
 
5231
- grouped_with_prorated_minimum_config: Record<string, unknown>;
5328
+ grouped_with_prorated_minimum_config: { [key: string]: unknown };
5232
5329
 
5233
5330
  /**
5234
5331
  * The id of the item the price will be associated with.
@@ -5308,7 +5405,13 @@ export interface NewPlanGroupedWithProratedMinimumPrice {
5308
5405
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5309
5406
  * by setting `metadata` to `null`.
5310
5407
  */
5311
- metadata?: Record<string, string | null> | null;
5408
+ metadata?: { [key: string]: string | null } | null;
5409
+
5410
+ /**
5411
+ * A transient ID that can be used to reference this price when adding adjustments
5412
+ * in the same API call.
5413
+ */
5414
+ reference_id?: string | null;
5312
5415
  }
5313
5416
 
5314
5417
  export interface NewPlanMatrixPrice {
@@ -5397,7 +5500,13 @@ export interface NewPlanMatrixPrice {
5397
5500
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5398
5501
  * by setting `metadata` to `null`.
5399
5502
  */
5400
- metadata?: Record<string, string | null> | null;
5503
+ metadata?: { [key: string]: string | null } | null;
5504
+
5505
+ /**
5506
+ * A transient ID that can be used to reference this price when adding adjustments
5507
+ * in the same API call.
5508
+ */
5509
+ reference_id?: string | null;
5401
5510
  }
5402
5511
 
5403
5512
  export interface NewPlanMatrixWithAllocationPrice {
@@ -5486,7 +5595,13 @@ export interface NewPlanMatrixWithAllocationPrice {
5486
5595
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5487
5596
  * by setting `metadata` to `null`.
5488
5597
  */
5489
- metadata?: Record<string, string | null> | null;
5598
+ metadata?: { [key: string]: string | null } | null;
5599
+
5600
+ /**
5601
+ * A transient ID that can be used to reference this price when adding adjustments
5602
+ * in the same API call.
5603
+ */
5604
+ reference_id?: string | null;
5490
5605
  }
5491
5606
 
5492
5607
  export interface NewPlanMatrixWithDisplayNamePrice {
@@ -5500,7 +5615,7 @@ export interface NewPlanMatrixWithDisplayNamePrice {
5500
5615
  */
5501
5616
  item_id: string;
5502
5617
 
5503
- matrix_with_display_name_config: Record<string, unknown>;
5618
+ matrix_with_display_name_config: { [key: string]: unknown };
5504
5619
 
5505
5620
  model_type: 'matrix_with_display_name';
5506
5621
 
@@ -5575,7 +5690,13 @@ export interface NewPlanMatrixWithDisplayNamePrice {
5575
5690
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5576
5691
  * by setting `metadata` to `null`.
5577
5692
  */
5578
- metadata?: Record<string, string | null> | null;
5693
+ metadata?: { [key: string]: string | null } | null;
5694
+
5695
+ /**
5696
+ * A transient ID that can be used to reference this price when adding adjustments
5697
+ * in the same API call.
5698
+ */
5699
+ reference_id?: string | null;
5579
5700
  }
5580
5701
 
5581
5702
  export interface NewPlanMaxGroupTieredPackagePrice {
@@ -5589,7 +5710,7 @@ export interface NewPlanMaxGroupTieredPackagePrice {
5589
5710
  */
5590
5711
  item_id: string;
5591
5712
 
5592
- max_group_tiered_package_config: Record<string, unknown>;
5713
+ max_group_tiered_package_config: { [key: string]: unknown };
5593
5714
 
5594
5715
  model_type: 'max_group_tiered_package';
5595
5716
 
@@ -5664,7 +5785,13 @@ export interface NewPlanMaxGroupTieredPackagePrice {
5664
5785
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5665
5786
  * by setting `metadata` to `null`.
5666
5787
  */
5667
- metadata?: Record<string, string | null> | null;
5788
+ metadata?: { [key: string]: string | null } | null;
5789
+
5790
+ /**
5791
+ * A transient ID that can be used to reference this price when adding adjustments
5792
+ * in the same API call.
5793
+ */
5794
+ reference_id?: string | null;
5668
5795
  }
5669
5796
 
5670
5797
  export interface NewPlanPackagePrice {
@@ -5753,7 +5880,13 @@ export interface NewPlanPackagePrice {
5753
5880
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5754
5881
  * by setting `metadata` to `null`.
5755
5882
  */
5756
- metadata?: Record<string, string | null> | null;
5883
+ metadata?: { [key: string]: string | null } | null;
5884
+
5885
+ /**
5886
+ * A transient ID that can be used to reference this price when adding adjustments
5887
+ * in the same API call.
5888
+ */
5889
+ reference_id?: string | null;
5757
5890
  }
5758
5891
 
5759
5892
  export interface NewPlanPackageWithAllocationPrice {
@@ -5774,7 +5907,7 @@ export interface NewPlanPackageWithAllocationPrice {
5774
5907
  */
5775
5908
  name: string;
5776
5909
 
5777
- package_with_allocation_config: Record<string, unknown>;
5910
+ package_with_allocation_config: { [key: string]: unknown };
5778
5911
 
5779
5912
  /**
5780
5913
  * The id of the billable metric for the price. Only needed if the price is
@@ -5842,7 +5975,13 @@ export interface NewPlanPackageWithAllocationPrice {
5842
5975
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5843
5976
  * by setting `metadata` to `null`.
5844
5977
  */
5845
- metadata?: Record<string, string | null> | null;
5978
+ metadata?: { [key: string]: string | null } | null;
5979
+
5980
+ /**
5981
+ * A transient ID that can be used to reference this price when adding adjustments
5982
+ * in the same API call.
5983
+ */
5984
+ reference_id?: string | null;
5846
5985
  }
5847
5986
 
5848
5987
  export interface NewPlanScalableMatrixWithTieredPricingPrice {
@@ -5863,7 +6002,7 @@ export interface NewPlanScalableMatrixWithTieredPricingPrice {
5863
6002
  */
5864
6003
  name: string;
5865
6004
 
5866
- scalable_matrix_with_tiered_pricing_config: Record<string, unknown>;
6005
+ scalable_matrix_with_tiered_pricing_config: { [key: string]: unknown };
5867
6006
 
5868
6007
  /**
5869
6008
  * The id of the billable metric for the price. Only needed if the price is
@@ -5931,7 +6070,13 @@ export interface NewPlanScalableMatrixWithTieredPricingPrice {
5931
6070
  * by setting the value to `null`, and the entire metadata mapping can be cleared
5932
6071
  * by setting `metadata` to `null`.
5933
6072
  */
5934
- metadata?: Record<string, string | null> | null;
6073
+ metadata?: { [key: string]: string | null } | null;
6074
+
6075
+ /**
6076
+ * A transient ID that can be used to reference this price when adding adjustments
6077
+ * in the same API call.
6078
+ */
6079
+ reference_id?: string | null;
5935
6080
  }
5936
6081
 
5937
6082
  export interface NewPlanScalableMatrixWithUnitPricingPrice {
@@ -5952,7 +6097,7 @@ export interface NewPlanScalableMatrixWithUnitPricingPrice {
5952
6097
  */
5953
6098
  name: string;
5954
6099
 
5955
- scalable_matrix_with_unit_pricing_config: Record<string, unknown>;
6100
+ scalable_matrix_with_unit_pricing_config: { [key: string]: unknown };
5956
6101
 
5957
6102
  /**
5958
6103
  * The id of the billable metric for the price. Only needed if the price is
@@ -6020,7 +6165,13 @@ export interface NewPlanScalableMatrixWithUnitPricingPrice {
6020
6165
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6021
6166
  * by setting `metadata` to `null`.
6022
6167
  */
6023
- metadata?: Record<string, string | null> | null;
6168
+ metadata?: { [key: string]: string | null } | null;
6169
+
6170
+ /**
6171
+ * A transient ID that can be used to reference this price when adding adjustments
6172
+ * in the same API call.
6173
+ */
6174
+ reference_id?: string | null;
6024
6175
  }
6025
6176
 
6026
6177
  export interface NewPlanThresholdTotalAmountPrice {
@@ -6041,7 +6192,7 @@ export interface NewPlanThresholdTotalAmountPrice {
6041
6192
  */
6042
6193
  name: string;
6043
6194
 
6044
- threshold_total_amount_config: Record<string, unknown>;
6195
+ threshold_total_amount_config: { [key: string]: unknown };
6045
6196
 
6046
6197
  /**
6047
6198
  * The id of the billable metric for the price. Only needed if the price is
@@ -6109,7 +6260,13 @@ export interface NewPlanThresholdTotalAmountPrice {
6109
6260
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6110
6261
  * by setting `metadata` to `null`.
6111
6262
  */
6112
- metadata?: Record<string, string | null> | null;
6263
+ metadata?: { [key: string]: string | null } | null;
6264
+
6265
+ /**
6266
+ * A transient ID that can be used to reference this price when adding adjustments
6267
+ * in the same API call.
6268
+ */
6269
+ reference_id?: string | null;
6113
6270
  }
6114
6271
 
6115
6272
  export interface NewPlanTierWithProrationPrice {
@@ -6130,7 +6287,7 @@ export interface NewPlanTierWithProrationPrice {
6130
6287
  */
6131
6288
  name: string;
6132
6289
 
6133
- tiered_with_proration_config: Record<string, unknown>;
6290
+ tiered_with_proration_config: { [key: string]: unknown };
6134
6291
 
6135
6292
  /**
6136
6293
  * The id of the billable metric for the price. Only needed if the price is
@@ -6198,7 +6355,13 @@ export interface NewPlanTierWithProrationPrice {
6198
6355
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6199
6356
  * by setting `metadata` to `null`.
6200
6357
  */
6201
- metadata?: Record<string, string | null> | null;
6358
+ metadata?: { [key: string]: string | null } | null;
6359
+
6360
+ /**
6361
+ * A transient ID that can be used to reference this price when adding adjustments
6362
+ * in the same API call.
6363
+ */
6364
+ reference_id?: string | null;
6202
6365
  }
6203
6366
 
6204
6367
  export interface NewPlanTieredBPSPrice {
@@ -6287,7 +6450,13 @@ export interface NewPlanTieredBPSPrice {
6287
6450
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6288
6451
  * by setting `metadata` to `null`.
6289
6452
  */
6290
- metadata?: Record<string, string | null> | null;
6453
+ metadata?: { [key: string]: string | null } | null;
6454
+
6455
+ /**
6456
+ * A transient ID that can be used to reference this price when adding adjustments
6457
+ * in the same API call.
6458
+ */
6459
+ reference_id?: string | null;
6291
6460
  }
6292
6461
 
6293
6462
  export interface NewPlanTieredPackagePrice {
@@ -6308,7 +6477,7 @@ export interface NewPlanTieredPackagePrice {
6308
6477
  */
6309
6478
  name: string;
6310
6479
 
6311
- tiered_package_config: Record<string, unknown>;
6480
+ tiered_package_config: { [key: string]: unknown };
6312
6481
 
6313
6482
  /**
6314
6483
  * The id of the billable metric for the price. Only needed if the price is
@@ -6376,7 +6545,13 @@ export interface NewPlanTieredPackagePrice {
6376
6545
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6377
6546
  * by setting `metadata` to `null`.
6378
6547
  */
6379
- metadata?: Record<string, string | null> | null;
6548
+ metadata?: { [key: string]: string | null } | null;
6549
+
6550
+ /**
6551
+ * A transient ID that can be used to reference this price when adding adjustments
6552
+ * in the same API call.
6553
+ */
6554
+ reference_id?: string | null;
6380
6555
  }
6381
6556
 
6382
6557
  export interface NewPlanTieredPackageWithMinimumPrice {
@@ -6397,7 +6572,7 @@ export interface NewPlanTieredPackageWithMinimumPrice {
6397
6572
  */
6398
6573
  name: string;
6399
6574
 
6400
- tiered_package_with_minimum_config: Record<string, unknown>;
6575
+ tiered_package_with_minimum_config: { [key: string]: unknown };
6401
6576
 
6402
6577
  /**
6403
6578
  * The id of the billable metric for the price. Only needed if the price is
@@ -6465,7 +6640,13 @@ export interface NewPlanTieredPackageWithMinimumPrice {
6465
6640
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6466
6641
  * by setting `metadata` to `null`.
6467
6642
  */
6468
- metadata?: Record<string, string | null> | null;
6643
+ metadata?: { [key: string]: string | null } | null;
6644
+
6645
+ /**
6646
+ * A transient ID that can be used to reference this price when adding adjustments
6647
+ * in the same API call.
6648
+ */
6649
+ reference_id?: string | null;
6469
6650
  }
6470
6651
 
6471
6652
  export interface NewPlanTieredPrice {
@@ -6554,7 +6735,13 @@ export interface NewPlanTieredPrice {
6554
6735
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6555
6736
  * by setting `metadata` to `null`.
6556
6737
  */
6557
- metadata?: Record<string, string | null> | null;
6738
+ metadata?: { [key: string]: string | null } | null;
6739
+
6740
+ /**
6741
+ * A transient ID that can be used to reference this price when adding adjustments
6742
+ * in the same API call.
6743
+ */
6744
+ reference_id?: string | null;
6558
6745
  }
6559
6746
 
6560
6747
  export interface NewPlanTieredWithMinimumPrice {
@@ -6575,7 +6762,7 @@ export interface NewPlanTieredWithMinimumPrice {
6575
6762
  */
6576
6763
  name: string;
6577
6764
 
6578
- tiered_with_minimum_config: Record<string, unknown>;
6765
+ tiered_with_minimum_config: { [key: string]: unknown };
6579
6766
 
6580
6767
  /**
6581
6768
  * The id of the billable metric for the price. Only needed if the price is
@@ -6643,7 +6830,13 @@ export interface NewPlanTieredWithMinimumPrice {
6643
6830
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6644
6831
  * by setting `metadata` to `null`.
6645
6832
  */
6646
- metadata?: Record<string, string | null> | null;
6833
+ metadata?: { [key: string]: string | null } | null;
6834
+
6835
+ /**
6836
+ * A transient ID that can be used to reference this price when adding adjustments
6837
+ * in the same API call.
6838
+ */
6839
+ reference_id?: string | null;
6647
6840
  }
6648
6841
 
6649
6842
  export interface NewPlanUnitPrice {
@@ -6732,7 +6925,13 @@ export interface NewPlanUnitPrice {
6732
6925
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6733
6926
  * by setting `metadata` to `null`.
6734
6927
  */
6735
- metadata?: Record<string, string | null> | null;
6928
+ metadata?: { [key: string]: string | null } | null;
6929
+
6930
+ /**
6931
+ * A transient ID that can be used to reference this price when adding adjustments
6932
+ * in the same API call.
6933
+ */
6934
+ reference_id?: string | null;
6736
6935
  }
6737
6936
 
6738
6937
  export interface NewPlanUnitWithPercentPrice {
@@ -6753,7 +6952,7 @@ export interface NewPlanUnitWithPercentPrice {
6753
6952
  */
6754
6953
  name: string;
6755
6954
 
6756
- unit_with_percent_config: Record<string, unknown>;
6955
+ unit_with_percent_config: { [key: string]: unknown };
6757
6956
 
6758
6957
  /**
6759
6958
  * The id of the billable metric for the price. Only needed if the price is
@@ -6821,7 +7020,13 @@ export interface NewPlanUnitWithPercentPrice {
6821
7020
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6822
7021
  * by setting `metadata` to `null`.
6823
7022
  */
6824
- metadata?: Record<string, string | null> | null;
7023
+ metadata?: { [key: string]: string | null } | null;
7024
+
7025
+ /**
7026
+ * A transient ID that can be used to reference this price when adding adjustments
7027
+ * in the same API call.
7028
+ */
7029
+ reference_id?: string | null;
6825
7030
  }
6826
7031
 
6827
7032
  export interface NewPlanUnitWithProrationPrice {
@@ -6842,7 +7047,7 @@ export interface NewPlanUnitWithProrationPrice {
6842
7047
  */
6843
7048
  name: string;
6844
7049
 
6845
- unit_with_proration_config: Record<string, unknown>;
7050
+ unit_with_proration_config: { [key: string]: unknown };
6846
7051
 
6847
7052
  /**
6848
7053
  * The id of the billable metric for the price. Only needed if the price is
@@ -6910,7 +7115,13 @@ export interface NewPlanUnitWithProrationPrice {
6910
7115
  * by setting the value to `null`, and the entire metadata mapping can be cleared
6911
7116
  * by setting `metadata` to `null`.
6912
7117
  */
6913
- metadata?: Record<string, string | null> | null;
7118
+ metadata?: { [key: string]: string | null } | null;
7119
+
7120
+ /**
7121
+ * A transient ID that can be used to reference this price when adding adjustments
7122
+ * in the same API call.
7123
+ */
7124
+ reference_id?: string | null;
6914
7125
  }
6915
7126
 
6916
7127
  export interface NewUsageDiscount {
@@ -7105,6 +7316,12 @@ export interface PlanPhaseAmountDiscountAdjustment {
7105
7316
  * The reason for the adjustment.
7106
7317
  */
7107
7318
  reason: string | null;
7319
+
7320
+ /**
7321
+ * The adjustment id this adjustment replaces. This adjustment will take the place
7322
+ * of the replaced adjustment in plan version migrations.
7323
+ */
7324
+ replaces_adjustment_id: string | null;
7108
7325
  }
7109
7326
 
7110
7327
  export interface PlanPhaseMaximumAdjustment {
@@ -7143,6 +7360,12 @@ export interface PlanPhaseMaximumAdjustment {
7143
7360
  * The reason for the adjustment.
7144
7361
  */
7145
7362
  reason: string | null;
7363
+
7364
+ /**
7365
+ * The adjustment id this adjustment replaces. This adjustment will take the place
7366
+ * of the replaced adjustment in plan version migrations.
7367
+ */
7368
+ replaces_adjustment_id: string | null;
7146
7369
  }
7147
7370
 
7148
7371
  export interface PlanPhaseMinimumAdjustment {
@@ -7186,6 +7409,12 @@ export interface PlanPhaseMinimumAdjustment {
7186
7409
  * The reason for the adjustment.
7187
7410
  */
7188
7411
  reason: string | null;
7412
+
7413
+ /**
7414
+ * The adjustment id this adjustment replaces. This adjustment will take the place
7415
+ * of the replaced adjustment in plan version migrations.
7416
+ */
7417
+ replaces_adjustment_id: string | null;
7189
7418
  }
7190
7419
 
7191
7420
  export interface PlanPhasePercentageDiscountAdjustment {
@@ -7224,6 +7453,12 @@ export interface PlanPhasePercentageDiscountAdjustment {
7224
7453
  * The reason for the adjustment.
7225
7454
  */
7226
7455
  reason: string | null;
7456
+
7457
+ /**
7458
+ * The adjustment id this adjustment replaces. This adjustment will take the place
7459
+ * of the replaced adjustment in plan version migrations.
7460
+ */
7461
+ replaces_adjustment_id: string | null;
7227
7462
  }
7228
7463
 
7229
7464
  export interface PlanPhaseUsageDiscountAdjustment {
@@ -7257,6 +7492,12 @@ export interface PlanPhaseUsageDiscountAdjustment {
7257
7492
  */
7258
7493
  reason: string | null;
7259
7494
 
7495
+ /**
7496
+ * The adjustment id this adjustment replaces. This adjustment will take the place
7497
+ * of the replaced adjustment in plan version migrations.
7498
+ */
7499
+ replaces_adjustment_id: string | null;
7500
+
7260
7501
  /**
7261
7502
  * The number of usage units by which to discount the price this adjustment applies
7262
7503
  * to in a given billing period.
@@ -7355,7 +7596,7 @@ export namespace Price {
7355
7596
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7356
7597
  * `null`.
7357
7598
  */
7358
- metadata: Record<string, string>;
7599
+ metadata: { [key: string]: string };
7359
7600
 
7360
7601
  /**
7361
7602
  * @deprecated
@@ -7375,6 +7616,12 @@ export namespace Price {
7375
7616
 
7376
7617
  price_type: 'usage_price' | 'fixed_price';
7377
7618
 
7619
+ /**
7620
+ * The price id this price replaces. This price will take the place of the replaced
7621
+ * price in plan version migrations.
7622
+ */
7623
+ replaces_price_id: string | null;
7624
+
7378
7625
  unit_config: Shared.UnitConfig;
7379
7626
 
7380
7627
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
@@ -7428,7 +7675,7 @@ export namespace Price {
7428
7675
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7429
7676
  * `null`.
7430
7677
  */
7431
- metadata: Record<string, string>;
7678
+ metadata: { [key: string]: string };
7432
7679
 
7433
7680
  /**
7434
7681
  * @deprecated
@@ -7450,6 +7697,12 @@ export namespace Price {
7450
7697
 
7451
7698
  price_type: 'usage_price' | 'fixed_price';
7452
7699
 
7700
+ /**
7701
+ * The price id this price replaces. This price will take the place of the replaced
7702
+ * price in plan version migrations.
7703
+ */
7704
+ replaces_price_id: string | null;
7705
+
7453
7706
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
7454
7707
  }
7455
7708
 
@@ -7503,7 +7756,7 @@ export namespace Price {
7503
7756
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7504
7757
  * `null`.
7505
7758
  */
7506
- metadata: Record<string, string>;
7759
+ metadata: { [key: string]: string };
7507
7760
 
7508
7761
  /**
7509
7762
  * @deprecated
@@ -7523,6 +7776,12 @@ export namespace Price {
7523
7776
 
7524
7777
  price_type: 'usage_price' | 'fixed_price';
7525
7778
 
7779
+ /**
7780
+ * The price id this price replaces. This price will take the place of the replaced
7781
+ * price in plan version migrations.
7782
+ */
7783
+ replaces_price_id: string | null;
7784
+
7526
7785
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
7527
7786
  }
7528
7787
 
@@ -7574,7 +7833,7 @@ export namespace Price {
7574
7833
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7575
7834
  * `null`.
7576
7835
  */
7577
- metadata: Record<string, string>;
7836
+ metadata: { [key: string]: string };
7578
7837
 
7579
7838
  /**
7580
7839
  * @deprecated
@@ -7594,6 +7853,12 @@ export namespace Price {
7594
7853
 
7595
7854
  price_type: 'usage_price' | 'fixed_price';
7596
7855
 
7856
+ /**
7857
+ * The price id this price replaces. This price will take the place of the replaced
7858
+ * price in plan version migrations.
7859
+ */
7860
+ replaces_price_id: string | null;
7861
+
7597
7862
  tiered_config: Shared.TieredConfig;
7598
7863
 
7599
7864
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
@@ -7647,7 +7912,7 @@ export namespace Price {
7647
7912
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7648
7913
  * `null`.
7649
7914
  */
7650
- metadata: Record<string, string>;
7915
+ metadata: { [key: string]: string };
7651
7916
 
7652
7917
  /**
7653
7918
  * @deprecated
@@ -7667,6 +7932,12 @@ export namespace Price {
7667
7932
 
7668
7933
  price_type: 'usage_price' | 'fixed_price';
7669
7934
 
7935
+ /**
7936
+ * The price id this price replaces. This price will take the place of the replaced
7937
+ * price in plan version migrations.
7938
+ */
7939
+ replaces_price_id: string | null;
7940
+
7670
7941
  tiered_bps_config: Shared.TieredBPSConfig;
7671
7942
 
7672
7943
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
@@ -7722,7 +7993,7 @@ export namespace Price {
7722
7993
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7723
7994
  * `null`.
7724
7995
  */
7725
- metadata: Record<string, string>;
7996
+ metadata: { [key: string]: string };
7726
7997
 
7727
7998
  /**
7728
7999
  * @deprecated
@@ -7742,6 +8013,12 @@ export namespace Price {
7742
8013
 
7743
8014
  price_type: 'usage_price' | 'fixed_price';
7744
8015
 
8016
+ /**
8017
+ * The price id this price replaces. This price will take the place of the replaced
8018
+ * price in plan version migrations.
8019
+ */
8020
+ replaces_price_id: string | null;
8021
+
7745
8022
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
7746
8023
  }
7747
8024
 
@@ -7795,7 +8072,7 @@ export namespace Price {
7795
8072
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7796
8073
  * `null`.
7797
8074
  */
7798
- metadata: Record<string, string>;
8075
+ metadata: { [key: string]: string };
7799
8076
 
7800
8077
  /**
7801
8078
  * @deprecated
@@ -7815,6 +8092,12 @@ export namespace Price {
7815
8092
 
7816
8093
  price_type: 'usage_price' | 'fixed_price';
7817
8094
 
8095
+ /**
8096
+ * The price id this price replaces. This price will take the place of the replaced
8097
+ * price in plan version migrations.
8098
+ */
8099
+ replaces_price_id: string | null;
8100
+
7818
8101
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
7819
8102
  }
7820
8103
 
@@ -7868,7 +8151,7 @@ export namespace Price {
7868
8151
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7869
8152
  * `null`.
7870
8153
  */
7871
- metadata: Record<string, string>;
8154
+ metadata: { [key: string]: string };
7872
8155
 
7873
8156
  /**
7874
8157
  * @deprecated
@@ -7888,6 +8171,12 @@ export namespace Price {
7888
8171
 
7889
8172
  price_type: 'usage_price' | 'fixed_price';
7890
8173
 
8174
+ /**
8175
+ * The price id this price replaces. This price will take the place of the replaced
8176
+ * price in plan version migrations.
8177
+ */
8178
+ replaces_price_id: string | null;
8179
+
7891
8180
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
7892
8181
  }
7893
8182
 
@@ -7939,7 +8228,7 @@ export namespace Price {
7939
8228
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
7940
8229
  * `null`.
7941
8230
  */
7942
- metadata: Record<string, string>;
8231
+ metadata: { [key: string]: string };
7943
8232
 
7944
8233
  /**
7945
8234
  * @deprecated
@@ -7959,7 +8248,13 @@ export namespace Price {
7959
8248
 
7960
8249
  price_type: 'usage_price' | 'fixed_price';
7961
8250
 
7962
- threshold_total_amount_config: Record<string, unknown>;
8251
+ /**
8252
+ * The price id this price replaces. This price will take the place of the replaced
8253
+ * price in plan version migrations.
8254
+ */
8255
+ replaces_price_id: string | null;
8256
+
8257
+ threshold_total_amount_config: { [key: string]: unknown };
7963
8258
 
7964
8259
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
7965
8260
  }
@@ -8012,7 +8307,7 @@ export namespace Price {
8012
8307
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8013
8308
  * `null`.
8014
8309
  */
8015
- metadata: Record<string, string>;
8310
+ metadata: { [key: string]: string };
8016
8311
 
8017
8312
  /**
8018
8313
  * @deprecated
@@ -8032,7 +8327,13 @@ export namespace Price {
8032
8327
 
8033
8328
  price_type: 'usage_price' | 'fixed_price';
8034
8329
 
8035
- tiered_package_config: Record<string, unknown>;
8330
+ /**
8331
+ * The price id this price replaces. This price will take the place of the replaced
8332
+ * price in plan version migrations.
8333
+ */
8334
+ replaces_price_id: string | null;
8335
+
8336
+ tiered_package_config: { [key: string]: unknown };
8036
8337
 
8037
8338
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8038
8339
  }
@@ -8065,7 +8366,7 @@ export namespace Price {
8065
8366
 
8066
8367
  fixed_price_quantity: number | null;
8067
8368
 
8068
- grouped_tiered_config: Record<string, unknown>;
8369
+ grouped_tiered_config: { [key: string]: unknown };
8069
8370
 
8070
8371
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8071
8372
 
@@ -8087,7 +8388,7 @@ export namespace Price {
8087
8388
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8088
8389
  * `null`.
8089
8390
  */
8090
- metadata: Record<string, string>;
8391
+ metadata: { [key: string]: string };
8091
8392
 
8092
8393
  /**
8093
8394
  * @deprecated
@@ -8107,6 +8408,12 @@ export namespace Price {
8107
8408
 
8108
8409
  price_type: 'usage_price' | 'fixed_price';
8109
8410
 
8411
+ /**
8412
+ * The price id this price replaces. This price will take the place of the replaced
8413
+ * price in plan version migrations.
8414
+ */
8415
+ replaces_price_id: string | null;
8416
+
8110
8417
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8111
8418
  }
8112
8419
 
@@ -8158,7 +8465,7 @@ export namespace Price {
8158
8465
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8159
8466
  * `null`.
8160
8467
  */
8161
- metadata: Record<string, string>;
8468
+ metadata: { [key: string]: string };
8162
8469
 
8163
8470
  /**
8164
8471
  * @deprecated
@@ -8178,7 +8485,13 @@ export namespace Price {
8178
8485
 
8179
8486
  price_type: 'usage_price' | 'fixed_price';
8180
8487
 
8181
- tiered_with_minimum_config: Record<string, unknown>;
8488
+ /**
8489
+ * The price id this price replaces. This price will take the place of the replaced
8490
+ * price in plan version migrations.
8491
+ */
8492
+ replaces_price_id: string | null;
8493
+
8494
+ tiered_with_minimum_config: { [key: string]: unknown };
8182
8495
 
8183
8496
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8184
8497
  }
@@ -8231,7 +8544,7 @@ export namespace Price {
8231
8544
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8232
8545
  * `null`.
8233
8546
  */
8234
- metadata: Record<string, string>;
8547
+ metadata: { [key: string]: string };
8235
8548
 
8236
8549
  /**
8237
8550
  * @deprecated
@@ -8251,7 +8564,13 @@ export namespace Price {
8251
8564
 
8252
8565
  price_type: 'usage_price' | 'fixed_price';
8253
8566
 
8254
- tiered_package_with_minimum_config: Record<string, unknown>;
8567
+ /**
8568
+ * The price id this price replaces. This price will take the place of the replaced
8569
+ * price in plan version migrations.
8570
+ */
8571
+ replaces_price_id: string | null;
8572
+
8573
+ tiered_package_with_minimum_config: { [key: string]: unknown };
8255
8574
 
8256
8575
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8257
8576
  }
@@ -8304,7 +8623,7 @@ export namespace Price {
8304
8623
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8305
8624
  * `null`.
8306
8625
  */
8307
- metadata: Record<string, string>;
8626
+ metadata: { [key: string]: string };
8308
8627
 
8309
8628
  /**
8310
8629
  * @deprecated
@@ -8320,12 +8639,18 @@ export namespace Price {
8320
8639
 
8321
8640
  name: string;
8322
8641
 
8323
- package_with_allocation_config: Record<string, unknown>;
8642
+ package_with_allocation_config: { [key: string]: unknown };
8324
8643
 
8325
8644
  plan_phase_order: number | null;
8326
8645
 
8327
8646
  price_type: 'usage_price' | 'fixed_price';
8328
8647
 
8648
+ /**
8649
+ * The price id this price replaces. This price will take the place of the replaced
8650
+ * price in plan version migrations.
8651
+ */
8652
+ replaces_price_id: string | null;
8653
+
8329
8654
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8330
8655
  }
8331
8656
 
@@ -8377,7 +8702,7 @@ export namespace Price {
8377
8702
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8378
8703
  * `null`.
8379
8704
  */
8380
- metadata: Record<string, string>;
8705
+ metadata: { [key: string]: string };
8381
8706
 
8382
8707
  /**
8383
8708
  * @deprecated
@@ -8397,7 +8722,13 @@ export namespace Price {
8397
8722
 
8398
8723
  price_type: 'usage_price' | 'fixed_price';
8399
8724
 
8400
- unit_with_percent_config: Record<string, unknown>;
8725
+ /**
8726
+ * The price id this price replaces. This price will take the place of the replaced
8727
+ * price in plan version migrations.
8728
+ */
8729
+ replaces_price_id: string | null;
8730
+
8731
+ unit_with_percent_config: { [key: string]: unknown };
8401
8732
 
8402
8733
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8403
8734
  }
@@ -8452,7 +8783,7 @@ export namespace Price {
8452
8783
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8453
8784
  * `null`.
8454
8785
  */
8455
- metadata: Record<string, string>;
8786
+ metadata: { [key: string]: string };
8456
8787
 
8457
8788
  /**
8458
8789
  * @deprecated
@@ -8472,6 +8803,12 @@ export namespace Price {
8472
8803
 
8473
8804
  price_type: 'usage_price' | 'fixed_price';
8474
8805
 
8806
+ /**
8807
+ * The price id this price replaces. This price will take the place of the replaced
8808
+ * price in plan version migrations.
8809
+ */
8810
+ replaces_price_id: string | null;
8811
+
8475
8812
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8476
8813
  }
8477
8814
 
@@ -8523,7 +8860,7 @@ export namespace Price {
8523
8860
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8524
8861
  * `null`.
8525
8862
  */
8526
- metadata: Record<string, string>;
8863
+ metadata: { [key: string]: string };
8527
8864
 
8528
8865
  /**
8529
8866
  * @deprecated
@@ -8543,7 +8880,13 @@ export namespace Price {
8543
8880
 
8544
8881
  price_type: 'usage_price' | 'fixed_price';
8545
8882
 
8546
- tiered_with_proration_config: Record<string, unknown>;
8883
+ /**
8884
+ * The price id this price replaces. This price will take the place of the replaced
8885
+ * price in plan version migrations.
8886
+ */
8887
+ replaces_price_id: string | null;
8888
+
8889
+ tiered_with_proration_config: { [key: string]: unknown };
8547
8890
 
8548
8891
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8549
8892
  }
@@ -8596,7 +8939,7 @@ export namespace Price {
8596
8939
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8597
8940
  * `null`.
8598
8941
  */
8599
- metadata: Record<string, string>;
8942
+ metadata: { [key: string]: string };
8600
8943
 
8601
8944
  /**
8602
8945
  * @deprecated
@@ -8616,7 +8959,13 @@ export namespace Price {
8616
8959
 
8617
8960
  price_type: 'usage_price' | 'fixed_price';
8618
8961
 
8619
- unit_with_proration_config: Record<string, unknown>;
8962
+ /**
8963
+ * The price id this price replaces. This price will take the place of the replaced
8964
+ * price in plan version migrations.
8965
+ */
8966
+ replaces_price_id: string | null;
8967
+
8968
+ unit_with_proration_config: { [key: string]: unknown };
8620
8969
 
8621
8970
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8622
8971
  }
@@ -8649,7 +8998,7 @@ export namespace Price {
8649
8998
 
8650
8999
  fixed_price_quantity: number | null;
8651
9000
 
8652
- grouped_allocation_config: Record<string, unknown>;
9001
+ grouped_allocation_config: { [key: string]: unknown };
8653
9002
 
8654
9003
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8655
9004
 
@@ -8671,7 +9020,7 @@ export namespace Price {
8671
9020
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8672
9021
  * `null`.
8673
9022
  */
8674
- metadata: Record<string, string>;
9023
+ metadata: { [key: string]: string };
8675
9024
 
8676
9025
  /**
8677
9026
  * @deprecated
@@ -8691,6 +9040,12 @@ export namespace Price {
8691
9040
 
8692
9041
  price_type: 'usage_price' | 'fixed_price';
8693
9042
 
9043
+ /**
9044
+ * The price id this price replaces. This price will take the place of the replaced
9045
+ * price in plan version migrations.
9046
+ */
9047
+ replaces_price_id: string | null;
9048
+
8694
9049
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8695
9050
  }
8696
9051
 
@@ -8722,7 +9077,7 @@ export namespace Price {
8722
9077
 
8723
9078
  fixed_price_quantity: number | null;
8724
9079
 
8725
- grouped_with_prorated_minimum_config: Record<string, unknown>;
9080
+ grouped_with_prorated_minimum_config: { [key: string]: unknown };
8726
9081
 
8727
9082
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8728
9083
 
@@ -8744,7 +9099,7 @@ export namespace Price {
8744
9099
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8745
9100
  * `null`.
8746
9101
  */
8747
- metadata: Record<string, string>;
9102
+ metadata: { [key: string]: string };
8748
9103
 
8749
9104
  /**
8750
9105
  * @deprecated
@@ -8764,6 +9119,12 @@ export namespace Price {
8764
9119
 
8765
9120
  price_type: 'usage_price' | 'fixed_price';
8766
9121
 
9122
+ /**
9123
+ * The price id this price replaces. This price will take the place of the replaced
9124
+ * price in plan version migrations.
9125
+ */
9126
+ replaces_price_id: string | null;
9127
+
8767
9128
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8768
9129
  }
8769
9130
 
@@ -8795,7 +9156,7 @@ export namespace Price {
8795
9156
 
8796
9157
  fixed_price_quantity: number | null;
8797
9158
 
8798
- grouped_with_metered_minimum_config: Record<string, unknown>;
9159
+ grouped_with_metered_minimum_config: { [key: string]: unknown };
8799
9160
 
8800
9161
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
8801
9162
 
@@ -8817,7 +9178,7 @@ export namespace Price {
8817
9178
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8818
9179
  * `null`.
8819
9180
  */
8820
- metadata: Record<string, string>;
9181
+ metadata: { [key: string]: string };
8821
9182
 
8822
9183
  /**
8823
9184
  * @deprecated
@@ -8837,6 +9198,12 @@ export namespace Price {
8837
9198
 
8838
9199
  price_type: 'usage_price' | 'fixed_price';
8839
9200
 
9201
+ /**
9202
+ * The price id this price replaces. This price will take the place of the replaced
9203
+ * price in plan version migrations.
9204
+ */
9205
+ replaces_price_id: string | null;
9206
+
8840
9207
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8841
9208
  }
8842
9209
 
@@ -8872,7 +9239,7 @@ export namespace Price {
8872
9239
 
8873
9240
  item: Shared.ItemSlim;
8874
9241
 
8875
- matrix_with_display_name_config: Record<string, unknown>;
9242
+ matrix_with_display_name_config: { [key: string]: unknown };
8876
9243
 
8877
9244
  /**
8878
9245
  * @deprecated
@@ -8890,7 +9257,7 @@ export namespace Price {
8890
9257
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8891
9258
  * `null`.
8892
9259
  */
8893
- metadata: Record<string, string>;
9260
+ metadata: { [key: string]: string };
8894
9261
 
8895
9262
  /**
8896
9263
  * @deprecated
@@ -8910,6 +9277,12 @@ export namespace Price {
8910
9277
 
8911
9278
  price_type: 'usage_price' | 'fixed_price';
8912
9279
 
9280
+ /**
9281
+ * The price id this price replaces. This price will take the place of the replaced
9282
+ * price in plan version migrations.
9283
+ */
9284
+ replaces_price_id: string | null;
9285
+
8913
9286
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8914
9287
  }
8915
9288
 
@@ -8920,7 +9293,7 @@ export namespace Price {
8920
9293
 
8921
9294
  billing_cycle_configuration: Shared.BillingCycleConfiguration;
8922
9295
 
8923
- bulk_with_proration_config: Record<string, unknown>;
9296
+ bulk_with_proration_config: { [key: string]: unknown };
8924
9297
 
8925
9298
  cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
8926
9299
 
@@ -8963,7 +9336,7 @@ export namespace Price {
8963
9336
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
8964
9337
  * `null`.
8965
9338
  */
8966
- metadata: Record<string, string>;
9339
+ metadata: { [key: string]: string };
8967
9340
 
8968
9341
  /**
8969
9342
  * @deprecated
@@ -8983,6 +9356,12 @@ export namespace Price {
8983
9356
 
8984
9357
  price_type: 'usage_price' | 'fixed_price';
8985
9358
 
9359
+ /**
9360
+ * The price id this price replaces. This price will take the place of the replaced
9361
+ * price in plan version migrations.
9362
+ */
9363
+ replaces_price_id: string | null;
9364
+
8986
9365
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
8987
9366
  }
8988
9367
 
@@ -9014,7 +9393,7 @@ export namespace Price {
9014
9393
 
9015
9394
  fixed_price_quantity: number | null;
9016
9395
 
9017
- grouped_tiered_package_config: Record<string, unknown>;
9396
+ grouped_tiered_package_config: { [key: string]: unknown };
9018
9397
 
9019
9398
  invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
9020
9399
 
@@ -9036,7 +9415,7 @@ export namespace Price {
9036
9415
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
9037
9416
  * `null`.
9038
9417
  */
9039
- metadata: Record<string, string>;
9418
+ metadata: { [key: string]: string };
9040
9419
 
9041
9420
  /**
9042
9421
  * @deprecated
@@ -9056,6 +9435,12 @@ export namespace Price {
9056
9435
 
9057
9436
  price_type: 'usage_price' | 'fixed_price';
9058
9437
 
9438
+ /**
9439
+ * The price id this price replaces. This price will take the place of the replaced
9440
+ * price in plan version migrations.
9441
+ */
9442
+ replaces_price_id: string | null;
9443
+
9059
9444
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
9060
9445
  }
9061
9446
 
@@ -9091,7 +9476,7 @@ export namespace Price {
9091
9476
 
9092
9477
  item: Shared.ItemSlim;
9093
9478
 
9094
- max_group_tiered_package_config: Record<string, unknown>;
9479
+ max_group_tiered_package_config: { [key: string]: unknown };
9095
9480
 
9096
9481
  /**
9097
9482
  * @deprecated
@@ -9109,7 +9494,7 @@ export namespace Price {
9109
9494
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
9110
9495
  * `null`.
9111
9496
  */
9112
- metadata: Record<string, string>;
9497
+ metadata: { [key: string]: string };
9113
9498
 
9114
9499
  /**
9115
9500
  * @deprecated
@@ -9129,6 +9514,12 @@ export namespace Price {
9129
9514
 
9130
9515
  price_type: 'usage_price' | 'fixed_price';
9131
9516
 
9517
+ /**
9518
+ * The price id this price replaces. This price will take the place of the replaced
9519
+ * price in plan version migrations.
9520
+ */
9521
+ replaces_price_id: string | null;
9522
+
9132
9523
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
9133
9524
  }
9134
9525
 
@@ -9180,7 +9571,7 @@ export namespace Price {
9180
9571
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
9181
9572
  * `null`.
9182
9573
  */
9183
- metadata: Record<string, string>;
9574
+ metadata: { [key: string]: string };
9184
9575
 
9185
9576
  /**
9186
9577
  * @deprecated
@@ -9200,7 +9591,13 @@ export namespace Price {
9200
9591
 
9201
9592
  price_type: 'usage_price' | 'fixed_price';
9202
9593
 
9203
- scalable_matrix_with_unit_pricing_config: Record<string, unknown>;
9594
+ /**
9595
+ * The price id this price replaces. This price will take the place of the replaced
9596
+ * price in plan version migrations.
9597
+ */
9598
+ replaces_price_id: string | null;
9599
+
9600
+ scalable_matrix_with_unit_pricing_config: { [key: string]: unknown };
9204
9601
 
9205
9602
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
9206
9603
  }
@@ -9253,7 +9650,7 @@ export namespace Price {
9253
9650
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
9254
9651
  * `null`.
9255
9652
  */
9256
- metadata: Record<string, string>;
9653
+ metadata: { [key: string]: string };
9257
9654
 
9258
9655
  /**
9259
9656
  * @deprecated
@@ -9273,7 +9670,13 @@ export namespace Price {
9273
9670
 
9274
9671
  price_type: 'usage_price' | 'fixed_price';
9275
9672
 
9276
- scalable_matrix_with_tiered_pricing_config: Record<string, unknown>;
9673
+ /**
9674
+ * The price id this price replaces. This price will take the place of the replaced
9675
+ * price in plan version migrations.
9676
+ */
9677
+ replaces_price_id: string | null;
9678
+
9679
+ scalable_matrix_with_tiered_pricing_config: { [key: string]: unknown };
9277
9680
 
9278
9681
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
9279
9682
  }
@@ -9295,7 +9698,7 @@ export namespace Price {
9295
9698
 
9296
9699
  credit_allocation: Shared.Allocation | null;
9297
9700
 
9298
- cumulative_grouped_bulk_config: Record<string, unknown>;
9701
+ cumulative_grouped_bulk_config: { [key: string]: unknown };
9299
9702
 
9300
9703
  currency: string;
9301
9704
 
@@ -9328,7 +9731,7 @@ export namespace Price {
9328
9731
  * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
9329
9732
  * `null`.
9330
9733
  */
9331
- metadata: Record<string, string>;
9734
+ metadata: { [key: string]: string };
9332
9735
 
9333
9736
  /**
9334
9737
  * @deprecated
@@ -9348,6 +9751,12 @@ export namespace Price {
9348
9751
 
9349
9752
  price_type: 'usage_price' | 'fixed_price';
9350
9753
 
9754
+ /**
9755
+ * The price id this price replaces. This price will take the place of the replaced
9756
+ * price in plan version migrations.
9757
+ */
9758
+ replaces_price_id: string | null;
9759
+
9351
9760
  dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
9352
9761
  }
9353
9762
  }