orb-billing 4.49.0 → 4.50.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 (101) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/alerts.d.ts +5 -8
  4. package/resources/alerts.d.ts.map +1 -1
  5. package/resources/alerts.js +2 -4
  6. package/resources/alerts.js.map +1 -1
  7. package/resources/alerts.mjs +2 -4
  8. package/resources/alerts.mjs.map +1 -1
  9. package/resources/coupons/coupons.d.ts +0 -34
  10. package/resources/coupons/coupons.d.ts.map +1 -1
  11. package/resources/coupons/coupons.js.map +1 -1
  12. package/resources/coupons/coupons.mjs.map +1 -1
  13. package/resources/coupons/subscriptions.d.ts +3 -3
  14. package/resources/credit-notes.d.ts +5 -5
  15. package/resources/credit-notes.js +3 -3
  16. package/resources/credit-notes.mjs +3 -3
  17. package/resources/customers/costs.d.ts +12 -454
  18. package/resources/customers/costs.d.ts.map +1 -1
  19. package/resources/customers/credits/ledger.d.ts +14 -14
  20. package/resources/customers/customers.d.ts +16 -18
  21. package/resources/customers/customers.d.ts.map +1 -1
  22. package/resources/customers/customers.js +11 -11
  23. package/resources/customers/customers.js.map +1 -1
  24. package/resources/customers/customers.mjs +11 -11
  25. package/resources/customers/customers.mjs.map +1 -1
  26. package/resources/events/backfills.d.ts +19 -19
  27. package/resources/events/backfills.js +4 -4
  28. package/resources/events/backfills.mjs +4 -4
  29. package/resources/events/events.d.ts +6 -7
  30. package/resources/events/events.d.ts.map +1 -1
  31. package/resources/events/events.js +3 -3
  32. package/resources/events/events.js.map +1 -1
  33. package/resources/events/events.mjs +3 -3
  34. package/resources/events/events.mjs.map +1 -1
  35. package/resources/events/volume.d.ts +5 -5
  36. package/resources/events/volume.js +5 -5
  37. package/resources/events/volume.mjs +5 -5
  38. package/resources/invoice-line-items.d.ts +2 -223
  39. package/resources/invoice-line-items.d.ts.map +1 -1
  40. package/resources/invoices.d.ts +12 -454
  41. package/resources/invoices.d.ts.map +1 -1
  42. package/resources/invoices.js +3 -3
  43. package/resources/invoices.js.map +1 -1
  44. package/resources/invoices.mjs +3 -3
  45. package/resources/invoices.mjs.map +1 -1
  46. package/resources/items.d.ts +1 -1
  47. package/resources/items.js +1 -1
  48. package/resources/items.mjs +1 -1
  49. package/resources/metrics.d.ts +6 -7
  50. package/resources/metrics.d.ts.map +1 -1
  51. package/resources/metrics.js +3 -4
  52. package/resources/metrics.js.map +1 -1
  53. package/resources/metrics.mjs +3 -4
  54. package/resources/metrics.mjs.map +1 -1
  55. package/resources/plans/external-plan-id.d.ts +6 -6
  56. package/resources/plans/external-plan-id.js +6 -6
  57. package/resources/plans/external-plan-id.mjs +6 -6
  58. package/resources/plans/plans.d.ts +15 -109
  59. package/resources/plans/plans.d.ts.map +1 -1
  60. package/resources/plans/plans.js +6 -6
  61. package/resources/plans/plans.js.map +1 -1
  62. package/resources/plans/plans.mjs +6 -6
  63. package/resources/plans/plans.mjs.map +1 -1
  64. package/resources/prices/external-price-id.d.ts +2 -2
  65. package/resources/prices/external-price-id.js +2 -2
  66. package/resources/prices/external-price-id.mjs +2 -2
  67. package/resources/prices/prices.d.ts +16 -404
  68. package/resources/prices/prices.d.ts.map +1 -1
  69. package/resources/prices/prices.js +7 -7
  70. package/resources/prices/prices.js.map +1 -1
  71. package/resources/prices/prices.mjs +7 -7
  72. package/resources/prices/prices.mjs.map +1 -1
  73. package/resources/subscriptions.d.ts +154 -2907
  74. package/resources/subscriptions.d.ts.map +1 -1
  75. package/resources/subscriptions.js +53 -49
  76. package/resources/subscriptions.js.map +1 -1
  77. package/resources/subscriptions.mjs +53 -49
  78. package/resources/subscriptions.mjs.map +1 -1
  79. package/src/resources/alerts.ts +5 -8
  80. package/src/resources/coupons/coupons.ts +0 -34
  81. package/src/resources/coupons/subscriptions.ts +3 -3
  82. package/src/resources/credit-notes.ts +5 -5
  83. package/src/resources/customers/costs.ts +12 -454
  84. package/src/resources/customers/credits/ledger.ts +14 -14
  85. package/src/resources/customers/customers.ts +16 -18
  86. package/src/resources/events/backfills.ts +19 -19
  87. package/src/resources/events/events.ts +6 -7
  88. package/src/resources/events/volume.ts +5 -5
  89. package/src/resources/invoice-line-items.ts +2 -223
  90. package/src/resources/invoices.ts +12 -454
  91. package/src/resources/items.ts +1 -1
  92. package/src/resources/metrics.ts +6 -7
  93. package/src/resources/plans/external-plan-id.ts +6 -6
  94. package/src/resources/plans/plans.ts +14 -128
  95. package/src/resources/prices/external-price-id.ts +2 -2
  96. package/src/resources/prices/prices.ts +15 -460
  97. package/src/resources/subscriptions.ts +153 -2926
  98. package/src/version.ts +1 -1
  99. package/version.d.ts +1 -1
  100. package/version.js +1 -1
  101. package/version.mjs +1 -1
@@ -10,8 +10,8 @@ export declare class ExternalPriceID extends APIResource {
10
10
  update(externalPriceId: string, body: ExternalPriceIDUpdateParams, options?: Core.RequestOptions): Core.APIPromise<PricesAPI.Price>;
11
11
  /**
12
12
  * This endpoint returns a price given an external price id. See the
13
- * [price creation API](../reference/create-price) for more information about
14
- * external price aliases.
13
+ * [price creation API](/api-reference/price/create-price) for more information
14
+ * about external price aliases.
15
15
  */
16
16
  fetch(externalPriceId: string, options?: Core.RequestOptions): Core.APIPromise<PricesAPI.Price>;
17
17
  }
@@ -14,8 +14,8 @@ class ExternalPriceID extends resource_1.APIResource {
14
14
  }
15
15
  /**
16
16
  * This endpoint returns a price given an external price id. See the
17
- * [price creation API](../reference/create-price) for more information about
18
- * external price aliases.
17
+ * [price creation API](/api-reference/price/create-price) for more information
18
+ * about external price aliases.
19
19
  */
20
20
  fetch(externalPriceId, options) {
21
21
  return this._client.get(`/prices/external_price_id/${externalPriceId}`, options);
@@ -11,8 +11,8 @@ export class ExternalPriceID extends APIResource {
11
11
  }
12
12
  /**
13
13
  * This endpoint returns a price given an external price id. See the
14
- * [price creation API](../reference/create-price) for more information about
15
- * external price aliases.
14
+ * [price creation API](/api-reference/price/create-price) for more information
15
+ * about external price aliases.
16
16
  */
17
17
  fetch(externalPriceId, options) {
18
18
  return this._client.get(`/prices/external_price_id/${externalPriceId}`, options);
@@ -7,16 +7,16 @@ import { Page, type PageParams } from "../../pagination.js";
7
7
  export declare class Prices extends APIResource {
8
8
  externalPriceId: ExternalPriceIDAPI.ExternalPriceID;
9
9
  /**
10
- * This endpoint is used to create a [price](../reference/price). A price created
11
- * using this endpoint is always an add-on, meaning that it’s not associated with a
12
- * specific plan and can instead be individually added to subscriptions, including
13
- * subscriptions on different plans.
10
+ * This endpoint is used to create a [price](/product-catalog/price-configuration).
11
+ * A price created using this endpoint is always an add-on, meaning that it’s not
12
+ * associated with a specific plan and can instead be individually added to
13
+ * subscriptions, including subscriptions on different plans.
14
14
  *
15
15
  * An `external_price_id` can be optionally specified as an alias to allow
16
16
  * ergonomic interaction with prices in the Orb API.
17
17
  *
18
- * See the [Price resource](../reference/price) for the specification of different
19
- * price model configurations possible in this endpoint.
18
+ * See the [Price resource](/product-catalog/price-configuration) for the
19
+ * specification of different price model configurations possible in this endpoint.
20
20
  */
21
21
  create(body: PriceCreateParams, options?: Core.RequestOptions): Core.APIPromise<Price>;
22
22
  /**
@@ -27,14 +27,14 @@ export declare class Prices extends APIResource {
27
27
  update(priceId: string, body: PriceUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Price>;
28
28
  /**
29
29
  * This endpoint is used to list all add-on prices created using the
30
- * [price creation endpoint](../reference/create-price).
30
+ * [price creation endpoint](/api-reference/price/create-price).
31
31
  */
32
32
  list(query?: PriceListParams, options?: Core.RequestOptions): Core.PagePromise<PricesPage, Price>;
33
33
  list(options?: Core.RequestOptions): Core.PagePromise<PricesPage, Price>;
34
34
  /**
35
35
  * This endpoint is used to evaluate the output of a price for a given customer and
36
36
  * time range. It enables filtering and grouping the output using
37
- * [computed properties](../guides/extensibility/advanced-metrics#computed-properties),
37
+ * [computed properties](/extensibility/advanced-metrics#computed-properties),
38
38
  * supporting the following workflows:
39
39
  *
40
40
  * 1. Showing detailed usage and costs to the end customer.
@@ -85,231 +85,10 @@ export interface EvaluatePriceGroup {
85
85
  * is serialized differently in a given Price object. The model_type field
86
86
  * determines the key for the configuration object that is present.
87
87
  *
88
- * ## Unit pricing
89
- *
90
- * With unit pricing, each unit costs a fixed amount.
91
- *
92
- * ```json
93
- * {
94
- * ...
95
- * "model_type": "unit",
96
- * "unit_config": {
97
- * "unit_amount": "0.50"
98
- * }
99
- * ...
100
- * }
101
- * ```
102
- *
103
- * ## Tiered pricing
104
- *
105
- * In tiered pricing, the cost of a given unit depends on the tier range that it
106
- * falls into, where each tier range is defined by an upper and lower bound. For
107
- * example, the first ten units may cost $0.50 each and all units thereafter may
108
- * cost $0.10 each.
109
- *
110
- * ```json
111
- * {
112
- * ...
113
- * "model_type": "tiered",
114
- * "tiered_config": {
115
- * "tiers": [
116
- * {
117
- * "first_unit": 1,
118
- * "last_unit": 10,
119
- * "unit_amount": "0.50"
120
- * },
121
- * {
122
- * "first_unit": 11,
123
- * "last_unit": null,
124
- * "unit_amount": "0.10"
125
- * }
126
- * ]
127
- * }
128
- * ...
129
- * ```
130
- *
131
- * ## Bulk pricing
132
- *
133
- * Bulk pricing applies when the number of units determine the cost of all units.
134
- * For example, if you've bought less than 10 units, they may each be $0.50 for a
135
- * total of $5.00. Once you've bought more than 10 units, all units may now be
136
- * priced at $0.40 (i.e. 101 units total would be $40.40).
137
- *
138
- * ```json
139
- * {
140
- * ...
141
- * "model_type": "bulk",
142
- * "bulk_config": {
143
- * "tiers": [
144
- * {
145
- * "maximum_units": 10,
146
- * "unit_amount": "0.50"
147
- * },
148
- * {
149
- * "maximum_units": 1000,
150
- * "unit_amount": "0.40"
151
- * }
152
- * ]
153
- * }
154
- * ...
155
- * }
156
- * ```
157
- *
158
- * ## Package pricing
159
- *
160
- * Package pricing defines the size or granularity of a unit for billing purposes.
161
- * For example, if the package size is set to 5, then 4 units will be billed as 5
162
- * and 6 units will be billed at 10.
163
- *
164
- * ```json
165
- * {
166
- * ...
167
- * "model_type": "package",
168
- * "package_config": {
169
- * "package_amount": "0.80",
170
- * "package_size": 10
171
- * }
172
- * ...
173
- * }
174
- * ```
175
- *
176
- * ## BPS pricing
177
- *
178
- * BPS pricing specifies a per-event (e.g. per-payment) rate in one hundredth of a
179
- * percent (the number of basis points to charge), as well as a cap per event to
180
- * assess. For example, this would allow you to assess a fee of 0.25% on every
181
- * payment you process, with a maximum charge of $25 per payment.
182
- *
183
- * ```json
184
- * {
185
- * ...
186
- * "model_type": "bps",
187
- * "bps_config": {
188
- * "bps": 125,
189
- * "per_unit_maximum": "11.00"
190
- * }
191
- * ...
192
- * }
193
- * ```
194
- *
195
- * ## Bulk BPS pricing
196
- *
197
- * Bulk BPS pricing specifies BPS parameters in a tiered manner, dependent on the
198
- * total quantity across all events. Similar to bulk pricing, the BPS parameters of
199
- * a given event depends on the tier range that the billing period falls into. Each
200
- * tier range is defined by an upper bound. For example, after $1.5M of payment
201
- * volume is reached, each individual payment may have a lower cap or a smaller
202
- * take-rate.
203
- *
204
- * ```json
205
- * ...
206
- * "model_type": "bulk_bps",
207
- * "bulk_bps_config": {
208
- * "tiers": [
209
- * {
210
- * "maximum_amount": "1000000.00",
211
- * "bps": 125,
212
- * "per_unit_maximum": "19.00"
213
- * },
214
- * {
215
- * "maximum_amount": null,
216
- * "bps": 115,
217
- * "per_unit_maximum": "4.00"
218
- * }
219
- * ]
220
- * }
221
- * ...
222
- * }
223
- * ```
224
- *
225
- * ## Tiered BPS pricing
226
- *
227
- * Tiered BPS pricing specifies BPS parameters in a graduated manner, where an
228
- * event's applicable parameter is a function of its marginal addition to the
229
- * period total. Similar to tiered pricing, the BPS parameters of a given event
230
- * depends on the tier range that it falls into, where each tier range is defined
231
- * by an upper and lower bound. For example, the first few payments may have a 0.8
232
- * BPS take-rate and all payments after a specific volume may incur a take-rate of
233
- * 0.5 BPS each.
234
- *
235
- * ```json
236
- * ...
237
- * "model_type": "tiered_bps",
238
- * "tiered_bps_config": {
239
- * "tiers": [
240
- * {
241
- * "minimum_amount": "0",
242
- * "maximum_amount": "1000000.00",
243
- * "bps": 125,
244
- * "per_unit_maximum": "19.00"
245
- * },
246
- * {
247
- * "minimum_amount": "1000000.00",
248
- * "maximum_amount": null,
249
- * "bps": 115,
250
- * "per_unit_maximum": "4.00"
251
- * }
252
- * ]
253
- * }
254
- * ...
255
- * }
256
- * ```
257
- *
258
- * ## Matrix pricing
259
- *
260
- * Matrix pricing defines a set of unit prices in a one or two-dimensional matrix.
261
- * `dimensions` defines the two event property values evaluated in this pricing
262
- * model. In a one-dimensional matrix, the second value is `null`. Every
263
- * configuration has a list of `matrix_values` which give the unit prices for
264
- * specified property values. In a one-dimensional matrix, the matrix values will
265
- * have `dimension_values` where the second value of the pair is null. If an event
266
- * does not match any of the dimension values in the matrix, it will resort to the
267
- * `default_unit_amount`.
268
- *
269
- * ```json
270
- * {
271
- * "model_type": "matrix"
272
- * "matrix_config": {
273
- * "default_unit_amount": "3.00",
274
- * "dimensions": [
275
- * "cluster_name",
276
- * "region"
277
- * ],
278
- * "matrix_values": [
279
- * {
280
- * "dimension_values": [
281
- * "alpha",
282
- * "west"
283
- * ],
284
- * "unit_amount": "2.00"
285
- * },
286
- * ...
287
- * ]
288
- * }
289
- * }
290
- * ```
291
- *
292
- * ## Fixed fees
293
- *
294
- * Fixed fees are prices that are applied independent of usage quantities, and
295
- * follow unit pricing. They also have an additional parameter
296
- * `fixed_price_quantity`. If the Price represents a fixed cost, this represents
297
- * the quantity of units applied.
298
- *
299
- * ```json
300
- * {
301
- * ...
302
- * "id": "price_id",
303
- * "model_type": "unit",
304
- * "unit_config": {
305
- * "unit_amount": "2.00"
306
- * },
307
- * "fixed_price_quantity": 3.0
308
- * ...
309
- * }
310
- * ```
88
+ * For more on the types of prices, see
89
+ * [the core concepts documentation](/core-concepts#plan-and-price)
311
90
  */
312
- export type Price = Price.UnitPrice | Price.PackagePrice | Price.MatrixPrice | Price.TieredPrice | Price.TieredBpsPrice | Price.BpsPrice | Price.BulkBpsPrice | Price.BulkPrice | Price.ThresholdTotalAmountPrice | Price.TieredPackagePrice | Price.GroupedTieredPrice | Price.TieredWithMinimumPrice | Price.TieredPackageWithMinimumPrice | Price.PackageWithAllocationPrice | Price.UnitWithPercentPrice | Price.MatrixWithAllocationPrice | Price.TieredWithProrationPrice | Price.UnitWithProrationPrice | Price.GroupedAllocationPrice | Price.GroupedWithProratedMinimumPrice | Price.GroupedWithMeteredMinimumPrice | Price.MatrixWithDisplayNamePrice | Price.BulkWithProrationPrice | Price.GroupedTieredPackagePrice | Price.MaxGroupTieredPrice;
91
+ export type Price = Price.UnitPrice | Price.PackagePrice | Price.MatrixPrice | Price.TieredPrice | Price.TieredBpsPrice | Price.BpsPrice | Price.BulkBpsPrice | Price.BulkPrice | Price.ThresholdTotalAmountPrice | Price.TieredPackagePrice | Price.GroupedTieredPrice | Price.TieredWithMinimumPrice | Price.TieredPackageWithMinimumPrice | Price.PackageWithAllocationPrice | Price.UnitWithPercentPrice | Price.MatrixWithAllocationPrice | Price.TieredWithProrationPrice | Price.UnitWithProrationPrice | Price.GroupedAllocationPrice | Price.GroupedWithProratedMinimumPrice | Price.GroupedWithMeteredMinimumPrice | Price.MatrixWithDisplayNamePrice | Price.BulkWithProrationPrice | Price.GroupedTieredPackagePrice;
313
92
  export declare namespace Price {
314
93
  interface UnitPrice {
315
94
  id: string;
@@ -2264,85 +2043,11 @@ export declare namespace Price {
2264
2043
  minimum_amount: string;
2265
2044
  }
2266
2045
  }
2267
- interface MaxGroupTieredPrice {
2268
- id: string;
2269
- billable_metric: MaxGroupTieredPrice.BillableMetric | null;
2270
- billing_cycle_configuration: MaxGroupTieredPrice.BillingCycleConfiguration;
2271
- cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
2272
- conversion_rate: number | null;
2273
- created_at: string;
2274
- credit_allocation: MaxGroupTieredPrice.CreditAllocation | null;
2275
- currency: string;
2276
- discount: Shared.Discount | null;
2277
- external_price_id: string | null;
2278
- fixed_price_quantity: number | null;
2279
- invoicing_cycle_configuration: MaxGroupTieredPrice.InvoicingCycleConfiguration | null;
2280
- item: MaxGroupTieredPrice.Item;
2281
- max_group_tiered_config: Record<string, unknown>;
2282
- maximum: MaxGroupTieredPrice.Maximum | null;
2283
- maximum_amount: string | null;
2284
- /**
2285
- * User specified key-value pairs for the resource. If not present, this defaults
2286
- * to an empty dictionary. Individual keys can be removed by setting the value to
2287
- * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
2288
- * `null`.
2289
- */
2290
- metadata: Record<string, string>;
2291
- minimum: MaxGroupTieredPrice.Minimum | null;
2292
- minimum_amount: string | null;
2293
- model_type: 'max_group_tiered';
2294
- name: string;
2295
- plan_phase_order: number | null;
2296
- price_type: 'usage_price' | 'fixed_price';
2297
- }
2298
- namespace MaxGroupTieredPrice {
2299
- interface BillableMetric {
2300
- id: string;
2301
- }
2302
- interface BillingCycleConfiguration {
2303
- duration: number;
2304
- duration_unit: 'day' | 'month';
2305
- }
2306
- interface CreditAllocation {
2307
- allows_rollover: boolean;
2308
- currency: string;
2309
- }
2310
- interface InvoicingCycleConfiguration {
2311
- duration: number;
2312
- duration_unit: 'day' | 'month';
2313
- }
2314
- interface Item {
2315
- id: string;
2316
- name: string;
2317
- }
2318
- interface Maximum {
2319
- /**
2320
- * List of price_ids that this maximum amount applies to. For plan/plan phase
2321
- * maximums, this can be a subset of prices.
2322
- */
2323
- applies_to_price_ids: Array<string>;
2324
- /**
2325
- * Maximum amount applied
2326
- */
2327
- maximum_amount: string;
2328
- }
2329
- interface Minimum {
2330
- /**
2331
- * List of price_ids that this minimum amount applies to. For plan/plan phase
2332
- * minimums, this can be a subset of prices.
2333
- */
2334
- applies_to_price_ids: Array<string>;
2335
- /**
2336
- * Minimum amount applied
2337
- */
2338
- minimum_amount: string;
2339
- }
2340
- }
2341
2046
  }
2342
2047
  export interface PriceEvaluateResponse {
2343
2048
  data: Array<EvaluatePriceGroup>;
2344
2049
  }
2345
- export type PriceCreateParams = PriceCreateParams.NewFloatingUnitPrice | PriceCreateParams.NewFloatingPackagePrice | PriceCreateParams.NewFloatingMatrixPrice | PriceCreateParams.NewFloatingMatrixWithAllocationPrice | PriceCreateParams.NewFloatingTieredPrice | PriceCreateParams.NewFloatingTieredBpsPrice | PriceCreateParams.NewFloatingBpsPrice | PriceCreateParams.NewFloatingBulkBpsPrice | PriceCreateParams.NewFloatingBulkPrice | PriceCreateParams.NewFloatingThresholdTotalAmountPrice | PriceCreateParams.NewFloatingTieredPackagePrice | PriceCreateParams.NewFloatingGroupedTieredPrice | PriceCreateParams.NewFloatingMaxGroupTieredPrice | PriceCreateParams.NewFloatingTieredWithMinimumPrice | PriceCreateParams.NewFloatingPackageWithAllocationPrice | PriceCreateParams.NewFloatingTieredPackageWithMinimumPrice | PriceCreateParams.NewFloatingUnitWithPercentPrice | PriceCreateParams.NewFloatingTieredWithProrationPrice | PriceCreateParams.NewFloatingUnitWithProrationPrice | PriceCreateParams.NewFloatingGroupedAllocationPrice | PriceCreateParams.NewFloatingGroupedWithProratedMinimumPrice | PriceCreateParams.NewFloatingGroupedWithMeteredMinimumPrice | PriceCreateParams.NewFloatingMatrixWithDisplayNamePrice | PriceCreateParams.NewFloatingBulkWithProrationPrice | PriceCreateParams.NewFloatingGroupedTieredPackagePrice;
2050
+ export type PriceCreateParams = PriceCreateParams.NewFloatingUnitPrice | PriceCreateParams.NewFloatingPackagePrice | PriceCreateParams.NewFloatingMatrixPrice | PriceCreateParams.NewFloatingMatrixWithAllocationPrice | PriceCreateParams.NewFloatingTieredPrice | PriceCreateParams.NewFloatingTieredBpsPrice | PriceCreateParams.NewFloatingBpsPrice | PriceCreateParams.NewFloatingBulkBpsPrice | PriceCreateParams.NewFloatingBulkPrice | PriceCreateParams.NewFloatingThresholdTotalAmountPrice | PriceCreateParams.NewFloatingTieredPackagePrice | PriceCreateParams.NewFloatingGroupedTieredPrice | PriceCreateParams.NewFloatingTieredWithMinimumPrice | PriceCreateParams.NewFloatingPackageWithAllocationPrice | PriceCreateParams.NewFloatingTieredPackageWithMinimumPrice | PriceCreateParams.NewFloatingUnitWithPercentPrice | PriceCreateParams.NewFloatingTieredWithProrationPrice | PriceCreateParams.NewFloatingUnitWithProrationPrice | PriceCreateParams.NewFloatingGroupedAllocationPrice | PriceCreateParams.NewFloatingGroupedWithProratedMinimumPrice | PriceCreateParams.NewFloatingGroupedWithMeteredMinimumPrice | PriceCreateParams.NewFloatingMatrixWithDisplayNamePrice | PriceCreateParams.NewFloatingBulkWithProrationPrice | PriceCreateParams.NewFloatingGroupedTieredPackagePrice;
2346
2051
  export declare namespace PriceCreateParams {
2347
2052
  interface NewFloatingUnitPrice {
2348
2053
  /**
@@ -3637,99 +3342,6 @@ export declare namespace PriceCreateParams {
3637
3342
  duration_unit: 'day' | 'month';
3638
3343
  }
3639
3344
  }
3640
- interface NewFloatingMaxGroupTieredPrice {
3641
- /**
3642
- * The cadence to bill for this price on.
3643
- */
3644
- cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
3645
- /**
3646
- * An ISO 4217 currency string for which this price is billed in.
3647
- */
3648
- currency: string;
3649
- /**
3650
- * The id of the item the plan will be associated with.
3651
- */
3652
- item_id: string;
3653
- max_group_tiered_config: Record<string, unknown>;
3654
- model_type: 'max_group_tiered';
3655
- /**
3656
- * The name of the price.
3657
- */
3658
- name: string;
3659
- /**
3660
- * The id of the billable metric for the price. Only needed if the price is
3661
- * usage-based.
3662
- */
3663
- billable_metric_id?: string | null;
3664
- /**
3665
- * If the Price represents a fixed cost, the price will be billed in-advance if
3666
- * this is true, and in-arrears if this is false.
3667
- */
3668
- billed_in_advance?: boolean | null;
3669
- /**
3670
- * For custom cadence: specifies the duration of the billing period in days or
3671
- * months.
3672
- */
3673
- billing_cycle_configuration?: PriceCreateParams.NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
3674
- /**
3675
- * The per unit conversion rate of the price currency to the invoicing currency.
3676
- */
3677
- conversion_rate?: number | null;
3678
- /**
3679
- * An alias for the price.
3680
- */
3681
- external_price_id?: string | null;
3682
- /**
3683
- * If the Price represents a fixed cost, this represents the quantity of units
3684
- * applied.
3685
- */
3686
- fixed_price_quantity?: number | null;
3687
- /**
3688
- * The property used to group this price on an invoice
3689
- */
3690
- invoice_grouping_key?: string | null;
3691
- /**
3692
- * Within each billing cycle, specifies the cadence at which invoices are produced.
3693
- * If unspecified, a single invoice is produced per billing cycle.
3694
- */
3695
- invoicing_cycle_configuration?: PriceCreateParams.NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
3696
- /**
3697
- * User-specified key/value pairs for the resource. Individual keys can be removed
3698
- * by setting the value to `null`, and the entire metadata mapping can be cleared
3699
- * by setting `metadata` to `null`.
3700
- */
3701
- metadata?: Record<string, string | null> | null;
3702
- }
3703
- namespace NewFloatingMaxGroupTieredPrice {
3704
- /**
3705
- * For custom cadence: specifies the duration of the billing period in days or
3706
- * months.
3707
- */
3708
- interface BillingCycleConfiguration {
3709
- /**
3710
- * The duration of the billing period.
3711
- */
3712
- duration: number;
3713
- /**
3714
- * The unit of billing period duration.
3715
- */
3716
- duration_unit: 'day' | 'month';
3717
- }
3718
- /**
3719
- * Within each billing cycle, specifies the cadence at which invoices are produced.
3720
- * If unspecified, a single invoice is produced per billing cycle.
3721
- */
3722
- interface InvoicingCycleConfiguration {
3723
- /**
3724
- * The duration of the billing period.
3725
- */
3726
- duration: number;
3727
- /**
3728
- * The unit of billing period duration.
3729
- */
3730
- duration_unit: 'day' | 'month';
3731
- }
3732
- }
3733
3345
  interface NewFloatingTieredWithMinimumPrice {
3734
3346
  /**
3735
3347
  * The cadence to bill for this price on.
@@ -4876,14 +4488,14 @@ export interface PriceEvaluateParams {
4876
4488
  external_customer_id?: string | null;
4877
4489
  /**
4878
4490
  * A boolean
4879
- * [computed property](../guides/extensibility/advanced-metrics#computed-properties)
4880
- * used to filter the underlying billable metric
4491
+ * [computed property](/extensibility/advanced-metrics#computed-properties) used to
4492
+ * filter the underlying billable metric
4881
4493
  */
4882
4494
  filter?: string | null;
4883
4495
  /**
4884
4496
  * Properties (or
4885
- * [computed properties](../guides/extensibility/advanced-metrics#computed-properties))
4886
- * used to group the underlying billable metric
4497
+ * [computed properties](/extensibility/advanced-metrics#computed-properties)) used
4498
+ * to group the underlying billable metric
4887
4499
  */
4888
4500
  grouping_keys?: Array<string>;
4889
4501
  }