orb-billing 6.12.0 → 6.13.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.13.0](https://github.com/orbcorp/orb-typescript/compare/v6.12.0...v6.13.0) (2026-08-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** restore deprecated `scaling_factor` field on unit and matrix price configs ([b013fea](https://github.com/orbcorp/orb-typescript/commit/b013fea291a3a9e05b44b01cac9793ef7b0b12bd))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **api:** reject empty or missing dimension values in dimensional price configuration ([b013fea](https://github.com/orbcorp/orb-typescript/commit/b013fea291a3a9e05b44b01cac9793ef7b0b12bd))
14
+
3
15
  ## [6.12.0](https://github.com/orbcorp/orb-typescript/compare/v6.11.0...v6.12.0) (2026-08-19)
4
16
 
5
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orb-billing",
3
- "version": "6.12.0",
3
+ "version": "6.13.0",
4
4
  "description": "The official TypeScript library for the Orb API",
5
5
  "author": "Orb <team@withorb.com>",
6
6
  "types": "./index.d.ts",
@@ -1941,6 +1941,11 @@ export interface MatrixConfig {
1941
1941
  * Matrix values configuration
1942
1942
  */
1943
1943
  matrix_values: Array<MatrixValue>;
1944
+ /**
1945
+ * @deprecated Optional multiplier applied to default-bucket quantity before
1946
+ * default_unit_amount.
1947
+ */
1948
+ scaling_factor?: number | null;
1944
1949
  }
1945
1950
  export interface MatrixSubLineItem {
1946
1951
  /**
@@ -1969,6 +1974,10 @@ export interface MatrixValue {
1969
1974
  * Unit price for the specified dimension_values
1970
1975
  */
1971
1976
  unit_amount: string;
1977
+ /**
1978
+ * @deprecated Optional multiplier applied to rated quantity before unit_amount.
1979
+ */
1980
+ scaling_factor?: number | null;
1972
1981
  }
1973
1982
  /**
1974
1983
  * Configuration for matrix pricing with usage allocation
@@ -1990,6 +1999,11 @@ export interface MatrixWithAllocationConfig {
1990
1999
  * Matrix values configuration
1991
2000
  */
1992
2001
  matrix_values: Array<MatrixWithAllocationConfig.MatrixValue>;
2002
+ /**
2003
+ * @deprecated Optional multiplier applied to default-bucket quantity before
2004
+ * default_unit_amount.
2005
+ */
2006
+ scaling_factor?: string | null;
1993
2007
  }
1994
2008
  export declare namespace MatrixWithAllocationConfig {
1995
2009
  /**
@@ -2006,6 +2020,10 @@ export declare namespace MatrixWithAllocationConfig {
2006
2020
  * Unit price for the specified dimension_values
2007
2021
  */
2008
2022
  unit_amount: string;
2023
+ /**
2024
+ * @deprecated Optional multiplier applied to rated quantity before unit_amount.
2025
+ */
2026
+ scaling_factor?: string | null;
2009
2027
  }
2010
2028
  }
2011
2029
  export interface Maximum {
@@ -13617,6 +13635,10 @@ export interface UnitConfig {
13617
13635
  * If true, subtotals from this price are prorated based on the service period
13618
13636
  */
13619
13637
  prorated?: boolean;
13638
+ /**
13639
+ * @deprecated Optional multiplier applied to rated quantity before unit_amount.
13640
+ */
13641
+ scaling_factor?: number | null;
13620
13642
  }
13621
13643
  export interface UnitConversionRateConfig {
13622
13644
  conversion_rate_type: 'unit';