orb-billing 6.9.0 → 6.10.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 +7 -0
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +252 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +252 -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.mts +252 -2
- package/resources/beta/external-plan-id.d.mts.map +1 -1
- package/resources/beta/external-plan-id.d.ts +252 -2
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/plans/plans.d.mts +126 -1
- package/resources/plans/plans.d.mts.map +1 -1
- package/resources/plans/plans.d.ts +126 -1
- 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.mts +360 -3
- package/resources/prices/prices.d.mts.map +1 -1
- package/resources/prices/prices.d.ts +360 -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.mts +145 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +145 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/subscriptions.d.mts +655 -36
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +655 -36
- package/resources/subscriptions.d.ts.map +1 -1
- package/src/resources/beta/beta.ts +298 -0
- package/src/resources/beta/external-plan-id.ts +298 -0
- package/src/resources/plans/plans.ts +149 -0
- package/src/resources/prices/prices.ts +426 -0
- package/src/resources/shared.ts +185 -0
- package/src/resources/subscriptions.ts +845 -107
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -372,6 +372,7 @@ export namespace BetaCreatePlanVersionParams {
|
|
|
372
372
|
| Shared.NewPlanTieredPackagePrice
|
|
373
373
|
| Shared.NewPlanTieredWithMinimumPrice
|
|
374
374
|
| Shared.NewPlanGroupedTieredPrice
|
|
375
|
+
| AddPrice.NewPlanGroupedTieredMatrixPrice
|
|
375
376
|
| Shared.NewPlanTieredPackageWithMinimumPrice
|
|
376
377
|
| Shared.NewPlanPackageWithAllocationPrice
|
|
377
378
|
| Shared.NewPlanUnitWithPercentPrice
|
|
@@ -690,6 +691,154 @@ export namespace BetaCreatePlanVersionParams {
|
|
|
690
691
|
}
|
|
691
692
|
}
|
|
692
693
|
|
|
694
|
+
export interface NewPlanGroupedTieredMatrixPrice {
|
|
695
|
+
/**
|
|
696
|
+
* The cadence to bill for this price on.
|
|
697
|
+
*/
|
|
698
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
702
|
+
*/
|
|
703
|
+
grouped_tiered_matrix_config: NewPlanGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* The id of the item the price will be associated with.
|
|
707
|
+
*/
|
|
708
|
+
item_id: string;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* The pricing model type
|
|
712
|
+
*/
|
|
713
|
+
model_type: 'grouped_tiered_matrix';
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* The name of the price.
|
|
717
|
+
*/
|
|
718
|
+
name: string;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
722
|
+
* usage-based.
|
|
723
|
+
*/
|
|
724
|
+
billable_metric_id?: string | null;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
728
|
+
* this is true, and in-arrears if this is false.
|
|
729
|
+
*/
|
|
730
|
+
billed_in_advance?: boolean | null;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
734
|
+
* months.
|
|
735
|
+
*/
|
|
736
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
740
|
+
*/
|
|
741
|
+
conversion_rate?: number | null;
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
745
|
+
*/
|
|
746
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
750
|
+
* price is billed.
|
|
751
|
+
*/
|
|
752
|
+
currency?: string | null;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* For dimensional price: specifies a price group and dimension values
|
|
756
|
+
*/
|
|
757
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* An alias for the price.
|
|
761
|
+
*/
|
|
762
|
+
external_price_id?: string | null;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
766
|
+
* applied.
|
|
767
|
+
*/
|
|
768
|
+
fixed_price_quantity?: number | null;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* The property used to group this price on an invoice
|
|
772
|
+
*/
|
|
773
|
+
invoice_grouping_key?: string | null;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
777
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
778
|
+
*/
|
|
779
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* The ID of the license type to associate with this price.
|
|
783
|
+
*/
|
|
784
|
+
license_type_id?: string | null;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
788
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
789
|
+
* by setting `metadata` to `null`.
|
|
790
|
+
*/
|
|
791
|
+
metadata?: { [key: string]: string | null } | null;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
795
|
+
* in the same API call.
|
|
796
|
+
*/
|
|
797
|
+
reference_id?: string | null;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export namespace NewPlanGroupedTieredMatrixPrice {
|
|
801
|
+
/**
|
|
802
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
803
|
+
*/
|
|
804
|
+
export interface GroupedTieredMatrixConfig {
|
|
805
|
+
/**
|
|
806
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
807
|
+
*/
|
|
808
|
+
default_unit_amount: string;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* The billable metric property used to group usage before tiering
|
|
812
|
+
*/
|
|
813
|
+
dimension: string;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
817
|
+
* against its own rows
|
|
818
|
+
*/
|
|
819
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export namespace GroupedTieredMatrixConfig {
|
|
823
|
+
/**
|
|
824
|
+
* Configuration for a single tier scoped to a dimension value
|
|
825
|
+
*/
|
|
826
|
+
export interface Tier {
|
|
827
|
+
/**
|
|
828
|
+
* The dimension value this tier applies to
|
|
829
|
+
*/
|
|
830
|
+
dimension_value: string;
|
|
831
|
+
|
|
832
|
+
tier_lower_bound: string;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Per unit amount
|
|
836
|
+
*/
|
|
837
|
+
unit_amount: string;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
693
842
|
export interface NewPlanMatrixWithThresholdDiscountsPrice {
|
|
694
843
|
/**
|
|
695
844
|
* The cadence to bill for this price on.
|
|
@@ -1997,6 +2146,7 @@ export namespace BetaCreatePlanVersionParams {
|
|
|
1997
2146
|
| Shared.NewPlanTieredPackagePrice
|
|
1998
2147
|
| Shared.NewPlanTieredWithMinimumPrice
|
|
1999
2148
|
| Shared.NewPlanGroupedTieredPrice
|
|
2149
|
+
| ReplacePrice.NewPlanGroupedTieredMatrixPrice
|
|
2000
2150
|
| Shared.NewPlanTieredPackageWithMinimumPrice
|
|
2001
2151
|
| Shared.NewPlanPackageWithAllocationPrice
|
|
2002
2152
|
| Shared.NewPlanUnitWithPercentPrice
|
|
@@ -2315,6 +2465,154 @@ export namespace BetaCreatePlanVersionParams {
|
|
|
2315
2465
|
}
|
|
2316
2466
|
}
|
|
2317
2467
|
|
|
2468
|
+
export interface NewPlanGroupedTieredMatrixPrice {
|
|
2469
|
+
/**
|
|
2470
|
+
* The cadence to bill for this price on.
|
|
2471
|
+
*/
|
|
2472
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
2476
|
+
*/
|
|
2477
|
+
grouped_tiered_matrix_config: NewPlanGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* The id of the item the price will be associated with.
|
|
2481
|
+
*/
|
|
2482
|
+
item_id: string;
|
|
2483
|
+
|
|
2484
|
+
/**
|
|
2485
|
+
* The pricing model type
|
|
2486
|
+
*/
|
|
2487
|
+
model_type: 'grouped_tiered_matrix';
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* The name of the price.
|
|
2491
|
+
*/
|
|
2492
|
+
name: string;
|
|
2493
|
+
|
|
2494
|
+
/**
|
|
2495
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2496
|
+
* usage-based.
|
|
2497
|
+
*/
|
|
2498
|
+
billable_metric_id?: string | null;
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2502
|
+
* this is true, and in-arrears if this is false.
|
|
2503
|
+
*/
|
|
2504
|
+
billed_in_advance?: boolean | null;
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2508
|
+
* months.
|
|
2509
|
+
*/
|
|
2510
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2514
|
+
*/
|
|
2515
|
+
conversion_rate?: number | null;
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
2519
|
+
*/
|
|
2520
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
2524
|
+
* price is billed.
|
|
2525
|
+
*/
|
|
2526
|
+
currency?: string | null;
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* For dimensional price: specifies a price group and dimension values
|
|
2530
|
+
*/
|
|
2531
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
2532
|
+
|
|
2533
|
+
/**
|
|
2534
|
+
* An alias for the price.
|
|
2535
|
+
*/
|
|
2536
|
+
external_price_id?: string | null;
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2540
|
+
* applied.
|
|
2541
|
+
*/
|
|
2542
|
+
fixed_price_quantity?: number | null;
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* The property used to group this price on an invoice
|
|
2546
|
+
*/
|
|
2547
|
+
invoice_grouping_key?: string | null;
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2551
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2552
|
+
*/
|
|
2553
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* The ID of the license type to associate with this price.
|
|
2557
|
+
*/
|
|
2558
|
+
license_type_id?: string | null;
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2562
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2563
|
+
* by setting `metadata` to `null`.
|
|
2564
|
+
*/
|
|
2565
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
2569
|
+
* in the same API call.
|
|
2570
|
+
*/
|
|
2571
|
+
reference_id?: string | null;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
export namespace NewPlanGroupedTieredMatrixPrice {
|
|
2575
|
+
/**
|
|
2576
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
2577
|
+
*/
|
|
2578
|
+
export interface GroupedTieredMatrixConfig {
|
|
2579
|
+
/**
|
|
2580
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
2581
|
+
*/
|
|
2582
|
+
default_unit_amount: string;
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* The billable metric property used to group usage before tiering
|
|
2586
|
+
*/
|
|
2587
|
+
dimension: string;
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
2591
|
+
* against its own rows
|
|
2592
|
+
*/
|
|
2593
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
export namespace GroupedTieredMatrixConfig {
|
|
2597
|
+
/**
|
|
2598
|
+
* Configuration for a single tier scoped to a dimension value
|
|
2599
|
+
*/
|
|
2600
|
+
export interface Tier {
|
|
2601
|
+
/**
|
|
2602
|
+
* The dimension value this tier applies to
|
|
2603
|
+
*/
|
|
2604
|
+
dimension_value: string;
|
|
2605
|
+
|
|
2606
|
+
tier_lower_bound: string;
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* Per unit amount
|
|
2610
|
+
*/
|
|
2611
|
+
unit_amount: string;
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2318
2616
|
export interface NewPlanMatrixWithThresholdDiscountsPrice {
|
|
2319
2617
|
/**
|
|
2320
2618
|
* The cadence to bill for this price on.
|
|
@@ -224,6 +224,7 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
|
|
|
224
224
|
| Shared.NewPlanTieredPackagePrice
|
|
225
225
|
| Shared.NewPlanTieredWithMinimumPrice
|
|
226
226
|
| Shared.NewPlanGroupedTieredPrice
|
|
227
|
+
| AddPrice.NewPlanGroupedTieredMatrixPrice
|
|
227
228
|
| Shared.NewPlanTieredPackageWithMinimumPrice
|
|
228
229
|
| Shared.NewPlanPackageWithAllocationPrice
|
|
229
230
|
| Shared.NewPlanUnitWithPercentPrice
|
|
@@ -542,6 +543,154 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
|
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
545
|
|
|
546
|
+
export interface NewPlanGroupedTieredMatrixPrice {
|
|
547
|
+
/**
|
|
548
|
+
* The cadence to bill for this price on.
|
|
549
|
+
*/
|
|
550
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
554
|
+
*/
|
|
555
|
+
grouped_tiered_matrix_config: NewPlanGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* The id of the item the price will be associated with.
|
|
559
|
+
*/
|
|
560
|
+
item_id: string;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* The pricing model type
|
|
564
|
+
*/
|
|
565
|
+
model_type: 'grouped_tiered_matrix';
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* The name of the price.
|
|
569
|
+
*/
|
|
570
|
+
name: string;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
574
|
+
* usage-based.
|
|
575
|
+
*/
|
|
576
|
+
billable_metric_id?: string | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
580
|
+
* this is true, and in-arrears if this is false.
|
|
581
|
+
*/
|
|
582
|
+
billed_in_advance?: boolean | null;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
586
|
+
* months.
|
|
587
|
+
*/
|
|
588
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
592
|
+
*/
|
|
593
|
+
conversion_rate?: number | null;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
597
|
+
*/
|
|
598
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
602
|
+
* price is billed.
|
|
603
|
+
*/
|
|
604
|
+
currency?: string | null;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* For dimensional price: specifies a price group and dimension values
|
|
608
|
+
*/
|
|
609
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* An alias for the price.
|
|
613
|
+
*/
|
|
614
|
+
external_price_id?: string | null;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
618
|
+
* applied.
|
|
619
|
+
*/
|
|
620
|
+
fixed_price_quantity?: number | null;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* The property used to group this price on an invoice
|
|
624
|
+
*/
|
|
625
|
+
invoice_grouping_key?: string | null;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
629
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
630
|
+
*/
|
|
631
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* The ID of the license type to associate with this price.
|
|
635
|
+
*/
|
|
636
|
+
license_type_id?: string | null;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
640
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
641
|
+
* by setting `metadata` to `null`.
|
|
642
|
+
*/
|
|
643
|
+
metadata?: { [key: string]: string | null } | null;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
647
|
+
* in the same API call.
|
|
648
|
+
*/
|
|
649
|
+
reference_id?: string | null;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export namespace NewPlanGroupedTieredMatrixPrice {
|
|
653
|
+
/**
|
|
654
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
655
|
+
*/
|
|
656
|
+
export interface GroupedTieredMatrixConfig {
|
|
657
|
+
/**
|
|
658
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
659
|
+
*/
|
|
660
|
+
default_unit_amount: string;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* The billable metric property used to group usage before tiering
|
|
664
|
+
*/
|
|
665
|
+
dimension: string;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
669
|
+
* against its own rows
|
|
670
|
+
*/
|
|
671
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export namespace GroupedTieredMatrixConfig {
|
|
675
|
+
/**
|
|
676
|
+
* Configuration for a single tier scoped to a dimension value
|
|
677
|
+
*/
|
|
678
|
+
export interface Tier {
|
|
679
|
+
/**
|
|
680
|
+
* The dimension value this tier applies to
|
|
681
|
+
*/
|
|
682
|
+
dimension_value: string;
|
|
683
|
+
|
|
684
|
+
tier_lower_bound: string;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Per unit amount
|
|
688
|
+
*/
|
|
689
|
+
unit_amount: string;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
545
694
|
export interface NewPlanMatrixWithThresholdDiscountsPrice {
|
|
546
695
|
/**
|
|
547
696
|
* The cadence to bill for this price on.
|
|
@@ -1849,6 +1998,7 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
|
|
|
1849
1998
|
| Shared.NewPlanTieredPackagePrice
|
|
1850
1999
|
| Shared.NewPlanTieredWithMinimumPrice
|
|
1851
2000
|
| Shared.NewPlanGroupedTieredPrice
|
|
2001
|
+
| ReplacePrice.NewPlanGroupedTieredMatrixPrice
|
|
1852
2002
|
| Shared.NewPlanTieredPackageWithMinimumPrice
|
|
1853
2003
|
| Shared.NewPlanPackageWithAllocationPrice
|
|
1854
2004
|
| Shared.NewPlanUnitWithPercentPrice
|
|
@@ -2167,6 +2317,154 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
|
|
|
2167
2317
|
}
|
|
2168
2318
|
}
|
|
2169
2319
|
|
|
2320
|
+
export interface NewPlanGroupedTieredMatrixPrice {
|
|
2321
|
+
/**
|
|
2322
|
+
* The cadence to bill for this price on.
|
|
2323
|
+
*/
|
|
2324
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
2328
|
+
*/
|
|
2329
|
+
grouped_tiered_matrix_config: NewPlanGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* The id of the item the price will be associated with.
|
|
2333
|
+
*/
|
|
2334
|
+
item_id: string;
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* The pricing model type
|
|
2338
|
+
*/
|
|
2339
|
+
model_type: 'grouped_tiered_matrix';
|
|
2340
|
+
|
|
2341
|
+
/**
|
|
2342
|
+
* The name of the price.
|
|
2343
|
+
*/
|
|
2344
|
+
name: string;
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2348
|
+
* usage-based.
|
|
2349
|
+
*/
|
|
2350
|
+
billable_metric_id?: string | null;
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2354
|
+
* this is true, and in-arrears if this is false.
|
|
2355
|
+
*/
|
|
2356
|
+
billed_in_advance?: boolean | null;
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2360
|
+
* months.
|
|
2361
|
+
*/
|
|
2362
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2366
|
+
*/
|
|
2367
|
+
conversion_rate?: number | null;
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
2371
|
+
*/
|
|
2372
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
2376
|
+
* price is billed.
|
|
2377
|
+
*/
|
|
2378
|
+
currency?: string | null;
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* For dimensional price: specifies a price group and dimension values
|
|
2382
|
+
*/
|
|
2383
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* An alias for the price.
|
|
2387
|
+
*/
|
|
2388
|
+
external_price_id?: string | null;
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2392
|
+
* applied.
|
|
2393
|
+
*/
|
|
2394
|
+
fixed_price_quantity?: number | null;
|
|
2395
|
+
|
|
2396
|
+
/**
|
|
2397
|
+
* The property used to group this price on an invoice
|
|
2398
|
+
*/
|
|
2399
|
+
invoice_grouping_key?: string | null;
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2403
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2404
|
+
*/
|
|
2405
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* The ID of the license type to associate with this price.
|
|
2409
|
+
*/
|
|
2410
|
+
license_type_id?: string | null;
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2414
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2415
|
+
* by setting `metadata` to `null`.
|
|
2416
|
+
*/
|
|
2417
|
+
metadata?: { [key: string]: string | null } | null;
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
2421
|
+
* in the same API call.
|
|
2422
|
+
*/
|
|
2423
|
+
reference_id?: string | null;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
export namespace NewPlanGroupedTieredMatrixPrice {
|
|
2427
|
+
/**
|
|
2428
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
2429
|
+
*/
|
|
2430
|
+
export interface GroupedTieredMatrixConfig {
|
|
2431
|
+
/**
|
|
2432
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
2433
|
+
*/
|
|
2434
|
+
default_unit_amount: string;
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* The billable metric property used to group usage before tiering
|
|
2438
|
+
*/
|
|
2439
|
+
dimension: string;
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
2443
|
+
* against its own rows
|
|
2444
|
+
*/
|
|
2445
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
export namespace GroupedTieredMatrixConfig {
|
|
2449
|
+
/**
|
|
2450
|
+
* Configuration for a single tier scoped to a dimension value
|
|
2451
|
+
*/
|
|
2452
|
+
export interface Tier {
|
|
2453
|
+
/**
|
|
2454
|
+
* The dimension value this tier applies to
|
|
2455
|
+
*/
|
|
2456
|
+
dimension_value: string;
|
|
2457
|
+
|
|
2458
|
+
tier_lower_bound: string;
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* Per unit amount
|
|
2462
|
+
*/
|
|
2463
|
+
unit_amount: string;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2170
2468
|
export interface NewPlanMatrixWithThresholdDiscountsPrice {
|
|
2171
2469
|
/**
|
|
2172
2470
|
* The cadence to bill for this price on.
|