orb-billing 5.0.0 → 5.1.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 +39 -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 +16 -16
  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 +158 -58
  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 +16 -16
  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 +58 -58
  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
@@ -149,6 +149,10 @@ export declare namespace PriceEvaluateMultipleResponse {
149
149
  * The computed price groups associated with input price.
150
150
  */
151
151
  price_groups: Array<PricesAPI.EvaluatePriceGroup>;
152
+ /**
153
+ * The external ID of the price
154
+ */
155
+ external_price_id?: string | null;
152
156
  /**
153
157
  * The index of the inline price
154
158
  */
@@ -172,6 +176,10 @@ export declare namespace PriceEvaluatePreviewEventsResponse {
172
176
  * The computed price groups associated with input price.
173
177
  */
174
178
  price_groups: Array<PricesAPI.EvaluatePriceGroup>;
179
+ /**
180
+ * The external ID of the price
181
+ */
182
+ external_price_id?: string | null;
175
183
  /**
176
184
  * The index of the inline price
177
185
  */
@@ -253,7 +261,9 @@ export declare namespace PriceCreateParams {
253
261
  * by setting the value to `null`, and the entire metadata mapping can be cleared
254
262
  * by setting `metadata` to `null`.
255
263
  */
256
- metadata?: Record<string, string | null> | null;
264
+ metadata?: {
265
+ [key: string]: string | null;
266
+ } | null;
257
267
  }
258
268
  interface NewFloatingPackagePrice {
259
269
  /**
@@ -324,7 +334,9 @@ export declare namespace PriceCreateParams {
324
334
  * by setting the value to `null`, and the entire metadata mapping can be cleared
325
335
  * by setting `metadata` to `null`.
326
336
  */
327
- metadata?: Record<string, string | null> | null;
337
+ metadata?: {
338
+ [key: string]: string | null;
339
+ } | null;
328
340
  }
329
341
  interface NewFloatingMatrixPrice {
330
342
  /**
@@ -395,7 +407,9 @@ export declare namespace PriceCreateParams {
395
407
  * by setting the value to `null`, and the entire metadata mapping can be cleared
396
408
  * by setting `metadata` to `null`.
397
409
  */
398
- metadata?: Record<string, string | null> | null;
410
+ metadata?: {
411
+ [key: string]: string | null;
412
+ } | null;
399
413
  }
400
414
  interface NewFloatingMatrixWithAllocationPrice {
401
415
  /**
@@ -466,7 +480,9 @@ export declare namespace PriceCreateParams {
466
480
  * by setting the value to `null`, and the entire metadata mapping can be cleared
467
481
  * by setting `metadata` to `null`.
468
482
  */
469
- metadata?: Record<string, string | null> | null;
483
+ metadata?: {
484
+ [key: string]: string | null;
485
+ } | null;
470
486
  }
471
487
  interface NewFloatingTieredPrice {
472
488
  /**
@@ -537,7 +553,9 @@ export declare namespace PriceCreateParams {
537
553
  * by setting the value to `null`, and the entire metadata mapping can be cleared
538
554
  * by setting `metadata` to `null`.
539
555
  */
540
- metadata?: Record<string, string | null> | null;
556
+ metadata?: {
557
+ [key: string]: string | null;
558
+ } | null;
541
559
  }
542
560
  interface NewFloatingTieredBPSPrice {
543
561
  /**
@@ -608,7 +626,9 @@ export declare namespace PriceCreateParams {
608
626
  * by setting the value to `null`, and the entire metadata mapping can be cleared
609
627
  * by setting `metadata` to `null`.
610
628
  */
611
- metadata?: Record<string, string | null> | null;
629
+ metadata?: {
630
+ [key: string]: string | null;
631
+ } | null;
612
632
  }
613
633
  interface NewFloatingBPSPrice {
614
634
  bps_config: Shared.BPSConfig;
@@ -679,7 +699,9 @@ export declare namespace PriceCreateParams {
679
699
  * by setting the value to `null`, and the entire metadata mapping can be cleared
680
700
  * by setting `metadata` to `null`.
681
701
  */
682
- metadata?: Record<string, string | null> | null;
702
+ metadata?: {
703
+ [key: string]: string | null;
704
+ } | null;
683
705
  }
684
706
  interface NewFloatingBulkBPSPrice {
685
707
  bulk_bps_config: Shared.BulkBPSConfig;
@@ -750,7 +772,9 @@ export declare namespace PriceCreateParams {
750
772
  * by setting the value to `null`, and the entire metadata mapping can be cleared
751
773
  * by setting `metadata` to `null`.
752
774
  */
753
- metadata?: Record<string, string | null> | null;
775
+ metadata?: {
776
+ [key: string]: string | null;
777
+ } | null;
754
778
  }
755
779
  interface NewFloatingBulkPrice {
756
780
  bulk_config: Shared.BulkConfig;
@@ -821,7 +845,9 @@ export declare namespace PriceCreateParams {
821
845
  * by setting the value to `null`, and the entire metadata mapping can be cleared
822
846
  * by setting `metadata` to `null`.
823
847
  */
824
- metadata?: Record<string, string | null> | null;
848
+ metadata?: {
849
+ [key: string]: string | null;
850
+ } | null;
825
851
  }
826
852
  interface NewFloatingThresholdTotalAmountPrice {
827
853
  /**
@@ -841,7 +867,9 @@ export declare namespace PriceCreateParams {
841
867
  * The name of the price.
842
868
  */
843
869
  name: string;
844
- threshold_total_amount_config: Record<string, unknown>;
870
+ threshold_total_amount_config: {
871
+ [key: string]: unknown;
872
+ };
845
873
  /**
846
874
  * The id of the billable metric for the price. Only needed if the price is
847
875
  * usage-based.
@@ -892,7 +920,9 @@ export declare namespace PriceCreateParams {
892
920
  * by setting the value to `null`, and the entire metadata mapping can be cleared
893
921
  * by setting `metadata` to `null`.
894
922
  */
895
- metadata?: Record<string, string | null> | null;
923
+ metadata?: {
924
+ [key: string]: string | null;
925
+ } | null;
896
926
  }
897
927
  interface NewFloatingTieredPackagePrice {
898
928
  /**
@@ -912,7 +942,9 @@ export declare namespace PriceCreateParams {
912
942
  * The name of the price.
913
943
  */
914
944
  name: string;
915
- tiered_package_config: Record<string, unknown>;
945
+ tiered_package_config: {
946
+ [key: string]: unknown;
947
+ };
916
948
  /**
917
949
  * The id of the billable metric for the price. Only needed if the price is
918
950
  * usage-based.
@@ -963,7 +995,9 @@ export declare namespace PriceCreateParams {
963
995
  * by setting the value to `null`, and the entire metadata mapping can be cleared
964
996
  * by setting `metadata` to `null`.
965
997
  */
966
- metadata?: Record<string, string | null> | null;
998
+ metadata?: {
999
+ [key: string]: string | null;
1000
+ } | null;
967
1001
  }
968
1002
  interface NewFloatingGroupedTieredPrice {
969
1003
  /**
@@ -974,7 +1008,9 @@ export declare namespace PriceCreateParams {
974
1008
  * An ISO 4217 currency string for which this price is billed in.
975
1009
  */
976
1010
  currency: string;
977
- grouped_tiered_config: Record<string, unknown>;
1011
+ grouped_tiered_config: {
1012
+ [key: string]: unknown;
1013
+ };
978
1014
  /**
979
1015
  * The id of the item the price will be associated with.
980
1016
  */
@@ -1034,7 +1070,9 @@ export declare namespace PriceCreateParams {
1034
1070
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1035
1071
  * by setting `metadata` to `null`.
1036
1072
  */
1037
- metadata?: Record<string, string | null> | null;
1073
+ metadata?: {
1074
+ [key: string]: string | null;
1075
+ } | null;
1038
1076
  }
1039
1077
  interface NewFloatingMaxGroupTieredPackagePrice {
1040
1078
  /**
@@ -1049,7 +1087,9 @@ export declare namespace PriceCreateParams {
1049
1087
  * The id of the item the price will be associated with.
1050
1088
  */
1051
1089
  item_id: string;
1052
- max_group_tiered_package_config: Record<string, unknown>;
1090
+ max_group_tiered_package_config: {
1091
+ [key: string]: unknown;
1092
+ };
1053
1093
  model_type: 'max_group_tiered_package';
1054
1094
  /**
1055
1095
  * The name of the price.
@@ -1105,7 +1145,9 @@ export declare namespace PriceCreateParams {
1105
1145
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1106
1146
  * by setting `metadata` to `null`.
1107
1147
  */
1108
- metadata?: Record<string, string | null> | null;
1148
+ metadata?: {
1149
+ [key: string]: string | null;
1150
+ } | null;
1109
1151
  }
1110
1152
  interface NewFloatingTieredWithMinimumPrice {
1111
1153
  /**
@@ -1125,7 +1167,9 @@ export declare namespace PriceCreateParams {
1125
1167
  * The name of the price.
1126
1168
  */
1127
1169
  name: string;
1128
- tiered_with_minimum_config: Record<string, unknown>;
1170
+ tiered_with_minimum_config: {
1171
+ [key: string]: unknown;
1172
+ };
1129
1173
  /**
1130
1174
  * The id of the billable metric for the price. Only needed if the price is
1131
1175
  * usage-based.
@@ -1176,7 +1220,9 @@ export declare namespace PriceCreateParams {
1176
1220
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1177
1221
  * by setting `metadata` to `null`.
1178
1222
  */
1179
- metadata?: Record<string, string | null> | null;
1223
+ metadata?: {
1224
+ [key: string]: string | null;
1225
+ } | null;
1180
1226
  }
1181
1227
  interface NewFloatingPackageWithAllocationPrice {
1182
1228
  /**
@@ -1196,7 +1242,9 @@ export declare namespace PriceCreateParams {
1196
1242
  * The name of the price.
1197
1243
  */
1198
1244
  name: string;
1199
- package_with_allocation_config: Record<string, unknown>;
1245
+ package_with_allocation_config: {
1246
+ [key: string]: unknown;
1247
+ };
1200
1248
  /**
1201
1249
  * The id of the billable metric for the price. Only needed if the price is
1202
1250
  * usage-based.
@@ -1247,7 +1295,9 @@ export declare namespace PriceCreateParams {
1247
1295
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1248
1296
  * by setting `metadata` to `null`.
1249
1297
  */
1250
- metadata?: Record<string, string | null> | null;
1298
+ metadata?: {
1299
+ [key: string]: string | null;
1300
+ } | null;
1251
1301
  }
1252
1302
  interface NewFloatingTieredPackageWithMinimumPrice {
1253
1303
  /**
@@ -1267,7 +1317,9 @@ export declare namespace PriceCreateParams {
1267
1317
  * The name of the price.
1268
1318
  */
1269
1319
  name: string;
1270
- tiered_package_with_minimum_config: Record<string, unknown>;
1320
+ tiered_package_with_minimum_config: {
1321
+ [key: string]: unknown;
1322
+ };
1271
1323
  /**
1272
1324
  * The id of the billable metric for the price. Only needed if the price is
1273
1325
  * usage-based.
@@ -1318,7 +1370,9 @@ export declare namespace PriceCreateParams {
1318
1370
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1319
1371
  * by setting `metadata` to `null`.
1320
1372
  */
1321
- metadata?: Record<string, string | null> | null;
1373
+ metadata?: {
1374
+ [key: string]: string | null;
1375
+ } | null;
1322
1376
  }
1323
1377
  interface NewFloatingUnitWithPercentPrice {
1324
1378
  /**
@@ -1338,7 +1392,9 @@ export declare namespace PriceCreateParams {
1338
1392
  * The name of the price.
1339
1393
  */
1340
1394
  name: string;
1341
- unit_with_percent_config: Record<string, unknown>;
1395
+ unit_with_percent_config: {
1396
+ [key: string]: unknown;
1397
+ };
1342
1398
  /**
1343
1399
  * The id of the billable metric for the price. Only needed if the price is
1344
1400
  * usage-based.
@@ -1389,7 +1445,9 @@ export declare namespace PriceCreateParams {
1389
1445
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1390
1446
  * by setting `metadata` to `null`.
1391
1447
  */
1392
- metadata?: Record<string, string | null> | null;
1448
+ metadata?: {
1449
+ [key: string]: string | null;
1450
+ } | null;
1393
1451
  }
1394
1452
  interface NewFloatingTieredWithProrationPrice {
1395
1453
  /**
@@ -1409,7 +1467,9 @@ export declare namespace PriceCreateParams {
1409
1467
  * The name of the price.
1410
1468
  */
1411
1469
  name: string;
1412
- tiered_with_proration_config: Record<string, unknown>;
1470
+ tiered_with_proration_config: {
1471
+ [key: string]: unknown;
1472
+ };
1413
1473
  /**
1414
1474
  * The id of the billable metric for the price. Only needed if the price is
1415
1475
  * usage-based.
@@ -1460,7 +1520,9 @@ export declare namespace PriceCreateParams {
1460
1520
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1461
1521
  * by setting `metadata` to `null`.
1462
1522
  */
1463
- metadata?: Record<string, string | null> | null;
1523
+ metadata?: {
1524
+ [key: string]: string | null;
1525
+ } | null;
1464
1526
  }
1465
1527
  interface NewFloatingUnitWithProrationPrice {
1466
1528
  /**
@@ -1480,7 +1542,9 @@ export declare namespace PriceCreateParams {
1480
1542
  * The name of the price.
1481
1543
  */
1482
1544
  name: string;
1483
- unit_with_proration_config: Record<string, unknown>;
1545
+ unit_with_proration_config: {
1546
+ [key: string]: unknown;
1547
+ };
1484
1548
  /**
1485
1549
  * The id of the billable metric for the price. Only needed if the price is
1486
1550
  * usage-based.
@@ -1531,7 +1595,9 @@ export declare namespace PriceCreateParams {
1531
1595
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1532
1596
  * by setting `metadata` to `null`.
1533
1597
  */
1534
- metadata?: Record<string, string | null> | null;
1598
+ metadata?: {
1599
+ [key: string]: string | null;
1600
+ } | null;
1535
1601
  }
1536
1602
  interface NewFloatingGroupedAllocationPrice {
1537
1603
  /**
@@ -1542,7 +1608,9 @@ export declare namespace PriceCreateParams {
1542
1608
  * An ISO 4217 currency string for which this price is billed in.
1543
1609
  */
1544
1610
  currency: string;
1545
- grouped_allocation_config: Record<string, unknown>;
1611
+ grouped_allocation_config: {
1612
+ [key: string]: unknown;
1613
+ };
1546
1614
  /**
1547
1615
  * The id of the item the price will be associated with.
1548
1616
  */
@@ -1602,7 +1670,9 @@ export declare namespace PriceCreateParams {
1602
1670
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1603
1671
  * by setting `metadata` to `null`.
1604
1672
  */
1605
- metadata?: Record<string, string | null> | null;
1673
+ metadata?: {
1674
+ [key: string]: string | null;
1675
+ } | null;
1606
1676
  }
1607
1677
  interface NewFloatingGroupedWithProratedMinimumPrice {
1608
1678
  /**
@@ -1613,7 +1683,9 @@ export declare namespace PriceCreateParams {
1613
1683
  * An ISO 4217 currency string for which this price is billed in.
1614
1684
  */
1615
1685
  currency: string;
1616
- grouped_with_prorated_minimum_config: Record<string, unknown>;
1686
+ grouped_with_prorated_minimum_config: {
1687
+ [key: string]: unknown;
1688
+ };
1617
1689
  /**
1618
1690
  * The id of the item the price will be associated with.
1619
1691
  */
@@ -1673,7 +1745,9 @@ export declare namespace PriceCreateParams {
1673
1745
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1674
1746
  * by setting `metadata` to `null`.
1675
1747
  */
1676
- metadata?: Record<string, string | null> | null;
1748
+ metadata?: {
1749
+ [key: string]: string | null;
1750
+ } | null;
1677
1751
  }
1678
1752
  interface NewFloatingGroupedWithMeteredMinimumPrice {
1679
1753
  /**
@@ -1684,7 +1758,9 @@ export declare namespace PriceCreateParams {
1684
1758
  * An ISO 4217 currency string for which this price is billed in.
1685
1759
  */
1686
1760
  currency: string;
1687
- grouped_with_metered_minimum_config: Record<string, unknown>;
1761
+ grouped_with_metered_minimum_config: {
1762
+ [key: string]: unknown;
1763
+ };
1688
1764
  /**
1689
1765
  * The id of the item the price will be associated with.
1690
1766
  */
@@ -1744,7 +1820,9 @@ export declare namespace PriceCreateParams {
1744
1820
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1745
1821
  * by setting `metadata` to `null`.
1746
1822
  */
1747
- metadata?: Record<string, string | null> | null;
1823
+ metadata?: {
1824
+ [key: string]: string | null;
1825
+ } | null;
1748
1826
  }
1749
1827
  interface NewFloatingMatrixWithDisplayNamePrice {
1750
1828
  /**
@@ -1759,7 +1837,9 @@ export declare namespace PriceCreateParams {
1759
1837
  * The id of the item the price will be associated with.
1760
1838
  */
1761
1839
  item_id: string;
1762
- matrix_with_display_name_config: Record<string, unknown>;
1840
+ matrix_with_display_name_config: {
1841
+ [key: string]: unknown;
1842
+ };
1763
1843
  model_type: 'matrix_with_display_name';
1764
1844
  /**
1765
1845
  * The name of the price.
@@ -1815,10 +1895,14 @@ export declare namespace PriceCreateParams {
1815
1895
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1816
1896
  * by setting `metadata` to `null`.
1817
1897
  */
1818
- metadata?: Record<string, string | null> | null;
1898
+ metadata?: {
1899
+ [key: string]: string | null;
1900
+ } | null;
1819
1901
  }
1820
1902
  interface NewFloatingBulkWithProrationPrice {
1821
- bulk_with_proration_config: Record<string, unknown>;
1903
+ bulk_with_proration_config: {
1904
+ [key: string]: unknown;
1905
+ };
1822
1906
  /**
1823
1907
  * The cadence to bill for this price on.
1824
1908
  */
@@ -1886,7 +1970,9 @@ export declare namespace PriceCreateParams {
1886
1970
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1887
1971
  * by setting `metadata` to `null`.
1888
1972
  */
1889
- metadata?: Record<string, string | null> | null;
1973
+ metadata?: {
1974
+ [key: string]: string | null;
1975
+ } | null;
1890
1976
  }
1891
1977
  interface NewFloatingGroupedTieredPackagePrice {
1892
1978
  /**
@@ -1897,7 +1983,9 @@ export declare namespace PriceCreateParams {
1897
1983
  * An ISO 4217 currency string for which this price is billed in.
1898
1984
  */
1899
1985
  currency: string;
1900
- grouped_tiered_package_config: Record<string, unknown>;
1986
+ grouped_tiered_package_config: {
1987
+ [key: string]: unknown;
1988
+ };
1901
1989
  /**
1902
1990
  * The id of the item the price will be associated with.
1903
1991
  */
@@ -1957,7 +2045,9 @@ export declare namespace PriceCreateParams {
1957
2045
  * by setting the value to `null`, and the entire metadata mapping can be cleared
1958
2046
  * by setting `metadata` to `null`.
1959
2047
  */
1960
- metadata?: Record<string, string | null> | null;
2048
+ metadata?: {
2049
+ [key: string]: string | null;
2050
+ } | null;
1961
2051
  }
1962
2052
  interface NewFloatingScalableMatrixWithUnitPricingPrice {
1963
2053
  /**
@@ -1977,7 +2067,9 @@ export declare namespace PriceCreateParams {
1977
2067
  * The name of the price.
1978
2068
  */
1979
2069
  name: string;
1980
- scalable_matrix_with_unit_pricing_config: Record<string, unknown>;
2070
+ scalable_matrix_with_unit_pricing_config: {
2071
+ [key: string]: unknown;
2072
+ };
1981
2073
  /**
1982
2074
  * The id of the billable metric for the price. Only needed if the price is
1983
2075
  * usage-based.
@@ -2028,7 +2120,9 @@ export declare namespace PriceCreateParams {
2028
2120
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2029
2121
  * by setting `metadata` to `null`.
2030
2122
  */
2031
- metadata?: Record<string, string | null> | null;
2123
+ metadata?: {
2124
+ [key: string]: string | null;
2125
+ } | null;
2032
2126
  }
2033
2127
  interface NewFloatingScalableMatrixWithTieredPricingPrice {
2034
2128
  /**
@@ -2048,7 +2142,9 @@ export declare namespace PriceCreateParams {
2048
2142
  * The name of the price.
2049
2143
  */
2050
2144
  name: string;
2051
- scalable_matrix_with_tiered_pricing_config: Record<string, unknown>;
2145
+ scalable_matrix_with_tiered_pricing_config: {
2146
+ [key: string]: unknown;
2147
+ };
2052
2148
  /**
2053
2149
  * The id of the billable metric for the price. Only needed if the price is
2054
2150
  * usage-based.
@@ -2099,14 +2195,18 @@ export declare namespace PriceCreateParams {
2099
2195
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2100
2196
  * by setting `metadata` to `null`.
2101
2197
  */
2102
- metadata?: Record<string, string | null> | null;
2198
+ metadata?: {
2199
+ [key: string]: string | null;
2200
+ } | null;
2103
2201
  }
2104
2202
  interface NewFloatingCumulativeGroupedBulkPrice {
2105
2203
  /**
2106
2204
  * The cadence to bill for this price on.
2107
2205
  */
2108
2206
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
2109
- cumulative_grouped_bulk_config: Record<string, unknown>;
2207
+ cumulative_grouped_bulk_config: {
2208
+ [key: string]: unknown;
2209
+ };
2110
2210
  /**
2111
2211
  * An ISO 4217 currency string for which this price is billed in.
2112
2212
  */
@@ -2170,7 +2270,9 @@ export declare namespace PriceCreateParams {
2170
2270
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2171
2271
  * by setting `metadata` to `null`.
2172
2272
  */
2173
- metadata?: Record<string, string | null> | null;
2273
+ metadata?: {
2274
+ [key: string]: string | null;
2275
+ } | null;
2174
2276
  }
2175
2277
  }
2176
2278
  export interface PriceUpdateParams {
@@ -2179,7 +2281,9 @@ export interface PriceUpdateParams {
2179
2281
  * by setting the value to `null`, and the entire metadata mapping can be cleared
2180
2282
  * by setting `metadata` to `null`.
2181
2283
  */
2182
- metadata?: Record<string, string | null> | null;
2284
+ metadata?: {
2285
+ [key: string]: string | null;
2286
+ } | null;
2183
2287
  }
2184
2288
  export interface PriceListParams extends PageParams {
2185
2289
  }
@@ -2237,6 +2341,10 @@ export interface PriceEvaluateMultipleParams {
2237
2341
  }
2238
2342
  export declare namespace PriceEvaluateMultipleParams {
2239
2343
  interface PriceEvaluation {
2344
+ /**
2345
+ * The external ID of a price to evaluate that exists in your Orb account.
2346
+ */
2347
+ external_price_id?: string | null;
2240
2348
  /**
2241
2349
  * A boolean
2242
2350
  * [computed property](/extensibility/advanced-metrics#computed-properties) used to
@@ -2296,7 +2404,9 @@ export declare namespace PriceEvaluatePreviewEventsParams {
2296
2404
  * A dictionary of custom properties. Values in this dictionary must be numeric,
2297
2405
  * boolean, or strings. Nested dictionaries are disallowed.
2298
2406
  */
2299
- properties: Record<string, unknown>;
2407
+ properties: {
2408
+ [key: string]: unknown;
2409
+ };
2300
2410
  /**
2301
2411
  * An ISO 8601 format date with no timezone offset (i.e. UTC). This should
2302
2412
  * represent the time that usage was recorded, and is particularly important to
@@ -2314,6 +2424,10 @@ export declare namespace PriceEvaluatePreviewEventsParams {
2314
2424
  external_customer_id?: string | null;
2315
2425
  }
2316
2426
  interface PriceEvaluation {
2427
+ /**
2428
+ * The external ID of a price to evaluate that exists in your Orb account.
2429
+ */
2430
+ external_price_id?: string | null;
2317
2431
  /**
2318
2432
  * A boolean
2319
2433
  * [computed property](/extensibility/advanced-metrics#computed-properties) used to