orb-billing 5.31.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 +8 -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/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 -1
- 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/plans/plans.ts +150 -21
- package/src/resources/prices/prices.ts +366 -0
- package/src/resources/shared.ts +138 -0
- 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
|
@@ -9979,6 +9979,7 @@ export type Price =
|
|
|
9979
9979
|
| Price.ScalableMatrixWithUnitPricingPrice
|
|
9980
9980
|
| Price.ScalableMatrixWithTieredPricingPrice
|
|
9981
9981
|
| Price.CumulativeGroupedBulkPrice
|
|
9982
|
+
| Price.CumulativeGroupedAllocationPrice
|
|
9982
9983
|
| Price.MinimumCompositePrice
|
|
9983
9984
|
| Price.PercentCompositePrice
|
|
9984
9985
|
| Price.EventOutputPrice;
|
|
@@ -13734,6 +13735,143 @@ export namespace Price {
|
|
|
13734
13735
|
}
|
|
13735
13736
|
}
|
|
13736
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
|
+
|
|
13737
13875
|
export interface MinimumCompositePrice {
|
|
13738
13876
|
id: string;
|
|
13739
13877
|
|