orb-billing 4.50.0 → 4.51.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.
@@ -6524,7 +6524,7 @@ export declare namespace SubscriptionCreateParams {
6524
6524
  }
6525
6525
  interface AddPrice {
6526
6526
  /**
6527
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
6527
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
6528
6528
  * discounts for this price.
6529
6529
  */
6530
6530
  discounts?: Array<AddPrice.Discount> | null;
@@ -6539,13 +6539,13 @@ export declare namespace SubscriptionCreateParams {
6539
6539
  */
6540
6540
  external_price_id?: string | null;
6541
6541
  /**
6542
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
6543
- * maximum amount for this price.
6542
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
6543
+ * amount for this price.
6544
6544
  */
6545
6545
  maximum_amount?: string | null;
6546
6546
  /**
6547
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
6548
- * minimum amount for this price.
6547
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
6548
+ * amount for this price.
6549
6549
  */
6550
6550
  minimum_amount?: string | null;
6551
6551
  /**
@@ -8636,7 +8636,7 @@ export declare namespace SubscriptionCreateParams {
8636
8636
  */
8637
8637
  replaces_price_id: string;
8638
8638
  /**
8639
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
8639
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
8640
8640
  * discounts for the replacement price.
8641
8641
  */
8642
8642
  discounts?: Array<ReplacePrice.Discount> | null;
@@ -8649,13 +8649,13 @@ export declare namespace SubscriptionCreateParams {
8649
8649
  */
8650
8650
  fixed_price_quantity?: number | null;
8651
8651
  /**
8652
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
8653
- * maximum amount for the replacement price.
8652
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
8653
+ * amount for the replacement price.
8654
8654
  */
8655
8655
  maximum_amount?: string | null;
8656
8656
  /**
8657
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
8658
- * minimum amount for the replacement price.
8657
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
8658
+ * amount for the replacement price.
8659
8659
  */
8660
8660
  minimum_amount?: string | null;
8661
8661
  /**
@@ -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.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.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;
10791
10791
  /**
10792
10792
  * The id of the price to add to the subscription.
10793
10793
  */
@@ -12143,6 +12143,99 @@ export declare namespace SubscriptionPriceIntervalsParams {
12143
12143
  duration_unit: 'day' | 'month';
12144
12144
  }
12145
12145
  }
12146
+ interface NewFloatingMaxGroupTieredPrice {
12147
+ /**
12148
+ * The cadence to bill for this price on.
12149
+ */
12150
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
12151
+ /**
12152
+ * An ISO 4217 currency string for which this price is billed in.
12153
+ */
12154
+ currency: string;
12155
+ /**
12156
+ * The id of the item the plan will be associated with.
12157
+ */
12158
+ item_id: string;
12159
+ max_group_tiered_config: Record<string, unknown>;
12160
+ model_type: 'max_group_tiered';
12161
+ /**
12162
+ * The name of the price.
12163
+ */
12164
+ name: string;
12165
+ /**
12166
+ * The id of the billable metric for the price. Only needed if the price is
12167
+ * usage-based.
12168
+ */
12169
+ billable_metric_id?: string | null;
12170
+ /**
12171
+ * If the Price represents a fixed cost, the price will be billed in-advance if
12172
+ * this is true, and in-arrears if this is false.
12173
+ */
12174
+ billed_in_advance?: boolean | null;
12175
+ /**
12176
+ * For custom cadence: specifies the duration of the billing period in days or
12177
+ * months.
12178
+ */
12179
+ billing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
12180
+ /**
12181
+ * The per unit conversion rate of the price currency to the invoicing currency.
12182
+ */
12183
+ conversion_rate?: number | null;
12184
+ /**
12185
+ * An alias for the price.
12186
+ */
12187
+ external_price_id?: string | null;
12188
+ /**
12189
+ * If the Price represents a fixed cost, this represents the quantity of units
12190
+ * applied.
12191
+ */
12192
+ fixed_price_quantity?: number | null;
12193
+ /**
12194
+ * The property used to group this price on an invoice
12195
+ */
12196
+ invoice_grouping_key?: string | null;
12197
+ /**
12198
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
12199
+ * If unspecified, a single invoice is produced per billing cycle.
12200
+ */
12201
+ invoicing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
12202
+ /**
12203
+ * User-specified key/value pairs for the resource. Individual keys can be removed
12204
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
12205
+ * by setting `metadata` to `null`.
12206
+ */
12207
+ metadata?: Record<string, string | null> | null;
12208
+ }
12209
+ namespace NewFloatingMaxGroupTieredPrice {
12210
+ /**
12211
+ * For custom cadence: specifies the duration of the billing period in days or
12212
+ * months.
12213
+ */
12214
+ interface BillingCycleConfiguration {
12215
+ /**
12216
+ * The duration of the billing period.
12217
+ */
12218
+ duration: number;
12219
+ /**
12220
+ * The unit of billing period duration.
12221
+ */
12222
+ duration_unit: 'day' | 'month';
12223
+ }
12224
+ /**
12225
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
12226
+ * If unspecified, a single invoice is produced per billing cycle.
12227
+ */
12228
+ interface InvoicingCycleConfiguration {
12229
+ /**
12230
+ * The duration of the billing period.
12231
+ */
12232
+ duration: number;
12233
+ /**
12234
+ * The unit of billing period duration.
12235
+ */
12236
+ duration_unit: 'day' | 'month';
12237
+ }
12238
+ }
12146
12239
  interface NewFloatingTieredWithMinimumPrice {
12147
12240
  /**
12148
12241
  * The cadence to bill for this price on.
@@ -13436,7 +13529,8 @@ export interface SubscriptionSchedulePlanChangeParams {
13436
13529
  billing_cycle_anchor_configuration?: SubscriptionSchedulePlanChangeParams.BillingCycleAnchorConfiguration | null;
13437
13530
  /**
13438
13531
  * The date that the plan change should take effect. This parameter can only be
13439
- * passed if the `change_option` is `requested_date`.
13532
+ * passed if the `change_option` is `requested_date`. If a date with no time is
13533
+ * passed, the plan change will happen at midnight in the customer's timezone.
13440
13534
  */
13441
13535
  change_date?: string | null;
13442
13536
  /**
@@ -13618,7 +13712,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
13618
13712
  }
13619
13713
  interface AddPrice {
13620
13714
  /**
13621
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
13715
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
13622
13716
  * discounts for this price.
13623
13717
  */
13624
13718
  discounts?: Array<AddPrice.Discount> | null;
@@ -13633,13 +13727,13 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
13633
13727
  */
13634
13728
  external_price_id?: string | null;
13635
13729
  /**
13636
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
13637
- * maximum amount for this price.
13730
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
13731
+ * amount for this price.
13638
13732
  */
13639
13733
  maximum_amount?: string | null;
13640
13734
  /**
13641
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
13642
- * minimum amount for this price.
13735
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
13736
+ * amount for this price.
13643
13737
  */
13644
13738
  minimum_amount?: string | null;
13645
13739
  /**
@@ -15730,7 +15824,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15730
15824
  */
15731
15825
  replaces_price_id: string;
15732
15826
  /**
15733
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
15827
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
15734
15828
  * discounts for the replacement price.
15735
15829
  */
15736
15830
  discounts?: Array<ReplacePrice.Discount> | null;
@@ -15743,13 +15837,13 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
15743
15837
  */
15744
15838
  fixed_price_quantity?: number | null;
15745
15839
  /**
15746
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
15747
- * maximum amount for the replacement price.
15840
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
15841
+ * amount for the replacement price.
15748
15842
  */
15749
15843
  maximum_amount?: string | null;
15750
15844
  /**
15751
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
15752
- * minimum amount for the replacement price.
15845
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
15846
+ * amount for the replacement price.
15753
15847
  */
15754
15848
  minimum_amount?: string | null;
15755
15849
  /**