orb-billing 5.37.2 → 5.40.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 +35 -0
- package/LICENSE +1 -1
- package/README.md +4 -1
- package/index.d.mts +7 -4
- package/index.d.ts +7 -4
- package/index.d.ts.map +1 -1
- package/index.js +5 -0
- package/index.js.map +1 -1
- package/index.mjs +7 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/credit-blocks.d.ts +59 -0
- package/resources/credit-blocks.d.ts.map +1 -0
- package/resources/credit-blocks.js +38 -0
- package/resources/credit-blocks.js.map +1 -0
- package/resources/credit-blocks.mjs +34 -0
- package/resources/credit-blocks.mjs.map +1 -0
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.ts +439 -2
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +28 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +26 -0
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/index.d.ts +1 -0
- package/resources/plans/index.d.ts.map +1 -1
- package/resources/plans/index.js +4 -1
- package/resources/plans/index.js.map +1 -1
- package/resources/plans/index.mjs +1 -0
- package/resources/plans/index.mjs.map +1 -1
- package/resources/plans/migrations.d.ts +47 -0
- package/resources/plans/migrations.d.ts.map +1 -0
- package/resources/plans/migrations.js +36 -0
- package/resources/plans/migrations.js.map +1 -0
- package/resources/plans/migrations.mjs +31 -0
- package/resources/plans/migrations.mjs.map +1 -0
- package/resources/plans/plans.d.ts +4 -0
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +5 -0
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +5 -0
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/prices.d.ts +1 -91
- 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 +3 -273
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscription-changes.d.ts +96 -1
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscription-changes.js +15 -1
- package/resources/subscription-changes.js.map +1 -1
- package/resources/subscription-changes.mjs +13 -0
- package/resources/subscription-changes.mjs.map +1 -1
- package/resources/subscriptions.d.ts +1 -91
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +19 -0
- package/src/resources/credit-blocks.ts +81 -0
- package/src/resources/index.ts +7 -0
- package/src/resources/invoices.ts +557 -1
- package/src/resources/plans/index.ts +8 -0
- package/src/resources/plans/migrations.ts +105 -0
- package/src/resources/plans/plans.ts +21 -0
- package/src/resources/prices/prices.ts +1 -91
- package/src/resources/shared.ts +3 -273
- package/src/resources/subscription-changes.ts +142 -0
- package/src/resources/subscriptions.ts +1 -91
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/shared.d.ts
CHANGED
|
@@ -2447,9 +2447,6 @@ export declare namespace NewFloatingCumulativeGroupedBulkPrice {
|
|
|
2447
2447
|
* Each tier lower bound must have the same group of values.
|
|
2448
2448
|
*/
|
|
2449
2449
|
dimension_values: Array<CumulativeGroupedBulkConfig.DimensionValue>;
|
|
2450
|
-
/**
|
|
2451
|
-
* Grouping key name
|
|
2452
|
-
*/
|
|
2453
2450
|
group: string;
|
|
2454
2451
|
}
|
|
2455
2452
|
namespace CumulativeGroupedBulkConfig {
|
|
@@ -2658,9 +2655,6 @@ export declare namespace NewFloatingGroupedTieredPackagePrice {
|
|
|
2658
2655
|
* The event property used to group before tiering
|
|
2659
2656
|
*/
|
|
2660
2657
|
grouping_key: string;
|
|
2661
|
-
/**
|
|
2662
|
-
* Package size
|
|
2663
|
-
*/
|
|
2664
2658
|
package_size: string;
|
|
2665
2659
|
/**
|
|
2666
2660
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -2674,12 +2668,9 @@ export declare namespace NewFloatingGroupedTieredPackagePrice {
|
|
|
2674
2668
|
*/
|
|
2675
2669
|
interface Tier {
|
|
2676
2670
|
/**
|
|
2677
|
-
*
|
|
2671
|
+
* Per package
|
|
2678
2672
|
*/
|
|
2679
2673
|
per_unit: string;
|
|
2680
|
-
/**
|
|
2681
|
-
* Tier lower bound
|
|
2682
|
-
*/
|
|
2683
2674
|
tier_lower_bound: string;
|
|
2684
2675
|
}
|
|
2685
2676
|
}
|
|
@@ -2783,9 +2774,6 @@ export declare namespace NewFloatingGroupedTieredPrice {
|
|
|
2783
2774
|
* Configuration for a single tier
|
|
2784
2775
|
*/
|
|
2785
2776
|
interface Tier {
|
|
2786
|
-
/**
|
|
2787
|
-
* Tier lower bound
|
|
2788
|
-
*/
|
|
2789
2777
|
tier_lower_bound: string;
|
|
2790
2778
|
/**
|
|
2791
2779
|
* Per unit amount
|
|
@@ -2910,22 +2898,13 @@ export declare namespace NewFloatingGroupedWithMeteredMinimumPrice {
|
|
|
2910
2898
|
* Configuration for a scaling factor
|
|
2911
2899
|
*/
|
|
2912
2900
|
interface ScalingFactor {
|
|
2913
|
-
/**
|
|
2914
|
-
* Scaling factor
|
|
2915
|
-
*/
|
|
2916
2901
|
scaling_factor: string;
|
|
2917
|
-
/**
|
|
2918
|
-
* Scaling value
|
|
2919
|
-
*/
|
|
2920
2902
|
scaling_value: string;
|
|
2921
2903
|
}
|
|
2922
2904
|
/**
|
|
2923
2905
|
* Configuration for a unit amount
|
|
2924
2906
|
*/
|
|
2925
2907
|
interface UnitAmount {
|
|
2926
|
-
/**
|
|
2927
|
-
* Pricing value
|
|
2928
|
-
*/
|
|
2929
2908
|
pricing_value: string;
|
|
2930
2909
|
/**
|
|
2931
2910
|
* Per unit amount
|
|
@@ -3391,9 +3370,6 @@ export declare namespace NewFloatingMaxGroupTieredPackagePrice {
|
|
|
3391
3370
|
* The event property used to group before tiering the group with the highest value
|
|
3392
3371
|
*/
|
|
3393
3372
|
grouping_key: string;
|
|
3394
|
-
/**
|
|
3395
|
-
* Package size
|
|
3396
|
-
*/
|
|
3397
3373
|
package_size: string;
|
|
3398
3374
|
/**
|
|
3399
3375
|
* Apply tiered pricing to the largest group after grouping with the provided key.
|
|
@@ -3405,9 +3381,6 @@ export declare namespace NewFloatingMaxGroupTieredPackagePrice {
|
|
|
3405
3381
|
* Configuration for a single tier
|
|
3406
3382
|
*/
|
|
3407
3383
|
interface Tier {
|
|
3408
|
-
/**
|
|
3409
|
-
* Tier lower bound
|
|
3410
|
-
*/
|
|
3411
3384
|
tier_lower_bound: string;
|
|
3412
3385
|
/**
|
|
3413
3386
|
* Per unit amount
|
|
@@ -3673,17 +3646,8 @@ export declare namespace NewFloatingPackageWithAllocationPrice {
|
|
|
3673
3646
|
* Configuration for package_with_allocation pricing
|
|
3674
3647
|
*/
|
|
3675
3648
|
interface PackageWithAllocationConfig {
|
|
3676
|
-
/**
|
|
3677
|
-
* Usage allocation
|
|
3678
|
-
*/
|
|
3679
3649
|
allocation: string;
|
|
3680
|
-
/**
|
|
3681
|
-
* Price per package
|
|
3682
|
-
*/
|
|
3683
3650
|
package_amount: string;
|
|
3684
|
-
/**
|
|
3685
|
-
* Package size
|
|
3686
|
-
*/
|
|
3687
3651
|
package_size: string;
|
|
3688
3652
|
}
|
|
3689
3653
|
}
|
|
@@ -3779,9 +3743,6 @@ export declare namespace NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
|
3779
3743
|
* Apply a scaling factor to each dimension
|
|
3780
3744
|
*/
|
|
3781
3745
|
matrix_scaling_factors: Array<ScalableMatrixWithTieredPricingConfig.MatrixScalingFactor>;
|
|
3782
|
-
/**
|
|
3783
|
-
* Tier pricing structure
|
|
3784
|
-
*/
|
|
3785
3746
|
tiers: Array<ScalableMatrixWithTieredPricingConfig.Tier>;
|
|
3786
3747
|
/**
|
|
3787
3748
|
* Used for the scalable matrix second dimension (optional)
|
|
@@ -3793,30 +3754,15 @@ export declare namespace NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
|
3793
3754
|
* Configuration for a single matrix scaling factor
|
|
3794
3755
|
*/
|
|
3795
3756
|
interface MatrixScalingFactor {
|
|
3796
|
-
/**
|
|
3797
|
-
* First dimension value
|
|
3798
|
-
*/
|
|
3799
3757
|
first_dimension_value: string;
|
|
3800
|
-
/**
|
|
3801
|
-
* Scaling factor
|
|
3802
|
-
*/
|
|
3803
3758
|
scaling_factor: string;
|
|
3804
|
-
/**
|
|
3805
|
-
* Second dimension value (optional)
|
|
3806
|
-
*/
|
|
3807
3759
|
second_dimension_value?: string | null;
|
|
3808
3760
|
}
|
|
3809
3761
|
/**
|
|
3810
3762
|
* Configuration for a single tier entry with business logic
|
|
3811
3763
|
*/
|
|
3812
3764
|
interface Tier {
|
|
3813
|
-
/**
|
|
3814
|
-
* Tier lower bound
|
|
3815
|
-
*/
|
|
3816
3765
|
tier_lower_bound: string;
|
|
3817
|
-
/**
|
|
3818
|
-
* Per unit amount
|
|
3819
|
-
*/
|
|
3820
3766
|
unit_amount: string;
|
|
3821
3767
|
}
|
|
3822
3768
|
}
|
|
@@ -3931,17 +3877,8 @@ export declare namespace NewFloatingScalableMatrixWithUnitPricingPrice {
|
|
|
3931
3877
|
* Configuration for a single matrix scaling factor
|
|
3932
3878
|
*/
|
|
3933
3879
|
interface MatrixScalingFactor {
|
|
3934
|
-
/**
|
|
3935
|
-
* First dimension value
|
|
3936
|
-
*/
|
|
3937
3880
|
first_dimension_value: string;
|
|
3938
|
-
/**
|
|
3939
|
-
* Scaling factor
|
|
3940
|
-
*/
|
|
3941
3881
|
scaling_factor: string;
|
|
3942
|
-
/**
|
|
3943
|
-
* Second dimension value (optional)
|
|
3944
|
-
*/
|
|
3945
3882
|
second_dimension_value?: string | null;
|
|
3946
3883
|
}
|
|
3947
3884
|
}
|
|
@@ -4045,9 +3982,6 @@ export declare namespace NewFloatingThresholdTotalAmountPrice {
|
|
|
4045
3982
|
* Configuration for a single threshold
|
|
4046
3983
|
*/
|
|
4047
3984
|
interface ConsumptionTable {
|
|
4048
|
-
/**
|
|
4049
|
-
* Quantity threshold
|
|
4050
|
-
*/
|
|
4051
3985
|
threshold: string;
|
|
4052
3986
|
/**
|
|
4053
3987
|
* Total amount for this threshold
|
|
@@ -4140,9 +4074,6 @@ export declare namespace NewFloatingTieredPackagePrice {
|
|
|
4140
4074
|
* Configuration for tiered_package pricing
|
|
4141
4075
|
*/
|
|
4142
4076
|
interface TieredPackageConfig {
|
|
4143
|
-
/**
|
|
4144
|
-
* Package size
|
|
4145
|
-
*/
|
|
4146
4077
|
package_size: string;
|
|
4147
4078
|
/**
|
|
4148
4079
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -4161,9 +4092,6 @@ export declare namespace NewFloatingTieredPackagePrice {
|
|
|
4161
4092
|
* Price per package
|
|
4162
4093
|
*/
|
|
4163
4094
|
per_unit: string;
|
|
4164
|
-
/**
|
|
4165
|
-
* Tier lower bound
|
|
4166
|
-
*/
|
|
4167
4095
|
tier_lower_bound: string;
|
|
4168
4096
|
}
|
|
4169
4097
|
}
|
|
@@ -4252,9 +4180,6 @@ export declare namespace NewFloatingTieredPackageWithMinimumPrice {
|
|
|
4252
4180
|
* Configuration for tiered_package_with_minimum pricing
|
|
4253
4181
|
*/
|
|
4254
4182
|
interface TieredPackageWithMinimumConfig {
|
|
4255
|
-
/**
|
|
4256
|
-
* Package size
|
|
4257
|
-
*/
|
|
4258
4183
|
package_size: number;
|
|
4259
4184
|
/**
|
|
4260
4185
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -4267,17 +4192,8 @@ export declare namespace NewFloatingTieredPackageWithMinimumPrice {
|
|
|
4267
4192
|
* Configuration for a single tier
|
|
4268
4193
|
*/
|
|
4269
4194
|
interface Tier {
|
|
4270
|
-
/**
|
|
4271
|
-
* Minimum amount
|
|
4272
|
-
*/
|
|
4273
4195
|
minimum_amount: string;
|
|
4274
|
-
/**
|
|
4275
|
-
* Price per package
|
|
4276
|
-
*/
|
|
4277
4196
|
per_unit: string;
|
|
4278
|
-
/**
|
|
4279
|
-
* Tier lower bound
|
|
4280
|
-
*/
|
|
4281
4197
|
tier_lower_bound: string;
|
|
4282
4198
|
}
|
|
4283
4199
|
}
|
|
@@ -4464,13 +4380,7 @@ export declare namespace NewFloatingTieredWithMinimumPrice {
|
|
|
4464
4380
|
* Configuration for a single tier
|
|
4465
4381
|
*/
|
|
4466
4382
|
interface Tier {
|
|
4467
|
-
/**
|
|
4468
|
-
* Minimum amount
|
|
4469
|
-
*/
|
|
4470
4383
|
minimum_amount: string;
|
|
4471
|
-
/**
|
|
4472
|
-
* Tier lower bound
|
|
4473
|
-
*/
|
|
4474
4384
|
tier_lower_bound: string;
|
|
4475
4385
|
/**
|
|
4476
4386
|
* Per unit amount
|
|
@@ -5289,9 +5199,6 @@ export declare namespace NewPlanCumulativeGroupedBulkPrice {
|
|
|
5289
5199
|
* Each tier lower bound must have the same group of values.
|
|
5290
5200
|
*/
|
|
5291
5201
|
dimension_values: Array<CumulativeGroupedBulkConfig.DimensionValue>;
|
|
5292
|
-
/**
|
|
5293
|
-
* Grouping key name
|
|
5294
|
-
*/
|
|
5295
5202
|
group: string;
|
|
5296
5203
|
}
|
|
5297
5204
|
namespace CumulativeGroupedBulkConfig {
|
|
@@ -5512,9 +5419,6 @@ export declare namespace NewPlanGroupedTieredPackagePrice {
|
|
|
5512
5419
|
* The event property used to group before tiering
|
|
5513
5420
|
*/
|
|
5514
5421
|
grouping_key: string;
|
|
5515
|
-
/**
|
|
5516
|
-
* Package size
|
|
5517
|
-
*/
|
|
5518
5422
|
package_size: string;
|
|
5519
5423
|
/**
|
|
5520
5424
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -5528,12 +5432,9 @@ export declare namespace NewPlanGroupedTieredPackagePrice {
|
|
|
5528
5432
|
*/
|
|
5529
5433
|
interface Tier {
|
|
5530
5434
|
/**
|
|
5531
|
-
*
|
|
5435
|
+
* Per package
|
|
5532
5436
|
*/
|
|
5533
5437
|
per_unit: string;
|
|
5534
|
-
/**
|
|
5535
|
-
* Tier lower bound
|
|
5536
|
-
*/
|
|
5537
5438
|
tier_lower_bound: string;
|
|
5538
5439
|
}
|
|
5539
5440
|
}
|
|
@@ -5643,9 +5544,6 @@ export declare namespace NewPlanGroupedTieredPrice {
|
|
|
5643
5544
|
* Configuration for a single tier
|
|
5644
5545
|
*/
|
|
5645
5546
|
interface Tier {
|
|
5646
|
-
/**
|
|
5647
|
-
* Tier lower bound
|
|
5648
|
-
*/
|
|
5649
5547
|
tier_lower_bound: string;
|
|
5650
5548
|
/**
|
|
5651
5549
|
* Per unit amount
|
|
@@ -5776,22 +5674,13 @@ export declare namespace NewPlanGroupedWithMeteredMinimumPrice {
|
|
|
5776
5674
|
* Configuration for a scaling factor
|
|
5777
5675
|
*/
|
|
5778
5676
|
interface ScalingFactor {
|
|
5779
|
-
/**
|
|
5780
|
-
* Scaling factor
|
|
5781
|
-
*/
|
|
5782
5677
|
scaling_factor: string;
|
|
5783
|
-
/**
|
|
5784
|
-
* Scaling value
|
|
5785
|
-
*/
|
|
5786
5678
|
scaling_value: string;
|
|
5787
5679
|
}
|
|
5788
5680
|
/**
|
|
5789
5681
|
* Configuration for a unit amount
|
|
5790
5682
|
*/
|
|
5791
5683
|
interface UnitAmount {
|
|
5792
|
-
/**
|
|
5793
|
-
* Pricing value
|
|
5794
|
-
*/
|
|
5795
5684
|
pricing_value: string;
|
|
5796
5685
|
/**
|
|
5797
5686
|
* Per unit amount
|
|
@@ -6287,9 +6176,6 @@ export declare namespace NewPlanMaxGroupTieredPackagePrice {
|
|
|
6287
6176
|
* The event property used to group before tiering the group with the highest value
|
|
6288
6177
|
*/
|
|
6289
6178
|
grouping_key: string;
|
|
6290
|
-
/**
|
|
6291
|
-
* Package size
|
|
6292
|
-
*/
|
|
6293
6179
|
package_size: string;
|
|
6294
6180
|
/**
|
|
6295
6181
|
* Apply tiered pricing to the largest group after grouping with the provided key.
|
|
@@ -6301,9 +6187,6 @@ export declare namespace NewPlanMaxGroupTieredPackagePrice {
|
|
|
6301
6187
|
* Configuration for a single tier
|
|
6302
6188
|
*/
|
|
6303
6189
|
interface Tier {
|
|
6304
|
-
/**
|
|
6305
|
-
* Tier lower bound
|
|
6306
|
-
*/
|
|
6307
6190
|
tier_lower_bound: string;
|
|
6308
6191
|
/**
|
|
6309
6192
|
* Per unit amount
|
|
@@ -6587,17 +6470,8 @@ export declare namespace NewPlanPackageWithAllocationPrice {
|
|
|
6587
6470
|
* Configuration for package_with_allocation pricing
|
|
6588
6471
|
*/
|
|
6589
6472
|
interface PackageWithAllocationConfig {
|
|
6590
|
-
/**
|
|
6591
|
-
* Usage allocation
|
|
6592
|
-
*/
|
|
6593
6473
|
allocation: string;
|
|
6594
|
-
/**
|
|
6595
|
-
* Price per package
|
|
6596
|
-
*/
|
|
6597
6474
|
package_amount: string;
|
|
6598
|
-
/**
|
|
6599
|
-
* Package size
|
|
6600
|
-
*/
|
|
6601
6475
|
package_size: string;
|
|
6602
6476
|
}
|
|
6603
6477
|
}
|
|
@@ -6699,9 +6573,6 @@ export declare namespace NewPlanScalableMatrixWithTieredPricingPrice {
|
|
|
6699
6573
|
* Apply a scaling factor to each dimension
|
|
6700
6574
|
*/
|
|
6701
6575
|
matrix_scaling_factors: Array<ScalableMatrixWithTieredPricingConfig.MatrixScalingFactor>;
|
|
6702
|
-
/**
|
|
6703
|
-
* Tier pricing structure
|
|
6704
|
-
*/
|
|
6705
6576
|
tiers: Array<ScalableMatrixWithTieredPricingConfig.Tier>;
|
|
6706
6577
|
/**
|
|
6707
6578
|
* Used for the scalable matrix second dimension (optional)
|
|
@@ -6713,30 +6584,15 @@ export declare namespace NewPlanScalableMatrixWithTieredPricingPrice {
|
|
|
6713
6584
|
* Configuration for a single matrix scaling factor
|
|
6714
6585
|
*/
|
|
6715
6586
|
interface MatrixScalingFactor {
|
|
6716
|
-
/**
|
|
6717
|
-
* First dimension value
|
|
6718
|
-
*/
|
|
6719
6587
|
first_dimension_value: string;
|
|
6720
|
-
/**
|
|
6721
|
-
* Scaling factor
|
|
6722
|
-
*/
|
|
6723
6588
|
scaling_factor: string;
|
|
6724
|
-
/**
|
|
6725
|
-
* Second dimension value (optional)
|
|
6726
|
-
*/
|
|
6727
6589
|
second_dimension_value?: string | null;
|
|
6728
6590
|
}
|
|
6729
6591
|
/**
|
|
6730
6592
|
* Configuration for a single tier entry with business logic
|
|
6731
6593
|
*/
|
|
6732
6594
|
interface Tier {
|
|
6733
|
-
/**
|
|
6734
|
-
* Tier lower bound
|
|
6735
|
-
*/
|
|
6736
6595
|
tier_lower_bound: string;
|
|
6737
|
-
/**
|
|
6738
|
-
* Per unit amount
|
|
6739
|
-
*/
|
|
6740
6596
|
unit_amount: string;
|
|
6741
6597
|
}
|
|
6742
6598
|
}
|
|
@@ -6857,17 +6713,8 @@ export declare namespace NewPlanScalableMatrixWithUnitPricingPrice {
|
|
|
6857
6713
|
* Configuration for a single matrix scaling factor
|
|
6858
6714
|
*/
|
|
6859
6715
|
interface MatrixScalingFactor {
|
|
6860
|
-
/**
|
|
6861
|
-
* First dimension value
|
|
6862
|
-
*/
|
|
6863
6716
|
first_dimension_value: string;
|
|
6864
|
-
/**
|
|
6865
|
-
* Scaling factor
|
|
6866
|
-
*/
|
|
6867
6717
|
scaling_factor: string;
|
|
6868
|
-
/**
|
|
6869
|
-
* Second dimension value (optional)
|
|
6870
|
-
*/
|
|
6871
6718
|
second_dimension_value?: string | null;
|
|
6872
6719
|
}
|
|
6873
6720
|
}
|
|
@@ -6977,9 +6824,6 @@ export declare namespace NewPlanThresholdTotalAmountPrice {
|
|
|
6977
6824
|
* Configuration for a single threshold
|
|
6978
6825
|
*/
|
|
6979
6826
|
interface ConsumptionTable {
|
|
6980
|
-
/**
|
|
6981
|
-
* Quantity threshold
|
|
6982
|
-
*/
|
|
6983
6827
|
threshold: string;
|
|
6984
6828
|
/**
|
|
6985
6829
|
* Total amount for this threshold
|
|
@@ -7078,9 +6922,6 @@ export declare namespace NewPlanTieredPackagePrice {
|
|
|
7078
6922
|
* Configuration for tiered_package pricing
|
|
7079
6923
|
*/
|
|
7080
6924
|
interface TieredPackageConfig {
|
|
7081
|
-
/**
|
|
7082
|
-
* Package size
|
|
7083
|
-
*/
|
|
7084
6925
|
package_size: string;
|
|
7085
6926
|
/**
|
|
7086
6927
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -7099,9 +6940,6 @@ export declare namespace NewPlanTieredPackagePrice {
|
|
|
7099
6940
|
* Price per package
|
|
7100
6941
|
*/
|
|
7101
6942
|
per_unit: string;
|
|
7102
|
-
/**
|
|
7103
|
-
* Tier lower bound
|
|
7104
|
-
*/
|
|
7105
6943
|
tier_lower_bound: string;
|
|
7106
6944
|
}
|
|
7107
6945
|
}
|
|
@@ -7196,9 +7034,6 @@ export declare namespace NewPlanTieredPackageWithMinimumPrice {
|
|
|
7196
7034
|
* Configuration for tiered_package_with_minimum pricing
|
|
7197
7035
|
*/
|
|
7198
7036
|
interface TieredPackageWithMinimumConfig {
|
|
7199
|
-
/**
|
|
7200
|
-
* Package size
|
|
7201
|
-
*/
|
|
7202
7037
|
package_size: number;
|
|
7203
7038
|
/**
|
|
7204
7039
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -7211,17 +7046,8 @@ export declare namespace NewPlanTieredPackageWithMinimumPrice {
|
|
|
7211
7046
|
* Configuration for a single tier
|
|
7212
7047
|
*/
|
|
7213
7048
|
interface Tier {
|
|
7214
|
-
/**
|
|
7215
|
-
* Minimum amount
|
|
7216
|
-
*/
|
|
7217
7049
|
minimum_amount: string;
|
|
7218
|
-
/**
|
|
7219
|
-
* Price per package
|
|
7220
|
-
*/
|
|
7221
7050
|
per_unit: string;
|
|
7222
|
-
/**
|
|
7223
|
-
* Tier lower bound
|
|
7224
|
-
*/
|
|
7225
7051
|
tier_lower_bound: string;
|
|
7226
7052
|
}
|
|
7227
7053
|
}
|
|
@@ -7420,13 +7246,7 @@ export declare namespace NewPlanTieredWithMinimumPrice {
|
|
|
7420
7246
|
* Configuration for a single tier
|
|
7421
7247
|
*/
|
|
7422
7248
|
interface Tier {
|
|
7423
|
-
/**
|
|
7424
|
-
* Minimum amount
|
|
7425
|
-
*/
|
|
7426
7249
|
minimum_amount: string;
|
|
7427
|
-
/**
|
|
7428
|
-
* Tier lower bound
|
|
7429
|
-
*/
|
|
7430
7250
|
tier_lower_bound: string;
|
|
7431
7251
|
/**
|
|
7432
7252
|
* Per unit amount
|
|
@@ -8802,9 +8622,6 @@ export declare namespace Price {
|
|
|
8802
8622
|
* Configuration for a single threshold
|
|
8803
8623
|
*/
|
|
8804
8624
|
interface ConsumptionTable {
|
|
8805
|
-
/**
|
|
8806
|
-
* Quantity threshold
|
|
8807
|
-
*/
|
|
8808
8625
|
threshold: string;
|
|
8809
8626
|
/**
|
|
8810
8627
|
* Total amount for this threshold
|
|
@@ -8899,9 +8716,6 @@ export declare namespace Price {
|
|
|
8899
8716
|
* Configuration for tiered_package pricing
|
|
8900
8717
|
*/
|
|
8901
8718
|
interface TieredPackageConfig {
|
|
8902
|
-
/**
|
|
8903
|
-
* Package size
|
|
8904
|
-
*/
|
|
8905
8719
|
package_size: string;
|
|
8906
8720
|
/**
|
|
8907
8721
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -8920,9 +8734,6 @@ export declare namespace Price {
|
|
|
8920
8734
|
* Price per package
|
|
8921
8735
|
*/
|
|
8922
8736
|
per_unit: string;
|
|
8923
|
-
/**
|
|
8924
|
-
* Tier lower bound
|
|
8925
|
-
*/
|
|
8926
8737
|
tier_lower_bound: string;
|
|
8927
8738
|
}
|
|
8928
8739
|
}
|
|
@@ -9032,13 +8843,7 @@ export declare namespace Price {
|
|
|
9032
8843
|
* Configuration for a single tier
|
|
9033
8844
|
*/
|
|
9034
8845
|
interface Tier {
|
|
9035
|
-
/**
|
|
9036
|
-
* Minimum amount
|
|
9037
|
-
*/
|
|
9038
8846
|
minimum_amount: string;
|
|
9039
|
-
/**
|
|
9040
|
-
* Tier lower bound
|
|
9041
|
-
*/
|
|
9042
8847
|
tier_lower_bound: string;
|
|
9043
8848
|
/**
|
|
9044
8849
|
* Per unit amount
|
|
@@ -9148,9 +8953,6 @@ export declare namespace Price {
|
|
|
9148
8953
|
* Configuration for a single tier
|
|
9149
8954
|
*/
|
|
9150
8955
|
interface Tier {
|
|
9151
|
-
/**
|
|
9152
|
-
* Tier lower bound
|
|
9153
|
-
*/
|
|
9154
8956
|
tier_lower_bound: string;
|
|
9155
8957
|
/**
|
|
9156
8958
|
* Per unit amount
|
|
@@ -9245,9 +9047,6 @@ export declare namespace Price {
|
|
|
9245
9047
|
* Configuration for tiered_package_with_minimum pricing
|
|
9246
9048
|
*/
|
|
9247
9049
|
interface TieredPackageWithMinimumConfig {
|
|
9248
|
-
/**
|
|
9249
|
-
* Package size
|
|
9250
|
-
*/
|
|
9251
9050
|
package_size: number;
|
|
9252
9051
|
/**
|
|
9253
9052
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -9260,17 +9059,8 @@ export declare namespace Price {
|
|
|
9260
9059
|
* Configuration for a single tier
|
|
9261
9060
|
*/
|
|
9262
9061
|
interface Tier {
|
|
9263
|
-
/**
|
|
9264
|
-
* Minimum amount
|
|
9265
|
-
*/
|
|
9266
9062
|
minimum_amount: string;
|
|
9267
|
-
/**
|
|
9268
|
-
* Price per package
|
|
9269
|
-
*/
|
|
9270
9063
|
per_unit: string;
|
|
9271
|
-
/**
|
|
9272
|
-
* Tier lower bound
|
|
9273
|
-
*/
|
|
9274
9064
|
tier_lower_bound: string;
|
|
9275
9065
|
}
|
|
9276
9066
|
}
|
|
@@ -9361,17 +9151,8 @@ export declare namespace Price {
|
|
|
9361
9151
|
* Configuration for package_with_allocation pricing
|
|
9362
9152
|
*/
|
|
9363
9153
|
interface PackageWithAllocationConfig {
|
|
9364
|
-
/**
|
|
9365
|
-
* Usage allocation
|
|
9366
|
-
*/
|
|
9367
9154
|
allocation: string;
|
|
9368
|
-
/**
|
|
9369
|
-
* Price per package
|
|
9370
|
-
*/
|
|
9371
9155
|
package_amount: string;
|
|
9372
|
-
/**
|
|
9373
|
-
* Package size
|
|
9374
|
-
*/
|
|
9375
9156
|
package_size: string;
|
|
9376
9157
|
}
|
|
9377
9158
|
}
|
|
@@ -10179,22 +9960,13 @@ export declare namespace Price {
|
|
|
10179
9960
|
* Configuration for a scaling factor
|
|
10180
9961
|
*/
|
|
10181
9962
|
interface ScalingFactor {
|
|
10182
|
-
/**
|
|
10183
|
-
* Scaling factor
|
|
10184
|
-
*/
|
|
10185
9963
|
scaling_factor: string;
|
|
10186
|
-
/**
|
|
10187
|
-
* Scaling value
|
|
10188
|
-
*/
|
|
10189
9964
|
scaling_value: string;
|
|
10190
9965
|
}
|
|
10191
9966
|
/**
|
|
10192
9967
|
* Configuration for a unit amount
|
|
10193
9968
|
*/
|
|
10194
9969
|
interface UnitAmount {
|
|
10195
|
-
/**
|
|
10196
|
-
* Pricing value
|
|
10197
|
-
*/
|
|
10198
9970
|
pricing_value: string;
|
|
10199
9971
|
/**
|
|
10200
9972
|
* Per unit amount
|
|
@@ -10512,9 +10284,6 @@ export declare namespace Price {
|
|
|
10512
10284
|
* The event property used to group before tiering
|
|
10513
10285
|
*/
|
|
10514
10286
|
grouping_key: string;
|
|
10515
|
-
/**
|
|
10516
|
-
* Package size
|
|
10517
|
-
*/
|
|
10518
10287
|
package_size: string;
|
|
10519
10288
|
/**
|
|
10520
10289
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -10528,12 +10297,9 @@ export declare namespace Price {
|
|
|
10528
10297
|
*/
|
|
10529
10298
|
interface Tier {
|
|
10530
10299
|
/**
|
|
10531
|
-
*
|
|
10300
|
+
* Per package
|
|
10532
10301
|
*/
|
|
10533
10302
|
per_unit: string;
|
|
10534
|
-
/**
|
|
10535
|
-
* Tier lower bound
|
|
10536
|
-
*/
|
|
10537
10303
|
tier_lower_bound: string;
|
|
10538
10304
|
}
|
|
10539
10305
|
}
|
|
@@ -10628,9 +10394,6 @@ export declare namespace Price {
|
|
|
10628
10394
|
* The event property used to group before tiering the group with the highest value
|
|
10629
10395
|
*/
|
|
10630
10396
|
grouping_key: string;
|
|
10631
|
-
/**
|
|
10632
|
-
* Package size
|
|
10633
|
-
*/
|
|
10634
10397
|
package_size: string;
|
|
10635
10398
|
/**
|
|
10636
10399
|
* Apply tiered pricing to the largest group after grouping with the provided key.
|
|
@@ -10642,9 +10405,6 @@ export declare namespace Price {
|
|
|
10642
10405
|
* Configuration for a single tier
|
|
10643
10406
|
*/
|
|
10644
10407
|
interface Tier {
|
|
10645
|
-
/**
|
|
10646
|
-
* Tier lower bound
|
|
10647
|
-
*/
|
|
10648
10408
|
tier_lower_bound: string;
|
|
10649
10409
|
/**
|
|
10650
10410
|
* Per unit amount
|
|
@@ -10765,17 +10525,8 @@ export declare namespace Price {
|
|
|
10765
10525
|
* Configuration for a single matrix scaling factor
|
|
10766
10526
|
*/
|
|
10767
10527
|
interface MatrixScalingFactor {
|
|
10768
|
-
/**
|
|
10769
|
-
* First dimension value
|
|
10770
|
-
*/
|
|
10771
10528
|
first_dimension_value: string;
|
|
10772
|
-
/**
|
|
10773
|
-
* Scaling factor
|
|
10774
|
-
*/
|
|
10775
10529
|
scaling_factor: string;
|
|
10776
|
-
/**
|
|
10777
|
-
* Second dimension value (optional)
|
|
10778
|
-
*/
|
|
10779
10530
|
second_dimension_value?: string | null;
|
|
10780
10531
|
}
|
|
10781
10532
|
}
|
|
@@ -10874,9 +10625,6 @@ export declare namespace Price {
|
|
|
10874
10625
|
* Apply a scaling factor to each dimension
|
|
10875
10626
|
*/
|
|
10876
10627
|
matrix_scaling_factors: Array<ScalableMatrixWithTieredPricingConfig.MatrixScalingFactor>;
|
|
10877
|
-
/**
|
|
10878
|
-
* Tier pricing structure
|
|
10879
|
-
*/
|
|
10880
10628
|
tiers: Array<ScalableMatrixWithTieredPricingConfig.Tier>;
|
|
10881
10629
|
/**
|
|
10882
10630
|
* Used for the scalable matrix second dimension (optional)
|
|
@@ -10888,30 +10636,15 @@ export declare namespace Price {
|
|
|
10888
10636
|
* Configuration for a single matrix scaling factor
|
|
10889
10637
|
*/
|
|
10890
10638
|
interface MatrixScalingFactor {
|
|
10891
|
-
/**
|
|
10892
|
-
* First dimension value
|
|
10893
|
-
*/
|
|
10894
10639
|
first_dimension_value: string;
|
|
10895
|
-
/**
|
|
10896
|
-
* Scaling factor
|
|
10897
|
-
*/
|
|
10898
10640
|
scaling_factor: string;
|
|
10899
|
-
/**
|
|
10900
|
-
* Second dimension value (optional)
|
|
10901
|
-
*/
|
|
10902
10641
|
second_dimension_value?: string | null;
|
|
10903
10642
|
}
|
|
10904
10643
|
/**
|
|
10905
10644
|
* Configuration for a single tier entry with business logic
|
|
10906
10645
|
*/
|
|
10907
10646
|
interface Tier {
|
|
10908
|
-
/**
|
|
10909
|
-
* Tier lower bound
|
|
10910
|
-
*/
|
|
10911
10647
|
tier_lower_bound: string;
|
|
10912
|
-
/**
|
|
10913
|
-
* Per unit amount
|
|
10914
|
-
*/
|
|
10915
10648
|
unit_amount: string;
|
|
10916
10649
|
}
|
|
10917
10650
|
}
|
|
@@ -11006,9 +10739,6 @@ export declare namespace Price {
|
|
|
11006
10739
|
* Each tier lower bound must have the same group of values.
|
|
11007
10740
|
*/
|
|
11008
10741
|
dimension_values: Array<CumulativeGroupedBulkConfig.DimensionValue>;
|
|
11009
|
-
/**
|
|
11010
|
-
* Grouping key name
|
|
11011
|
-
*/
|
|
11012
10742
|
group: string;
|
|
11013
10743
|
}
|
|
11014
10744
|
namespace CumulativeGroupedBulkConfig {
|