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.
@@ -10787,7 +10787,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
10787
10787
  /**
10788
10788
  * The definition of a new price to create and add to the subscription.
10789
10789
  */
10790
- price?: Add.NewFloatingUnitPrice | Add.NewFloatingPackagePrice | Add.NewFloatingMatrixPrice | Add.NewFloatingMatrixWithAllocationPrice | Add.NewFloatingTieredPrice | Add.NewFloatingTieredBpsPrice | Add.NewFloatingBpsPrice | Add.NewFloatingBulkBpsPrice | Add.NewFloatingBulkPrice | Add.NewFloatingThresholdTotalAmountPrice | Add.NewFloatingTieredPackagePrice | Add.NewFloatingGroupedTieredPrice | Add.NewFloatingMaxGroupTieredPrice | Add.NewFloatingTieredWithMinimumPrice | Add.NewFloatingPackageWithAllocationPrice | Add.NewFloatingTieredPackageWithMinimumPrice | Add.NewFloatingUnitWithPercentPrice | Add.NewFloatingTieredWithProrationPrice | Add.NewFloatingUnitWithProrationPrice | Add.NewFloatingGroupedAllocationPrice | Add.NewFloatingGroupedWithProratedMinimumPrice | Add.NewFloatingGroupedWithMeteredMinimumPrice | Add.NewFloatingMatrixWithDisplayNamePrice | Add.NewFloatingBulkWithProrationPrice | Add.NewFloatingGroupedTieredPackagePrice | null;
10790
+ price?: Add.NewFloatingUnitPrice | Add.NewFloatingPackagePrice | Add.NewFloatingMatrixPrice | Add.NewFloatingMatrixWithAllocationPrice | Add.NewFloatingTieredPrice | Add.NewFloatingTieredBpsPrice | Add.NewFloatingBpsPrice | Add.NewFloatingBulkBpsPrice | Add.NewFloatingBulkPrice | Add.NewFloatingThresholdTotalAmountPrice | Add.NewFloatingTieredPackagePrice | Add.NewFloatingGroupedTieredPrice | Add.NewFloatingMaxGroupTieredPackagePrice | Add.NewFloatingTieredWithMinimumPrice | Add.NewFloatingPackageWithAllocationPrice | Add.NewFloatingTieredPackageWithMinimumPrice | Add.NewFloatingUnitWithPercentPrice | Add.NewFloatingTieredWithProrationPrice | Add.NewFloatingUnitWithProrationPrice | Add.NewFloatingGroupedAllocationPrice | Add.NewFloatingGroupedWithProratedMinimumPrice | Add.NewFloatingGroupedWithMeteredMinimumPrice | Add.NewFloatingMatrixWithDisplayNamePrice | Add.NewFloatingBulkWithProrationPrice | Add.NewFloatingGroupedTieredPackagePrice | Add.NewFloatingScalableMatrixWithUnitPricingPrice | Add.NewFloatingScalableMatrixWithTieredPricingPrice | null;
10791
10791
  /**
10792
10792
  * The id of the price to add to the subscription.
10793
10793
  */
@@ -12143,7 +12143,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12143
12143
  duration_unit: 'day' | 'month';
12144
12144
  }
12145
12145
  }
12146
- interface NewFloatingMaxGroupTieredPrice {
12146
+ interface NewFloatingMaxGroupTieredPackagePrice {
12147
12147
  /**
12148
12148
  * The cadence to bill for this price on.
12149
12149
  */
@@ -12156,8 +12156,8 @@ export declare namespace SubscriptionPriceIntervalsParams {
12156
12156
  * The id of the item the plan will be associated with.
12157
12157
  */
12158
12158
  item_id: string;
12159
- max_group_tiered_config: Record<string, unknown>;
12160
- model_type: 'max_group_tiered';
12159
+ max_group_tiered_package_config: Record<string, unknown>;
12160
+ model_type: 'max_group_tiered_package';
12161
12161
  /**
12162
12162
  * The name of the price.
12163
12163
  */
@@ -12176,7 +12176,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12176
12176
  * For custom cadence: specifies the duration of the billing period in days or
12177
12177
  * months.
12178
12178
  */
12179
- billing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
12179
+ billing_cycle_configuration?: NewFloatingMaxGroupTieredPackagePrice.BillingCycleConfiguration | null;
12180
12180
  /**
12181
12181
  * The per unit conversion rate of the price currency to the invoicing currency.
12182
12182
  */
@@ -12198,7 +12198,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12198
12198
  * Within each billing cycle, specifies the cadence at which invoices are produced.
12199
12199
  * If unspecified, a single invoice is produced per billing cycle.
12200
12200
  */
12201
- invoicing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
12201
+ invoicing_cycle_configuration?: NewFloatingMaxGroupTieredPackagePrice.InvoicingCycleConfiguration | null;
12202
12202
  /**
12203
12203
  * User-specified key/value pairs for the resource. Individual keys can be removed
12204
12204
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -12206,7 +12206,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
12206
12206
  */
12207
12207
  metadata?: Record<string, string | null> | null;
12208
12208
  }
12209
- namespace NewFloatingMaxGroupTieredPrice {
12209
+ namespace NewFloatingMaxGroupTieredPackagePrice {
12210
12210
  /**
12211
12211
  * For custom cadence: specifies the duration of the billing period in days or
12212
12212
  * months.
@@ -13352,6 +13352,192 @@ export declare namespace SubscriptionPriceIntervalsParams {
13352
13352
  duration_unit: 'day' | 'month';
13353
13353
  }
13354
13354
  }
13355
+ interface NewFloatingScalableMatrixWithUnitPricingPrice {
13356
+ /**
13357
+ * The cadence to bill for this price on.
13358
+ */
13359
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
13360
+ /**
13361
+ * An ISO 4217 currency string for which this price is billed in.
13362
+ */
13363
+ currency: string;
13364
+ /**
13365
+ * The id of the item the plan will be associated with.
13366
+ */
13367
+ item_id: string;
13368
+ model_type: 'scalable_matrix_with_unit_pricing';
13369
+ /**
13370
+ * The name of the price.
13371
+ */
13372
+ name: string;
13373
+ scalable_matrix_with_unit_pricing_config: Record<string, unknown>;
13374
+ /**
13375
+ * The id of the billable metric for the price. Only needed if the price is
13376
+ * usage-based.
13377
+ */
13378
+ billable_metric_id?: string | null;
13379
+ /**
13380
+ * If the Price represents a fixed cost, the price will be billed in-advance if
13381
+ * this is true, and in-arrears if this is false.
13382
+ */
13383
+ billed_in_advance?: boolean | null;
13384
+ /**
13385
+ * For custom cadence: specifies the duration of the billing period in days or
13386
+ * months.
13387
+ */
13388
+ billing_cycle_configuration?: NewFloatingScalableMatrixWithUnitPricingPrice.BillingCycleConfiguration | null;
13389
+ /**
13390
+ * The per unit conversion rate of the price currency to the invoicing currency.
13391
+ */
13392
+ conversion_rate?: number | null;
13393
+ /**
13394
+ * An alias for the price.
13395
+ */
13396
+ external_price_id?: string | null;
13397
+ /**
13398
+ * If the Price represents a fixed cost, this represents the quantity of units
13399
+ * applied.
13400
+ */
13401
+ fixed_price_quantity?: number | null;
13402
+ /**
13403
+ * The property used to group this price on an invoice
13404
+ */
13405
+ invoice_grouping_key?: string | null;
13406
+ /**
13407
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
13408
+ * If unspecified, a single invoice is produced per billing cycle.
13409
+ */
13410
+ invoicing_cycle_configuration?: NewFloatingScalableMatrixWithUnitPricingPrice.InvoicingCycleConfiguration | null;
13411
+ /**
13412
+ * User-specified key/value pairs for the resource. Individual keys can be removed
13413
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
13414
+ * by setting `metadata` to `null`.
13415
+ */
13416
+ metadata?: Record<string, string | null> | null;
13417
+ }
13418
+ namespace NewFloatingScalableMatrixWithUnitPricingPrice {
13419
+ /**
13420
+ * For custom cadence: specifies the duration of the billing period in days or
13421
+ * months.
13422
+ */
13423
+ interface BillingCycleConfiguration {
13424
+ /**
13425
+ * The duration of the billing period.
13426
+ */
13427
+ duration: number;
13428
+ /**
13429
+ * The unit of billing period duration.
13430
+ */
13431
+ duration_unit: 'day' | 'month';
13432
+ }
13433
+ /**
13434
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
13435
+ * If unspecified, a single invoice is produced per billing cycle.
13436
+ */
13437
+ interface InvoicingCycleConfiguration {
13438
+ /**
13439
+ * The duration of the billing period.
13440
+ */
13441
+ duration: number;
13442
+ /**
13443
+ * The unit of billing period duration.
13444
+ */
13445
+ duration_unit: 'day' | 'month';
13446
+ }
13447
+ }
13448
+ interface NewFloatingScalableMatrixWithTieredPricingPrice {
13449
+ /**
13450
+ * The cadence to bill for this price on.
13451
+ */
13452
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
13453
+ /**
13454
+ * An ISO 4217 currency string for which this price is billed in.
13455
+ */
13456
+ currency: string;
13457
+ /**
13458
+ * The id of the item the plan will be associated with.
13459
+ */
13460
+ item_id: string;
13461
+ model_type: 'scalable_matrix_with_tiered_pricing';
13462
+ /**
13463
+ * The name of the price.
13464
+ */
13465
+ name: string;
13466
+ scalable_matrix_with_tiered_pricing_config: Record<string, unknown>;
13467
+ /**
13468
+ * The id of the billable metric for the price. Only needed if the price is
13469
+ * usage-based.
13470
+ */
13471
+ billable_metric_id?: string | null;
13472
+ /**
13473
+ * If the Price represents a fixed cost, the price will be billed in-advance if
13474
+ * this is true, and in-arrears if this is false.
13475
+ */
13476
+ billed_in_advance?: boolean | null;
13477
+ /**
13478
+ * For custom cadence: specifies the duration of the billing period in days or
13479
+ * months.
13480
+ */
13481
+ billing_cycle_configuration?: NewFloatingScalableMatrixWithTieredPricingPrice.BillingCycleConfiguration | null;
13482
+ /**
13483
+ * The per unit conversion rate of the price currency to the invoicing currency.
13484
+ */
13485
+ conversion_rate?: number | null;
13486
+ /**
13487
+ * An alias for the price.
13488
+ */
13489
+ external_price_id?: string | null;
13490
+ /**
13491
+ * If the Price represents a fixed cost, this represents the quantity of units
13492
+ * applied.
13493
+ */
13494
+ fixed_price_quantity?: number | null;
13495
+ /**
13496
+ * The property used to group this price on an invoice
13497
+ */
13498
+ invoice_grouping_key?: string | null;
13499
+ /**
13500
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
13501
+ * If unspecified, a single invoice is produced per billing cycle.
13502
+ */
13503
+ invoicing_cycle_configuration?: NewFloatingScalableMatrixWithTieredPricingPrice.InvoicingCycleConfiguration | null;
13504
+ /**
13505
+ * User-specified key/value pairs for the resource. Individual keys can be removed
13506
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
13507
+ * by setting `metadata` to `null`.
13508
+ */
13509
+ metadata?: Record<string, string | null> | null;
13510
+ }
13511
+ namespace NewFloatingScalableMatrixWithTieredPricingPrice {
13512
+ /**
13513
+ * For custom cadence: specifies the duration of the billing period in days or
13514
+ * months.
13515
+ */
13516
+ interface BillingCycleConfiguration {
13517
+ /**
13518
+ * The duration of the billing period.
13519
+ */
13520
+ duration: number;
13521
+ /**
13522
+ * The unit of billing period duration.
13523
+ */
13524
+ duration_unit: 'day' | 'month';
13525
+ }
13526
+ /**
13527
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
13528
+ * If unspecified, a single invoice is produced per billing cycle.
13529
+ */
13530
+ interface InvoicingCycleConfiguration {
13531
+ /**
13532
+ * The duration of the billing period.
13533
+ */
13534
+ duration: number;
13535
+ /**
13536
+ * The unit of billing period duration.
13537
+ */
13538
+ duration_unit: 'day' | 'month';
13539
+ }
13540
+ }
13355
13541
  }
13356
13542
  interface AddAdjustment {
13357
13543
  /**