orb-billing 5.31.0 → 5.33.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/plans/plans.d.ts +109 -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.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 +129 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prices.js","sourceRoot":"","sources":["../../src/resources/prices/prices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAI9C,yCAAuC;
|
|
1
|
+
{"version":3,"file":"prices.js","sourceRoot":"","sources":["../../src/resources/prices/prices.ts"],"names":[],"mappings":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AC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,gBAAgB,CACd,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,qBAAqB,CACnB,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAe,EAAE,OAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AAkwKD,MAAM,CAAC,eAAe,GAAG,eAAe,CAAC;AAsBzC,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -8148,7 +8148,7 @@ export declare namespace PlanPhaseUsageDiscountAdjustment {
|
|
|
8148
8148
|
* For more on the types of prices, see
|
|
8149
8149
|
* [the core concepts documentation](/core-concepts#plan-and-price)
|
|
8150
8150
|
*/
|
|
8151
|
-
export type Price = Price.UnitPrice | Price.TieredPrice | Price.BulkPrice | Price.BulkWithFiltersPrice | Price.PackagePrice | Price.MatrixPrice | Price.ThresholdTotalAmountPrice | Price.TieredPackagePrice | Price.TieredWithMinimumPrice | Price.GroupedTieredPrice | Price.TieredPackageWithMinimumPrice | Price.PackageWithAllocationPrice | Price.UnitWithPercentPrice | Price.MatrixWithAllocationPrice | Price.TieredWithProrationPrice | Price.UnitWithProrationPrice | Price.GroupedAllocationPrice | Price.BulkWithProrationPrice | Price.GroupedWithProratedMinimumPrice | Price.GroupedWithMeteredMinimumPrice | Price.GroupedWithMinMaxThresholdsPrice | Price.MatrixWithDisplayNamePrice | Price.GroupedTieredPackagePrice | Price.MaxGroupTieredPackagePrice | Price.ScalableMatrixWithUnitPricingPrice | Price.ScalableMatrixWithTieredPricingPrice | Price.CumulativeGroupedBulkPrice | Price.MinimumCompositePrice | Price.PercentCompositePrice | Price.EventOutputPrice;
|
|
8151
|
+
export type Price = Price.UnitPrice | Price.TieredPrice | Price.BulkPrice | Price.BulkWithFiltersPrice | Price.PackagePrice | Price.MatrixPrice | Price.ThresholdTotalAmountPrice | Price.TieredPackagePrice | Price.TieredWithMinimumPrice | Price.GroupedTieredPrice | Price.TieredPackageWithMinimumPrice | Price.PackageWithAllocationPrice | Price.UnitWithPercentPrice | Price.MatrixWithAllocationPrice | Price.TieredWithProrationPrice | Price.UnitWithProrationPrice | Price.GroupedAllocationPrice | Price.BulkWithProrationPrice | Price.GroupedWithProratedMinimumPrice | Price.GroupedWithMeteredMinimumPrice | Price.GroupedWithMinMaxThresholdsPrice | Price.MatrixWithDisplayNamePrice | Price.GroupedTieredPackagePrice | Price.MaxGroupTieredPackagePrice | Price.ScalableMatrixWithUnitPricingPrice | Price.ScalableMatrixWithTieredPricingPrice | Price.CumulativeGroupedBulkPrice | Price.CumulativeGroupedAllocationPrice | Price.MinimumCompositePrice | Price.PercentCompositePrice | Price.EventOutputPrice;
|
|
8152
8152
|
export declare namespace Price {
|
|
8153
8153
|
interface UnitPrice {
|
|
8154
8154
|
id: string;
|
|
@@ -11019,6 +11019,110 @@ export declare namespace Price {
|
|
|
11019
11019
|
}
|
|
11020
11020
|
}
|
|
11021
11021
|
}
|
|
11022
|
+
interface CumulativeGroupedAllocationPrice {
|
|
11023
|
+
id: string;
|
|
11024
|
+
billable_metric: Shared.BillableMetricTiny | null;
|
|
11025
|
+
billing_cycle_configuration: Shared.BillingCycleConfiguration;
|
|
11026
|
+
billing_mode: 'in_advance' | 'in_arrear';
|
|
11027
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
11028
|
+
composite_price_filters: Array<CumulativeGroupedAllocationPrice.CompositePriceFilter> | null;
|
|
11029
|
+
conversion_rate: number | null;
|
|
11030
|
+
conversion_rate_config: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
11031
|
+
created_at: string;
|
|
11032
|
+
credit_allocation: Shared.Allocation | null;
|
|
11033
|
+
/**
|
|
11034
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
11035
|
+
*/
|
|
11036
|
+
cumulative_grouped_allocation_config: CumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
11037
|
+
currency: string;
|
|
11038
|
+
/**
|
|
11039
|
+
* @deprecated
|
|
11040
|
+
*/
|
|
11041
|
+
discount: Shared.Discount | null;
|
|
11042
|
+
external_price_id: string | null;
|
|
11043
|
+
fixed_price_quantity: number | null;
|
|
11044
|
+
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11045
|
+
/**
|
|
11046
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11047
|
+
* information.
|
|
11048
|
+
*/
|
|
11049
|
+
item: Shared.ItemSlim;
|
|
11050
|
+
/**
|
|
11051
|
+
* @deprecated
|
|
11052
|
+
*/
|
|
11053
|
+
maximum: Shared.Maximum | null;
|
|
11054
|
+
/**
|
|
11055
|
+
* @deprecated
|
|
11056
|
+
*/
|
|
11057
|
+
maximum_amount: string | null;
|
|
11058
|
+
/**
|
|
11059
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
11060
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
11061
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
11062
|
+
* `null`.
|
|
11063
|
+
*/
|
|
11064
|
+
metadata: {
|
|
11065
|
+
[key: string]: string;
|
|
11066
|
+
};
|
|
11067
|
+
/**
|
|
11068
|
+
* @deprecated
|
|
11069
|
+
*/
|
|
11070
|
+
minimum: Shared.Minimum | null;
|
|
11071
|
+
/**
|
|
11072
|
+
* @deprecated
|
|
11073
|
+
*/
|
|
11074
|
+
minimum_amount: string | null;
|
|
11075
|
+
/**
|
|
11076
|
+
* The pricing model type
|
|
11077
|
+
*/
|
|
11078
|
+
model_type: 'cumulative_grouped_allocation';
|
|
11079
|
+
name: string;
|
|
11080
|
+
plan_phase_order: number | null;
|
|
11081
|
+
price_type: 'usage_price' | 'fixed_price' | 'composite_price';
|
|
11082
|
+
/**
|
|
11083
|
+
* The price id this price replaces. This price will take the place of the replaced
|
|
11084
|
+
* price in plan version migrations.
|
|
11085
|
+
*/
|
|
11086
|
+
replaces_price_id: string | null;
|
|
11087
|
+
dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
|
|
11088
|
+
}
|
|
11089
|
+
namespace CumulativeGroupedAllocationPrice {
|
|
11090
|
+
interface CompositePriceFilter {
|
|
11091
|
+
/**
|
|
11092
|
+
* The property of the price to filter on.
|
|
11093
|
+
*/
|
|
11094
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
11095
|
+
/**
|
|
11096
|
+
* Should prices that match the filter be included or excluded.
|
|
11097
|
+
*/
|
|
11098
|
+
operator: 'includes' | 'excludes';
|
|
11099
|
+
/**
|
|
11100
|
+
* The IDs or values that match this filter.
|
|
11101
|
+
*/
|
|
11102
|
+
values: Array<string>;
|
|
11103
|
+
}
|
|
11104
|
+
/**
|
|
11105
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
11106
|
+
*/
|
|
11107
|
+
interface CumulativeGroupedAllocationConfig {
|
|
11108
|
+
/**
|
|
11109
|
+
* The overall allocation across all groups
|
|
11110
|
+
*/
|
|
11111
|
+
cumulative_allocation: string;
|
|
11112
|
+
/**
|
|
11113
|
+
* The allocation per individual group
|
|
11114
|
+
*/
|
|
11115
|
+
group_allocation: string;
|
|
11116
|
+
/**
|
|
11117
|
+
* The event property used to group usage before applying allocations
|
|
11118
|
+
*/
|
|
11119
|
+
grouping_key: string;
|
|
11120
|
+
/**
|
|
11121
|
+
* The amount to charge for each unit outside of the allocation
|
|
11122
|
+
*/
|
|
11123
|
+
unit_amount: string;
|
|
11124
|
+
}
|
|
11125
|
+
}
|
|
11022
11126
|
interface MinimumCompositePrice {
|
|
11023
11127
|
id: string;
|
|
11024
11128
|
billable_metric: Shared.BillableMetricTiny | null;
|