orb-billing 4.52.0 → 4.54.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.
@@ -13351,7 +13351,7 @@ export namespace SubscriptionPriceIntervalsParams {
13351
13351
  | Add.NewFloatingThresholdTotalAmountPrice
13352
13352
  | Add.NewFloatingTieredPackagePrice
13353
13353
  | Add.NewFloatingGroupedTieredPrice
13354
- | Add.NewFloatingMaxGroupTieredPrice
13354
+ | Add.NewFloatingMaxGroupTieredPackagePrice
13355
13355
  | Add.NewFloatingTieredWithMinimumPrice
13356
13356
  | Add.NewFloatingPackageWithAllocationPrice
13357
13357
  | Add.NewFloatingTieredPackageWithMinimumPrice
@@ -13364,6 +13364,8 @@ export namespace SubscriptionPriceIntervalsParams {
13364
13364
  | Add.NewFloatingMatrixWithDisplayNamePrice
13365
13365
  | Add.NewFloatingBulkWithProrationPrice
13366
13366
  | Add.NewFloatingGroupedTieredPackagePrice
13367
+ | Add.NewFloatingScalableMatrixWithUnitPricingPrice
13368
+ | Add.NewFloatingScalableMatrixWithTieredPricingPrice
13367
13369
  | null;
13368
13370
 
13369
13371
  /**
@@ -14994,7 +14996,7 @@ export namespace SubscriptionPriceIntervalsParams {
14994
14996
  }
14995
14997
  }
14996
14998
 
14997
- export interface NewFloatingMaxGroupTieredPrice {
14999
+ export interface NewFloatingMaxGroupTieredPackagePrice {
14998
15000
  /**
14999
15001
  * The cadence to bill for this price on.
15000
15002
  */
@@ -15010,9 +15012,9 @@ export namespace SubscriptionPriceIntervalsParams {
15010
15012
  */
15011
15013
  item_id: string;
15012
15014
 
15013
- max_group_tiered_config: Record<string, unknown>;
15015
+ max_group_tiered_package_config: Record<string, unknown>;
15014
15016
 
15015
- model_type: 'max_group_tiered';
15017
+ model_type: 'max_group_tiered_package';
15016
15018
 
15017
15019
  /**
15018
15020
  * The name of the price.
@@ -15035,7 +15037,7 @@ export namespace SubscriptionPriceIntervalsParams {
15035
15037
  * For custom cadence: specifies the duration of the billing period in days or
15036
15038
  * months.
15037
15039
  */
15038
- billing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
15040
+ billing_cycle_configuration?: NewFloatingMaxGroupTieredPackagePrice.BillingCycleConfiguration | null;
15039
15041
 
15040
15042
  /**
15041
15043
  * The per unit conversion rate of the price currency to the invoicing currency.
@@ -15062,7 +15064,7 @@ export namespace SubscriptionPriceIntervalsParams {
15062
15064
  * Within each billing cycle, specifies the cadence at which invoices are produced.
15063
15065
  * If unspecified, a single invoice is produced per billing cycle.
15064
15066
  */
15065
- invoicing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
15067
+ invoicing_cycle_configuration?: NewFloatingMaxGroupTieredPackagePrice.InvoicingCycleConfiguration | null;
15066
15068
 
15067
15069
  /**
15068
15070
  * User-specified key/value pairs for the resource. Individual keys can be removed
@@ -15072,7 +15074,7 @@ export namespace SubscriptionPriceIntervalsParams {
15072
15074
  metadata?: Record<string, string | null> | null;
15073
15075
  }
15074
15076
 
15075
- export namespace NewFloatingMaxGroupTieredPrice {
15077
+ export namespace NewFloatingMaxGroupTieredPackagePrice {
15076
15078
  /**
15077
15079
  * For custom cadence: specifies the duration of the billing period in days or
15078
15080
  * months.
@@ -16449,6 +16451,230 @@ export namespace SubscriptionPriceIntervalsParams {
16449
16451
  duration_unit: 'day' | 'month';
16450
16452
  }
16451
16453
  }
16454
+
16455
+ export interface NewFloatingScalableMatrixWithUnitPricingPrice {
16456
+ /**
16457
+ * The cadence to bill for this price on.
16458
+ */
16459
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16460
+
16461
+ /**
16462
+ * An ISO 4217 currency string for which this price is billed in.
16463
+ */
16464
+ currency: string;
16465
+
16466
+ /**
16467
+ * The id of the item the plan will be associated with.
16468
+ */
16469
+ item_id: string;
16470
+
16471
+ model_type: 'scalable_matrix_with_unit_pricing';
16472
+
16473
+ /**
16474
+ * The name of the price.
16475
+ */
16476
+ name: string;
16477
+
16478
+ scalable_matrix_with_unit_pricing_config: Record<string, unknown>;
16479
+
16480
+ /**
16481
+ * The id of the billable metric for the price. Only needed if the price is
16482
+ * usage-based.
16483
+ */
16484
+ billable_metric_id?: string | null;
16485
+
16486
+ /**
16487
+ * If the Price represents a fixed cost, the price will be billed in-advance if
16488
+ * this is true, and in-arrears if this is false.
16489
+ */
16490
+ billed_in_advance?: boolean | null;
16491
+
16492
+ /**
16493
+ * For custom cadence: specifies the duration of the billing period in days or
16494
+ * months.
16495
+ */
16496
+ billing_cycle_configuration?: NewFloatingScalableMatrixWithUnitPricingPrice.BillingCycleConfiguration | null;
16497
+
16498
+ /**
16499
+ * The per unit conversion rate of the price currency to the invoicing currency.
16500
+ */
16501
+ conversion_rate?: number | null;
16502
+
16503
+ /**
16504
+ * An alias for the price.
16505
+ */
16506
+ external_price_id?: string | null;
16507
+
16508
+ /**
16509
+ * If the Price represents a fixed cost, this represents the quantity of units
16510
+ * applied.
16511
+ */
16512
+ fixed_price_quantity?: number | null;
16513
+
16514
+ /**
16515
+ * The property used to group this price on an invoice
16516
+ */
16517
+ invoice_grouping_key?: string | null;
16518
+
16519
+ /**
16520
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
16521
+ * If unspecified, a single invoice is produced per billing cycle.
16522
+ */
16523
+ invoicing_cycle_configuration?: NewFloatingScalableMatrixWithUnitPricingPrice.InvoicingCycleConfiguration | null;
16524
+
16525
+ /**
16526
+ * User-specified key/value pairs for the resource. Individual keys can be removed
16527
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
16528
+ * by setting `metadata` to `null`.
16529
+ */
16530
+ metadata?: Record<string, string | null> | null;
16531
+ }
16532
+
16533
+ export namespace NewFloatingScalableMatrixWithUnitPricingPrice {
16534
+ /**
16535
+ * For custom cadence: specifies the duration of the billing period in days or
16536
+ * months.
16537
+ */
16538
+ export interface BillingCycleConfiguration {
16539
+ /**
16540
+ * The duration of the billing period.
16541
+ */
16542
+ duration: number;
16543
+
16544
+ /**
16545
+ * The unit of billing period duration.
16546
+ */
16547
+ duration_unit: 'day' | 'month';
16548
+ }
16549
+
16550
+ /**
16551
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
16552
+ * If unspecified, a single invoice is produced per billing cycle.
16553
+ */
16554
+ export interface InvoicingCycleConfiguration {
16555
+ /**
16556
+ * The duration of the billing period.
16557
+ */
16558
+ duration: number;
16559
+
16560
+ /**
16561
+ * The unit of billing period duration.
16562
+ */
16563
+ duration_unit: 'day' | 'month';
16564
+ }
16565
+ }
16566
+
16567
+ export interface NewFloatingScalableMatrixWithTieredPricingPrice {
16568
+ /**
16569
+ * The cadence to bill for this price on.
16570
+ */
16571
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
16572
+
16573
+ /**
16574
+ * An ISO 4217 currency string for which this price is billed in.
16575
+ */
16576
+ currency: string;
16577
+
16578
+ /**
16579
+ * The id of the item the plan will be associated with.
16580
+ */
16581
+ item_id: string;
16582
+
16583
+ model_type: 'scalable_matrix_with_tiered_pricing';
16584
+
16585
+ /**
16586
+ * The name of the price.
16587
+ */
16588
+ name: string;
16589
+
16590
+ scalable_matrix_with_tiered_pricing_config: Record<string, unknown>;
16591
+
16592
+ /**
16593
+ * The id of the billable metric for the price. Only needed if the price is
16594
+ * usage-based.
16595
+ */
16596
+ billable_metric_id?: string | null;
16597
+
16598
+ /**
16599
+ * If the Price represents a fixed cost, the price will be billed in-advance if
16600
+ * this is true, and in-arrears if this is false.
16601
+ */
16602
+ billed_in_advance?: boolean | null;
16603
+
16604
+ /**
16605
+ * For custom cadence: specifies the duration of the billing period in days or
16606
+ * months.
16607
+ */
16608
+ billing_cycle_configuration?: NewFloatingScalableMatrixWithTieredPricingPrice.BillingCycleConfiguration | null;
16609
+
16610
+ /**
16611
+ * The per unit conversion rate of the price currency to the invoicing currency.
16612
+ */
16613
+ conversion_rate?: number | null;
16614
+
16615
+ /**
16616
+ * An alias for the price.
16617
+ */
16618
+ external_price_id?: string | null;
16619
+
16620
+ /**
16621
+ * If the Price represents a fixed cost, this represents the quantity of units
16622
+ * applied.
16623
+ */
16624
+ fixed_price_quantity?: number | null;
16625
+
16626
+ /**
16627
+ * The property used to group this price on an invoice
16628
+ */
16629
+ invoice_grouping_key?: string | null;
16630
+
16631
+ /**
16632
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
16633
+ * If unspecified, a single invoice is produced per billing cycle.
16634
+ */
16635
+ invoicing_cycle_configuration?: NewFloatingScalableMatrixWithTieredPricingPrice.InvoicingCycleConfiguration | null;
16636
+
16637
+ /**
16638
+ * User-specified key/value pairs for the resource. Individual keys can be removed
16639
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
16640
+ * by setting `metadata` to `null`.
16641
+ */
16642
+ metadata?: Record<string, string | null> | null;
16643
+ }
16644
+
16645
+ export namespace NewFloatingScalableMatrixWithTieredPricingPrice {
16646
+ /**
16647
+ * For custom cadence: specifies the duration of the billing period in days or
16648
+ * months.
16649
+ */
16650
+ export interface BillingCycleConfiguration {
16651
+ /**
16652
+ * The duration of the billing period.
16653
+ */
16654
+ duration: number;
16655
+
16656
+ /**
16657
+ * The unit of billing period duration.
16658
+ */
16659
+ duration_unit: 'day' | 'month';
16660
+ }
16661
+
16662
+ /**
16663
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
16664
+ * If unspecified, a single invoice is produced per billing cycle.
16665
+ */
16666
+ export interface InvoicingCycleConfiguration {
16667
+ /**
16668
+ * The duration of the billing period.
16669
+ */
16670
+ duration: number;
16671
+
16672
+ /**
16673
+ * The unit of billing period duration.
16674
+ */
16675
+ duration_unit: 'day' | 'month';
16676
+ }
16677
+ }
16452
16678
  }
16453
16679
 
16454
16680
  export interface AddAdjustment {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.52.0'; // x-release-please-version
1
+ export const VERSION = '4.54.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.52.0";
1
+ export declare const VERSION = "4.54.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.52.0'; // x-release-please-version
4
+ exports.VERSION = '4.54.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.52.0'; // x-release-please-version
1
+ export const VERSION = '4.54.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map