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.
- package/CHANGELOG.md +39 -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 +16 -16
- 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 +158 -58
- 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 +16 -16
- 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 +58 -58
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -263,7 +263,7 @@ export declare class Subscriptions extends APIResource {
|
|
|
263
263
|
* is hit. To enable threshold billing, pass in an `invoicing_threshold`, which is
|
|
264
264
|
* specified in the subscription's invoicing currency, when creating a
|
|
265
265
|
* subscription. E.g. pass in `10.00` to issue an invoice when usage amounts hit
|
|
266
|
-
*
|
|
266
|
+
* \$10.00 for a subscription that invoices in USD.
|
|
267
267
|
*/
|
|
268
268
|
create(body: SubscriptionCreateParams, options?: Core.RequestOptions): Core.APIPromise<SubscriptionChangesAPI.MutatedSubscription>;
|
|
269
269
|
/**
|
|
@@ -996,7 +996,9 @@ export interface NewSubscriptionBPSPrice {
|
|
|
996
996
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
997
997
|
* by setting `metadata` to `null`.
|
|
998
998
|
*/
|
|
999
|
-
metadata?:
|
|
999
|
+
metadata?: {
|
|
1000
|
+
[key: string]: string | null;
|
|
1001
|
+
} | null;
|
|
1000
1002
|
/**
|
|
1001
1003
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1002
1004
|
* in the same API call.
|
|
@@ -1073,7 +1075,9 @@ export interface NewSubscriptionBulkBPSPrice {
|
|
|
1073
1075
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1074
1076
|
* by setting `metadata` to `null`.
|
|
1075
1077
|
*/
|
|
1076
|
-
metadata?:
|
|
1078
|
+
metadata?: {
|
|
1079
|
+
[key: string]: string | null;
|
|
1080
|
+
} | null;
|
|
1077
1081
|
/**
|
|
1078
1082
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1079
1083
|
* in the same API call.
|
|
@@ -1150,7 +1154,9 @@ export interface NewSubscriptionBulkPrice {
|
|
|
1150
1154
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1151
1155
|
* by setting `metadata` to `null`.
|
|
1152
1156
|
*/
|
|
1153
|
-
metadata?:
|
|
1157
|
+
metadata?: {
|
|
1158
|
+
[key: string]: string | null;
|
|
1159
|
+
} | null;
|
|
1154
1160
|
/**
|
|
1155
1161
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1156
1162
|
* in the same API call.
|
|
@@ -1158,7 +1164,9 @@ export interface NewSubscriptionBulkPrice {
|
|
|
1158
1164
|
reference_id?: string | null;
|
|
1159
1165
|
}
|
|
1160
1166
|
export interface NewSubscriptionBulkWithProrationPrice {
|
|
1161
|
-
bulk_with_proration_config:
|
|
1167
|
+
bulk_with_proration_config: {
|
|
1168
|
+
[key: string]: unknown;
|
|
1169
|
+
};
|
|
1162
1170
|
/**
|
|
1163
1171
|
* The cadence to bill for this price on.
|
|
1164
1172
|
*/
|
|
@@ -1227,7 +1235,9 @@ export interface NewSubscriptionBulkWithProrationPrice {
|
|
|
1227
1235
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1228
1236
|
* by setting `metadata` to `null`.
|
|
1229
1237
|
*/
|
|
1230
|
-
metadata?:
|
|
1238
|
+
metadata?: {
|
|
1239
|
+
[key: string]: string | null;
|
|
1240
|
+
} | null;
|
|
1231
1241
|
/**
|
|
1232
1242
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1233
1243
|
* in the same API call.
|
|
@@ -1239,7 +1249,9 @@ export interface NewSubscriptionCumulativeGroupedBulkPrice {
|
|
|
1239
1249
|
* The cadence to bill for this price on.
|
|
1240
1250
|
*/
|
|
1241
1251
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1242
|
-
cumulative_grouped_bulk_config:
|
|
1252
|
+
cumulative_grouped_bulk_config: {
|
|
1253
|
+
[key: string]: unknown;
|
|
1254
|
+
};
|
|
1243
1255
|
/**
|
|
1244
1256
|
* The id of the item the price will be associated with.
|
|
1245
1257
|
*/
|
|
@@ -1304,7 +1316,9 @@ export interface NewSubscriptionCumulativeGroupedBulkPrice {
|
|
|
1304
1316
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1305
1317
|
* by setting `metadata` to `null`.
|
|
1306
1318
|
*/
|
|
1307
|
-
metadata?:
|
|
1319
|
+
metadata?: {
|
|
1320
|
+
[key: string]: string | null;
|
|
1321
|
+
} | null;
|
|
1308
1322
|
/**
|
|
1309
1323
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1310
1324
|
* in the same API call.
|
|
@@ -1316,7 +1330,9 @@ export interface NewSubscriptionGroupedAllocationPrice {
|
|
|
1316
1330
|
* The cadence to bill for this price on.
|
|
1317
1331
|
*/
|
|
1318
1332
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1319
|
-
grouped_allocation_config:
|
|
1333
|
+
grouped_allocation_config: {
|
|
1334
|
+
[key: string]: unknown;
|
|
1335
|
+
};
|
|
1320
1336
|
/**
|
|
1321
1337
|
* The id of the item the price will be associated with.
|
|
1322
1338
|
*/
|
|
@@ -1381,7 +1397,9 @@ export interface NewSubscriptionGroupedAllocationPrice {
|
|
|
1381
1397
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1382
1398
|
* by setting `metadata` to `null`.
|
|
1383
1399
|
*/
|
|
1384
|
-
metadata?:
|
|
1400
|
+
metadata?: {
|
|
1401
|
+
[key: string]: string | null;
|
|
1402
|
+
} | null;
|
|
1385
1403
|
/**
|
|
1386
1404
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1387
1405
|
* in the same API call.
|
|
@@ -1393,7 +1411,9 @@ export interface NewSubscriptionGroupedTieredPackagePrice {
|
|
|
1393
1411
|
* The cadence to bill for this price on.
|
|
1394
1412
|
*/
|
|
1395
1413
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1396
|
-
grouped_tiered_package_config:
|
|
1414
|
+
grouped_tiered_package_config: {
|
|
1415
|
+
[key: string]: unknown;
|
|
1416
|
+
};
|
|
1397
1417
|
/**
|
|
1398
1418
|
* The id of the item the price will be associated with.
|
|
1399
1419
|
*/
|
|
@@ -1458,7 +1478,9 @@ export interface NewSubscriptionGroupedTieredPackagePrice {
|
|
|
1458
1478
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1459
1479
|
* by setting `metadata` to `null`.
|
|
1460
1480
|
*/
|
|
1461
|
-
metadata?:
|
|
1481
|
+
metadata?: {
|
|
1482
|
+
[key: string]: string | null;
|
|
1483
|
+
} | null;
|
|
1462
1484
|
/**
|
|
1463
1485
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1464
1486
|
* in the same API call.
|
|
@@ -1470,7 +1492,9 @@ export interface NewSubscriptionGroupedTieredPrice {
|
|
|
1470
1492
|
* The cadence to bill for this price on.
|
|
1471
1493
|
*/
|
|
1472
1494
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1473
|
-
grouped_tiered_config:
|
|
1495
|
+
grouped_tiered_config: {
|
|
1496
|
+
[key: string]: unknown;
|
|
1497
|
+
};
|
|
1474
1498
|
/**
|
|
1475
1499
|
* The id of the item the price will be associated with.
|
|
1476
1500
|
*/
|
|
@@ -1535,7 +1559,9 @@ export interface NewSubscriptionGroupedTieredPrice {
|
|
|
1535
1559
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1536
1560
|
* by setting `metadata` to `null`.
|
|
1537
1561
|
*/
|
|
1538
|
-
metadata?:
|
|
1562
|
+
metadata?: {
|
|
1563
|
+
[key: string]: string | null;
|
|
1564
|
+
} | null;
|
|
1539
1565
|
/**
|
|
1540
1566
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1541
1567
|
* in the same API call.
|
|
@@ -1547,7 +1573,9 @@ export interface NewSubscriptionGroupedWithMeteredMinimumPrice {
|
|
|
1547
1573
|
* The cadence to bill for this price on.
|
|
1548
1574
|
*/
|
|
1549
1575
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1550
|
-
grouped_with_metered_minimum_config:
|
|
1576
|
+
grouped_with_metered_minimum_config: {
|
|
1577
|
+
[key: string]: unknown;
|
|
1578
|
+
};
|
|
1551
1579
|
/**
|
|
1552
1580
|
* The id of the item the price will be associated with.
|
|
1553
1581
|
*/
|
|
@@ -1612,7 +1640,9 @@ export interface NewSubscriptionGroupedWithMeteredMinimumPrice {
|
|
|
1612
1640
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1613
1641
|
* by setting `metadata` to `null`.
|
|
1614
1642
|
*/
|
|
1615
|
-
metadata?:
|
|
1643
|
+
metadata?: {
|
|
1644
|
+
[key: string]: string | null;
|
|
1645
|
+
} | null;
|
|
1616
1646
|
/**
|
|
1617
1647
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1618
1648
|
* in the same API call.
|
|
@@ -1624,7 +1654,9 @@ export interface NewSubscriptionGroupedWithProratedMinimumPrice {
|
|
|
1624
1654
|
* The cadence to bill for this price on.
|
|
1625
1655
|
*/
|
|
1626
1656
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1627
|
-
grouped_with_prorated_minimum_config:
|
|
1657
|
+
grouped_with_prorated_minimum_config: {
|
|
1658
|
+
[key: string]: unknown;
|
|
1659
|
+
};
|
|
1628
1660
|
/**
|
|
1629
1661
|
* The id of the item the price will be associated with.
|
|
1630
1662
|
*/
|
|
@@ -1689,7 +1721,9 @@ export interface NewSubscriptionGroupedWithProratedMinimumPrice {
|
|
|
1689
1721
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1690
1722
|
* by setting `metadata` to `null`.
|
|
1691
1723
|
*/
|
|
1692
|
-
metadata?:
|
|
1724
|
+
metadata?: {
|
|
1725
|
+
[key: string]: string | null;
|
|
1726
|
+
} | null;
|
|
1693
1727
|
/**
|
|
1694
1728
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1695
1729
|
* in the same API call.
|
|
@@ -1766,7 +1800,9 @@ export interface NewSubscriptionMatrixPrice {
|
|
|
1766
1800
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1767
1801
|
* by setting `metadata` to `null`.
|
|
1768
1802
|
*/
|
|
1769
|
-
metadata?:
|
|
1803
|
+
metadata?: {
|
|
1804
|
+
[key: string]: string | null;
|
|
1805
|
+
} | null;
|
|
1770
1806
|
/**
|
|
1771
1807
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1772
1808
|
* in the same API call.
|
|
@@ -1843,7 +1879,9 @@ export interface NewSubscriptionMatrixWithAllocationPrice {
|
|
|
1843
1879
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1844
1880
|
* by setting `metadata` to `null`.
|
|
1845
1881
|
*/
|
|
1846
|
-
metadata?:
|
|
1882
|
+
metadata?: {
|
|
1883
|
+
[key: string]: string | null;
|
|
1884
|
+
} | null;
|
|
1847
1885
|
/**
|
|
1848
1886
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1849
1887
|
* in the same API call.
|
|
@@ -1859,7 +1897,9 @@ export interface NewSubscriptionMatrixWithDisplayNamePrice {
|
|
|
1859
1897
|
* The id of the item the price will be associated with.
|
|
1860
1898
|
*/
|
|
1861
1899
|
item_id: string;
|
|
1862
|
-
matrix_with_display_name_config:
|
|
1900
|
+
matrix_with_display_name_config: {
|
|
1901
|
+
[key: string]: unknown;
|
|
1902
|
+
};
|
|
1863
1903
|
model_type: 'matrix_with_display_name';
|
|
1864
1904
|
/**
|
|
1865
1905
|
* The name of the price.
|
|
@@ -1920,7 +1960,9 @@ export interface NewSubscriptionMatrixWithDisplayNamePrice {
|
|
|
1920
1960
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1921
1961
|
* by setting `metadata` to `null`.
|
|
1922
1962
|
*/
|
|
1923
|
-
metadata?:
|
|
1963
|
+
metadata?: {
|
|
1964
|
+
[key: string]: string | null;
|
|
1965
|
+
} | null;
|
|
1924
1966
|
/**
|
|
1925
1967
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
1926
1968
|
* in the same API call.
|
|
@@ -1936,7 +1978,9 @@ export interface NewSubscriptionMaxGroupTieredPackagePrice {
|
|
|
1936
1978
|
* The id of the item the price will be associated with.
|
|
1937
1979
|
*/
|
|
1938
1980
|
item_id: string;
|
|
1939
|
-
max_group_tiered_package_config:
|
|
1981
|
+
max_group_tiered_package_config: {
|
|
1982
|
+
[key: string]: unknown;
|
|
1983
|
+
};
|
|
1940
1984
|
model_type: 'max_group_tiered_package';
|
|
1941
1985
|
/**
|
|
1942
1986
|
* The name of the price.
|
|
@@ -1997,7 +2041,9 @@ export interface NewSubscriptionMaxGroupTieredPackagePrice {
|
|
|
1997
2041
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1998
2042
|
* by setting `metadata` to `null`.
|
|
1999
2043
|
*/
|
|
2000
|
-
metadata?:
|
|
2044
|
+
metadata?: {
|
|
2045
|
+
[key: string]: string | null;
|
|
2046
|
+
} | null;
|
|
2001
2047
|
/**
|
|
2002
2048
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2003
2049
|
* in the same API call.
|
|
@@ -2074,7 +2120,9 @@ export interface NewSubscriptionPackagePrice {
|
|
|
2074
2120
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2075
2121
|
* by setting `metadata` to `null`.
|
|
2076
2122
|
*/
|
|
2077
|
-
metadata?:
|
|
2123
|
+
metadata?: {
|
|
2124
|
+
[key: string]: string | null;
|
|
2125
|
+
} | null;
|
|
2078
2126
|
/**
|
|
2079
2127
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2080
2128
|
* in the same API call.
|
|
@@ -2095,7 +2143,9 @@ export interface NewSubscriptionPackageWithAllocationPrice {
|
|
|
2095
2143
|
* The name of the price.
|
|
2096
2144
|
*/
|
|
2097
2145
|
name: string;
|
|
2098
|
-
package_with_allocation_config:
|
|
2146
|
+
package_with_allocation_config: {
|
|
2147
|
+
[key: string]: unknown;
|
|
2148
|
+
};
|
|
2099
2149
|
/**
|
|
2100
2150
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2101
2151
|
* usage-based.
|
|
@@ -2151,7 +2201,9 @@ export interface NewSubscriptionPackageWithAllocationPrice {
|
|
|
2151
2201
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2152
2202
|
* by setting `metadata` to `null`.
|
|
2153
2203
|
*/
|
|
2154
|
-
metadata?:
|
|
2204
|
+
metadata?: {
|
|
2205
|
+
[key: string]: string | null;
|
|
2206
|
+
} | null;
|
|
2155
2207
|
/**
|
|
2156
2208
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2157
2209
|
* in the same API call.
|
|
@@ -2172,7 +2224,9 @@ export interface NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2172
2224
|
* The name of the price.
|
|
2173
2225
|
*/
|
|
2174
2226
|
name: string;
|
|
2175
|
-
scalable_matrix_with_tiered_pricing_config:
|
|
2227
|
+
scalable_matrix_with_tiered_pricing_config: {
|
|
2228
|
+
[key: string]: unknown;
|
|
2229
|
+
};
|
|
2176
2230
|
/**
|
|
2177
2231
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2178
2232
|
* usage-based.
|
|
@@ -2228,7 +2282,9 @@ export interface NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2228
2282
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2229
2283
|
* by setting `metadata` to `null`.
|
|
2230
2284
|
*/
|
|
2231
|
-
metadata?:
|
|
2285
|
+
metadata?: {
|
|
2286
|
+
[key: string]: string | null;
|
|
2287
|
+
} | null;
|
|
2232
2288
|
/**
|
|
2233
2289
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2234
2290
|
* in the same API call.
|
|
@@ -2249,7 +2305,9 @@ export interface NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
|
2249
2305
|
* The name of the price.
|
|
2250
2306
|
*/
|
|
2251
2307
|
name: string;
|
|
2252
|
-
scalable_matrix_with_unit_pricing_config:
|
|
2308
|
+
scalable_matrix_with_unit_pricing_config: {
|
|
2309
|
+
[key: string]: unknown;
|
|
2310
|
+
};
|
|
2253
2311
|
/**
|
|
2254
2312
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2255
2313
|
* usage-based.
|
|
@@ -2305,7 +2363,9 @@ export interface NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
|
2305
2363
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2306
2364
|
* by setting `metadata` to `null`.
|
|
2307
2365
|
*/
|
|
2308
|
-
metadata?:
|
|
2366
|
+
metadata?: {
|
|
2367
|
+
[key: string]: string | null;
|
|
2368
|
+
} | null;
|
|
2309
2369
|
/**
|
|
2310
2370
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2311
2371
|
* in the same API call.
|
|
@@ -2326,7 +2386,9 @@ export interface NewSubscriptionThresholdTotalAmountPrice {
|
|
|
2326
2386
|
* The name of the price.
|
|
2327
2387
|
*/
|
|
2328
2388
|
name: string;
|
|
2329
|
-
threshold_total_amount_config:
|
|
2389
|
+
threshold_total_amount_config: {
|
|
2390
|
+
[key: string]: unknown;
|
|
2391
|
+
};
|
|
2330
2392
|
/**
|
|
2331
2393
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2332
2394
|
* usage-based.
|
|
@@ -2382,7 +2444,9 @@ export interface NewSubscriptionThresholdTotalAmountPrice {
|
|
|
2382
2444
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2383
2445
|
* by setting `metadata` to `null`.
|
|
2384
2446
|
*/
|
|
2385
|
-
metadata?:
|
|
2447
|
+
metadata?: {
|
|
2448
|
+
[key: string]: string | null;
|
|
2449
|
+
} | null;
|
|
2386
2450
|
/**
|
|
2387
2451
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2388
2452
|
* in the same API call.
|
|
@@ -2403,7 +2467,9 @@ export interface NewSubscriptionTierWithProrationPrice {
|
|
|
2403
2467
|
* The name of the price.
|
|
2404
2468
|
*/
|
|
2405
2469
|
name: string;
|
|
2406
|
-
tiered_with_proration_config:
|
|
2470
|
+
tiered_with_proration_config: {
|
|
2471
|
+
[key: string]: unknown;
|
|
2472
|
+
};
|
|
2407
2473
|
/**
|
|
2408
2474
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2409
2475
|
* usage-based.
|
|
@@ -2459,7 +2525,9 @@ export interface NewSubscriptionTierWithProrationPrice {
|
|
|
2459
2525
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2460
2526
|
* by setting `metadata` to `null`.
|
|
2461
2527
|
*/
|
|
2462
|
-
metadata?:
|
|
2528
|
+
metadata?: {
|
|
2529
|
+
[key: string]: string | null;
|
|
2530
|
+
} | null;
|
|
2463
2531
|
/**
|
|
2464
2532
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2465
2533
|
* in the same API call.
|
|
@@ -2536,7 +2604,9 @@ export interface NewSubscriptionTieredBPSPrice {
|
|
|
2536
2604
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2537
2605
|
* by setting `metadata` to `null`.
|
|
2538
2606
|
*/
|
|
2539
|
-
metadata?:
|
|
2607
|
+
metadata?: {
|
|
2608
|
+
[key: string]: string | null;
|
|
2609
|
+
} | null;
|
|
2540
2610
|
/**
|
|
2541
2611
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2542
2612
|
* in the same API call.
|
|
@@ -2557,7 +2627,9 @@ export interface NewSubscriptionTieredPackagePrice {
|
|
|
2557
2627
|
* The name of the price.
|
|
2558
2628
|
*/
|
|
2559
2629
|
name: string;
|
|
2560
|
-
tiered_package_config:
|
|
2630
|
+
tiered_package_config: {
|
|
2631
|
+
[key: string]: unknown;
|
|
2632
|
+
};
|
|
2561
2633
|
/**
|
|
2562
2634
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2563
2635
|
* usage-based.
|
|
@@ -2613,7 +2685,9 @@ export interface NewSubscriptionTieredPackagePrice {
|
|
|
2613
2685
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2614
2686
|
* by setting `metadata` to `null`.
|
|
2615
2687
|
*/
|
|
2616
|
-
metadata?:
|
|
2688
|
+
metadata?: {
|
|
2689
|
+
[key: string]: string | null;
|
|
2690
|
+
} | null;
|
|
2617
2691
|
/**
|
|
2618
2692
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2619
2693
|
* in the same API call.
|
|
@@ -2634,7 +2708,9 @@ export interface NewSubscriptionTieredPackageWithMinimumPrice {
|
|
|
2634
2708
|
* The name of the price.
|
|
2635
2709
|
*/
|
|
2636
2710
|
name: string;
|
|
2637
|
-
tiered_package_with_minimum_config:
|
|
2711
|
+
tiered_package_with_minimum_config: {
|
|
2712
|
+
[key: string]: unknown;
|
|
2713
|
+
};
|
|
2638
2714
|
/**
|
|
2639
2715
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2640
2716
|
* usage-based.
|
|
@@ -2690,7 +2766,9 @@ export interface NewSubscriptionTieredPackageWithMinimumPrice {
|
|
|
2690
2766
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2691
2767
|
* by setting `metadata` to `null`.
|
|
2692
2768
|
*/
|
|
2693
|
-
metadata?:
|
|
2769
|
+
metadata?: {
|
|
2770
|
+
[key: string]: string | null;
|
|
2771
|
+
} | null;
|
|
2694
2772
|
/**
|
|
2695
2773
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2696
2774
|
* in the same API call.
|
|
@@ -2767,7 +2845,9 @@ export interface NewSubscriptionTieredPrice {
|
|
|
2767
2845
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2768
2846
|
* by setting `metadata` to `null`.
|
|
2769
2847
|
*/
|
|
2770
|
-
metadata?:
|
|
2848
|
+
metadata?: {
|
|
2849
|
+
[key: string]: string | null;
|
|
2850
|
+
} | null;
|
|
2771
2851
|
/**
|
|
2772
2852
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2773
2853
|
* in the same API call.
|
|
@@ -2788,7 +2868,9 @@ export interface NewSubscriptionTieredWithMinimumPrice {
|
|
|
2788
2868
|
* The name of the price.
|
|
2789
2869
|
*/
|
|
2790
2870
|
name: string;
|
|
2791
|
-
tiered_with_minimum_config:
|
|
2871
|
+
tiered_with_minimum_config: {
|
|
2872
|
+
[key: string]: unknown;
|
|
2873
|
+
};
|
|
2792
2874
|
/**
|
|
2793
2875
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2794
2876
|
* usage-based.
|
|
@@ -2844,7 +2926,9 @@ export interface NewSubscriptionTieredWithMinimumPrice {
|
|
|
2844
2926
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2845
2927
|
* by setting `metadata` to `null`.
|
|
2846
2928
|
*/
|
|
2847
|
-
metadata?:
|
|
2929
|
+
metadata?: {
|
|
2930
|
+
[key: string]: string | null;
|
|
2931
|
+
} | null;
|
|
2848
2932
|
/**
|
|
2849
2933
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2850
2934
|
* in the same API call.
|
|
@@ -2921,7 +3005,9 @@ export interface NewSubscriptionUnitPrice {
|
|
|
2921
3005
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2922
3006
|
* by setting `metadata` to `null`.
|
|
2923
3007
|
*/
|
|
2924
|
-
metadata?:
|
|
3008
|
+
metadata?: {
|
|
3009
|
+
[key: string]: string | null;
|
|
3010
|
+
} | null;
|
|
2925
3011
|
/**
|
|
2926
3012
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
2927
3013
|
* in the same API call.
|
|
@@ -2942,7 +3028,9 @@ export interface NewSubscriptionUnitWithPercentPrice {
|
|
|
2942
3028
|
* The name of the price.
|
|
2943
3029
|
*/
|
|
2944
3030
|
name: string;
|
|
2945
|
-
unit_with_percent_config:
|
|
3031
|
+
unit_with_percent_config: {
|
|
3032
|
+
[key: string]: unknown;
|
|
3033
|
+
};
|
|
2946
3034
|
/**
|
|
2947
3035
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2948
3036
|
* usage-based.
|
|
@@ -2998,7 +3086,9 @@ export interface NewSubscriptionUnitWithPercentPrice {
|
|
|
2998
3086
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2999
3087
|
* by setting `metadata` to `null`.
|
|
3000
3088
|
*/
|
|
3001
|
-
metadata?:
|
|
3089
|
+
metadata?: {
|
|
3090
|
+
[key: string]: string | null;
|
|
3091
|
+
} | null;
|
|
3002
3092
|
/**
|
|
3003
3093
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
3004
3094
|
* in the same API call.
|
|
@@ -3019,7 +3109,9 @@ export interface NewSubscriptionUnitWithProrationPrice {
|
|
|
3019
3109
|
* The name of the price.
|
|
3020
3110
|
*/
|
|
3021
3111
|
name: string;
|
|
3022
|
-
unit_with_proration_config:
|
|
3112
|
+
unit_with_proration_config: {
|
|
3113
|
+
[key: string]: unknown;
|
|
3114
|
+
};
|
|
3023
3115
|
/**
|
|
3024
3116
|
* The id of the billable metric for the price. Only needed if the price is
|
|
3025
3117
|
* usage-based.
|
|
@@ -3075,7 +3167,9 @@ export interface NewSubscriptionUnitWithProrationPrice {
|
|
|
3075
3167
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3076
3168
|
* by setting `metadata` to `null`.
|
|
3077
3169
|
*/
|
|
3078
|
-
metadata?:
|
|
3170
|
+
metadata?: {
|
|
3171
|
+
[key: string]: string | null;
|
|
3172
|
+
} | null;
|
|
3079
3173
|
/**
|
|
3080
3174
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
3081
3175
|
* in the same API call.
|
|
@@ -3170,7 +3264,7 @@ export interface Subscription {
|
|
|
3170
3264
|
default_invoice_memo: string | null;
|
|
3171
3265
|
/**
|
|
3172
3266
|
* @deprecated The discount intervals for this subscription sorted by the
|
|
3173
|
-
* start_date.
|
|
3267
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
3174
3268
|
*/
|
|
3175
3269
|
discount_intervals: Array<Shared.AmountDiscountInterval | Shared.PercentageDiscountInterval | Shared.UsageDiscountInterval>;
|
|
3176
3270
|
/**
|
|
@@ -3181,7 +3275,7 @@ export interface Subscription {
|
|
|
3181
3275
|
invoicing_threshold: string | null;
|
|
3182
3276
|
/**
|
|
3183
3277
|
* @deprecated The maximum intervals for this subscription sorted by the
|
|
3184
|
-
* start_date.
|
|
3278
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
3185
3279
|
*/
|
|
3186
3280
|
maximum_intervals: Array<Shared.MaximumInterval>;
|
|
3187
3281
|
/**
|
|
@@ -3190,10 +3284,12 @@ export interface Subscription {
|
|
|
3190
3284
|
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
3191
3285
|
* `null`.
|
|
3192
3286
|
*/
|
|
3193
|
-
metadata:
|
|
3287
|
+
metadata: {
|
|
3288
|
+
[key: string]: string;
|
|
3289
|
+
};
|
|
3194
3290
|
/**
|
|
3195
3291
|
* @deprecated The minimum intervals for this subscription sorted by the
|
|
3196
|
-
* start_date.
|
|
3292
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
3197
3293
|
*/
|
|
3198
3294
|
minimum_intervals: Array<Shared.MinimumInterval>;
|
|
3199
3295
|
/**
|
|
@@ -3387,7 +3483,9 @@ export interface SubscriptionCreateParams {
|
|
|
3387
3483
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3388
3484
|
* by setting `metadata` to `null`.
|
|
3389
3485
|
*/
|
|
3390
|
-
metadata?:
|
|
3486
|
+
metadata?: {
|
|
3487
|
+
[key: string]: string | null;
|
|
3488
|
+
} | null;
|
|
3391
3489
|
/**
|
|
3392
3490
|
* The name to use for the subscription. If not specified, the plan name will be
|
|
3393
3491
|
* used.
|
|
@@ -3617,7 +3715,9 @@ export interface SubscriptionUpdateParams {
|
|
|
3617
3715
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3618
3716
|
* by setting `metadata` to `null`.
|
|
3619
3717
|
*/
|
|
3620
|
-
metadata?:
|
|
3718
|
+
metadata?: {
|
|
3719
|
+
[key: string]: string | null;
|
|
3720
|
+
} | null;
|
|
3621
3721
|
/**
|
|
3622
3722
|
* Determines the difference between the invoice issue date for subscription
|
|
3623
3723
|
* invoices as the date that they are due. A value of `0` here represents that the
|
|
@@ -3868,8 +3968,8 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3868
3968
|
*/
|
|
3869
3969
|
billing_cycle_day?: number | null;
|
|
3870
3970
|
/**
|
|
3871
|
-
* The updated end date of this price interval. If not specified, the
|
|
3872
|
-
*
|
|
3971
|
+
* The updated end date of this price interval. If not specified, the end date will
|
|
3972
|
+
* not be updated.
|
|
3873
3973
|
*/
|
|
3874
3974
|
end_date?: (string & {}) | Shared.BillingCycleRelativeDate | null;
|
|
3875
3975
|
/**
|
|
@@ -3918,8 +4018,8 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3918
4018
|
*/
|
|
3919
4019
|
adjustment_interval_id: string;
|
|
3920
4020
|
/**
|
|
3921
|
-
* The updated end date of this adjustment interval. If not specified, the
|
|
3922
|
-
*
|
|
4021
|
+
* The updated end date of this adjustment interval. If not specified, the end date
|
|
4022
|
+
* will not be updated.
|
|
3923
4023
|
*/
|
|
3924
4024
|
end_date?: (string & {}) | Shared.BillingCycleRelativeDate | null;
|
|
3925
4025
|
/**
|