orb-billing 5.30.0 → 5.32.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 +16 -0
- package/package.json +1 -1
- package/resources/beta/beta.d.ts +218 -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.ts +218 -2
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/invoice-line-items.d.ts +0 -20
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +0 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +125 -17
- 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.ts +309 -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.ts +105 -41
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscriptions.d.ts +539 -5
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/resources/beta/beta.ts +258 -0
- package/src/resources/beta/external-plan-id.ts +258 -0
- package/src/resources/invoice-line-items.ts +0 -25
- package/src/resources/invoices.ts +0 -25
- package/src/resources/plans/plans.ts +150 -21
- package/src/resources/prices/prices.ts +366 -0
- package/src/resources/shared.ts +138 -50
- package/src/resources/subscriptions.ts +655 -17
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/shared.ts
CHANGED
|
@@ -739,11 +739,6 @@ export namespace ChangedSubscriptionResources {
|
|
|
739
739
|
*/
|
|
740
740
|
credits_applied: string;
|
|
741
741
|
|
|
742
|
-
/**
|
|
743
|
-
* @deprecated This field is deprecated in favor of `adjustments`
|
|
744
|
-
*/
|
|
745
|
-
discount: Shared.Discount | null;
|
|
746
|
-
|
|
747
742
|
/**
|
|
748
743
|
* The end date of the range of time applied for this line item's price.
|
|
749
744
|
*/
|
|
@@ -761,26 +756,6 @@ export namespace ChangedSubscriptionResources {
|
|
|
761
756
|
*/
|
|
762
757
|
grouping: string | null;
|
|
763
758
|
|
|
764
|
-
/**
|
|
765
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
766
|
-
*/
|
|
767
|
-
maximum: Shared.Maximum | null;
|
|
768
|
-
|
|
769
|
-
/**
|
|
770
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
771
|
-
*/
|
|
772
|
-
maximum_amount: string | null;
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
776
|
-
*/
|
|
777
|
-
minimum: Shared.Minimum | null;
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
781
|
-
*/
|
|
782
|
-
minimum_amount: string | null;
|
|
783
|
-
|
|
784
759
|
/**
|
|
785
760
|
* The name of the price associated with this line item.
|
|
786
761
|
*/
|
|
@@ -2009,11 +1984,6 @@ export namespace Invoice {
|
|
|
2009
1984
|
*/
|
|
2010
1985
|
credits_applied: string;
|
|
2011
1986
|
|
|
2012
|
-
/**
|
|
2013
|
-
* @deprecated This field is deprecated in favor of `adjustments`
|
|
2014
|
-
*/
|
|
2015
|
-
discount: Shared.Discount | null;
|
|
2016
|
-
|
|
2017
1987
|
/**
|
|
2018
1988
|
* The end date of the range of time applied for this line item's price.
|
|
2019
1989
|
*/
|
|
@@ -2031,26 +2001,6 @@ export namespace Invoice {
|
|
|
2031
2001
|
*/
|
|
2032
2002
|
grouping: string | null;
|
|
2033
2003
|
|
|
2034
|
-
/**
|
|
2035
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2036
|
-
*/
|
|
2037
|
-
maximum: Shared.Maximum | null;
|
|
2038
|
-
|
|
2039
|
-
/**
|
|
2040
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2041
|
-
*/
|
|
2042
|
-
maximum_amount: string | null;
|
|
2043
|
-
|
|
2044
|
-
/**
|
|
2045
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2046
|
-
*/
|
|
2047
|
-
minimum: Shared.Minimum | null;
|
|
2048
|
-
|
|
2049
|
-
/**
|
|
2050
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2051
|
-
*/
|
|
2052
|
-
minimum_amount: string | null;
|
|
2053
|
-
|
|
2054
2004
|
/**
|
|
2055
2005
|
* The name of the price associated with this line item.
|
|
2056
2006
|
*/
|
|
@@ -10029,6 +9979,7 @@ export type Price =
|
|
|
10029
9979
|
| Price.ScalableMatrixWithUnitPricingPrice
|
|
10030
9980
|
| Price.ScalableMatrixWithTieredPricingPrice
|
|
10031
9981
|
| Price.CumulativeGroupedBulkPrice
|
|
9982
|
+
| Price.CumulativeGroupedAllocationPrice
|
|
10032
9983
|
| Price.MinimumCompositePrice
|
|
10033
9984
|
| Price.PercentCompositePrice
|
|
10034
9985
|
| Price.EventOutputPrice;
|
|
@@ -13784,6 +13735,143 @@ export namespace Price {
|
|
|
13784
13735
|
}
|
|
13785
13736
|
}
|
|
13786
13737
|
|
|
13738
|
+
export interface CumulativeGroupedAllocationPrice {
|
|
13739
|
+
id: string;
|
|
13740
|
+
|
|
13741
|
+
billable_metric: Shared.BillableMetricTiny | null;
|
|
13742
|
+
|
|
13743
|
+
billing_cycle_configuration: Shared.BillingCycleConfiguration;
|
|
13744
|
+
|
|
13745
|
+
billing_mode: 'in_advance' | 'in_arrear';
|
|
13746
|
+
|
|
13747
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
13748
|
+
|
|
13749
|
+
composite_price_filters: Array<CumulativeGroupedAllocationPrice.CompositePriceFilter> | null;
|
|
13750
|
+
|
|
13751
|
+
conversion_rate: number | null;
|
|
13752
|
+
|
|
13753
|
+
conversion_rate_config: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
13754
|
+
|
|
13755
|
+
created_at: string;
|
|
13756
|
+
|
|
13757
|
+
credit_allocation: Shared.Allocation | null;
|
|
13758
|
+
|
|
13759
|
+
/**
|
|
13760
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
13761
|
+
*/
|
|
13762
|
+
cumulative_grouped_allocation_config: CumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
13763
|
+
|
|
13764
|
+
currency: string;
|
|
13765
|
+
|
|
13766
|
+
/**
|
|
13767
|
+
* @deprecated
|
|
13768
|
+
*/
|
|
13769
|
+
discount: Shared.Discount | null;
|
|
13770
|
+
|
|
13771
|
+
external_price_id: string | null;
|
|
13772
|
+
|
|
13773
|
+
fixed_price_quantity: number | null;
|
|
13774
|
+
|
|
13775
|
+
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
13776
|
+
|
|
13777
|
+
/**
|
|
13778
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
13779
|
+
* information.
|
|
13780
|
+
*/
|
|
13781
|
+
item: Shared.ItemSlim;
|
|
13782
|
+
|
|
13783
|
+
/**
|
|
13784
|
+
* @deprecated
|
|
13785
|
+
*/
|
|
13786
|
+
maximum: Shared.Maximum | null;
|
|
13787
|
+
|
|
13788
|
+
/**
|
|
13789
|
+
* @deprecated
|
|
13790
|
+
*/
|
|
13791
|
+
maximum_amount: string | null;
|
|
13792
|
+
|
|
13793
|
+
/**
|
|
13794
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
13795
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
13796
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
13797
|
+
* `null`.
|
|
13798
|
+
*/
|
|
13799
|
+
metadata: { [key: string]: string };
|
|
13800
|
+
|
|
13801
|
+
/**
|
|
13802
|
+
* @deprecated
|
|
13803
|
+
*/
|
|
13804
|
+
minimum: Shared.Minimum | null;
|
|
13805
|
+
|
|
13806
|
+
/**
|
|
13807
|
+
* @deprecated
|
|
13808
|
+
*/
|
|
13809
|
+
minimum_amount: string | null;
|
|
13810
|
+
|
|
13811
|
+
/**
|
|
13812
|
+
* The pricing model type
|
|
13813
|
+
*/
|
|
13814
|
+
model_type: 'cumulative_grouped_allocation';
|
|
13815
|
+
|
|
13816
|
+
name: string;
|
|
13817
|
+
|
|
13818
|
+
plan_phase_order: number | null;
|
|
13819
|
+
|
|
13820
|
+
price_type: 'usage_price' | 'fixed_price' | 'composite_price';
|
|
13821
|
+
|
|
13822
|
+
/**
|
|
13823
|
+
* The price id this price replaces. This price will take the place of the replaced
|
|
13824
|
+
* price in plan version migrations.
|
|
13825
|
+
*/
|
|
13826
|
+
replaces_price_id: string | null;
|
|
13827
|
+
|
|
13828
|
+
dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
|
|
13829
|
+
}
|
|
13830
|
+
|
|
13831
|
+
export namespace CumulativeGroupedAllocationPrice {
|
|
13832
|
+
export interface CompositePriceFilter {
|
|
13833
|
+
/**
|
|
13834
|
+
* The property of the price to filter on.
|
|
13835
|
+
*/
|
|
13836
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
13837
|
+
|
|
13838
|
+
/**
|
|
13839
|
+
* Should prices that match the filter be included or excluded.
|
|
13840
|
+
*/
|
|
13841
|
+
operator: 'includes' | 'excludes';
|
|
13842
|
+
|
|
13843
|
+
/**
|
|
13844
|
+
* The IDs or values that match this filter.
|
|
13845
|
+
*/
|
|
13846
|
+
values: Array<string>;
|
|
13847
|
+
}
|
|
13848
|
+
|
|
13849
|
+
/**
|
|
13850
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
13851
|
+
*/
|
|
13852
|
+
export interface CumulativeGroupedAllocationConfig {
|
|
13853
|
+
/**
|
|
13854
|
+
* The overall allocation across all groups
|
|
13855
|
+
*/
|
|
13856
|
+
cumulative_allocation: string;
|
|
13857
|
+
|
|
13858
|
+
/**
|
|
13859
|
+
* The allocation per individual group
|
|
13860
|
+
*/
|
|
13861
|
+
group_allocation: string;
|
|
13862
|
+
|
|
13863
|
+
/**
|
|
13864
|
+
* The event property used to group usage before applying allocations
|
|
13865
|
+
*/
|
|
13866
|
+
grouping_key: string;
|
|
13867
|
+
|
|
13868
|
+
/**
|
|
13869
|
+
* The amount to charge for each unit outside of the allocation
|
|
13870
|
+
*/
|
|
13871
|
+
unit_amount: string;
|
|
13872
|
+
}
|
|
13873
|
+
}
|
|
13874
|
+
|
|
13787
13875
|
export interface MinimumCompositePrice {
|
|
13788
13876
|
id: string;
|
|
13789
13877
|
|