orb-billing 6.9.0 → 6.11.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 +14 -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 +695 -43
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +695 -43
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +39 -6
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +39 -6
- package/resources/subscriptions.mjs.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 +890 -119
- 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
|
@@ -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.
|
|
@@ -454,6 +454,7 @@ export namespace PlanCreateParams {
|
|
|
454
454
|
| Shared.NewPlanTieredPackagePrice
|
|
455
455
|
| Shared.NewPlanTieredWithMinimumPrice
|
|
456
456
|
| Shared.NewPlanGroupedTieredPrice
|
|
457
|
+
| Price.NewPlanGroupedTieredMatrixPrice
|
|
457
458
|
| Shared.NewPlanTieredPackageWithMinimumPrice
|
|
458
459
|
| Shared.NewPlanPackageWithAllocationPrice
|
|
459
460
|
| Shared.NewPlanUnitWithPercentPrice
|
|
@@ -772,6 +773,154 @@ export namespace PlanCreateParams {
|
|
|
772
773
|
}
|
|
773
774
|
}
|
|
774
775
|
|
|
776
|
+
export interface NewPlanGroupedTieredMatrixPrice {
|
|
777
|
+
/**
|
|
778
|
+
* The cadence to bill for this price on.
|
|
779
|
+
*/
|
|
780
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
784
|
+
*/
|
|
785
|
+
grouped_tiered_matrix_config: NewPlanGroupedTieredMatrixPrice.GroupedTieredMatrixConfig;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* The id of the item the price will be associated with.
|
|
789
|
+
*/
|
|
790
|
+
item_id: string;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* The pricing model type
|
|
794
|
+
*/
|
|
795
|
+
model_type: 'grouped_tiered_matrix';
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* The name of the price.
|
|
799
|
+
*/
|
|
800
|
+
name: string;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
804
|
+
* usage-based.
|
|
805
|
+
*/
|
|
806
|
+
billable_metric_id?: string | null;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
810
|
+
* this is true, and in-arrears if this is false.
|
|
811
|
+
*/
|
|
812
|
+
billed_in_advance?: boolean | null;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
816
|
+
* months.
|
|
817
|
+
*/
|
|
818
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
822
|
+
*/
|
|
823
|
+
conversion_rate?: number | null;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
827
|
+
*/
|
|
828
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
832
|
+
* price is billed.
|
|
833
|
+
*/
|
|
834
|
+
currency?: string | null;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* For dimensional price: specifies a price group and dimension values
|
|
838
|
+
*/
|
|
839
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* An alias for the price.
|
|
843
|
+
*/
|
|
844
|
+
external_price_id?: string | null;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
848
|
+
* applied.
|
|
849
|
+
*/
|
|
850
|
+
fixed_price_quantity?: number | null;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* The property used to group this price on an invoice
|
|
854
|
+
*/
|
|
855
|
+
invoice_grouping_key?: string | null;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
859
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
860
|
+
*/
|
|
861
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* The ID of the license type to associate with this price.
|
|
865
|
+
*/
|
|
866
|
+
license_type_id?: string | null;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
870
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
871
|
+
* by setting `metadata` to `null`.
|
|
872
|
+
*/
|
|
873
|
+
metadata?: { [key: string]: string | null } | null;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
877
|
+
* in the same API call.
|
|
878
|
+
*/
|
|
879
|
+
reference_id?: string | null;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export namespace NewPlanGroupedTieredMatrixPrice {
|
|
883
|
+
/**
|
|
884
|
+
* Configuration for grouped_tiered_matrix pricing
|
|
885
|
+
*/
|
|
886
|
+
export interface GroupedTieredMatrixConfig {
|
|
887
|
+
/**
|
|
888
|
+
* Per unit rate for usage whose dimension value has no configured tiers
|
|
889
|
+
*/
|
|
890
|
+
default_unit_amount: string;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* The billable metric property used to group usage before tiering
|
|
894
|
+
*/
|
|
895
|
+
dimension: string;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Graduated tiers keyed by dimension value; usage for a value is tiered only
|
|
899
|
+
* against its own rows
|
|
900
|
+
*/
|
|
901
|
+
tiers: Array<GroupedTieredMatrixConfig.Tier>;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export namespace GroupedTieredMatrixConfig {
|
|
905
|
+
/**
|
|
906
|
+
* Configuration for a single tier scoped to a dimension value
|
|
907
|
+
*/
|
|
908
|
+
export interface Tier {
|
|
909
|
+
/**
|
|
910
|
+
* The dimension value this tier applies to
|
|
911
|
+
*/
|
|
912
|
+
dimension_value: string;
|
|
913
|
+
|
|
914
|
+
tier_lower_bound: string;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* Per unit amount
|
|
918
|
+
*/
|
|
919
|
+
unit_amount: string;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
775
924
|
export interface NewPlanMatrixWithThresholdDiscountsPrice {
|
|
776
925
|
/**
|
|
777
926
|
* The cadence to bill for this price on.
|