orb-billing 5.30.0 → 5.32.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/invoice-line-items.d.ts +0 -20
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +0 -20
- 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 +125 -17
- 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 -41
- 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/invoice-line-items.ts +0 -25
- package/src/resources/invoices.ts +0 -25
- package/src/resources/plans/plans.ts +150 -21
- package/src/resources/prices/prices.ts +366 -0
- package/src/resources/shared.ts +138 -50
- 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
|
@@ -94,14 +94,6 @@ export interface Plan {
|
|
|
94
94
|
| Shared.PlanPhaseMaximumAdjustment
|
|
95
95
|
>;
|
|
96
96
|
|
|
97
|
-
base_plan: Plan.BasePlan | null;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The parent plan id if the given plan was created by overriding one or more of
|
|
101
|
-
* the parent's prices
|
|
102
|
-
*/
|
|
103
|
-
base_plan_id: string | null;
|
|
104
|
-
|
|
105
97
|
created_at: string;
|
|
106
98
|
|
|
107
99
|
/**
|
|
@@ -190,22 +182,17 @@ export interface Plan {
|
|
|
190
182
|
trial_config: Plan.TrialConfig;
|
|
191
183
|
|
|
192
184
|
version: number;
|
|
193
|
-
}
|
|
194
185
|
|
|
195
|
-
|
|
196
|
-
export interface BasePlan {
|
|
197
|
-
id: string | null;
|
|
186
|
+
base_plan?: Plan.BasePlan | null;
|
|
198
187
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
name: string | null;
|
|
207
|
-
}
|
|
188
|
+
/**
|
|
189
|
+
* The parent plan id if the given plan was created by overriding one or more of
|
|
190
|
+
* the parent's prices
|
|
191
|
+
*/
|
|
192
|
+
base_plan_id?: string | null;
|
|
193
|
+
}
|
|
208
194
|
|
|
195
|
+
export namespace Plan {
|
|
209
196
|
export interface PlanPhase {
|
|
210
197
|
id: string;
|
|
211
198
|
|
|
@@ -250,6 +237,19 @@ export namespace Plan {
|
|
|
250
237
|
|
|
251
238
|
trial_period_unit: 'days';
|
|
252
239
|
}
|
|
240
|
+
|
|
241
|
+
export interface BasePlan {
|
|
242
|
+
id: string | null;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* An optional user-defined ID for this plan resource, used throughout the system
|
|
246
|
+
* as an alias for this Plan. Use this field to identify a plan by an existing
|
|
247
|
+
* identifier in your system.
|
|
248
|
+
*/
|
|
249
|
+
external_plan_id: string | null;
|
|
250
|
+
|
|
251
|
+
name: string | null;
|
|
252
|
+
}
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
export interface PlanCreateParams {
|
|
@@ -350,6 +350,7 @@ export namespace PlanCreateParams {
|
|
|
350
350
|
| Shared.NewPlanScalableMatrixWithUnitPricingPrice
|
|
351
351
|
| Shared.NewPlanScalableMatrixWithTieredPricingPrice
|
|
352
352
|
| Shared.NewPlanCumulativeGroupedBulkPrice
|
|
353
|
+
| Price.NewPlanCumulativeGroupedAllocationPrice
|
|
353
354
|
| Shared.NewPlanMinimumCompositePrice
|
|
354
355
|
| Price.NewPlanPercentCompositePrice
|
|
355
356
|
| Price.NewPlanEventOutputPrice
|
|
@@ -766,6 +767,134 @@ export namespace PlanCreateParams {
|
|
|
766
767
|
}
|
|
767
768
|
}
|
|
768
769
|
|
|
770
|
+
export interface NewPlanCumulativeGroupedAllocationPrice {
|
|
771
|
+
/**
|
|
772
|
+
* The cadence to bill for this price on.
|
|
773
|
+
*/
|
|
774
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
778
|
+
*/
|
|
779
|
+
cumulative_grouped_allocation_config: NewPlanCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* The id of the item the price will be associated with.
|
|
783
|
+
*/
|
|
784
|
+
item_id: string;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The pricing model type
|
|
788
|
+
*/
|
|
789
|
+
model_type: 'cumulative_grouped_allocation';
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* The name of the price.
|
|
793
|
+
*/
|
|
794
|
+
name: string;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
798
|
+
* usage-based.
|
|
799
|
+
*/
|
|
800
|
+
billable_metric_id?: string | null;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
804
|
+
* this is true, and in-arrears if this is false.
|
|
805
|
+
*/
|
|
806
|
+
billed_in_advance?: boolean | null;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
810
|
+
* months.
|
|
811
|
+
*/
|
|
812
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
816
|
+
*/
|
|
817
|
+
conversion_rate?: number | null;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
821
|
+
*/
|
|
822
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
826
|
+
* price is billed.
|
|
827
|
+
*/
|
|
828
|
+
currency?: string | null;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* For dimensional price: specifies a price group and dimension values
|
|
832
|
+
*/
|
|
833
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* An alias for the price.
|
|
837
|
+
*/
|
|
838
|
+
external_price_id?: string | null;
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
842
|
+
* applied.
|
|
843
|
+
*/
|
|
844
|
+
fixed_price_quantity?: number | null;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* The property used to group this price on an invoice
|
|
848
|
+
*/
|
|
849
|
+
invoice_grouping_key?: string | null;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
853
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
854
|
+
*/
|
|
855
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
859
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
860
|
+
* by setting `metadata` to `null`.
|
|
861
|
+
*/
|
|
862
|
+
metadata?: { [key: string]: string | null } | null;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
866
|
+
* in the same API call.
|
|
867
|
+
*/
|
|
868
|
+
reference_id?: string | null;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export namespace NewPlanCumulativeGroupedAllocationPrice {
|
|
872
|
+
/**
|
|
873
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
874
|
+
*/
|
|
875
|
+
export interface CumulativeGroupedAllocationConfig {
|
|
876
|
+
/**
|
|
877
|
+
* The overall allocation across all groups
|
|
878
|
+
*/
|
|
879
|
+
cumulative_allocation: string;
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* The allocation per individual group
|
|
883
|
+
*/
|
|
884
|
+
group_allocation: string;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* The event property used to group usage before applying allocations
|
|
888
|
+
*/
|
|
889
|
+
grouping_key: string;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* The amount to charge for each unit outside of the allocation
|
|
893
|
+
*/
|
|
894
|
+
unit_amount: string;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
769
898
|
export interface NewPlanPercentCompositePrice {
|
|
770
899
|
/**
|
|
771
900
|
* The cadence to bill for this price on.
|
|
@@ -281,6 +281,7 @@ export type PriceCreateParams =
|
|
|
281
281
|
| PriceCreateParams.NewFloatingScalableMatrixWithUnitPricingPrice
|
|
282
282
|
| PriceCreateParams.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
283
283
|
| PriceCreateParams.NewFloatingCumulativeGroupedBulkPrice
|
|
284
|
+
| PriceCreateParams.NewFloatingCumulativeGroupedAllocationPrice
|
|
284
285
|
| PriceCreateParams.NewFloatingMinimumCompositePrice
|
|
285
286
|
| PriceCreateParams.NewFloatingPercentCompositePrice
|
|
286
287
|
| PriceCreateParams.NewFloatingEventOutputPrice;
|
|
@@ -3592,6 +3593,127 @@ export declare namespace PriceCreateParams {
|
|
|
3592
3593
|
}
|
|
3593
3594
|
}
|
|
3594
3595
|
|
|
3596
|
+
export interface NewFloatingCumulativeGroupedAllocationPrice {
|
|
3597
|
+
/**
|
|
3598
|
+
* The cadence to bill for this price on.
|
|
3599
|
+
*/
|
|
3600
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
3601
|
+
|
|
3602
|
+
/**
|
|
3603
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
3604
|
+
*/
|
|
3605
|
+
cumulative_grouped_allocation_config: NewFloatingCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
3606
|
+
|
|
3607
|
+
/**
|
|
3608
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
3609
|
+
*/
|
|
3610
|
+
currency: string;
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
3613
|
+
* The id of the item the price will be associated with.
|
|
3614
|
+
*/
|
|
3615
|
+
item_id: string;
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* The pricing model type
|
|
3619
|
+
*/
|
|
3620
|
+
model_type: 'cumulative_grouped_allocation';
|
|
3621
|
+
|
|
3622
|
+
/**
|
|
3623
|
+
* The name of the price.
|
|
3624
|
+
*/
|
|
3625
|
+
name: string;
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
3629
|
+
* usage-based.
|
|
3630
|
+
*/
|
|
3631
|
+
billable_metric_id?: string | null;
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
3635
|
+
* this is true, and in-arrears if this is false.
|
|
3636
|
+
*/
|
|
3637
|
+
billed_in_advance?: boolean | null;
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3641
|
+
* months.
|
|
3642
|
+
*/
|
|
3643
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3644
|
+
|
|
3645
|
+
/**
|
|
3646
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3647
|
+
*/
|
|
3648
|
+
conversion_rate?: number | null;
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
3652
|
+
*/
|
|
3653
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* For dimensional price: specifies a price group and dimension values
|
|
3657
|
+
*/
|
|
3658
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
3659
|
+
|
|
3660
|
+
/**
|
|
3661
|
+
* An alias for the price.
|
|
3662
|
+
*/
|
|
3663
|
+
external_price_id?: string | null;
|
|
3664
|
+
|
|
3665
|
+
/**
|
|
3666
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
3667
|
+
* applied.
|
|
3668
|
+
*/
|
|
3669
|
+
fixed_price_quantity?: number | null;
|
|
3670
|
+
|
|
3671
|
+
/**
|
|
3672
|
+
* The property used to group this price on an invoice
|
|
3673
|
+
*/
|
|
3674
|
+
invoice_grouping_key?: string | null;
|
|
3675
|
+
|
|
3676
|
+
/**
|
|
3677
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3678
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3679
|
+
*/
|
|
3680
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3681
|
+
|
|
3682
|
+
/**
|
|
3683
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3684
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3685
|
+
* by setting `metadata` to `null`.
|
|
3686
|
+
*/
|
|
3687
|
+
metadata?: { [key: string]: string | null } | null;
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
export namespace NewFloatingCumulativeGroupedAllocationPrice {
|
|
3691
|
+
/**
|
|
3692
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
3693
|
+
*/
|
|
3694
|
+
export interface CumulativeGroupedAllocationConfig {
|
|
3695
|
+
/**
|
|
3696
|
+
* The overall allocation across all groups
|
|
3697
|
+
*/
|
|
3698
|
+
cumulative_allocation: string;
|
|
3699
|
+
|
|
3700
|
+
/**
|
|
3701
|
+
* The allocation per individual group
|
|
3702
|
+
*/
|
|
3703
|
+
group_allocation: string;
|
|
3704
|
+
|
|
3705
|
+
/**
|
|
3706
|
+
* The event property used to group usage before applying allocations
|
|
3707
|
+
*/
|
|
3708
|
+
grouping_key: string;
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* The amount to charge for each unit outside of the allocation
|
|
3712
|
+
*/
|
|
3713
|
+
unit_amount: string;
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3595
3717
|
export interface NewFloatingMinimumCompositePrice {
|
|
3596
3718
|
/**
|
|
3597
3719
|
* The cadence to bill for this price on.
|
|
@@ -4055,6 +4177,7 @@ export namespace PriceEvaluateMultipleParams {
|
|
|
4055
4177
|
| Shared.NewFloatingScalableMatrixWithUnitPricingPrice
|
|
4056
4178
|
| Shared.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
4057
4179
|
| Shared.NewFloatingCumulativeGroupedBulkPrice
|
|
4180
|
+
| PriceEvaluation.NewFloatingCumulativeGroupedAllocationPrice
|
|
4058
4181
|
| Shared.NewFloatingMinimumCompositePrice
|
|
4059
4182
|
| PriceEvaluation.NewFloatingPercentCompositePrice
|
|
4060
4183
|
| PriceEvaluation.NewFloatingEventOutputPrice
|
|
@@ -4331,6 +4454,127 @@ export namespace PriceEvaluateMultipleParams {
|
|
|
4331
4454
|
}
|
|
4332
4455
|
}
|
|
4333
4456
|
|
|
4457
|
+
export interface NewFloatingCumulativeGroupedAllocationPrice {
|
|
4458
|
+
/**
|
|
4459
|
+
* The cadence to bill for this price on.
|
|
4460
|
+
*/
|
|
4461
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
4462
|
+
|
|
4463
|
+
/**
|
|
4464
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
4465
|
+
*/
|
|
4466
|
+
cumulative_grouped_allocation_config: NewFloatingCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
4467
|
+
|
|
4468
|
+
/**
|
|
4469
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
4470
|
+
*/
|
|
4471
|
+
currency: string;
|
|
4472
|
+
|
|
4473
|
+
/**
|
|
4474
|
+
* The id of the item the price will be associated with.
|
|
4475
|
+
*/
|
|
4476
|
+
item_id: string;
|
|
4477
|
+
|
|
4478
|
+
/**
|
|
4479
|
+
* The pricing model type
|
|
4480
|
+
*/
|
|
4481
|
+
model_type: 'cumulative_grouped_allocation';
|
|
4482
|
+
|
|
4483
|
+
/**
|
|
4484
|
+
* The name of the price.
|
|
4485
|
+
*/
|
|
4486
|
+
name: string;
|
|
4487
|
+
|
|
4488
|
+
/**
|
|
4489
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4490
|
+
* usage-based.
|
|
4491
|
+
*/
|
|
4492
|
+
billable_metric_id?: string | null;
|
|
4493
|
+
|
|
4494
|
+
/**
|
|
4495
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4496
|
+
* this is true, and in-arrears if this is false.
|
|
4497
|
+
*/
|
|
4498
|
+
billed_in_advance?: boolean | null;
|
|
4499
|
+
|
|
4500
|
+
/**
|
|
4501
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4502
|
+
* months.
|
|
4503
|
+
*/
|
|
4504
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4505
|
+
|
|
4506
|
+
/**
|
|
4507
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4508
|
+
*/
|
|
4509
|
+
conversion_rate?: number | null;
|
|
4510
|
+
|
|
4511
|
+
/**
|
|
4512
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
4513
|
+
*/
|
|
4514
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
4515
|
+
|
|
4516
|
+
/**
|
|
4517
|
+
* For dimensional price: specifies a price group and dimension values
|
|
4518
|
+
*/
|
|
4519
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
4520
|
+
|
|
4521
|
+
/**
|
|
4522
|
+
* An alias for the price.
|
|
4523
|
+
*/
|
|
4524
|
+
external_price_id?: string | null;
|
|
4525
|
+
|
|
4526
|
+
/**
|
|
4527
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4528
|
+
* applied.
|
|
4529
|
+
*/
|
|
4530
|
+
fixed_price_quantity?: number | null;
|
|
4531
|
+
|
|
4532
|
+
/**
|
|
4533
|
+
* The property used to group this price on an invoice
|
|
4534
|
+
*/
|
|
4535
|
+
invoice_grouping_key?: string | null;
|
|
4536
|
+
|
|
4537
|
+
/**
|
|
4538
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4539
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4540
|
+
*/
|
|
4541
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4542
|
+
|
|
4543
|
+
/**
|
|
4544
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4545
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4546
|
+
* by setting `metadata` to `null`.
|
|
4547
|
+
*/
|
|
4548
|
+
metadata?: { [key: string]: string | null } | null;
|
|
4549
|
+
}
|
|
4550
|
+
|
|
4551
|
+
export namespace NewFloatingCumulativeGroupedAllocationPrice {
|
|
4552
|
+
/**
|
|
4553
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
4554
|
+
*/
|
|
4555
|
+
export interface CumulativeGroupedAllocationConfig {
|
|
4556
|
+
/**
|
|
4557
|
+
* The overall allocation across all groups
|
|
4558
|
+
*/
|
|
4559
|
+
cumulative_allocation: string;
|
|
4560
|
+
|
|
4561
|
+
/**
|
|
4562
|
+
* The allocation per individual group
|
|
4563
|
+
*/
|
|
4564
|
+
group_allocation: string;
|
|
4565
|
+
|
|
4566
|
+
/**
|
|
4567
|
+
* The event property used to group usage before applying allocations
|
|
4568
|
+
*/
|
|
4569
|
+
grouping_key: string;
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* The amount to charge for each unit outside of the allocation
|
|
4573
|
+
*/
|
|
4574
|
+
unit_amount: string;
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
|
|
4334
4578
|
export interface NewFloatingPercentCompositePrice {
|
|
4335
4579
|
/**
|
|
4336
4580
|
* The cadence to bill for this price on.
|
|
@@ -4673,6 +4917,7 @@ export namespace PriceEvaluatePreviewEventsParams {
|
|
|
4673
4917
|
| Shared.NewFloatingScalableMatrixWithUnitPricingPrice
|
|
4674
4918
|
| Shared.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
4675
4919
|
| Shared.NewFloatingCumulativeGroupedBulkPrice
|
|
4920
|
+
| PriceEvaluation.NewFloatingCumulativeGroupedAllocationPrice
|
|
4676
4921
|
| Shared.NewFloatingMinimumCompositePrice
|
|
4677
4922
|
| PriceEvaluation.NewFloatingPercentCompositePrice
|
|
4678
4923
|
| PriceEvaluation.NewFloatingEventOutputPrice
|
|
@@ -4949,6 +5194,127 @@ export namespace PriceEvaluatePreviewEventsParams {
|
|
|
4949
5194
|
}
|
|
4950
5195
|
}
|
|
4951
5196
|
|
|
5197
|
+
export interface NewFloatingCumulativeGroupedAllocationPrice {
|
|
5198
|
+
/**
|
|
5199
|
+
* The cadence to bill for this price on.
|
|
5200
|
+
*/
|
|
5201
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
5205
|
+
*/
|
|
5206
|
+
cumulative_grouped_allocation_config: NewFloatingCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
5207
|
+
|
|
5208
|
+
/**
|
|
5209
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
5210
|
+
*/
|
|
5211
|
+
currency: string;
|
|
5212
|
+
|
|
5213
|
+
/**
|
|
5214
|
+
* The id of the item the price will be associated with.
|
|
5215
|
+
*/
|
|
5216
|
+
item_id: string;
|
|
5217
|
+
|
|
5218
|
+
/**
|
|
5219
|
+
* The pricing model type
|
|
5220
|
+
*/
|
|
5221
|
+
model_type: 'cumulative_grouped_allocation';
|
|
5222
|
+
|
|
5223
|
+
/**
|
|
5224
|
+
* The name of the price.
|
|
5225
|
+
*/
|
|
5226
|
+
name: string;
|
|
5227
|
+
|
|
5228
|
+
/**
|
|
5229
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
5230
|
+
* usage-based.
|
|
5231
|
+
*/
|
|
5232
|
+
billable_metric_id?: string | null;
|
|
5233
|
+
|
|
5234
|
+
/**
|
|
5235
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
5236
|
+
* this is true, and in-arrears if this is false.
|
|
5237
|
+
*/
|
|
5238
|
+
billed_in_advance?: boolean | null;
|
|
5239
|
+
|
|
5240
|
+
/**
|
|
5241
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5242
|
+
* months.
|
|
5243
|
+
*/
|
|
5244
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5245
|
+
|
|
5246
|
+
/**
|
|
5247
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5248
|
+
*/
|
|
5249
|
+
conversion_rate?: number | null;
|
|
5250
|
+
|
|
5251
|
+
/**
|
|
5252
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
5253
|
+
*/
|
|
5254
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
5255
|
+
|
|
5256
|
+
/**
|
|
5257
|
+
* For dimensional price: specifies a price group and dimension values
|
|
5258
|
+
*/
|
|
5259
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
5260
|
+
|
|
5261
|
+
/**
|
|
5262
|
+
* An alias for the price.
|
|
5263
|
+
*/
|
|
5264
|
+
external_price_id?: string | null;
|
|
5265
|
+
|
|
5266
|
+
/**
|
|
5267
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
5268
|
+
* applied.
|
|
5269
|
+
*/
|
|
5270
|
+
fixed_price_quantity?: number | null;
|
|
5271
|
+
|
|
5272
|
+
/**
|
|
5273
|
+
* The property used to group this price on an invoice
|
|
5274
|
+
*/
|
|
5275
|
+
invoice_grouping_key?: string | null;
|
|
5276
|
+
|
|
5277
|
+
/**
|
|
5278
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5279
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5280
|
+
*/
|
|
5281
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5282
|
+
|
|
5283
|
+
/**
|
|
5284
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5285
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
5286
|
+
* by setting `metadata` to `null`.
|
|
5287
|
+
*/
|
|
5288
|
+
metadata?: { [key: string]: string | null } | null;
|
|
5289
|
+
}
|
|
5290
|
+
|
|
5291
|
+
export namespace NewFloatingCumulativeGroupedAllocationPrice {
|
|
5292
|
+
/**
|
|
5293
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
5294
|
+
*/
|
|
5295
|
+
export interface CumulativeGroupedAllocationConfig {
|
|
5296
|
+
/**
|
|
5297
|
+
* The overall allocation across all groups
|
|
5298
|
+
*/
|
|
5299
|
+
cumulative_allocation: string;
|
|
5300
|
+
|
|
5301
|
+
/**
|
|
5302
|
+
* The allocation per individual group
|
|
5303
|
+
*/
|
|
5304
|
+
group_allocation: string;
|
|
5305
|
+
|
|
5306
|
+
/**
|
|
5307
|
+
* The event property used to group usage before applying allocations
|
|
5308
|
+
*/
|
|
5309
|
+
grouping_key: string;
|
|
5310
|
+
|
|
5311
|
+
/**
|
|
5312
|
+
* The amount to charge for each unit outside of the allocation
|
|
5313
|
+
*/
|
|
5314
|
+
unit_amount: string;
|
|
5315
|
+
}
|
|
5316
|
+
}
|
|
5317
|
+
|
|
4952
5318
|
export interface NewFloatingPercentCompositePrice {
|
|
4953
5319
|
/**
|
|
4954
5320
|
* The cadence to bill for this price on.
|