orb-billing 6.9.0 → 6.11.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 +14 -0
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +252 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +252 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.mts +252 -2
- package/resources/beta/external-plan-id.d.mts.map +1 -1
- package/resources/beta/external-plan-id.d.ts +252 -2
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/plans/plans.d.mts +126 -1
- package/resources/plans/plans.d.mts.map +1 -1
- package/resources/plans/plans.d.ts +126 -1
- 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/prices.d.mts +360 -3
- package/resources/prices/prices.d.mts.map +1 -1
- package/resources/prices/prices.d.ts +360 -3
- 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.mts +145 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +145 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/subscriptions.d.mts +695 -43
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +695 -43
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +39 -6
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +39 -6
- package/resources/subscriptions.mjs.map +1 -1
- package/src/resources/beta/beta.ts +298 -0
- package/src/resources/beta/external-plan-id.ts +298 -0
- package/src/resources/plans/plans.ts +149 -0
- package/src/resources/prices/prices.ts +426 -0
- package/src/resources/shared.ts +185 -0
- package/src/resources/subscriptions.ts +890 -119
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -319,6 +319,7 @@ export type PriceCreateParams =
|
|
|
319
319
|
| PriceCreateParams.NewFloatingTieredPackagePrice
|
|
320
320
|
| PriceCreateParams.NewFloatingTieredWithMinimumPrice
|
|
321
321
|
| PriceCreateParams.NewFloatingGroupedTieredPrice
|
|
322
|
+
| PriceCreateParams.NewFloatingGroupedTieredMatrixPrice
|
|
322
323
|
| PriceCreateParams.NewFloatingTieredPackageWithMinimumPrice
|
|
323
324
|
| PriceCreateParams.NewFloatingPackageWithAllocationPrice
|
|
324
325
|
| PriceCreateParams.NewFloatingUnitWithPercentPrice
|
|
@@ -1518,6 +1519,147 @@ export declare namespace PriceCreateParams {
|
|
|
1518
1519
|
}
|
|
1519
1520
|
}
|
|
1520
1521
|
|
|
1522
|
+
export interface NewFloatingGroupedTieredMatrixPrice {
|
|
1523
|
+
/**
|
|
1524
|
+
* The cadence to bill for this price on.
|
|
1525
|
+
*/
|
|
1526
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
1530
|
+
*/
|
|
1531
|
+
currency: string;
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
1535
|
+
*/
|
|
1536
|
+
grouped_tiered_matrix_config: NewFloatingGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* The id of the item the price will be associated with.
|
|
1540
|
+
*/
|
|
1541
|
+
item_id: string;
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* The pricing model type
|
|
1545
|
+
*/
|
|
1546
|
+
model_type: 'grouped_tiered_matrix';
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* The name of the price.
|
|
1550
|
+
*/
|
|
1551
|
+
name: string;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
1555
|
+
* usage-based.
|
|
1556
|
+
*/
|
|
1557
|
+
billable_metric_id?: string | null;
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1561
|
+
* this is true, and in-arrears if this is false.
|
|
1562
|
+
*/
|
|
1563
|
+
billed_in_advance?: boolean | null;
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
1567
|
+
* months.
|
|
1568
|
+
*/
|
|
1569
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1573
|
+
*/
|
|
1574
|
+
conversion_rate?: number | null;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
1578
|
+
*/
|
|
1579
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* For dimensional price: specifies a price group and dimension values
|
|
1583
|
+
*/
|
|
1584
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* An alias for the price.
|
|
1588
|
+
*/
|
|
1589
|
+
external_price_id?: string | null;
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1593
|
+
* applied.
|
|
1594
|
+
*/
|
|
1595
|
+
fixed_price_quantity?: number | null;
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* The property used to group this price on an invoice
|
|
1599
|
+
*/
|
|
1600
|
+
invoice_grouping_key?: string | null;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
1604
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
1605
|
+
*/
|
|
1606
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* The ID of the license type to associate with this price.
|
|
1610
|
+
*/
|
|
1611
|
+
license_type_id?: string | null;
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1615
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1616
|
+
* by setting `metadata` to `null`.
|
|
1617
|
+
*/
|
|
1618
|
+
metadata?: { [key: string]: string | null } | null;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export namespace NewFloatingGroupedTieredMatrixPrice {
|
|
1622
|
+
/**
|
|
1623
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
1624
|
+
*/
|
|
1625
|
+
export interface GroupedTieredMatrixConfig {
|
|
1626
|
+
/**
|
|
1627
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
1628
|
+
*/
|
|
1629
|
+
default_unit_amount: string;
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* The billable metric property used to group usage before tiering
|
|
1633
|
+
*/
|
|
1634
|
+
dimension: string;
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
1638
|
+
* against its own rows
|
|
1639
|
+
*/
|
|
1640
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
export namespace GroupedTieredMatrixConfig {
|
|
1644
|
+
/**
|
|
1645
|
+
* Configuration for a single tier scoped to a dimension value
|
|
1646
|
+
*/
|
|
1647
|
+
export interface Tier {
|
|
1648
|
+
/**
|
|
1649
|
+
* The dimension value this tier applies to
|
|
1650
|
+
*/
|
|
1651
|
+
dimension_value: string;
|
|
1652
|
+
|
|
1653
|
+
tier_lower_bound: string;
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* Per unit amount
|
|
1657
|
+
*/
|
|
1658
|
+
unit_amount: string;
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1521
1663
|
export interface NewFloatingTieredPackageWithMinimumPrice {
|
|
1522
1664
|
/**
|
|
1523
1665
|
* The cadence to bill for this price on.
|
|
@@ -4772,6 +4914,7 @@ export namespace PriceEvaluateMultipleParams {
|
|
|
4772
4914
|
| Shared.NewFloatingTieredPackagePrice
|
|
4773
4915
|
| Shared.NewFloatingTieredWithMinimumPrice
|
|
4774
4916
|
| Shared.NewFloatingGroupedTieredPrice
|
|
4917
|
+
| PriceEvaluation.NewFloatingGroupedTieredMatrixPrice
|
|
4775
4918
|
| Shared.NewFloatingTieredPackageWithMinimumPrice
|
|
4776
4919
|
| Shared.NewFloatingPackageWithAllocationPrice
|
|
4777
4920
|
| Shared.NewFloatingUnitWithPercentPrice
|
|
@@ -4953,6 +5096,147 @@ export namespace PriceEvaluateMultipleParams {
|
|
|
4953
5096
|
}
|
|
4954
5097
|
}
|
|
4955
5098
|
|
|
5099
|
+
export interface NewFloatingGroupedTieredMatrixPrice {
|
|
5100
|
+
/**
|
|
5101
|
+
* The cadence to bill for this price on.
|
|
5102
|
+
*/
|
|
5103
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
5104
|
+
|
|
5105
|
+
/**
|
|
5106
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
5107
|
+
*/
|
|
5108
|
+
currency: string;
|
|
5109
|
+
|
|
5110
|
+
/**
|
|
5111
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
5112
|
+
*/
|
|
5113
|
+
grouped_tiered_matrix_config: NewFloatingGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
5114
|
+
|
|
5115
|
+
/**
|
|
5116
|
+
* The id of the item the price will be associated with.
|
|
5117
|
+
*/
|
|
5118
|
+
item_id: string;
|
|
5119
|
+
|
|
5120
|
+
/**
|
|
5121
|
+
* The pricing model type
|
|
5122
|
+
*/
|
|
5123
|
+
model_type: 'grouped_tiered_matrix';
|
|
5124
|
+
|
|
5125
|
+
/**
|
|
5126
|
+
* The name of the price.
|
|
5127
|
+
*/
|
|
5128
|
+
name: string;
|
|
5129
|
+
|
|
5130
|
+
/**
|
|
5131
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
5132
|
+
* usage-based.
|
|
5133
|
+
*/
|
|
5134
|
+
billable_metric_id?: string | null;
|
|
5135
|
+
|
|
5136
|
+
/**
|
|
5137
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
5138
|
+
* this is true, and in-arrears if this is false.
|
|
5139
|
+
*/
|
|
5140
|
+
billed_in_advance?: boolean | null;
|
|
5141
|
+
|
|
5142
|
+
/**
|
|
5143
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5144
|
+
* months.
|
|
5145
|
+
*/
|
|
5146
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5147
|
+
|
|
5148
|
+
/**
|
|
5149
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5150
|
+
*/
|
|
5151
|
+
conversion_rate?: number | null;
|
|
5152
|
+
|
|
5153
|
+
/**
|
|
5154
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
5155
|
+
*/
|
|
5156
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
5157
|
+
|
|
5158
|
+
/**
|
|
5159
|
+
* For dimensional price: specifies a price group and dimension values
|
|
5160
|
+
*/
|
|
5161
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
5162
|
+
|
|
5163
|
+
/**
|
|
5164
|
+
* An alias for the price.
|
|
5165
|
+
*/
|
|
5166
|
+
external_price_id?: string | null;
|
|
5167
|
+
|
|
5168
|
+
/**
|
|
5169
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
5170
|
+
* applied.
|
|
5171
|
+
*/
|
|
5172
|
+
fixed_price_quantity?: number | null;
|
|
5173
|
+
|
|
5174
|
+
/**
|
|
5175
|
+
* The property used to group this price on an invoice
|
|
5176
|
+
*/
|
|
5177
|
+
invoice_grouping_key?: string | null;
|
|
5178
|
+
|
|
5179
|
+
/**
|
|
5180
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5181
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5182
|
+
*/
|
|
5183
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5184
|
+
|
|
5185
|
+
/**
|
|
5186
|
+
* The ID of the license type to associate with this price.
|
|
5187
|
+
*/
|
|
5188
|
+
license_type_id?: string | null;
|
|
5189
|
+
|
|
5190
|
+
/**
|
|
5191
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5192
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
5193
|
+
* by setting `metadata` to `null`.
|
|
5194
|
+
*/
|
|
5195
|
+
metadata?: { [key: string]: string | null } | null;
|
|
5196
|
+
}
|
|
5197
|
+
|
|
5198
|
+
export namespace NewFloatingGroupedTieredMatrixPrice {
|
|
5199
|
+
/**
|
|
5200
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
5201
|
+
*/
|
|
5202
|
+
export interface GroupedTieredMatrixConfig {
|
|
5203
|
+
/**
|
|
5204
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
5205
|
+
*/
|
|
5206
|
+
default_unit_amount: string;
|
|
5207
|
+
|
|
5208
|
+
/**
|
|
5209
|
+
* The billable metric property used to group usage before tiering
|
|
5210
|
+
*/
|
|
5211
|
+
dimension: string;
|
|
5212
|
+
|
|
5213
|
+
/**
|
|
5214
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
5215
|
+
* against its own rows
|
|
5216
|
+
*/
|
|
5217
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
5218
|
+
}
|
|
5219
|
+
|
|
5220
|
+
export namespace GroupedTieredMatrixConfig {
|
|
5221
|
+
/**
|
|
5222
|
+
* Configuration for a single tier scoped to a dimension value
|
|
5223
|
+
*/
|
|
5224
|
+
export interface Tier {
|
|
5225
|
+
/**
|
|
5226
|
+
* The dimension value this tier applies to
|
|
5227
|
+
*/
|
|
5228
|
+
dimension_value: string;
|
|
5229
|
+
|
|
5230
|
+
tier_lower_bound: string;
|
|
5231
|
+
|
|
5232
|
+
/**
|
|
5233
|
+
* Per unit amount
|
|
5234
|
+
*/
|
|
5235
|
+
unit_amount: string;
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
}
|
|
5239
|
+
|
|
4956
5240
|
export interface NewFloatingMatrixWithThresholdDiscountsPrice {
|
|
4957
5241
|
/**
|
|
4958
5242
|
* The cadence to bill for this price on.
|
|
@@ -6018,6 +6302,7 @@ export namespace PriceEvaluatePreviewEventsParams {
|
|
|
6018
6302
|
| Shared.NewFloatingTieredPackagePrice
|
|
6019
6303
|
| Shared.NewFloatingTieredWithMinimumPrice
|
|
6020
6304
|
| Shared.NewFloatingGroupedTieredPrice
|
|
6305
|
+
| PriceEvaluation.NewFloatingGroupedTieredMatrixPrice
|
|
6021
6306
|
| Shared.NewFloatingTieredPackageWithMinimumPrice
|
|
6022
6307
|
| Shared.NewFloatingPackageWithAllocationPrice
|
|
6023
6308
|
| Shared.NewFloatingUnitWithPercentPrice
|
|
@@ -6199,6 +6484,147 @@ export namespace PriceEvaluatePreviewEventsParams {
|
|
|
6199
6484
|
}
|
|
6200
6485
|
}
|
|
6201
6486
|
|
|
6487
|
+
export interface NewFloatingGroupedTieredMatrixPrice {
|
|
6488
|
+
/**
|
|
6489
|
+
* The cadence to bill for this price on.
|
|
6490
|
+
*/
|
|
6491
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
6492
|
+
|
|
6493
|
+
/**
|
|
6494
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
6495
|
+
*/
|
|
6496
|
+
currency: string;
|
|
6497
|
+
|
|
6498
|
+
/**
|
|
6499
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
6500
|
+
*/
|
|
6501
|
+
grouped_tiered_matrix_config: NewFloatingGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
6502
|
+
|
|
6503
|
+
/**
|
|
6504
|
+
* The id of the item the price will be associated with.
|
|
6505
|
+
*/
|
|
6506
|
+
item_id: string;
|
|
6507
|
+
|
|
6508
|
+
/**
|
|
6509
|
+
* The pricing model type
|
|
6510
|
+
*/
|
|
6511
|
+
model_type: 'grouped_tiered_matrix';
|
|
6512
|
+
|
|
6513
|
+
/**
|
|
6514
|
+
* The name of the price.
|
|
6515
|
+
*/
|
|
6516
|
+
name: string;
|
|
6517
|
+
|
|
6518
|
+
/**
|
|
6519
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
6520
|
+
* usage-based.
|
|
6521
|
+
*/
|
|
6522
|
+
billable_metric_id?: string | null;
|
|
6523
|
+
|
|
6524
|
+
/**
|
|
6525
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
6526
|
+
* this is true, and in-arrears if this is false.
|
|
6527
|
+
*/
|
|
6528
|
+
billed_in_advance?: boolean | null;
|
|
6529
|
+
|
|
6530
|
+
/**
|
|
6531
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
6532
|
+
* months.
|
|
6533
|
+
*/
|
|
6534
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
6535
|
+
|
|
6536
|
+
/**
|
|
6537
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
6538
|
+
*/
|
|
6539
|
+
conversion_rate?: number | null;
|
|
6540
|
+
|
|
6541
|
+
/**
|
|
6542
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
6543
|
+
*/
|
|
6544
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
6545
|
+
|
|
6546
|
+
/**
|
|
6547
|
+
* For dimensional price: specifies a price group and dimension values
|
|
6548
|
+
*/
|
|
6549
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
6550
|
+
|
|
6551
|
+
/**
|
|
6552
|
+
* An alias for the price.
|
|
6553
|
+
*/
|
|
6554
|
+
external_price_id?: string | null;
|
|
6555
|
+
|
|
6556
|
+
/**
|
|
6557
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
6558
|
+
* applied.
|
|
6559
|
+
*/
|
|
6560
|
+
fixed_price_quantity?: number | null;
|
|
6561
|
+
|
|
6562
|
+
/**
|
|
6563
|
+
* The property used to group this price on an invoice
|
|
6564
|
+
*/
|
|
6565
|
+
invoice_grouping_key?: string | null;
|
|
6566
|
+
|
|
6567
|
+
/**
|
|
6568
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
6569
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
6570
|
+
*/
|
|
6571
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
6572
|
+
|
|
6573
|
+
/**
|
|
6574
|
+
* The ID of the license type to associate with this price.
|
|
6575
|
+
*/
|
|
6576
|
+
license_type_id?: string | null;
|
|
6577
|
+
|
|
6578
|
+
/**
|
|
6579
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
6580
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
6581
|
+
* by setting `metadata` to `null`.
|
|
6582
|
+
*/
|
|
6583
|
+
metadata?: { [key: string]: string | null } | null;
|
|
6584
|
+
}
|
|
6585
|
+
|
|
6586
|
+
export namespace NewFloatingGroupedTieredMatrixPrice {
|
|
6587
|
+
/**
|
|
6588
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
6589
|
+
*/
|
|
6590
|
+
export interface GroupedTieredMatrixConfig {
|
|
6591
|
+
/**
|
|
6592
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
6593
|
+
*/
|
|
6594
|
+
default_unit_amount: string;
|
|
6595
|
+
|
|
6596
|
+
/**
|
|
6597
|
+
* The billable metric property used to group usage before tiering
|
|
6598
|
+
*/
|
|
6599
|
+
dimension: string;
|
|
6600
|
+
|
|
6601
|
+
/**
|
|
6602
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
6603
|
+
* against its own rows
|
|
6604
|
+
*/
|
|
6605
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
6606
|
+
}
|
|
6607
|
+
|
|
6608
|
+
export namespace GroupedTieredMatrixConfig {
|
|
6609
|
+
/**
|
|
6610
|
+
* Configuration for a single tier scoped to a dimension value
|
|
6611
|
+
*/
|
|
6612
|
+
export interface Tier {
|
|
6613
|
+
/**
|
|
6614
|
+
* The dimension value this tier applies to
|
|
6615
|
+
*/
|
|
6616
|
+
dimension_value: string;
|
|
6617
|
+
|
|
6618
|
+
tier_lower_bound: string;
|
|
6619
|
+
|
|
6620
|
+
/**
|
|
6621
|
+
* Per unit amount
|
|
6622
|
+
*/
|
|
6623
|
+
unit_amount: string;
|
|
6624
|
+
}
|
|
6625
|
+
}
|
|
6626
|
+
}
|
|
6627
|
+
|
|
6202
6628
|
export interface NewFloatingMatrixWithThresholdDiscountsPrice {
|
|
6203
6629
|
/**
|
|
6204
6630
|
* The cadence to bill for this price on.
|
package/src/resources/shared.ts
CHANGED
|
@@ -10528,6 +10528,7 @@ export type Price =
|
|
|
10528
10528
|
| Price.TieredPackagePrice
|
|
10529
10529
|
| Price.TieredWithMinimumPrice
|
|
10530
10530
|
| Price.GroupedTieredPrice
|
|
10531
|
+
| Price.GroupedTieredMatrixPrice
|
|
10531
10532
|
| Price.TieredPackageWithMinimumPrice
|
|
10532
10533
|
| Price.PackageWithAllocationPrice
|
|
10533
10534
|
| Price.UnitWithPercentPrice
|
|
@@ -12167,6 +12168,190 @@ export namespace Price {
|
|
|
12167
12168
|
}
|
|
12168
12169
|
}
|
|
12169
12170
|
|
|
12171
|
+
export interface GroupedTieredMatrixPrice {
|
|
12172
|
+
id: string;
|
|
12173
|
+
|
|
12174
|
+
billable_metric: Shared.BillableMetricTiny | null;
|
|
12175
|
+
|
|
12176
|
+
billing_cycle_configuration: Shared.BillingCycleConfiguration;
|
|
12177
|
+
|
|
12178
|
+
billing_mode: 'in_advance' | 'in_arrear';
|
|
12179
|
+
|
|
12180
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
12181
|
+
|
|
12182
|
+
composite_price_filters: Array<GroupedTieredMatrixPrice.CompositePriceFilter> | null;
|
|
12183
|
+
|
|
12184
|
+
conversion_rate: number | null;
|
|
12185
|
+
|
|
12186
|
+
conversion_rate_config: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
12187
|
+
|
|
12188
|
+
created_at: string;
|
|
12189
|
+
|
|
12190
|
+
credit_allocation: Shared.Allocation | null;
|
|
12191
|
+
|
|
12192
|
+
currency: string;
|
|
12193
|
+
|
|
12194
|
+
/**
|
|
12195
|
+
* @deprecated
|
|
12196
|
+
*/
|
|
12197
|
+
discount: Shared.Discount | null;
|
|
12198
|
+
|
|
12199
|
+
external_price_id: string | null;
|
|
12200
|
+
|
|
12201
|
+
fixed_price_quantity: number | null;
|
|
12202
|
+
|
|
12203
|
+
/**
|
|
12204
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
12205
|
+
*/
|
|
12206
|
+
grouped_tiered_matrix_config: GroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
12207
|
+
|
|
12208
|
+
invoice_grouping_key: string | null;
|
|
12209
|
+
|
|
12210
|
+
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12211
|
+
|
|
12212
|
+
/**
|
|
12213
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12214
|
+
* information.
|
|
12215
|
+
*/
|
|
12216
|
+
item: Shared.ItemSlim;
|
|
12217
|
+
|
|
12218
|
+
/**
|
|
12219
|
+
* @deprecated
|
|
12220
|
+
*/
|
|
12221
|
+
maximum: Shared.Maximum | null;
|
|
12222
|
+
|
|
12223
|
+
/**
|
|
12224
|
+
* @deprecated
|
|
12225
|
+
*/
|
|
12226
|
+
maximum_amount: string | null;
|
|
12227
|
+
|
|
12228
|
+
/**
|
|
12229
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
12230
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
12231
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
12232
|
+
* `null`.
|
|
12233
|
+
*/
|
|
12234
|
+
metadata: { [key: string]: string };
|
|
12235
|
+
|
|
12236
|
+
/**
|
|
12237
|
+
* @deprecated
|
|
12238
|
+
*/
|
|
12239
|
+
minimum: Shared.Minimum | null;
|
|
12240
|
+
|
|
12241
|
+
/**
|
|
12242
|
+
* @deprecated
|
|
12243
|
+
*/
|
|
12244
|
+
minimum_amount: string | null;
|
|
12245
|
+
|
|
12246
|
+
/**
|
|
12247
|
+
* The pricing model type
|
|
12248
|
+
*/
|
|
12249
|
+
model_type: 'grouped_tiered_matrix';
|
|
12250
|
+
|
|
12251
|
+
name: string;
|
|
12252
|
+
|
|
12253
|
+
plan_phase_order: number | null;
|
|
12254
|
+
|
|
12255
|
+
price_type: 'usage_price' | 'fixed_price' | 'composite_price';
|
|
12256
|
+
|
|
12257
|
+
/**
|
|
12258
|
+
* The price id this price replaces. This price will take the place of the replaced
|
|
12259
|
+
* price in plan version migrations.
|
|
12260
|
+
*/
|
|
12261
|
+
replaces_price_id: string | null;
|
|
12262
|
+
|
|
12263
|
+
dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
|
|
12264
|
+
|
|
12265
|
+
/**
|
|
12266
|
+
* The LicenseType resource represents a type of license that can be assigned to
|
|
12267
|
+
* users. License types are used during billing by grouping metrics on the
|
|
12268
|
+
* configured grouping key.
|
|
12269
|
+
*/
|
|
12270
|
+
license_type?: GroupedTieredMatrixPrice.LicenseType | null;
|
|
12271
|
+
}
|
|
12272
|
+
|
|
12273
|
+
export namespace GroupedTieredMatrixPrice {
|
|
12274
|
+
export interface CompositePriceFilter {
|
|
12275
|
+
/**
|
|
12276
|
+
* The property of the price to filter on.
|
|
12277
|
+
*/
|
|
12278
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
12279
|
+
|
|
12280
|
+
/**
|
|
12281
|
+
* Should prices that match the filter be included or excluded.
|
|
12282
|
+
*/
|
|
12283
|
+
operator: 'includes' | 'excludes';
|
|
12284
|
+
|
|
12285
|
+
/**
|
|
12286
|
+
* The IDs or values that match this filter.
|
|
12287
|
+
*/
|
|
12288
|
+
values: Array<string>;
|
|
12289
|
+
}
|
|
12290
|
+
|
|
12291
|
+
/**
|
|
12292
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
12293
|
+
*/
|
|
12294
|
+
export interface GroupedTieredMatrixConfig {
|
|
12295
|
+
/**
|
|
12296
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
12297
|
+
*/
|
|
12298
|
+
default_unit_amount: string;
|
|
12299
|
+
|
|
12300
|
+
/**
|
|
12301
|
+
* The billable metric property used to group usage before tiering
|
|
12302
|
+
*/
|
|
12303
|
+
dimension: string;
|
|
12304
|
+
|
|
12305
|
+
/**
|
|
12306
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
12307
|
+
* against its own rows
|
|
12308
|
+
*/
|
|
12309
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
12310
|
+
}
|
|
12311
|
+
|
|
12312
|
+
export namespace GroupedTieredMatrixConfig {
|
|
12313
|
+
/**
|
|
12314
|
+
* Configuration for a single tier scoped to a dimension value
|
|
12315
|
+
*/
|
|
12316
|
+
export interface Tier {
|
|
12317
|
+
/**
|
|
12318
|
+
* The dimension value this tier applies to
|
|
12319
|
+
*/
|
|
12320
|
+
dimension_value: string;
|
|
12321
|
+
|
|
12322
|
+
tier_lower_bound: string;
|
|
12323
|
+
|
|
12324
|
+
/**
|
|
12325
|
+
* Per unit amount
|
|
12326
|
+
*/
|
|
12327
|
+
unit_amount: string;
|
|
12328
|
+
}
|
|
12329
|
+
}
|
|
12330
|
+
|
|
12331
|
+
/**
|
|
12332
|
+
* The LicenseType resource represents a type of license that can be assigned to
|
|
12333
|
+
* users. License types are used during billing by grouping metrics on the
|
|
12334
|
+
* configured grouping key.
|
|
12335
|
+
*/
|
|
12336
|
+
export interface LicenseType {
|
|
12337
|
+
/**
|
|
12338
|
+
* The Orb-assigned unique identifier for the license type.
|
|
12339
|
+
*/
|
|
12340
|
+
id: string;
|
|
12341
|
+
|
|
12342
|
+
/**
|
|
12343
|
+
* The key used for grouping licenses of this type. This is typically a user
|
|
12344
|
+
* identifier field.
|
|
12345
|
+
*/
|
|
12346
|
+
grouping_key: string;
|
|
12347
|
+
|
|
12348
|
+
/**
|
|
12349
|
+
* The name of the license type.
|
|
12350
|
+
*/
|
|
12351
|
+
name: string;
|
|
12352
|
+
}
|
|
12353
|
+
}
|
|
12354
|
+
|
|
12170
12355
|
export interface TieredPackageWithMinimumPrice {
|
|
12171
12356
|
id: string;
|
|
12172
12357
|
|