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
|
@@ -142,7 +142,7 @@ export interface MutatedSubscription {
|
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* @deprecated The discount intervals for this subscription sorted by the
|
|
145
|
-
* start_date.
|
|
145
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
146
146
|
*/
|
|
147
147
|
discount_intervals: Array<
|
|
148
148
|
Shared.AmountDiscountInterval | Shared.PercentageDiscountInterval | Shared.UsageDiscountInterval
|
|
@@ -159,7 +159,7 @@ export interface MutatedSubscription {
|
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* @deprecated The maximum intervals for this subscription sorted by the
|
|
162
|
-
* start_date.
|
|
162
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
163
163
|
*/
|
|
164
164
|
maximum_intervals: Array<Shared.MaximumInterval>;
|
|
165
165
|
|
|
@@ -169,11 +169,11 @@ export interface MutatedSubscription {
|
|
|
169
169
|
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
170
170
|
* `null`.
|
|
171
171
|
*/
|
|
172
|
-
metadata:
|
|
172
|
+
metadata: { [key: string]: string };
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* @deprecated The minimum intervals for this subscription sorted by the
|
|
176
|
-
* start_date.
|
|
176
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
177
177
|
*/
|
|
178
178
|
minimum_intervals: Array<Shared.MinimumInterval>;
|
|
179
179
|
|
|
@@ -267,7 +267,7 @@ export class Subscriptions extends APIResource {
|
|
|
267
267
|
* is hit. To enable threshold billing, pass in an `invoicing_threshold`, which is
|
|
268
268
|
* specified in the subscription's invoicing currency, when creating a
|
|
269
269
|
* subscription. E.g. pass in `10.00` to issue an invoice when usage amounts hit
|
|
270
|
-
*
|
|
270
|
+
* \$10.00 for a subscription that invoices in USD.
|
|
271
271
|
*/
|
|
272
272
|
create(
|
|
273
273
|
body: SubscriptionCreateParams,
|
|
@@ -1178,7 +1178,7 @@ export interface NewSubscriptionBPSPrice {
|
|
|
1178
1178
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1179
1179
|
* by setting `metadata` to `null`.
|
|
1180
1180
|
*/
|
|
1181
|
-
metadata?:
|
|
1181
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1182
1182
|
|
|
1183
1183
|
/**
|
|
1184
1184
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1273,7 +1273,7 @@ export interface NewSubscriptionBulkBPSPrice {
|
|
|
1273
1273
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1274
1274
|
* by setting `metadata` to `null`.
|
|
1275
1275
|
*/
|
|
1276
|
-
metadata?:
|
|
1276
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1277
1277
|
|
|
1278
1278
|
/**
|
|
1279
1279
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1368,7 +1368,7 @@ export interface NewSubscriptionBulkPrice {
|
|
|
1368
1368
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1369
1369
|
* by setting `metadata` to `null`.
|
|
1370
1370
|
*/
|
|
1371
|
-
metadata?:
|
|
1371
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1372
1372
|
|
|
1373
1373
|
/**
|
|
1374
1374
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1378,7 +1378,7 @@ export interface NewSubscriptionBulkPrice {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
1380
|
export interface NewSubscriptionBulkWithProrationPrice {
|
|
1381
|
-
bulk_with_proration_config:
|
|
1381
|
+
bulk_with_proration_config: { [key: string]: unknown };
|
|
1382
1382
|
|
|
1383
1383
|
/**
|
|
1384
1384
|
* The cadence to bill for this price on.
|
|
@@ -1463,7 +1463,7 @@ export interface NewSubscriptionBulkWithProrationPrice {
|
|
|
1463
1463
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1464
1464
|
* by setting `metadata` to `null`.
|
|
1465
1465
|
*/
|
|
1466
|
-
metadata?:
|
|
1466
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1467
1467
|
|
|
1468
1468
|
/**
|
|
1469
1469
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1478,7 +1478,7 @@ export interface NewSubscriptionCumulativeGroupedBulkPrice {
|
|
|
1478
1478
|
*/
|
|
1479
1479
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1480
1480
|
|
|
1481
|
-
cumulative_grouped_bulk_config:
|
|
1481
|
+
cumulative_grouped_bulk_config: { [key: string]: unknown };
|
|
1482
1482
|
|
|
1483
1483
|
/**
|
|
1484
1484
|
* The id of the item the price will be associated with.
|
|
@@ -1558,7 +1558,7 @@ export interface NewSubscriptionCumulativeGroupedBulkPrice {
|
|
|
1558
1558
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1559
1559
|
* by setting `metadata` to `null`.
|
|
1560
1560
|
*/
|
|
1561
|
-
metadata?:
|
|
1561
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1562
1562
|
|
|
1563
1563
|
/**
|
|
1564
1564
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1573,7 +1573,7 @@ export interface NewSubscriptionGroupedAllocationPrice {
|
|
|
1573
1573
|
*/
|
|
1574
1574
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1575
1575
|
|
|
1576
|
-
grouped_allocation_config:
|
|
1576
|
+
grouped_allocation_config: { [key: string]: unknown };
|
|
1577
1577
|
|
|
1578
1578
|
/**
|
|
1579
1579
|
* The id of the item the price will be associated with.
|
|
@@ -1653,7 +1653,7 @@ export interface NewSubscriptionGroupedAllocationPrice {
|
|
|
1653
1653
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1654
1654
|
* by setting `metadata` to `null`.
|
|
1655
1655
|
*/
|
|
1656
|
-
metadata?:
|
|
1656
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1657
1657
|
|
|
1658
1658
|
/**
|
|
1659
1659
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1668,7 +1668,7 @@ export interface NewSubscriptionGroupedTieredPackagePrice {
|
|
|
1668
1668
|
*/
|
|
1669
1669
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1670
1670
|
|
|
1671
|
-
grouped_tiered_package_config:
|
|
1671
|
+
grouped_tiered_package_config: { [key: string]: unknown };
|
|
1672
1672
|
|
|
1673
1673
|
/**
|
|
1674
1674
|
* The id of the item the price will be associated with.
|
|
@@ -1748,7 +1748,7 @@ export interface NewSubscriptionGroupedTieredPackagePrice {
|
|
|
1748
1748
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1749
1749
|
* by setting `metadata` to `null`.
|
|
1750
1750
|
*/
|
|
1751
|
-
metadata?:
|
|
1751
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1752
1752
|
|
|
1753
1753
|
/**
|
|
1754
1754
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1763,7 +1763,7 @@ export interface NewSubscriptionGroupedTieredPrice {
|
|
|
1763
1763
|
*/
|
|
1764
1764
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1765
1765
|
|
|
1766
|
-
grouped_tiered_config:
|
|
1766
|
+
grouped_tiered_config: { [key: string]: unknown };
|
|
1767
1767
|
|
|
1768
1768
|
/**
|
|
1769
1769
|
* The id of the item the price will be associated with.
|
|
@@ -1843,7 +1843,7 @@ export interface NewSubscriptionGroupedTieredPrice {
|
|
|
1843
1843
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1844
1844
|
* by setting `metadata` to `null`.
|
|
1845
1845
|
*/
|
|
1846
|
-
metadata?:
|
|
1846
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1847
1847
|
|
|
1848
1848
|
/**
|
|
1849
1849
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1858,7 +1858,7 @@ export interface NewSubscriptionGroupedWithMeteredMinimumPrice {
|
|
|
1858
1858
|
*/
|
|
1859
1859
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1860
1860
|
|
|
1861
|
-
grouped_with_metered_minimum_config:
|
|
1861
|
+
grouped_with_metered_minimum_config: { [key: string]: unknown };
|
|
1862
1862
|
|
|
1863
1863
|
/**
|
|
1864
1864
|
* The id of the item the price will be associated with.
|
|
@@ -1938,7 +1938,7 @@ export interface NewSubscriptionGroupedWithMeteredMinimumPrice {
|
|
|
1938
1938
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1939
1939
|
* by setting `metadata` to `null`.
|
|
1940
1940
|
*/
|
|
1941
|
-
metadata?:
|
|
1941
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1942
1942
|
|
|
1943
1943
|
/**
|
|
1944
1944
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -1953,7 +1953,7 @@ export interface NewSubscriptionGroupedWithProratedMinimumPrice {
|
|
|
1953
1953
|
*/
|
|
1954
1954
|
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1955
1955
|
|
|
1956
|
-
grouped_with_prorated_minimum_config:
|
|
1956
|
+
grouped_with_prorated_minimum_config: { [key: string]: unknown };
|
|
1957
1957
|
|
|
1958
1958
|
/**
|
|
1959
1959
|
* The id of the item the price will be associated with.
|
|
@@ -2033,7 +2033,7 @@ export interface NewSubscriptionGroupedWithProratedMinimumPrice {
|
|
|
2033
2033
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2034
2034
|
* by setting `metadata` to `null`.
|
|
2035
2035
|
*/
|
|
2036
|
-
metadata?:
|
|
2036
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2037
2037
|
|
|
2038
2038
|
/**
|
|
2039
2039
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2128,7 +2128,7 @@ export interface NewSubscriptionMatrixPrice {
|
|
|
2128
2128
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2129
2129
|
* by setting `metadata` to `null`.
|
|
2130
2130
|
*/
|
|
2131
|
-
metadata?:
|
|
2131
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2132
2132
|
|
|
2133
2133
|
/**
|
|
2134
2134
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2223,7 +2223,7 @@ export interface NewSubscriptionMatrixWithAllocationPrice {
|
|
|
2223
2223
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2224
2224
|
* by setting `metadata` to `null`.
|
|
2225
2225
|
*/
|
|
2226
|
-
metadata?:
|
|
2226
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2227
2227
|
|
|
2228
2228
|
/**
|
|
2229
2229
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2243,7 +2243,7 @@ export interface NewSubscriptionMatrixWithDisplayNamePrice {
|
|
|
2243
2243
|
*/
|
|
2244
2244
|
item_id: string;
|
|
2245
2245
|
|
|
2246
|
-
matrix_with_display_name_config:
|
|
2246
|
+
matrix_with_display_name_config: { [key: string]: unknown };
|
|
2247
2247
|
|
|
2248
2248
|
model_type: 'matrix_with_display_name';
|
|
2249
2249
|
|
|
@@ -2318,7 +2318,7 @@ export interface NewSubscriptionMatrixWithDisplayNamePrice {
|
|
|
2318
2318
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2319
2319
|
* by setting `metadata` to `null`.
|
|
2320
2320
|
*/
|
|
2321
|
-
metadata?:
|
|
2321
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2322
2322
|
|
|
2323
2323
|
/**
|
|
2324
2324
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2338,7 +2338,7 @@ export interface NewSubscriptionMaxGroupTieredPackagePrice {
|
|
|
2338
2338
|
*/
|
|
2339
2339
|
item_id: string;
|
|
2340
2340
|
|
|
2341
|
-
max_group_tiered_package_config:
|
|
2341
|
+
max_group_tiered_package_config: { [key: string]: unknown };
|
|
2342
2342
|
|
|
2343
2343
|
model_type: 'max_group_tiered_package';
|
|
2344
2344
|
|
|
@@ -2413,7 +2413,7 @@ export interface NewSubscriptionMaxGroupTieredPackagePrice {
|
|
|
2413
2413
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2414
2414
|
* by setting `metadata` to `null`.
|
|
2415
2415
|
*/
|
|
2416
|
-
metadata?:
|
|
2416
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2417
2417
|
|
|
2418
2418
|
/**
|
|
2419
2419
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2508,7 +2508,7 @@ export interface NewSubscriptionPackagePrice {
|
|
|
2508
2508
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2509
2509
|
* by setting `metadata` to `null`.
|
|
2510
2510
|
*/
|
|
2511
|
-
metadata?:
|
|
2511
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2512
2512
|
|
|
2513
2513
|
/**
|
|
2514
2514
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2535,7 +2535,7 @@ export interface NewSubscriptionPackageWithAllocationPrice {
|
|
|
2535
2535
|
*/
|
|
2536
2536
|
name: string;
|
|
2537
2537
|
|
|
2538
|
-
package_with_allocation_config:
|
|
2538
|
+
package_with_allocation_config: { [key: string]: unknown };
|
|
2539
2539
|
|
|
2540
2540
|
/**
|
|
2541
2541
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2603,7 +2603,7 @@ export interface NewSubscriptionPackageWithAllocationPrice {
|
|
|
2603
2603
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2604
2604
|
* by setting `metadata` to `null`.
|
|
2605
2605
|
*/
|
|
2606
|
-
metadata?:
|
|
2606
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2607
2607
|
|
|
2608
2608
|
/**
|
|
2609
2609
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2630,7 +2630,7 @@ export interface NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2630
2630
|
*/
|
|
2631
2631
|
name: string;
|
|
2632
2632
|
|
|
2633
|
-
scalable_matrix_with_tiered_pricing_config:
|
|
2633
|
+
scalable_matrix_with_tiered_pricing_config: { [key: string]: unknown };
|
|
2634
2634
|
|
|
2635
2635
|
/**
|
|
2636
2636
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2698,7 +2698,7 @@ export interface NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2698
2698
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2699
2699
|
* by setting `metadata` to `null`.
|
|
2700
2700
|
*/
|
|
2701
|
-
metadata?:
|
|
2701
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2702
2702
|
|
|
2703
2703
|
/**
|
|
2704
2704
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2725,7 +2725,7 @@ export interface NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
|
2725
2725
|
*/
|
|
2726
2726
|
name: string;
|
|
2727
2727
|
|
|
2728
|
-
scalable_matrix_with_unit_pricing_config:
|
|
2728
|
+
scalable_matrix_with_unit_pricing_config: { [key: string]: unknown };
|
|
2729
2729
|
|
|
2730
2730
|
/**
|
|
2731
2731
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2793,7 +2793,7 @@ export interface NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
|
2793
2793
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2794
2794
|
* by setting `metadata` to `null`.
|
|
2795
2795
|
*/
|
|
2796
|
-
metadata?:
|
|
2796
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2797
2797
|
|
|
2798
2798
|
/**
|
|
2799
2799
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2820,7 +2820,7 @@ export interface NewSubscriptionThresholdTotalAmountPrice {
|
|
|
2820
2820
|
*/
|
|
2821
2821
|
name: string;
|
|
2822
2822
|
|
|
2823
|
-
threshold_total_amount_config:
|
|
2823
|
+
threshold_total_amount_config: { [key: string]: unknown };
|
|
2824
2824
|
|
|
2825
2825
|
/**
|
|
2826
2826
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2888,7 +2888,7 @@ export interface NewSubscriptionThresholdTotalAmountPrice {
|
|
|
2888
2888
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2889
2889
|
* by setting `metadata` to `null`.
|
|
2890
2890
|
*/
|
|
2891
|
-
metadata?:
|
|
2891
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2892
2892
|
|
|
2893
2893
|
/**
|
|
2894
2894
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -2915,7 +2915,7 @@ export interface NewSubscriptionTierWithProrationPrice {
|
|
|
2915
2915
|
*/
|
|
2916
2916
|
name: string;
|
|
2917
2917
|
|
|
2918
|
-
tiered_with_proration_config:
|
|
2918
|
+
tiered_with_proration_config: { [key: string]: unknown };
|
|
2919
2919
|
|
|
2920
2920
|
/**
|
|
2921
2921
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2983,7 +2983,7 @@ export interface NewSubscriptionTierWithProrationPrice {
|
|
|
2983
2983
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2984
2984
|
* by setting `metadata` to `null`.
|
|
2985
2985
|
*/
|
|
2986
|
-
metadata?:
|
|
2986
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2987
2987
|
|
|
2988
2988
|
/**
|
|
2989
2989
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3078,7 +3078,7 @@ export interface NewSubscriptionTieredBPSPrice {
|
|
|
3078
3078
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3079
3079
|
* by setting `metadata` to `null`.
|
|
3080
3080
|
*/
|
|
3081
|
-
metadata?:
|
|
3081
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3082
3082
|
|
|
3083
3083
|
/**
|
|
3084
3084
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3105,7 +3105,7 @@ export interface NewSubscriptionTieredPackagePrice {
|
|
|
3105
3105
|
*/
|
|
3106
3106
|
name: string;
|
|
3107
3107
|
|
|
3108
|
-
tiered_package_config:
|
|
3108
|
+
tiered_package_config: { [key: string]: unknown };
|
|
3109
3109
|
|
|
3110
3110
|
/**
|
|
3111
3111
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3173,7 +3173,7 @@ export interface NewSubscriptionTieredPackagePrice {
|
|
|
3173
3173
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3174
3174
|
* by setting `metadata` to `null`.
|
|
3175
3175
|
*/
|
|
3176
|
-
metadata?:
|
|
3176
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3177
3177
|
|
|
3178
3178
|
/**
|
|
3179
3179
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3200,7 +3200,7 @@ export interface NewSubscriptionTieredPackageWithMinimumPrice {
|
|
|
3200
3200
|
*/
|
|
3201
3201
|
name: string;
|
|
3202
3202
|
|
|
3203
|
-
tiered_package_with_minimum_config:
|
|
3203
|
+
tiered_package_with_minimum_config: { [key: string]: unknown };
|
|
3204
3204
|
|
|
3205
3205
|
/**
|
|
3206
3206
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3268,7 +3268,7 @@ export interface NewSubscriptionTieredPackageWithMinimumPrice {
|
|
|
3268
3268
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3269
3269
|
* by setting `metadata` to `null`.
|
|
3270
3270
|
*/
|
|
3271
|
-
metadata?:
|
|
3271
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3272
3272
|
|
|
3273
3273
|
/**
|
|
3274
3274
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3363,7 +3363,7 @@ export interface NewSubscriptionTieredPrice {
|
|
|
3363
3363
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3364
3364
|
* by setting `metadata` to `null`.
|
|
3365
3365
|
*/
|
|
3366
|
-
metadata?:
|
|
3366
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3367
3367
|
|
|
3368
3368
|
/**
|
|
3369
3369
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3390,7 +3390,7 @@ export interface NewSubscriptionTieredWithMinimumPrice {
|
|
|
3390
3390
|
*/
|
|
3391
3391
|
name: string;
|
|
3392
3392
|
|
|
3393
|
-
tiered_with_minimum_config:
|
|
3393
|
+
tiered_with_minimum_config: { [key: string]: unknown };
|
|
3394
3394
|
|
|
3395
3395
|
/**
|
|
3396
3396
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3458,7 +3458,7 @@ export interface NewSubscriptionTieredWithMinimumPrice {
|
|
|
3458
3458
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3459
3459
|
* by setting `metadata` to `null`.
|
|
3460
3460
|
*/
|
|
3461
|
-
metadata?:
|
|
3461
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3462
3462
|
|
|
3463
3463
|
/**
|
|
3464
3464
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3553,7 +3553,7 @@ export interface NewSubscriptionUnitPrice {
|
|
|
3553
3553
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3554
3554
|
* by setting `metadata` to `null`.
|
|
3555
3555
|
*/
|
|
3556
|
-
metadata?:
|
|
3556
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3557
3557
|
|
|
3558
3558
|
/**
|
|
3559
3559
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3580,7 +3580,7 @@ export interface NewSubscriptionUnitWithPercentPrice {
|
|
|
3580
3580
|
*/
|
|
3581
3581
|
name: string;
|
|
3582
3582
|
|
|
3583
|
-
unit_with_percent_config:
|
|
3583
|
+
unit_with_percent_config: { [key: string]: unknown };
|
|
3584
3584
|
|
|
3585
3585
|
/**
|
|
3586
3586
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3648,7 +3648,7 @@ export interface NewSubscriptionUnitWithPercentPrice {
|
|
|
3648
3648
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3649
3649
|
* by setting `metadata` to `null`.
|
|
3650
3650
|
*/
|
|
3651
|
-
metadata?:
|
|
3651
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3652
3652
|
|
|
3653
3653
|
/**
|
|
3654
3654
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3675,7 +3675,7 @@ export interface NewSubscriptionUnitWithProrationPrice {
|
|
|
3675
3675
|
*/
|
|
3676
3676
|
name: string;
|
|
3677
3677
|
|
|
3678
|
-
unit_with_proration_config:
|
|
3678
|
+
unit_with_proration_config: { [key: string]: unknown };
|
|
3679
3679
|
|
|
3680
3680
|
/**
|
|
3681
3681
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -3743,7 +3743,7 @@ export interface NewSubscriptionUnitWithProrationPrice {
|
|
|
3743
3743
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3744
3744
|
* by setting `metadata` to `null`.
|
|
3745
3745
|
*/
|
|
3746
|
-
metadata?:
|
|
3746
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3747
3747
|
|
|
3748
3748
|
/**
|
|
3749
3749
|
* A transient ID that can be used to reference this price when adding adjustments
|
|
@@ -3851,7 +3851,7 @@ export interface Subscription {
|
|
|
3851
3851
|
|
|
3852
3852
|
/**
|
|
3853
3853
|
* @deprecated The discount intervals for this subscription sorted by the
|
|
3854
|
-
* start_date.
|
|
3854
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
3855
3855
|
*/
|
|
3856
3856
|
discount_intervals: Array<
|
|
3857
3857
|
Shared.AmountDiscountInterval | Shared.PercentageDiscountInterval | Shared.UsageDiscountInterval
|
|
@@ -3868,7 +3868,7 @@ export interface Subscription {
|
|
|
3868
3868
|
|
|
3869
3869
|
/**
|
|
3870
3870
|
* @deprecated The maximum intervals for this subscription sorted by the
|
|
3871
|
-
* start_date.
|
|
3871
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
3872
3872
|
*/
|
|
3873
3873
|
maximum_intervals: Array<Shared.MaximumInterval>;
|
|
3874
3874
|
|
|
@@ -3878,11 +3878,11 @@ export interface Subscription {
|
|
|
3878
3878
|
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
3879
3879
|
* `null`.
|
|
3880
3880
|
*/
|
|
3881
|
-
metadata:
|
|
3881
|
+
metadata: { [key: string]: string };
|
|
3882
3882
|
|
|
3883
3883
|
/**
|
|
3884
3884
|
* @deprecated The minimum intervals for this subscription sorted by the
|
|
3885
|
-
* start_date.
|
|
3885
|
+
* start_date. This field is deprecated in favor of `adjustment_intervals`.
|
|
3886
3886
|
*/
|
|
3887
3887
|
minimum_intervals: Array<Shared.MinimumInterval>;
|
|
3888
3888
|
|
|
@@ -4140,7 +4140,7 @@ export interface SubscriptionCreateParams {
|
|
|
4140
4140
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4141
4141
|
* by setting `metadata` to `null`.
|
|
4142
4142
|
*/
|
|
4143
|
-
metadata?:
|
|
4143
|
+
metadata?: { [key: string]: string | null } | null;
|
|
4144
4144
|
|
|
4145
4145
|
/**
|
|
4146
4146
|
* The name to use for the subscription. If not specified, the plan name will be
|
|
@@ -4483,7 +4483,7 @@ export interface SubscriptionUpdateParams {
|
|
|
4483
4483
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4484
4484
|
* by setting `metadata` to `null`.
|
|
4485
4485
|
*/
|
|
4486
|
-
metadata?:
|
|
4486
|
+
metadata?: { [key: string]: string | null } | null;
|
|
4487
4487
|
|
|
4488
4488
|
/**
|
|
4489
4489
|
* Determines the difference between the invoice issue date for subscription
|
|
@@ -4532,7 +4532,7 @@ export interface SubscriptionCancelParams {
|
|
|
4532
4532
|
|
|
4533
4533
|
export interface SubscriptionFetchCostsParams {
|
|
4534
4534
|
/**
|
|
4535
|
-
* The currency
|
|
4535
|
+
* The currency to use.
|
|
4536
4536
|
*/
|
|
4537
4537
|
currency?: string | null;
|
|
4538
4538
|
|
|
@@ -4832,8 +4832,8 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4832
4832
|
billing_cycle_day?: number | null;
|
|
4833
4833
|
|
|
4834
4834
|
/**
|
|
4835
|
-
* The updated end date of this price interval. If not specified, the
|
|
4836
|
-
*
|
|
4835
|
+
* The updated end date of this price interval. If not specified, the end date will
|
|
4836
|
+
* not be updated.
|
|
4837
4837
|
*/
|
|
4838
4838
|
end_date?: (string & {}) | Shared.BillingCycleRelativeDate | null;
|
|
4839
4839
|
|
|
@@ -4890,8 +4890,8 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4890
4890
|
adjustment_interval_id: string;
|
|
4891
4891
|
|
|
4892
4892
|
/**
|
|
4893
|
-
* The updated end date of this adjustment interval. If not specified, the
|
|
4894
|
-
*
|
|
4893
|
+
* The updated end date of this adjustment interval. If not specified, the end date
|
|
4894
|
+
* will not be updated.
|
|
4895
4895
|
*/
|
|
4896
4896
|
end_date?: (string & {}) | Shared.BillingCycleRelativeDate | null;
|
|
4897
4897
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.2.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.2.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|