orb-billing 5.38.0 → 5.41.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 +40 -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/events/events.d.ts +1 -1
- 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 +6 -96
- 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 +18 -288
- 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 +33 -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 +6 -96
- 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/events/events.ts +1 -1
- package/src/resources/index.ts +7 -0
- package/src/resources/invoices.ts +602 -46
- 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 +6 -96
- package/src/resources/shared.ts +18 -288
- package/src/resources/subscription-changes.ts +64 -0
- package/src/resources/subscriptions.ts +6 -96
- 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
|
@@ -3193,9 +3193,6 @@ export namespace NewFloatingCumulativeGroupedBulkPrice {
|
|
|
3193
3193
|
*/
|
|
3194
3194
|
dimension_values: Array<CumulativeGroupedBulkConfig.DimensionValue>;
|
|
3195
3195
|
|
|
3196
|
-
/**
|
|
3197
|
-
* Grouping key name
|
|
3198
|
-
*/
|
|
3199
3196
|
group: string;
|
|
3200
3197
|
}
|
|
3201
3198
|
|
|
@@ -3442,9 +3439,6 @@ export namespace NewFloatingGroupedTieredPackagePrice {
|
|
|
3442
3439
|
*/
|
|
3443
3440
|
grouping_key: string;
|
|
3444
3441
|
|
|
3445
|
-
/**
|
|
3446
|
-
* Package size
|
|
3447
|
-
*/
|
|
3448
3442
|
package_size: string;
|
|
3449
3443
|
|
|
3450
3444
|
/**
|
|
@@ -3460,13 +3454,10 @@ export namespace NewFloatingGroupedTieredPackagePrice {
|
|
|
3460
3454
|
*/
|
|
3461
3455
|
export interface Tier {
|
|
3462
3456
|
/**
|
|
3463
|
-
*
|
|
3457
|
+
* Per package
|
|
3464
3458
|
*/
|
|
3465
3459
|
per_unit: string;
|
|
3466
3460
|
|
|
3467
|
-
/**
|
|
3468
|
-
* Tier lower bound
|
|
3469
|
-
*/
|
|
3470
3461
|
tier_lower_bound: string;
|
|
3471
3462
|
}
|
|
3472
3463
|
}
|
|
@@ -3588,9 +3579,6 @@ export namespace NewFloatingGroupedTieredPrice {
|
|
|
3588
3579
|
* Configuration for a single tier
|
|
3589
3580
|
*/
|
|
3590
3581
|
export interface Tier {
|
|
3591
|
-
/**
|
|
3592
|
-
* Tier lower bound
|
|
3593
|
-
*/
|
|
3594
3582
|
tier_lower_bound: string;
|
|
3595
3583
|
|
|
3596
3584
|
/**
|
|
@@ -3738,14 +3726,8 @@ export namespace NewFloatingGroupedWithMeteredMinimumPrice {
|
|
|
3738
3726
|
* Configuration for a scaling factor
|
|
3739
3727
|
*/
|
|
3740
3728
|
export interface ScalingFactor {
|
|
3741
|
-
/**
|
|
3742
|
-
* Scaling factor
|
|
3743
|
-
*/
|
|
3744
3729
|
scaling_factor: string;
|
|
3745
3730
|
|
|
3746
|
-
/**
|
|
3747
|
-
* Scaling value
|
|
3748
|
-
*/
|
|
3749
3731
|
scaling_value: string;
|
|
3750
3732
|
}
|
|
3751
3733
|
|
|
@@ -3753,9 +3735,6 @@ export namespace NewFloatingGroupedWithMeteredMinimumPrice {
|
|
|
3753
3735
|
* Configuration for a unit amount
|
|
3754
3736
|
*/
|
|
3755
3737
|
export interface UnitAmount {
|
|
3756
|
-
/**
|
|
3757
|
-
* Pricing value
|
|
3758
|
-
*/
|
|
3759
3738
|
pricing_value: string;
|
|
3760
3739
|
|
|
3761
3740
|
/**
|
|
@@ -4307,9 +4286,6 @@ export namespace NewFloatingMaxGroupTieredPackagePrice {
|
|
|
4307
4286
|
*/
|
|
4308
4287
|
grouping_key: string;
|
|
4309
4288
|
|
|
4310
|
-
/**
|
|
4311
|
-
* Package size
|
|
4312
|
-
*/
|
|
4313
4289
|
package_size: string;
|
|
4314
4290
|
|
|
4315
4291
|
/**
|
|
@@ -4323,9 +4299,6 @@ export namespace NewFloatingMaxGroupTieredPackagePrice {
|
|
|
4323
4299
|
* Configuration for a single tier
|
|
4324
4300
|
*/
|
|
4325
4301
|
export interface Tier {
|
|
4326
|
-
/**
|
|
4327
|
-
* Tier lower bound
|
|
4328
|
-
*/
|
|
4329
4302
|
tier_lower_bound: string;
|
|
4330
4303
|
|
|
4331
4304
|
/**
|
|
@@ -4353,14 +4326,14 @@ export interface NewFloatingMinimumCompositePrice {
|
|
|
4353
4326
|
item_id: string;
|
|
4354
4327
|
|
|
4355
4328
|
/**
|
|
4356
|
-
* Configuration for
|
|
4329
|
+
* Configuration for minimum_composite pricing
|
|
4357
4330
|
*/
|
|
4358
|
-
|
|
4331
|
+
minimum_composite_config: NewFloatingMinimumCompositePrice.MinimumCompositeConfig;
|
|
4359
4332
|
|
|
4360
4333
|
/**
|
|
4361
4334
|
* The pricing model type
|
|
4362
4335
|
*/
|
|
4363
|
-
model_type: '
|
|
4336
|
+
model_type: 'minimum_composite';
|
|
4364
4337
|
|
|
4365
4338
|
/**
|
|
4366
4339
|
* The name of the price.
|
|
@@ -4432,9 +4405,9 @@ export interface NewFloatingMinimumCompositePrice {
|
|
|
4432
4405
|
|
|
4433
4406
|
export namespace NewFloatingMinimumCompositePrice {
|
|
4434
4407
|
/**
|
|
4435
|
-
* Configuration for
|
|
4408
|
+
* Configuration for minimum_composite pricing
|
|
4436
4409
|
*/
|
|
4437
|
-
export interface
|
|
4410
|
+
export interface MinimumCompositeConfig {
|
|
4438
4411
|
/**
|
|
4439
4412
|
* The minimum amount to apply
|
|
4440
4413
|
*/
|
|
@@ -4640,19 +4613,10 @@ export namespace NewFloatingPackageWithAllocationPrice {
|
|
|
4640
4613
|
* Configuration for package_with_allocation pricing
|
|
4641
4614
|
*/
|
|
4642
4615
|
export interface PackageWithAllocationConfig {
|
|
4643
|
-
/**
|
|
4644
|
-
* Usage allocation
|
|
4645
|
-
*/
|
|
4646
4616
|
allocation: string;
|
|
4647
4617
|
|
|
4648
|
-
/**
|
|
4649
|
-
* Price per package
|
|
4650
|
-
*/
|
|
4651
4618
|
package_amount: string;
|
|
4652
4619
|
|
|
4653
|
-
/**
|
|
4654
|
-
* Package size
|
|
4655
|
-
*/
|
|
4656
4620
|
package_size: string;
|
|
4657
4621
|
}
|
|
4658
4622
|
}
|
|
@@ -4766,9 +4730,6 @@ export namespace NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
|
4766
4730
|
*/
|
|
4767
4731
|
matrix_scaling_factors: Array<ScalableMatrixWithTieredPricingConfig.MatrixScalingFactor>;
|
|
4768
4732
|
|
|
4769
|
-
/**
|
|
4770
|
-
* Tier pricing structure
|
|
4771
|
-
*/
|
|
4772
4733
|
tiers: Array<ScalableMatrixWithTieredPricingConfig.Tier>;
|
|
4773
4734
|
|
|
4774
4735
|
/**
|
|
@@ -4782,19 +4743,10 @@ export namespace NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
|
4782
4743
|
* Configuration for a single matrix scaling factor
|
|
4783
4744
|
*/
|
|
4784
4745
|
export interface MatrixScalingFactor {
|
|
4785
|
-
/**
|
|
4786
|
-
* First dimension value
|
|
4787
|
-
*/
|
|
4788
4746
|
first_dimension_value: string;
|
|
4789
4747
|
|
|
4790
|
-
/**
|
|
4791
|
-
* Scaling factor
|
|
4792
|
-
*/
|
|
4793
4748
|
scaling_factor: string;
|
|
4794
4749
|
|
|
4795
|
-
/**
|
|
4796
|
-
* Second dimension value (optional)
|
|
4797
|
-
*/
|
|
4798
4750
|
second_dimension_value?: string | null;
|
|
4799
4751
|
}
|
|
4800
4752
|
|
|
@@ -4802,14 +4754,8 @@ export namespace NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
|
4802
4754
|
* Configuration for a single tier entry with business logic
|
|
4803
4755
|
*/
|
|
4804
4756
|
export interface Tier {
|
|
4805
|
-
/**
|
|
4806
|
-
* Tier lower bound
|
|
4807
|
-
*/
|
|
4808
4757
|
tier_lower_bound: string;
|
|
4809
4758
|
|
|
4810
|
-
/**
|
|
4811
|
-
* Per unit amount
|
|
4812
|
-
*/
|
|
4813
4759
|
unit_amount: string;
|
|
4814
4760
|
}
|
|
4815
4761
|
}
|
|
@@ -4945,19 +4891,10 @@ export namespace NewFloatingScalableMatrixWithUnitPricingPrice {
|
|
|
4945
4891
|
* Configuration for a single matrix scaling factor
|
|
4946
4892
|
*/
|
|
4947
4893
|
export interface MatrixScalingFactor {
|
|
4948
|
-
/**
|
|
4949
|
-
* First dimension value
|
|
4950
|
-
*/
|
|
4951
4894
|
first_dimension_value: string;
|
|
4952
4895
|
|
|
4953
|
-
/**
|
|
4954
|
-
* Scaling factor
|
|
4955
|
-
*/
|
|
4956
4896
|
scaling_factor: string;
|
|
4957
4897
|
|
|
4958
|
-
/**
|
|
4959
|
-
* Second dimension value (optional)
|
|
4960
|
-
*/
|
|
4961
4898
|
second_dimension_value?: string | null;
|
|
4962
4899
|
}
|
|
4963
4900
|
}
|
|
@@ -5079,9 +5016,6 @@ export namespace NewFloatingThresholdTotalAmountPrice {
|
|
|
5079
5016
|
* Configuration for a single threshold
|
|
5080
5017
|
*/
|
|
5081
5018
|
export interface ConsumptionTable {
|
|
5082
|
-
/**
|
|
5083
|
-
* Quantity threshold
|
|
5084
|
-
*/
|
|
5085
5019
|
threshold: string;
|
|
5086
5020
|
|
|
5087
5021
|
/**
|
|
@@ -5191,9 +5125,6 @@ export namespace NewFloatingTieredPackagePrice {
|
|
|
5191
5125
|
* Configuration for tiered_package pricing
|
|
5192
5126
|
*/
|
|
5193
5127
|
export interface TieredPackageConfig {
|
|
5194
|
-
/**
|
|
5195
|
-
* Package size
|
|
5196
|
-
*/
|
|
5197
5128
|
package_size: string;
|
|
5198
5129
|
|
|
5199
5130
|
/**
|
|
@@ -5215,9 +5146,6 @@ export namespace NewFloatingTieredPackagePrice {
|
|
|
5215
5146
|
*/
|
|
5216
5147
|
per_unit: string;
|
|
5217
5148
|
|
|
5218
|
-
/**
|
|
5219
|
-
* Tier lower bound
|
|
5220
|
-
*/
|
|
5221
5149
|
tier_lower_bound: string;
|
|
5222
5150
|
}
|
|
5223
5151
|
}
|
|
@@ -5322,9 +5250,6 @@ export namespace NewFloatingTieredPackageWithMinimumPrice {
|
|
|
5322
5250
|
* Configuration for tiered_package_with_minimum pricing
|
|
5323
5251
|
*/
|
|
5324
5252
|
export interface TieredPackageWithMinimumConfig {
|
|
5325
|
-
/**
|
|
5326
|
-
* Package size
|
|
5327
|
-
*/
|
|
5328
5253
|
package_size: number;
|
|
5329
5254
|
|
|
5330
5255
|
/**
|
|
@@ -5339,19 +5264,10 @@ export namespace NewFloatingTieredPackageWithMinimumPrice {
|
|
|
5339
5264
|
* Configuration for a single tier
|
|
5340
5265
|
*/
|
|
5341
5266
|
export interface Tier {
|
|
5342
|
-
/**
|
|
5343
|
-
* Minimum amount
|
|
5344
|
-
*/
|
|
5345
5267
|
minimum_amount: string;
|
|
5346
5268
|
|
|
5347
|
-
/**
|
|
5348
|
-
* Price per package
|
|
5349
|
-
*/
|
|
5350
5269
|
per_unit: string;
|
|
5351
5270
|
|
|
5352
|
-
/**
|
|
5353
|
-
* Tier lower bound
|
|
5354
|
-
*/
|
|
5355
5271
|
tier_lower_bound: string;
|
|
5356
5272
|
}
|
|
5357
5273
|
}
|
|
@@ -5572,14 +5488,8 @@ export namespace NewFloatingTieredWithMinimumPrice {
|
|
|
5572
5488
|
* Configuration for a single tier
|
|
5573
5489
|
*/
|
|
5574
5490
|
export interface Tier {
|
|
5575
|
-
/**
|
|
5576
|
-
* Minimum amount
|
|
5577
|
-
*/
|
|
5578
5491
|
minimum_amount: string;
|
|
5579
5492
|
|
|
5580
|
-
/**
|
|
5581
|
-
* Tier lower bound
|
|
5582
|
-
*/
|
|
5583
5493
|
tier_lower_bound: string;
|
|
5584
5494
|
|
|
5585
5495
|
/**
|
|
@@ -6555,9 +6465,6 @@ export namespace NewPlanCumulativeGroupedBulkPrice {
|
|
|
6555
6465
|
*/
|
|
6556
6466
|
dimension_values: Array<CumulativeGroupedBulkConfig.DimensionValue>;
|
|
6557
6467
|
|
|
6558
|
-
/**
|
|
6559
|
-
* Grouping key name
|
|
6560
|
-
*/
|
|
6561
6468
|
group: string;
|
|
6562
6469
|
}
|
|
6563
6470
|
|
|
@@ -6818,9 +6725,6 @@ export namespace NewPlanGroupedTieredPackagePrice {
|
|
|
6818
6725
|
*/
|
|
6819
6726
|
grouping_key: string;
|
|
6820
6727
|
|
|
6821
|
-
/**
|
|
6822
|
-
* Package size
|
|
6823
|
-
*/
|
|
6824
6728
|
package_size: string;
|
|
6825
6729
|
|
|
6826
6730
|
/**
|
|
@@ -6836,13 +6740,10 @@ export namespace NewPlanGroupedTieredPackagePrice {
|
|
|
6836
6740
|
*/
|
|
6837
6741
|
export interface Tier {
|
|
6838
6742
|
/**
|
|
6839
|
-
*
|
|
6743
|
+
* Per package
|
|
6840
6744
|
*/
|
|
6841
6745
|
per_unit: string;
|
|
6842
6746
|
|
|
6843
|
-
/**
|
|
6844
|
-
* Tier lower bound
|
|
6845
|
-
*/
|
|
6846
6747
|
tier_lower_bound: string;
|
|
6847
6748
|
}
|
|
6848
6749
|
}
|
|
@@ -6971,9 +6872,6 @@ export namespace NewPlanGroupedTieredPrice {
|
|
|
6971
6872
|
* Configuration for a single tier
|
|
6972
6873
|
*/
|
|
6973
6874
|
export interface Tier {
|
|
6974
|
-
/**
|
|
6975
|
-
* Tier lower bound
|
|
6976
|
-
*/
|
|
6977
6875
|
tier_lower_bound: string;
|
|
6978
6876
|
|
|
6979
6877
|
/**
|
|
@@ -7128,14 +7026,8 @@ export namespace NewPlanGroupedWithMeteredMinimumPrice {
|
|
|
7128
7026
|
* Configuration for a scaling factor
|
|
7129
7027
|
*/
|
|
7130
7028
|
export interface ScalingFactor {
|
|
7131
|
-
/**
|
|
7132
|
-
* Scaling factor
|
|
7133
|
-
*/
|
|
7134
7029
|
scaling_factor: string;
|
|
7135
7030
|
|
|
7136
|
-
/**
|
|
7137
|
-
* Scaling value
|
|
7138
|
-
*/
|
|
7139
7031
|
scaling_value: string;
|
|
7140
7032
|
}
|
|
7141
7033
|
|
|
@@ -7143,9 +7035,6 @@ export namespace NewPlanGroupedWithMeteredMinimumPrice {
|
|
|
7143
7035
|
* Configuration for a unit amount
|
|
7144
7036
|
*/
|
|
7145
7037
|
export interface UnitAmount {
|
|
7146
|
-
/**
|
|
7147
|
-
* Pricing value
|
|
7148
|
-
*/
|
|
7149
7038
|
pricing_value: string;
|
|
7150
7039
|
|
|
7151
7040
|
/**
|
|
@@ -7732,9 +7621,6 @@ export namespace NewPlanMaxGroupTieredPackagePrice {
|
|
|
7732
7621
|
*/
|
|
7733
7622
|
grouping_key: string;
|
|
7734
7623
|
|
|
7735
|
-
/**
|
|
7736
|
-
* Package size
|
|
7737
|
-
*/
|
|
7738
7624
|
package_size: string;
|
|
7739
7625
|
|
|
7740
7626
|
/**
|
|
@@ -7748,9 +7634,6 @@ export namespace NewPlanMaxGroupTieredPackagePrice {
|
|
|
7748
7634
|
* Configuration for a single tier
|
|
7749
7635
|
*/
|
|
7750
7636
|
export interface Tier {
|
|
7751
|
-
/**
|
|
7752
|
-
* Tier lower bound
|
|
7753
|
-
*/
|
|
7754
7637
|
tier_lower_bound: string;
|
|
7755
7638
|
|
|
7756
7639
|
/**
|
|
@@ -7773,14 +7656,14 @@ export interface NewPlanMinimumCompositePrice {
|
|
|
7773
7656
|
item_id: string;
|
|
7774
7657
|
|
|
7775
7658
|
/**
|
|
7776
|
-
* Configuration for
|
|
7659
|
+
* Configuration for minimum_composite pricing
|
|
7777
7660
|
*/
|
|
7778
|
-
|
|
7661
|
+
minimum_composite_config: NewPlanMinimumCompositePrice.MinimumCompositeConfig;
|
|
7779
7662
|
|
|
7780
7663
|
/**
|
|
7781
7664
|
* The pricing model type
|
|
7782
7665
|
*/
|
|
7783
|
-
model_type: '
|
|
7666
|
+
model_type: 'minimum_composite';
|
|
7784
7667
|
|
|
7785
7668
|
/**
|
|
7786
7669
|
* The name of the price.
|
|
@@ -7864,9 +7747,9 @@ export interface NewPlanMinimumCompositePrice {
|
|
|
7864
7747
|
|
|
7865
7748
|
export namespace NewPlanMinimumCompositePrice {
|
|
7866
7749
|
/**
|
|
7867
|
-
* Configuration for
|
|
7750
|
+
* Configuration for minimum_composite pricing
|
|
7868
7751
|
*/
|
|
7869
|
-
export interface
|
|
7752
|
+
export interface MinimumCompositeConfig {
|
|
7870
7753
|
/**
|
|
7871
7754
|
* The minimum amount to apply
|
|
7872
7755
|
*/
|
|
@@ -8086,19 +7969,10 @@ export namespace NewPlanPackageWithAllocationPrice {
|
|
|
8086
7969
|
* Configuration for package_with_allocation pricing
|
|
8087
7970
|
*/
|
|
8088
7971
|
export interface PackageWithAllocationConfig {
|
|
8089
|
-
/**
|
|
8090
|
-
* Usage allocation
|
|
8091
|
-
*/
|
|
8092
7972
|
allocation: string;
|
|
8093
7973
|
|
|
8094
|
-
/**
|
|
8095
|
-
* Price per package
|
|
8096
|
-
*/
|
|
8097
7974
|
package_amount: string;
|
|
8098
7975
|
|
|
8099
|
-
/**
|
|
8100
|
-
* Package size
|
|
8101
|
-
*/
|
|
8102
7976
|
package_size: string;
|
|
8103
7977
|
}
|
|
8104
7978
|
}
|
|
@@ -8219,9 +8093,6 @@ export namespace NewPlanScalableMatrixWithTieredPricingPrice {
|
|
|
8219
8093
|
*/
|
|
8220
8094
|
matrix_scaling_factors: Array<ScalableMatrixWithTieredPricingConfig.MatrixScalingFactor>;
|
|
8221
8095
|
|
|
8222
|
-
/**
|
|
8223
|
-
* Tier pricing structure
|
|
8224
|
-
*/
|
|
8225
8096
|
tiers: Array<ScalableMatrixWithTieredPricingConfig.Tier>;
|
|
8226
8097
|
|
|
8227
8098
|
/**
|
|
@@ -8235,19 +8106,10 @@ export namespace NewPlanScalableMatrixWithTieredPricingPrice {
|
|
|
8235
8106
|
* Configuration for a single matrix scaling factor
|
|
8236
8107
|
*/
|
|
8237
8108
|
export interface MatrixScalingFactor {
|
|
8238
|
-
/**
|
|
8239
|
-
* First dimension value
|
|
8240
|
-
*/
|
|
8241
8109
|
first_dimension_value: string;
|
|
8242
8110
|
|
|
8243
|
-
/**
|
|
8244
|
-
* Scaling factor
|
|
8245
|
-
*/
|
|
8246
8111
|
scaling_factor: string;
|
|
8247
8112
|
|
|
8248
|
-
/**
|
|
8249
|
-
* Second dimension value (optional)
|
|
8250
|
-
*/
|
|
8251
8113
|
second_dimension_value?: string | null;
|
|
8252
8114
|
}
|
|
8253
8115
|
|
|
@@ -8255,14 +8117,8 @@ export namespace NewPlanScalableMatrixWithTieredPricingPrice {
|
|
|
8255
8117
|
* Configuration for a single tier entry with business logic
|
|
8256
8118
|
*/
|
|
8257
8119
|
export interface Tier {
|
|
8258
|
-
/**
|
|
8259
|
-
* Tier lower bound
|
|
8260
|
-
*/
|
|
8261
8120
|
tier_lower_bound: string;
|
|
8262
8121
|
|
|
8263
|
-
/**
|
|
8264
|
-
* Per unit amount
|
|
8265
|
-
*/
|
|
8266
8122
|
unit_amount: string;
|
|
8267
8123
|
}
|
|
8268
8124
|
}
|
|
@@ -8405,19 +8261,10 @@ export namespace NewPlanScalableMatrixWithUnitPricingPrice {
|
|
|
8405
8261
|
* Configuration for a single matrix scaling factor
|
|
8406
8262
|
*/
|
|
8407
8263
|
export interface MatrixScalingFactor {
|
|
8408
|
-
/**
|
|
8409
|
-
* First dimension value
|
|
8410
|
-
*/
|
|
8411
8264
|
first_dimension_value: string;
|
|
8412
8265
|
|
|
8413
|
-
/**
|
|
8414
|
-
* Scaling factor
|
|
8415
|
-
*/
|
|
8416
8266
|
scaling_factor: string;
|
|
8417
8267
|
|
|
8418
|
-
/**
|
|
8419
|
-
* Second dimension value (optional)
|
|
8420
|
-
*/
|
|
8421
8268
|
second_dimension_value?: string | null;
|
|
8422
8269
|
}
|
|
8423
8270
|
}
|
|
@@ -8546,9 +8393,6 @@ export namespace NewPlanThresholdTotalAmountPrice {
|
|
|
8546
8393
|
* Configuration for a single threshold
|
|
8547
8394
|
*/
|
|
8548
8395
|
export interface ConsumptionTable {
|
|
8549
|
-
/**
|
|
8550
|
-
* Quantity threshold
|
|
8551
|
-
*/
|
|
8552
8396
|
threshold: string;
|
|
8553
8397
|
|
|
8554
8398
|
/**
|
|
@@ -8665,9 +8509,6 @@ export namespace NewPlanTieredPackagePrice {
|
|
|
8665
8509
|
* Configuration for tiered_package pricing
|
|
8666
8510
|
*/
|
|
8667
8511
|
export interface TieredPackageConfig {
|
|
8668
|
-
/**
|
|
8669
|
-
* Package size
|
|
8670
|
-
*/
|
|
8671
8512
|
package_size: string;
|
|
8672
8513
|
|
|
8673
8514
|
/**
|
|
@@ -8689,9 +8530,6 @@ export namespace NewPlanTieredPackagePrice {
|
|
|
8689
8530
|
*/
|
|
8690
8531
|
per_unit: string;
|
|
8691
8532
|
|
|
8692
|
-
/**
|
|
8693
|
-
* Tier lower bound
|
|
8694
|
-
*/
|
|
8695
8533
|
tier_lower_bound: string;
|
|
8696
8534
|
}
|
|
8697
8535
|
}
|
|
@@ -8803,9 +8641,6 @@ export namespace NewPlanTieredPackageWithMinimumPrice {
|
|
|
8803
8641
|
* Configuration for tiered_package_with_minimum pricing
|
|
8804
8642
|
*/
|
|
8805
8643
|
export interface TieredPackageWithMinimumConfig {
|
|
8806
|
-
/**
|
|
8807
|
-
* Package size
|
|
8808
|
-
*/
|
|
8809
8644
|
package_size: number;
|
|
8810
8645
|
|
|
8811
8646
|
/**
|
|
@@ -8820,19 +8655,10 @@ export namespace NewPlanTieredPackageWithMinimumPrice {
|
|
|
8820
8655
|
* Configuration for a single tier
|
|
8821
8656
|
*/
|
|
8822
8657
|
export interface Tier {
|
|
8823
|
-
/**
|
|
8824
|
-
* Minimum amount
|
|
8825
|
-
*/
|
|
8826
8658
|
minimum_amount: string;
|
|
8827
8659
|
|
|
8828
|
-
/**
|
|
8829
|
-
* Price per package
|
|
8830
|
-
*/
|
|
8831
8660
|
per_unit: string;
|
|
8832
8661
|
|
|
8833
|
-
/**
|
|
8834
|
-
* Tier lower bound
|
|
8835
|
-
*/
|
|
8836
8662
|
tier_lower_bound: string;
|
|
8837
8663
|
}
|
|
8838
8664
|
}
|
|
@@ -9067,14 +8893,8 @@ export namespace NewPlanTieredWithMinimumPrice {
|
|
|
9067
8893
|
* Configuration for a single tier
|
|
9068
8894
|
*/
|
|
9069
8895
|
export interface Tier {
|
|
9070
|
-
/**
|
|
9071
|
-
* Minimum amount
|
|
9072
|
-
*/
|
|
9073
8896
|
minimum_amount: string;
|
|
9074
8897
|
|
|
9075
|
-
/**
|
|
9076
|
-
* Tier lower bound
|
|
9077
|
-
*/
|
|
9078
8898
|
tier_lower_bound: string;
|
|
9079
8899
|
|
|
9080
8900
|
/**
|
|
@@ -10850,9 +10670,6 @@ export namespace Price {
|
|
|
10850
10670
|
* Configuration for a single threshold
|
|
10851
10671
|
*/
|
|
10852
10672
|
export interface ConsumptionTable {
|
|
10853
|
-
/**
|
|
10854
|
-
* Quantity threshold
|
|
10855
|
-
*/
|
|
10856
10673
|
threshold: string;
|
|
10857
10674
|
|
|
10858
10675
|
/**
|
|
@@ -10978,9 +10795,6 @@ export namespace Price {
|
|
|
10978
10795
|
* Configuration for tiered_package pricing
|
|
10979
10796
|
*/
|
|
10980
10797
|
export interface TieredPackageConfig {
|
|
10981
|
-
/**
|
|
10982
|
-
* Package size
|
|
10983
|
-
*/
|
|
10984
10798
|
package_size: string;
|
|
10985
10799
|
|
|
10986
10800
|
/**
|
|
@@ -11002,9 +10816,6 @@ export namespace Price {
|
|
|
11002
10816
|
*/
|
|
11003
10817
|
per_unit: string;
|
|
11004
10818
|
|
|
11005
|
-
/**
|
|
11006
|
-
* Tier lower bound
|
|
11007
|
-
*/
|
|
11008
10819
|
tier_lower_bound: string;
|
|
11009
10820
|
}
|
|
11010
10821
|
}
|
|
@@ -11147,14 +10958,8 @@ export namespace Price {
|
|
|
11147
10958
|
* Configuration for a single tier
|
|
11148
10959
|
*/
|
|
11149
10960
|
export interface Tier {
|
|
11150
|
-
/**
|
|
11151
|
-
* Minimum amount
|
|
11152
|
-
*/
|
|
11153
10961
|
minimum_amount: string;
|
|
11154
10962
|
|
|
11155
|
-
/**
|
|
11156
|
-
* Tier lower bound
|
|
11157
|
-
*/
|
|
11158
10963
|
tier_lower_bound: string;
|
|
11159
10964
|
|
|
11160
10965
|
/**
|
|
@@ -11297,9 +11102,6 @@ export namespace Price {
|
|
|
11297
11102
|
* Configuration for a single tier
|
|
11298
11103
|
*/
|
|
11299
11104
|
export interface Tier {
|
|
11300
|
-
/**
|
|
11301
|
-
* Tier lower bound
|
|
11302
|
-
*/
|
|
11303
11105
|
tier_lower_bound: string;
|
|
11304
11106
|
|
|
11305
11107
|
/**
|
|
@@ -11425,9 +11227,6 @@ export namespace Price {
|
|
|
11425
11227
|
* Configuration for tiered_package_with_minimum pricing
|
|
11426
11228
|
*/
|
|
11427
11229
|
export interface TieredPackageWithMinimumConfig {
|
|
11428
|
-
/**
|
|
11429
|
-
* Package size
|
|
11430
|
-
*/
|
|
11431
11230
|
package_size: number;
|
|
11432
11231
|
|
|
11433
11232
|
/**
|
|
@@ -11442,19 +11241,10 @@ export namespace Price {
|
|
|
11442
11241
|
* Configuration for a single tier
|
|
11443
11242
|
*/
|
|
11444
11243
|
export interface Tier {
|
|
11445
|
-
/**
|
|
11446
|
-
* Minimum amount
|
|
11447
|
-
*/
|
|
11448
11244
|
minimum_amount: string;
|
|
11449
11245
|
|
|
11450
|
-
/**
|
|
11451
|
-
* Price per package
|
|
11452
|
-
*/
|
|
11453
11246
|
per_unit: string;
|
|
11454
11247
|
|
|
11455
|
-
/**
|
|
11456
|
-
* Tier lower bound
|
|
11457
|
-
*/
|
|
11458
11248
|
tier_lower_bound: string;
|
|
11459
11249
|
}
|
|
11460
11250
|
}
|
|
@@ -11575,19 +11365,10 @@ export namespace Price {
|
|
|
11575
11365
|
* Configuration for package_with_allocation pricing
|
|
11576
11366
|
*/
|
|
11577
11367
|
export interface PackageWithAllocationConfig {
|
|
11578
|
-
/**
|
|
11579
|
-
* Usage allocation
|
|
11580
|
-
*/
|
|
11581
11368
|
allocation: string;
|
|
11582
11369
|
|
|
11583
|
-
/**
|
|
11584
|
-
* Price per package
|
|
11585
|
-
*/
|
|
11586
11370
|
package_amount: string;
|
|
11587
11371
|
|
|
11588
|
-
/**
|
|
11589
|
-
* Package size
|
|
11590
|
-
*/
|
|
11591
11372
|
package_size: string;
|
|
11592
11373
|
}
|
|
11593
11374
|
}
|
|
@@ -12649,14 +12430,8 @@ export namespace Price {
|
|
|
12649
12430
|
* Configuration for a scaling factor
|
|
12650
12431
|
*/
|
|
12651
12432
|
export interface ScalingFactor {
|
|
12652
|
-
/**
|
|
12653
|
-
* Scaling factor
|
|
12654
|
-
*/
|
|
12655
12433
|
scaling_factor: string;
|
|
12656
12434
|
|
|
12657
|
-
/**
|
|
12658
|
-
* Scaling value
|
|
12659
|
-
*/
|
|
12660
12435
|
scaling_value: string;
|
|
12661
12436
|
}
|
|
12662
12437
|
|
|
@@ -12664,9 +12439,6 @@ export namespace Price {
|
|
|
12664
12439
|
* Configuration for a unit amount
|
|
12665
12440
|
*/
|
|
12666
12441
|
export interface UnitAmount {
|
|
12667
|
-
/**
|
|
12668
|
-
* Pricing value
|
|
12669
|
-
*/
|
|
12670
12442
|
pricing_value: string;
|
|
12671
12443
|
|
|
12672
12444
|
/**
|
|
@@ -13083,9 +12855,6 @@ export namespace Price {
|
|
|
13083
12855
|
*/
|
|
13084
12856
|
grouping_key: string;
|
|
13085
12857
|
|
|
13086
|
-
/**
|
|
13087
|
-
* Package size
|
|
13088
|
-
*/
|
|
13089
12858
|
package_size: string;
|
|
13090
12859
|
|
|
13091
12860
|
/**
|
|
@@ -13101,13 +12870,10 @@ export namespace Price {
|
|
|
13101
12870
|
*/
|
|
13102
12871
|
export interface Tier {
|
|
13103
12872
|
/**
|
|
13104
|
-
*
|
|
12873
|
+
* Per package
|
|
13105
12874
|
*/
|
|
13106
12875
|
per_unit: string;
|
|
13107
12876
|
|
|
13108
|
-
/**
|
|
13109
|
-
* Tier lower bound
|
|
13110
|
-
*/
|
|
13111
12877
|
tier_lower_bound: string;
|
|
13112
12878
|
}
|
|
13113
12879
|
}
|
|
@@ -13233,9 +12999,6 @@ export namespace Price {
|
|
|
13233
12999
|
*/
|
|
13234
13000
|
grouping_key: string;
|
|
13235
13001
|
|
|
13236
|
-
/**
|
|
13237
|
-
* Package size
|
|
13238
|
-
*/
|
|
13239
13002
|
package_size: string;
|
|
13240
13003
|
|
|
13241
13004
|
/**
|
|
@@ -13249,9 +13012,6 @@ export namespace Price {
|
|
|
13249
13012
|
* Configuration for a single tier
|
|
13250
13013
|
*/
|
|
13251
13014
|
export interface Tier {
|
|
13252
|
-
/**
|
|
13253
|
-
* Tier lower bound
|
|
13254
|
-
*/
|
|
13255
13015
|
tier_lower_bound: string;
|
|
13256
13016
|
|
|
13257
13017
|
/**
|
|
@@ -13408,19 +13168,10 @@ export namespace Price {
|
|
|
13408
13168
|
* Configuration for a single matrix scaling factor
|
|
13409
13169
|
*/
|
|
13410
13170
|
export interface MatrixScalingFactor {
|
|
13411
|
-
/**
|
|
13412
|
-
* First dimension value
|
|
13413
|
-
*/
|
|
13414
13171
|
first_dimension_value: string;
|
|
13415
13172
|
|
|
13416
|
-
/**
|
|
13417
|
-
* Scaling factor
|
|
13418
|
-
*/
|
|
13419
13173
|
scaling_factor: string;
|
|
13420
13174
|
|
|
13421
|
-
/**
|
|
13422
|
-
* Second dimension value (optional)
|
|
13423
|
-
*/
|
|
13424
13175
|
second_dimension_value?: string | null;
|
|
13425
13176
|
}
|
|
13426
13177
|
}
|
|
@@ -13551,9 +13302,6 @@ export namespace Price {
|
|
|
13551
13302
|
*/
|
|
13552
13303
|
matrix_scaling_factors: Array<ScalableMatrixWithTieredPricingConfig.MatrixScalingFactor>;
|
|
13553
13304
|
|
|
13554
|
-
/**
|
|
13555
|
-
* Tier pricing structure
|
|
13556
|
-
*/
|
|
13557
13305
|
tiers: Array<ScalableMatrixWithTieredPricingConfig.Tier>;
|
|
13558
13306
|
|
|
13559
13307
|
/**
|
|
@@ -13567,19 +13315,10 @@ export namespace Price {
|
|
|
13567
13315
|
* Configuration for a single matrix scaling factor
|
|
13568
13316
|
*/
|
|
13569
13317
|
export interface MatrixScalingFactor {
|
|
13570
|
-
/**
|
|
13571
|
-
* First dimension value
|
|
13572
|
-
*/
|
|
13573
13318
|
first_dimension_value: string;
|
|
13574
13319
|
|
|
13575
|
-
/**
|
|
13576
|
-
* Scaling factor
|
|
13577
|
-
*/
|
|
13578
13320
|
scaling_factor: string;
|
|
13579
13321
|
|
|
13580
|
-
/**
|
|
13581
|
-
* Second dimension value (optional)
|
|
13582
|
-
*/
|
|
13583
13322
|
second_dimension_value?: string | null;
|
|
13584
13323
|
}
|
|
13585
13324
|
|
|
@@ -13587,14 +13326,8 @@ export namespace Price {
|
|
|
13587
13326
|
* Configuration for a single tier entry with business logic
|
|
13588
13327
|
*/
|
|
13589
13328
|
export interface Tier {
|
|
13590
|
-
/**
|
|
13591
|
-
* Tier lower bound
|
|
13592
|
-
*/
|
|
13593
13329
|
tier_lower_bound: string;
|
|
13594
13330
|
|
|
13595
|
-
/**
|
|
13596
|
-
* Per unit amount
|
|
13597
|
-
*/
|
|
13598
13331
|
unit_amount: string;
|
|
13599
13332
|
}
|
|
13600
13333
|
}
|
|
@@ -13720,9 +13453,6 @@ export namespace Price {
|
|
|
13720
13453
|
*/
|
|
13721
13454
|
dimension_values: Array<CumulativeGroupedBulkConfig.DimensionValue>;
|
|
13722
13455
|
|
|
13723
|
-
/**
|
|
13724
|
-
* Grouping key name
|
|
13725
|
-
*/
|
|
13726
13456
|
group: string;
|
|
13727
13457
|
}
|
|
13728
13458
|
|
|
@@ -13955,14 +13685,14 @@ export namespace Price {
|
|
|
13955
13685
|
minimum_amount: string | null;
|
|
13956
13686
|
|
|
13957
13687
|
/**
|
|
13958
|
-
* Configuration for
|
|
13688
|
+
* Configuration for minimum_composite pricing
|
|
13959
13689
|
*/
|
|
13960
|
-
|
|
13690
|
+
minimum_composite_config: MinimumCompositePrice.MinimumCompositeConfig;
|
|
13961
13691
|
|
|
13962
13692
|
/**
|
|
13963
13693
|
* The pricing model type
|
|
13964
13694
|
*/
|
|
13965
|
-
model_type: '
|
|
13695
|
+
model_type: 'minimum_composite';
|
|
13966
13696
|
|
|
13967
13697
|
name: string;
|
|
13968
13698
|
|
|
@@ -13998,9 +13728,9 @@ export namespace Price {
|
|
|
13998
13728
|
}
|
|
13999
13729
|
|
|
14000
13730
|
/**
|
|
14001
|
-
* Configuration for
|
|
13731
|
+
* Configuration for minimum_composite pricing
|
|
14002
13732
|
*/
|
|
14003
|
-
export interface
|
|
13733
|
+
export interface MinimumCompositeConfig {
|
|
14004
13734
|
/**
|
|
14005
13735
|
* The minimum amount to apply
|
|
14006
13736
|
*/
|