orb-billing 6.9.0 → 6.10.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 +7 -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 +655 -36
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +655 -36
- package/resources/subscriptions.d.ts.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 +845 -107
- 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
|
@@ -454,6 +454,7 @@ export namespace PlanCreateParams {
|
|
|
454
454
|
| Shared.NewPlanTieredPackagePrice
|
|
455
455
|
| Shared.NewPlanTieredWithMinimumPrice
|
|
456
456
|
| Shared.NewPlanGroupedTieredPrice
|
|
457
|
+
| Price.NewPlanGroupedTieredMatrixPrice
|
|
457
458
|
| Shared.NewPlanTieredPackageWithMinimumPrice
|
|
458
459
|
| Shared.NewPlanPackageWithAllocationPrice
|
|
459
460
|
| Shared.NewPlanUnitWithPercentPrice
|
|
@@ -772,6 +773,154 @@ export namespace PlanCreateParams {
|
|
|
772
773
|
}
|
|
773
774
|
}
|
|
774
775
|
|
|
776
|
+
export interface NewPlanGroupedTieredMatrixPrice {
|
|
777
|
+
/**
|
|
778
|
+
* The cadence to bill for this price on.
|
|
779
|
+
*/
|
|
780
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
784
|
+
*/
|
|
785
|
+
grouped_tiered_matrix_config: NewPlanGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* The id of the item the price will be associated with.
|
|
789
|
+
*/
|
|
790
|
+
item_id: string;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* The pricing model type
|
|
794
|
+
*/
|
|
795
|
+
model_type: 'grouped_tiered_matrix';
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* The name of the price.
|
|
799
|
+
*/
|
|
800
|
+
name: string;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
804
|
+
* usage-based.
|
|
805
|
+
*/
|
|
806
|
+
billable_metric_id?: string | null;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
810
|
+
* this is true, and in-arrears if this is false.
|
|
811
|
+
*/
|
|
812
|
+
billed_in_advance?: boolean | null;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
816
|
+
* months.
|
|
817
|
+
*/
|
|
818
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
822
|
+
*/
|
|
823
|
+
conversion_rate?: number | null;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
827
|
+
*/
|
|
828
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
832
|
+
* price is billed.
|
|
833
|
+
*/
|
|
834
|
+
currency?: string | null;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* For dimensional price: specifies a price group and dimension values
|
|
838
|
+
*/
|
|
839
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* An alias for the price.
|
|
843
|
+
*/
|
|
844
|
+
external_price_id?: string | null;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
848
|
+
* applied.
|
|
849
|
+
*/
|
|
850
|
+
fixed_price_quantity?: number | null;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* The property used to group this price on an invoice
|
|
854
|
+
*/
|
|
855
|
+
invoice_grouping_key?: string | null;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
859
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
860
|
+
*/
|
|
861
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* The ID of the license type to associate with this price.
|
|
865
|
+
*/
|
|
866
|
+
license_type_id?: string | null;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
870
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
871
|
+
* by setting `metadata` to `null`.
|
|
872
|
+
*/
|
|
873
|
+
metadata?: { [key: string]: string | null } | null;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
877
|
+
* in the same API call.
|
|
878
|
+
*/
|
|
879
|
+
reference_id?: string | null;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export namespace NewPlanGroupedTieredMatrixPrice {
|
|
883
|
+
/**
|
|
884
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
885
|
+
*/
|
|
886
|
+
export interface GroupedTieredMatrixConfig {
|
|
887
|
+
/**
|
|
888
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
889
|
+
*/
|
|
890
|
+
default_unit_amount: string;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* The billable metric property used to group usage before tiering
|
|
894
|
+
*/
|
|
895
|
+
dimension: string;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
899
|
+
* against its own rows
|
|
900
|
+
*/
|
|
901
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export namespace GroupedTieredMatrixConfig {
|
|
905
|
+
/**
|
|
906
|
+
* Configuration for a single tier scoped to a dimension value
|
|
907
|
+
*/
|
|
908
|
+
export interface Tier {
|
|
909
|
+
/**
|
|
910
|
+
* The dimension value this tier applies to
|
|
911
|
+
*/
|
|
912
|
+
dimension_value: string;
|
|
913
|
+
|
|
914
|
+
tier_lower_bound: string;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Per unit amount
|
|
918
|
+
*/
|
|
919
|
+
unit_amount: string;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
775
924
|
export interface NewPlanMatrixWithThresholdDiscountsPrice {
|
|
776
925
|
/**
|
|
777
926
|
* The cadence to bill for this price on.
|
|
@@ -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.
|