orb-billing 2.0.1 → 2.1.1
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 +28 -0
- package/README.md +49 -3
- package/core.js +1 -1
- package/core.js.map +1 -1
- package/core.mjs +1 -1
- package/core.mjs.map +1 -1
- package/error.js +1 -1
- package/error.js.map +1 -1
- package/error.mjs +1 -1
- package/error.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/customers/costs.d.ts +2 -2
- package/resources/customers/credits/credits.d.ts +2 -0
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +1 -1
- package/resources/invoices.d.ts +8 -12
- 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 +0 -13
- 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 +1 -45
- 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/subscriptions.d.ts +2 -50
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/core.ts +1 -1
- package/src/error.ts +1 -1
- package/src/resources/customers/costs.ts +2 -2
- package/src/resources/customers/credits/credits.ts +4 -0
- package/src/resources/invoice-line-items.ts +1 -1
- package/src/resources/invoices.ts +8 -13
- package/src/resources/plans/plans.ts +0 -16
- package/src/resources/prices/prices.ts +1 -55
- package/src/resources/subscriptions.ts +2 -61
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -266,7 +266,7 @@ export class PricesPage extends Page<Price> {}
|
|
|
266
266
|
* }
|
|
267
267
|
* ```
|
|
268
268
|
*
|
|
269
|
-
*
|
|
269
|
+
* ## Fixed fees
|
|
270
270
|
*
|
|
271
271
|
* Fixed fees are prices that are applied independent of usage quantities, and
|
|
272
272
|
* follow unit pricing. They also have an additional parameter
|
|
@@ -383,11 +383,6 @@ export namespace Price {
|
|
|
383
383
|
* Rate per unit of usage
|
|
384
384
|
*/
|
|
385
385
|
unit_amount: string;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Multiplier to scale rated quantity by
|
|
389
|
-
*/
|
|
390
|
-
scaling_factor?: number | null;
|
|
391
386
|
}
|
|
392
387
|
}
|
|
393
388
|
|
|
@@ -544,12 +539,6 @@ export namespace Price {
|
|
|
544
539
|
* Matrix values for specified matrix grouping keys
|
|
545
540
|
*/
|
|
546
541
|
matrix_values: Array<MatrixConfig.MatrixValue>;
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
550
|
-
* bucket by
|
|
551
|
-
*/
|
|
552
|
-
scaling_factor?: number | null;
|
|
553
542
|
}
|
|
554
543
|
|
|
555
544
|
export namespace MatrixConfig {
|
|
@@ -565,11 +554,6 @@ export namespace Price {
|
|
|
565
554
|
* Unit price for the specified dimension_values
|
|
566
555
|
*/
|
|
567
556
|
unit_amount: string;
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Optional multiplier to scale rated quantities by
|
|
571
|
-
*/
|
|
572
|
-
scaling_factor?: number | null;
|
|
573
557
|
}
|
|
574
558
|
}
|
|
575
559
|
|
|
@@ -1547,12 +1531,6 @@ export namespace Price {
|
|
|
1547
1531
|
* Matrix values for specified matrix grouping keys
|
|
1548
1532
|
*/
|
|
1549
1533
|
matrix_values: Array<MatrixWithAllocationConfig.MatrixValue>;
|
|
1550
|
-
|
|
1551
|
-
/**
|
|
1552
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
1553
|
-
* bucket by
|
|
1554
|
-
*/
|
|
1555
|
-
scaling_factor?: number | null;
|
|
1556
1534
|
}
|
|
1557
1535
|
|
|
1558
1536
|
export namespace MatrixWithAllocationConfig {
|
|
@@ -1568,11 +1546,6 @@ export namespace Price {
|
|
|
1568
1546
|
* Unit price for the specified dimension_values
|
|
1569
1547
|
*/
|
|
1570
1548
|
unit_amount: string;
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Optional multiplier to scale rated quantities by
|
|
1574
|
-
*/
|
|
1575
|
-
scaling_factor?: number | null;
|
|
1576
1549
|
}
|
|
1577
1550
|
}
|
|
1578
1551
|
|
|
@@ -1682,11 +1655,6 @@ export namespace PriceCreateParams {
|
|
|
1682
1655
|
* Rate per unit of usage
|
|
1683
1656
|
*/
|
|
1684
1657
|
unit_amount: string;
|
|
1685
|
-
|
|
1686
|
-
/**
|
|
1687
|
-
* Multiplier to scale rated quantity by
|
|
1688
|
-
*/
|
|
1689
|
-
scaling_factor?: number | null;
|
|
1690
1658
|
}
|
|
1691
1659
|
}
|
|
1692
1660
|
|
|
@@ -1829,12 +1797,6 @@ export namespace PriceCreateParams {
|
|
|
1829
1797
|
* Matrix values for specified matrix grouping keys
|
|
1830
1798
|
*/
|
|
1831
1799
|
matrix_values: Array<MatrixConfig.MatrixValue>;
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
1835
|
-
* bucket by
|
|
1836
|
-
*/
|
|
1837
|
-
scaling_factor?: number | null;
|
|
1838
1800
|
}
|
|
1839
1801
|
|
|
1840
1802
|
export namespace MatrixConfig {
|
|
@@ -1850,11 +1812,6 @@ export namespace PriceCreateParams {
|
|
|
1850
1812
|
* Unit price for the specified dimension_values
|
|
1851
1813
|
*/
|
|
1852
1814
|
unit_amount: string;
|
|
1853
|
-
|
|
1854
|
-
/**
|
|
1855
|
-
* Optional multiplier to scale rated quantities by
|
|
1856
|
-
*/
|
|
1857
|
-
scaling_factor?: number | null;
|
|
1858
1815
|
}
|
|
1859
1816
|
}
|
|
1860
1817
|
}
|
|
@@ -1934,12 +1891,6 @@ export namespace PriceCreateParams {
|
|
|
1934
1891
|
* Matrix values for specified matrix grouping keys
|
|
1935
1892
|
*/
|
|
1936
1893
|
matrix_values: Array<MatrixWithAllocationConfig.MatrixValue>;
|
|
1937
|
-
|
|
1938
|
-
/**
|
|
1939
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
1940
|
-
* bucket by
|
|
1941
|
-
*/
|
|
1942
|
-
scaling_factor?: number | null;
|
|
1943
1894
|
}
|
|
1944
1895
|
|
|
1945
1896
|
export namespace MatrixWithAllocationConfig {
|
|
@@ -1955,11 +1906,6 @@ export namespace PriceCreateParams {
|
|
|
1955
1906
|
* Unit price for the specified dimension_values
|
|
1956
1907
|
*/
|
|
1957
1908
|
unit_amount: string;
|
|
1958
|
-
|
|
1959
|
-
/**
|
|
1960
|
-
* Optional multiplier to scale rated quantities by
|
|
1961
|
-
*/
|
|
1962
|
-
scaling_factor?: number | null;
|
|
1963
1909
|
}
|
|
1964
1910
|
}
|
|
1965
1911
|
}
|
|
@@ -1580,7 +1580,7 @@ export namespace Subscription {
|
|
|
1580
1580
|
* }
|
|
1581
1581
|
* ```
|
|
1582
1582
|
*
|
|
1583
|
-
*
|
|
1583
|
+
* ## Fixed fees
|
|
1584
1584
|
*
|
|
1585
1585
|
* Fixed fees are prices that are applied independent of usage quantities, and
|
|
1586
1586
|
* follow unit pricing. They also have an additional parameter
|
|
@@ -1966,7 +1966,7 @@ export namespace SubscriptionFetchCostsResponse {
|
|
|
1966
1966
|
* }
|
|
1967
1967
|
* ```
|
|
1968
1968
|
*
|
|
1969
|
-
*
|
|
1969
|
+
* ## Fixed fees
|
|
1970
1970
|
*
|
|
1971
1971
|
* Fixed fees are prices that are applied independent of usage quantities, and
|
|
1972
1972
|
* follow unit pricing. They also have an additional parameter
|
|
@@ -2138,11 +2138,6 @@ export namespace SubscriptionCreateParams {
|
|
|
2138
2138
|
* Rate per unit of usage
|
|
2139
2139
|
*/
|
|
2140
2140
|
unit_amount: string;
|
|
2141
|
-
|
|
2142
|
-
/**
|
|
2143
|
-
* Multiplier to scale rated quantity by
|
|
2144
|
-
*/
|
|
2145
|
-
scaling_factor?: number | null;
|
|
2146
2141
|
}
|
|
2147
2142
|
|
|
2148
2143
|
/**
|
|
@@ -2303,12 +2298,6 @@ export namespace SubscriptionCreateParams {
|
|
|
2303
2298
|
* Matrix values for specified matrix grouping keys
|
|
2304
2299
|
*/
|
|
2305
2300
|
matrix_values: Array<MatrixConfig.MatrixValue>;
|
|
2306
|
-
|
|
2307
|
-
/**
|
|
2308
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
2309
|
-
* bucket by
|
|
2310
|
-
*/
|
|
2311
|
-
scaling_factor?: number | null;
|
|
2312
2301
|
}
|
|
2313
2302
|
|
|
2314
2303
|
export namespace MatrixConfig {
|
|
@@ -2324,11 +2313,6 @@ export namespace SubscriptionCreateParams {
|
|
|
2324
2313
|
* Unit price for the specified dimension_values
|
|
2325
2314
|
*/
|
|
2326
2315
|
unit_amount: string;
|
|
2327
|
-
|
|
2328
|
-
/**
|
|
2329
|
-
* Optional multiplier to scale rated quantities by
|
|
2330
|
-
*/
|
|
2331
|
-
scaling_factor?: number | null;
|
|
2332
2316
|
}
|
|
2333
2317
|
}
|
|
2334
2318
|
|
|
@@ -3439,11 +3423,6 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3439
3423
|
* Rate per unit of usage
|
|
3440
3424
|
*/
|
|
3441
3425
|
unit_amount: string;
|
|
3442
|
-
|
|
3443
|
-
/**
|
|
3444
|
-
* Multiplier to scale rated quantity by
|
|
3445
|
-
*/
|
|
3446
|
-
scaling_factor?: number | null;
|
|
3447
3426
|
}
|
|
3448
3427
|
}
|
|
3449
3428
|
|
|
@@ -3586,12 +3565,6 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3586
3565
|
* Matrix values for specified matrix grouping keys
|
|
3587
3566
|
*/
|
|
3588
3567
|
matrix_values: Array<MatrixConfig.MatrixValue>;
|
|
3589
|
-
|
|
3590
|
-
/**
|
|
3591
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
3592
|
-
* bucket by
|
|
3593
|
-
*/
|
|
3594
|
-
scaling_factor?: number | null;
|
|
3595
3568
|
}
|
|
3596
3569
|
|
|
3597
3570
|
export namespace MatrixConfig {
|
|
@@ -3607,11 +3580,6 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3607
3580
|
* Unit price for the specified dimension_values
|
|
3608
3581
|
*/
|
|
3609
3582
|
unit_amount: string;
|
|
3610
|
-
|
|
3611
|
-
/**
|
|
3612
|
-
* Optional multiplier to scale rated quantities by
|
|
3613
|
-
*/
|
|
3614
|
-
scaling_factor?: number | null;
|
|
3615
3583
|
}
|
|
3616
3584
|
}
|
|
3617
3585
|
}
|
|
@@ -3691,12 +3659,6 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3691
3659
|
* Matrix values for specified matrix grouping keys
|
|
3692
3660
|
*/
|
|
3693
3661
|
matrix_values: Array<MatrixWithAllocationConfig.MatrixValue>;
|
|
3694
|
-
|
|
3695
|
-
/**
|
|
3696
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
3697
|
-
* bucket by
|
|
3698
|
-
*/
|
|
3699
|
-
scaling_factor?: number | null;
|
|
3700
3662
|
}
|
|
3701
3663
|
|
|
3702
3664
|
export namespace MatrixWithAllocationConfig {
|
|
@@ -3712,11 +3674,6 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3712
3674
|
* Unit price for the specified dimension_values
|
|
3713
3675
|
*/
|
|
3714
3676
|
unit_amount: string;
|
|
3715
|
-
|
|
3716
|
-
/**
|
|
3717
|
-
* Optional multiplier to scale rated quantities by
|
|
3718
|
-
*/
|
|
3719
|
-
scaling_factor?: number | null;
|
|
3720
3677
|
}
|
|
3721
3678
|
}
|
|
3722
3679
|
}
|
|
@@ -4604,11 +4561,6 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4604
4561
|
* Rate per unit of usage
|
|
4605
4562
|
*/
|
|
4606
4563
|
unit_amount: string;
|
|
4607
|
-
|
|
4608
|
-
/**
|
|
4609
|
-
* Multiplier to scale rated quantity by
|
|
4610
|
-
*/
|
|
4611
|
-
scaling_factor?: number | null;
|
|
4612
4564
|
}
|
|
4613
4565
|
|
|
4614
4566
|
/**
|
|
@@ -4769,12 +4721,6 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4769
4721
|
* Matrix values for specified matrix grouping keys
|
|
4770
4722
|
*/
|
|
4771
4723
|
matrix_values: Array<MatrixConfig.MatrixValue>;
|
|
4772
|
-
|
|
4773
|
-
/**
|
|
4774
|
-
* Default optional multiplier to scale rated quantities that fall into the default
|
|
4775
|
-
* bucket by
|
|
4776
|
-
*/
|
|
4777
|
-
scaling_factor?: number | null;
|
|
4778
4724
|
}
|
|
4779
4725
|
|
|
4780
4726
|
export namespace MatrixConfig {
|
|
@@ -4790,11 +4736,6 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4790
4736
|
* Unit price for the specified dimension_values
|
|
4791
4737
|
*/
|
|
4792
4738
|
unit_amount: string;
|
|
4793
|
-
|
|
4794
|
-
/**
|
|
4795
|
-
* Optional multiplier to scale rated quantities by
|
|
4796
|
-
*/
|
|
4797
|
-
scaling_factor?: number | null;
|
|
4798
4739
|
}
|
|
4799
4740
|
}
|
|
4800
4741
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.1.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.1.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.1.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|