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.
- package/CHANGELOG.md +47 -0
- package/core.d.ts +7 -4
- package/core.d.ts.map +1 -1
- package/core.js +16 -9
- package/core.js.map +1 -1
- package/core.mjs +16 -9
- package/core.mjs.map +1 -1
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/index.mjs +6 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/credit-notes.d.ts +54 -0
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +25 -0
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +25 -0
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/costs.d.ts +18 -18
- package/resources/customers/credits/ledger.d.ts +75 -29
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/customers.d.ts +12 -4
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +6 -2
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -1
- package/resources/events/backfills.d.ts +2 -2
- package/resources/events/events.d.ts +9 -3
- package/resources/events/events.d.ts.map +1 -1
- package/resources/invoice-line-items.d.ts +3 -0
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +13 -4
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +9 -3
- package/resources/items.d.ts.map +1 -1
- package/resources/metrics.d.ts +9 -3
- package/resources/metrics.d.ts.map +1 -1
- package/resources/plans/external-plan-id.d.ts +3 -1
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/plans.d.ts +62 -4
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +3 -1
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/prices.d.ts +163 -49
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +768 -143
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscription-changes.d.ts +6 -4
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscriptions.d.ts +159 -59
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +1 -1
- package/resources/subscriptions.mjs +1 -1
- package/src/core.ts +17 -8
- package/src/index.ts +10 -0
- package/src/resource.ts +1 -1
- package/src/resources/credit-notes.ts +58 -0
- package/src/resources/customers/costs.ts +18 -18
- package/src/resources/customers/credits/ledger.ts +45 -31
- package/src/resources/customers/customers.ts +4 -4
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +2 -2
- package/src/resources/events/backfills.ts +2 -2
- package/src/resources/events/events.ts +3 -3
- package/src/resources/invoice-line-items.ts +3 -0
- package/src/resources/invoices.ts +7 -4
- package/src/resources/items.ts +3 -3
- package/src/resources/metrics.ts +3 -3
- package/src/resources/plans/external-plan-id.ts +1 -1
- package/src/resources/plans/plans.ts +101 -33
- package/src/resources/prices/external-price-id.ts +1 -1
- package/src/resources/prices/prices.ts +69 -49
- package/src/resources/shared.ts +552 -143
- package/src/resources/subscription-changes.ts +4 -4
- package/src/resources/subscriptions.ts +59 -59
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -203,6 +203,11 @@ export namespace PriceEvaluateMultipleResponse {
|
|
|
203
203
|
*/
|
|
204
204
|
price_groups: Array<PricesAPI.EvaluatePriceGroup>;
|
|
205
205
|
|
|
206
|
+
/**
|
|
207
|
+
* The external ID of the price
|
|
208
|
+
*/
|
|
209
|
+
external_price_id?: string | null;
|
|
210
|
+
|
|
206
211
|
/**
|
|
207
212
|
* The index of the inline price
|
|
208
213
|
*/
|
|
@@ -231,6 +236,11 @@ export namespace PriceEvaluatePreviewEventsResponse {
|
|
|
231
236
|
*/
|
|
232
237
|
price_groups: Array<PricesAPI.EvaluatePriceGroup>;
|
|
233
238
|
|
|
239
|
+
/**
|
|
240
|
+
* The external ID of the price
|
|
241
|
+
*/
|
|
242
|
+
external_price_id?: string | null;
|
|
243
|
+
|
|
234
244
|
/**
|
|
235
245
|
* The index of the inline price
|
|
236
246
|
*/
|
|
@@ -359,7 +369,7 @@ export declare namespace PriceCreateParams {
|
|
|
359
369
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
360
370
|
* by setting `metadata` to `null`.
|
|
361
371
|
*/
|
|
362
|
-
metadata?:
|
|
372
|
+
metadata?: { [key: string]: string | null } | null;
|
|
363
373
|
}
|
|
364
374
|
|
|
365
375
|
export interface NewFloatingPackagePrice {
|
|
@@ -447,7 +457,7 @@ export declare namespace PriceCreateParams {
|
|
|
447
457
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
448
458
|
* by setting `metadata` to `null`.
|
|
449
459
|
*/
|
|
450
|
-
metadata?:
|
|
460
|
+
metadata?: { [key: string]: string | null } | null;
|
|
451
461
|
}
|
|
452
462
|
|
|
453
463
|
export interface NewFloatingMatrixPrice {
|
|
@@ -535,7 +545,7 @@ export declare namespace PriceCreateParams {
|
|
|
535
545
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
536
546
|
* by setting `metadata` to `null`.
|
|
537
547
|
*/
|
|
538
|
-
metadata?:
|
|
548
|
+
metadata?: { [key: string]: string | null } | null;
|
|
539
549
|
}
|
|
540
550
|
|
|
541
551
|
export interface NewFloatingMatrixWithAllocationPrice {
|
|
@@ -623,7 +633,7 @@ export declare namespace PriceCreateParams {
|
|
|
623
633
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
624
634
|
* by setting `metadata` to `null`.
|
|
625
635
|
*/
|
|
626
|
-
metadata?:
|
|
636
|
+
metadata?: { [key: string]: string | null } | null;
|
|
627
637
|
}
|
|
628
638
|
|
|
629
639
|
export interface NewFloatingTieredPrice {
|
|
@@ -711,7 +721,7 @@ export declare namespace PriceCreateParams {
|
|
|
711
721
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
712
722
|
* by setting `metadata` to `null`.
|
|
713
723
|
*/
|
|
714
|
-
metadata?:
|
|
724
|
+
metadata?: { [key: string]: string | null } | null;
|
|
715
725
|
}
|
|
716
726
|
|
|
717
727
|
export interface NewFloatingTieredBPSPrice {
|
|
@@ -799,7 +809,7 @@ export declare namespace PriceCreateParams {
|
|
|
799
809
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
800
810
|
* by setting `metadata` to `null`.
|
|
801
811
|
*/
|
|
802
|
-
metadata?:
|
|
812
|
+
metadata?: { [key: string]: string | null } | null;
|
|
803
813
|
}
|
|
804
814
|
|
|
805
815
|
export interface NewFloatingBPSPrice {
|
|
@@ -887,7 +897,7 @@ export declare namespace PriceCreateParams {
|
|
|
887
897
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
888
898
|
* by setting `metadata` to `null`.
|
|
889
899
|
*/
|
|
890
|
-
metadata?:
|
|
900
|
+
metadata?: { [key: string]: string | null } | null;
|
|
891
901
|
}
|
|
892
902
|
|
|
893
903
|
export interface NewFloatingBulkBPSPrice {
|
|
@@ -975,7 +985,7 @@ export declare namespace PriceCreateParams {
|
|
|
975
985
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
976
986
|
* by setting `metadata` to `null`.
|
|
977
987
|
*/
|
|
978
|
-
metadata?:
|
|
988
|
+
metadata?: { [key: string]: string | null } | null;
|
|
979
989
|
}
|
|
980
990
|
|
|
981
991
|
export interface NewFloatingBulkPrice {
|
|
@@ -1063,7 +1073,7 @@ export declare namespace PriceCreateParams {
|
|
|
1063
1073
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1064
1074
|
* by setting `metadata` to `null`.
|
|
1065
1075
|
*/
|
|
1066
|
-
metadata?:
|
|
1076
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1067
1077
|
}
|
|
1068
1078
|
|
|
1069
1079
|
export interface NewFloatingThresholdTotalAmountPrice {
|
|
@@ -1089,7 +1099,7 @@ export declare namespace PriceCreateParams {
|
|
|
1089
1099
|
*/
|
|
1090
1100
|
name: string;
|
|
1091
1101
|
|
|
1092
|
-
threshold_total_amount_config:
|
|
1102
|
+
threshold_total_amount_config: { [key: string]: unknown };
|
|
1093
1103
|
|
|
1094
1104
|
/**
|
|
1095
1105
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1151,7 +1161,7 @@ export declare namespace PriceCreateParams {
|
|
|
1151
1161
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1152
1162
|
* by setting `metadata` to `null`.
|
|
1153
1163
|
*/
|
|
1154
|
-
metadata?:
|
|
1164
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1155
1165
|
}
|
|
1156
1166
|
|
|
1157
1167
|
export interface NewFloatingTieredPackagePrice {
|
|
@@ -1177,7 +1187,7 @@ export declare namespace PriceCreateParams {
|
|
|
1177
1187
|
*/
|
|
1178
1188
|
name: string;
|
|
1179
1189
|
|
|
1180
|
-
tiered_package_config:
|
|
1190
|
+
tiered_package_config: { [key: string]: unknown };
|
|
1181
1191
|
|
|
1182
1192
|
/**
|
|
1183
1193
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1239,7 +1249,7 @@ export declare namespace PriceCreateParams {
|
|
|
1239
1249
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1240
1250
|
* by setting `metadata` to `null`.
|
|
1241
1251
|
*/
|
|
1242
|
-
metadata?:
|
|
1252
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1243
1253
|
}
|
|
1244
1254
|
|
|
1245
1255
|
export interface NewFloatingGroupedTieredPrice {
|
|
@@ -1253,7 +1263,7 @@ export declare namespace PriceCreateParams {
|
|
|
1253
1263
|
*/
|
|
1254
1264
|
currency: string;
|
|
1255
1265
|
|
|
1256
|
-
grouped_tiered_config:
|
|
1266
|
+
grouped_tiered_config: { [key: string]: unknown };
|
|
1257
1267
|
|
|
1258
1268
|
/**
|
|
1259
1269
|
* The id of the item the price will be associated with.
|
|
@@ -1327,7 +1337,7 @@ export declare namespace PriceCreateParams {
|
|
|
1327
1337
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1328
1338
|
* by setting `metadata` to `null`.
|
|
1329
1339
|
*/
|
|
1330
|
-
metadata?:
|
|
1340
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1331
1341
|
}
|
|
1332
1342
|
|
|
1333
1343
|
export interface NewFloatingMaxGroupTieredPackagePrice {
|
|
@@ -1346,7 +1356,7 @@ export declare namespace PriceCreateParams {
|
|
|
1346
1356
|
*/
|
|
1347
1357
|
item_id: string;
|
|
1348
1358
|
|
|
1349
|
-
max_group_tiered_package_config:
|
|
1359
|
+
max_group_tiered_package_config: { [key: string]: unknown };
|
|
1350
1360
|
|
|
1351
1361
|
model_type: 'max_group_tiered_package';
|
|
1352
1362
|
|
|
@@ -1415,7 +1425,7 @@ export declare namespace PriceCreateParams {
|
|
|
1415
1425
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1416
1426
|
* by setting `metadata` to `null`.
|
|
1417
1427
|
*/
|
|
1418
|
-
metadata?:
|
|
1428
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1419
1429
|
}
|
|
1420
1430
|
|
|
1421
1431
|
export interface NewFloatingTieredWithMinimumPrice {
|
|
@@ -1441,7 +1451,7 @@ export declare namespace PriceCreateParams {
|
|
|
1441
1451
|
*/
|
|
1442
1452
|
name: string;
|
|
1443
1453
|
|
|
1444
|
-
tiered_with_minimum_config:
|
|
1454
|
+
tiered_with_minimum_config: { [key: string]: unknown };
|
|
1445
1455
|
|
|
1446
1456
|
/**
|
|
1447
1457
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1503,7 +1513,7 @@ export declare namespace PriceCreateParams {
|
|
|
1503
1513
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1504
1514
|
* by setting `metadata` to `null`.
|
|
1505
1515
|
*/
|
|
1506
|
-
metadata?:
|
|
1516
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1507
1517
|
}
|
|
1508
1518
|
|
|
1509
1519
|
export interface NewFloatingPackageWithAllocationPrice {
|
|
@@ -1529,7 +1539,7 @@ export declare namespace PriceCreateParams {
|
|
|
1529
1539
|
*/
|
|
1530
1540
|
name: string;
|
|
1531
1541
|
|
|
1532
|
-
package_with_allocation_config:
|
|
1542
|
+
package_with_allocation_config: { [key: string]: unknown };
|
|
1533
1543
|
|
|
1534
1544
|
/**
|
|
1535
1545
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1591,7 +1601,7 @@ export declare namespace PriceCreateParams {
|
|
|
1591
1601
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1592
1602
|
* by setting `metadata` to `null`.
|
|
1593
1603
|
*/
|
|
1594
|
-
metadata?:
|
|
1604
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1595
1605
|
}
|
|
1596
1606
|
|
|
1597
1607
|
export interface NewFloatingTieredPackageWithMinimumPrice {
|
|
@@ -1617,7 +1627,7 @@ export declare namespace PriceCreateParams {
|
|
|
1617
1627
|
*/
|
|
1618
1628
|
name: string;
|
|
1619
1629
|
|
|
1620
|
-
tiered_package_with_minimum_config:
|
|
1630
|
+
tiered_package_with_minimum_config: { [key: string]: unknown };
|
|
1621
1631
|
|
|
1622
1632
|
/**
|
|
1623
1633
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1679,7 +1689,7 @@ export declare namespace PriceCreateParams {
|
|
|
1679
1689
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1680
1690
|
* by setting `metadata` to `null`.
|
|
1681
1691
|
*/
|
|
1682
|
-
metadata?:
|
|
1692
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1683
1693
|
}
|
|
1684
1694
|
|
|
1685
1695
|
export interface NewFloatingUnitWithPercentPrice {
|
|
@@ -1705,7 +1715,7 @@ export declare namespace PriceCreateParams {
|
|
|
1705
1715
|
*/
|
|
1706
1716
|
name: string;
|
|
1707
1717
|
|
|
1708
|
-
unit_with_percent_config:
|
|
1718
|
+
unit_with_percent_config: { [key: string]: unknown };
|
|
1709
1719
|
|
|
1710
1720
|
/**
|
|
1711
1721
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1767,7 +1777,7 @@ export declare namespace PriceCreateParams {
|
|
|
1767
1777
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1768
1778
|
* by setting `metadata` to `null`.
|
|
1769
1779
|
*/
|
|
1770
|
-
metadata?:
|
|
1780
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1771
1781
|
}
|
|
1772
1782
|
|
|
1773
1783
|
export interface NewFloatingTieredWithProrationPrice {
|
|
@@ -1793,7 +1803,7 @@ export declare namespace PriceCreateParams {
|
|
|
1793
1803
|
*/
|
|
1794
1804
|
name: string;
|
|
1795
1805
|
|
|
1796
|
-
tiered_with_proration_config:
|
|
1806
|
+
tiered_with_proration_config: { [key: string]: unknown };
|
|
1797
1807
|
|
|
1798
1808
|
/**
|
|
1799
1809
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1855,7 +1865,7 @@ export declare namespace PriceCreateParams {
|
|
|
1855
1865
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1856
1866
|
* by setting `metadata` to `null`.
|
|
1857
1867
|
*/
|
|
1858
|
-
metadata?:
|
|
1868
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1859
1869
|
}
|
|
1860
1870
|
|
|
1861
1871
|
export interface NewFloatingUnitWithProrationPrice {
|
|
@@ -1881,7 +1891,7 @@ export declare namespace PriceCreateParams {
|
|
|
1881
1891
|
*/
|
|
1882
1892
|
name: string;
|
|
1883
1893
|
|
|
1884
|
-
unit_with_proration_config:
|
|
1894
|
+
unit_with_proration_config: { [key: string]: unknown };
|
|
1885
1895
|
|
|
1886
1896
|
/**
|
|
1887
1897
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -1943,7 +1953,7 @@ export declare namespace PriceCreateParams {
|
|
|
1943
1953
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1944
1954
|
* by setting `metadata` to `null`.
|
|
1945
1955
|
*/
|
|
1946
|
-
metadata?:
|
|
1956
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1947
1957
|
}
|
|
1948
1958
|
|
|
1949
1959
|
export interface NewFloatingGroupedAllocationPrice {
|
|
@@ -1957,7 +1967,7 @@ export declare namespace PriceCreateParams {
|
|
|
1957
1967
|
*/
|
|
1958
1968
|
currency: string;
|
|
1959
1969
|
|
|
1960
|
-
grouped_allocation_config:
|
|
1970
|
+
grouped_allocation_config: { [key: string]: unknown };
|
|
1961
1971
|
|
|
1962
1972
|
/**
|
|
1963
1973
|
* The id of the item the price will be associated with.
|
|
@@ -2031,7 +2041,7 @@ export declare namespace PriceCreateParams {
|
|
|
2031
2041
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2032
2042
|
* by setting `metadata` to `null`.
|
|
2033
2043
|
*/
|
|
2034
|
-
metadata?:
|
|
2044
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2035
2045
|
}
|
|
2036
2046
|
|
|
2037
2047
|
export interface NewFloatingGroupedWithProratedMinimumPrice {
|
|
@@ -2045,7 +2055,7 @@ export declare namespace PriceCreateParams {
|
|
|
2045
2055
|
*/
|
|
2046
2056
|
currency: string;
|
|
2047
2057
|
|
|
2048
|
-
grouped_with_prorated_minimum_config:
|
|
2058
|
+
grouped_with_prorated_minimum_config: { [key: string]: unknown };
|
|
2049
2059
|
|
|
2050
2060
|
/**
|
|
2051
2061
|
* The id of the item the price will be associated with.
|
|
@@ -2119,7 +2129,7 @@ export declare namespace PriceCreateParams {
|
|
|
2119
2129
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2120
2130
|
* by setting `metadata` to `null`.
|
|
2121
2131
|
*/
|
|
2122
|
-
metadata?:
|
|
2132
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2123
2133
|
}
|
|
2124
2134
|
|
|
2125
2135
|
export interface NewFloatingGroupedWithMeteredMinimumPrice {
|
|
@@ -2133,7 +2143,7 @@ export declare namespace PriceCreateParams {
|
|
|
2133
2143
|
*/
|
|
2134
2144
|
currency: string;
|
|
2135
2145
|
|
|
2136
|
-
grouped_with_metered_minimum_config:
|
|
2146
|
+
grouped_with_metered_minimum_config: { [key: string]: unknown };
|
|
2137
2147
|
|
|
2138
2148
|
/**
|
|
2139
2149
|
* The id of the item the price will be associated with.
|
|
@@ -2207,7 +2217,7 @@ export declare namespace PriceCreateParams {
|
|
|
2207
2217
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2208
2218
|
* by setting `metadata` to `null`.
|
|
2209
2219
|
*/
|
|
2210
|
-
metadata?:
|
|
2220
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2211
2221
|
}
|
|
2212
2222
|
|
|
2213
2223
|
export interface NewFloatingMatrixWithDisplayNamePrice {
|
|
@@ -2226,7 +2236,7 @@ export declare namespace PriceCreateParams {
|
|
|
2226
2236
|
*/
|
|
2227
2237
|
item_id: string;
|
|
2228
2238
|
|
|
2229
|
-
matrix_with_display_name_config:
|
|
2239
|
+
matrix_with_display_name_config: { [key: string]: unknown };
|
|
2230
2240
|
|
|
2231
2241
|
model_type: 'matrix_with_display_name';
|
|
2232
2242
|
|
|
@@ -2295,11 +2305,11 @@ export declare namespace PriceCreateParams {
|
|
|
2295
2305
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2296
2306
|
* by setting `metadata` to `null`.
|
|
2297
2307
|
*/
|
|
2298
|
-
metadata?:
|
|
2308
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2299
2309
|
}
|
|
2300
2310
|
|
|
2301
2311
|
export interface NewFloatingBulkWithProrationPrice {
|
|
2302
|
-
bulk_with_proration_config:
|
|
2312
|
+
bulk_with_proration_config: { [key: string]: unknown };
|
|
2303
2313
|
|
|
2304
2314
|
/**
|
|
2305
2315
|
* The cadence to bill for this price on.
|
|
@@ -2383,7 +2393,7 @@ export declare namespace PriceCreateParams {
|
|
|
2383
2393
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2384
2394
|
* by setting `metadata` to `null`.
|
|
2385
2395
|
*/
|
|
2386
|
-
metadata?:
|
|
2396
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2387
2397
|
}
|
|
2388
2398
|
|
|
2389
2399
|
export interface NewFloatingGroupedTieredPackagePrice {
|
|
@@ -2397,7 +2407,7 @@ export declare namespace PriceCreateParams {
|
|
|
2397
2407
|
*/
|
|
2398
2408
|
currency: string;
|
|
2399
2409
|
|
|
2400
|
-
grouped_tiered_package_config:
|
|
2410
|
+
grouped_tiered_package_config: { [key: string]: unknown };
|
|
2401
2411
|
|
|
2402
2412
|
/**
|
|
2403
2413
|
* The id of the item the price will be associated with.
|
|
@@ -2471,7 +2481,7 @@ export declare namespace PriceCreateParams {
|
|
|
2471
2481
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2472
2482
|
* by setting `metadata` to `null`.
|
|
2473
2483
|
*/
|
|
2474
|
-
metadata?:
|
|
2484
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2475
2485
|
}
|
|
2476
2486
|
|
|
2477
2487
|
export interface NewFloatingScalableMatrixWithUnitPricingPrice {
|
|
@@ -2497,7 +2507,7 @@ export declare namespace PriceCreateParams {
|
|
|
2497
2507
|
*/
|
|
2498
2508
|
name: string;
|
|
2499
2509
|
|
|
2500
|
-
scalable_matrix_with_unit_pricing_config:
|
|
2510
|
+
scalable_matrix_with_unit_pricing_config: { [key: string]: unknown };
|
|
2501
2511
|
|
|
2502
2512
|
/**
|
|
2503
2513
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2559,7 +2569,7 @@ export declare namespace PriceCreateParams {
|
|
|
2559
2569
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2560
2570
|
* by setting `metadata` to `null`.
|
|
2561
2571
|
*/
|
|
2562
|
-
metadata?:
|
|
2572
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2563
2573
|
}
|
|
2564
2574
|
|
|
2565
2575
|
export interface NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
@@ -2585,7 +2595,7 @@ export declare namespace PriceCreateParams {
|
|
|
2585
2595
|
*/
|
|
2586
2596
|
name: string;
|
|
2587
2597
|
|
|
2588
|
-
scalable_matrix_with_tiered_pricing_config:
|
|
2598
|
+
scalable_matrix_with_tiered_pricing_config: { [key: string]: unknown };
|
|
2589
2599
|
|
|
2590
2600
|
/**
|
|
2591
2601
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2647,7 +2657,7 @@ export declare namespace PriceCreateParams {
|
|
|
2647
2657
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2648
2658
|
* by setting `metadata` to `null`.
|
|
2649
2659
|
*/
|
|
2650
|
-
metadata?:
|
|
2660
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2651
2661
|
}
|
|
2652
2662
|
|
|
2653
2663
|
export interface NewFloatingCumulativeGroupedBulkPrice {
|
|
@@ -2656,7 +2666,7 @@ export declare namespace PriceCreateParams {
|
|
|
2656
2666
|
*/
|
|
2657
2667
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
2658
2668
|
|
|
2659
|
-
cumulative_grouped_bulk_config:
|
|
2669
|
+
cumulative_grouped_bulk_config: { [key: string]: unknown };
|
|
2660
2670
|
|
|
2661
2671
|
/**
|
|
2662
2672
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2735,7 +2745,7 @@ export declare namespace PriceCreateParams {
|
|
|
2735
2745
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2736
2746
|
* by setting `metadata` to `null`.
|
|
2737
2747
|
*/
|
|
2738
|
-
metadata?:
|
|
2748
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2739
2749
|
}
|
|
2740
2750
|
}
|
|
2741
2751
|
|
|
@@ -2745,7 +2755,7 @@ export interface PriceUpdateParams {
|
|
|
2745
2755
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2746
2756
|
* by setting `metadata` to `null`.
|
|
2747
2757
|
*/
|
|
2748
|
-
metadata?:
|
|
2758
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2749
2759
|
}
|
|
2750
2760
|
|
|
2751
2761
|
export interface PriceListParams extends PageParams {}
|
|
@@ -2815,6 +2825,11 @@ export interface PriceEvaluateMultipleParams {
|
|
|
2815
2825
|
|
|
2816
2826
|
export namespace PriceEvaluateMultipleParams {
|
|
2817
2827
|
export interface PriceEvaluation {
|
|
2828
|
+
/**
|
|
2829
|
+
* The external ID of a price to evaluate that exists in your Orb account.
|
|
2830
|
+
*/
|
|
2831
|
+
external_price_id?: string | null;
|
|
2832
|
+
|
|
2818
2833
|
/**
|
|
2819
2834
|
* A boolean
|
|
2820
2835
|
* [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
@@ -2914,7 +2929,7 @@ export namespace PriceEvaluatePreviewEventsParams {
|
|
|
2914
2929
|
* A dictionary of custom properties. Values in this dictionary must be numeric,
|
|
2915
2930
|
* boolean, or strings. Nested dictionaries are disallowed.
|
|
2916
2931
|
*/
|
|
2917
|
-
properties:
|
|
2932
|
+
properties: { [key: string]: unknown };
|
|
2918
2933
|
|
|
2919
2934
|
/**
|
|
2920
2935
|
* An ISO 8601 format date with no timezone offset (i.e. UTC). This should
|
|
@@ -2936,6 +2951,11 @@ export namespace PriceEvaluatePreviewEventsParams {
|
|
|
2936
2951
|
}
|
|
2937
2952
|
|
|
2938
2953
|
export interface PriceEvaluation {
|
|
2954
|
+
/**
|
|
2955
|
+
* The external ID of a price to evaluate that exists in your Orb account.
|
|
2956
|
+
*/
|
|
2957
|
+
external_price_id?: string | null;
|
|
2958
|
+
|
|
2939
2959
|
/**
|
|
2940
2960
|
* A boolean
|
|
2941
2961
|
* [computed property](/extensibility/advanced-metrics#computed-properties) used to
|