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.
@@ -8158,7 +8158,7 @@ export namespace SubscriptionCreateParams {
8158
8158
 
8159
8159
  export interface AddPrice {
8160
8160
  /**
8161
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
8161
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
8162
8162
  * discounts for this price.
8163
8163
  */
8164
8164
  discounts?: Array<AddPrice.Discount> | null;
@@ -8176,14 +8176,14 @@ export namespace SubscriptionCreateParams {
8176
8176
  external_price_id?: string | null;
8177
8177
 
8178
8178
  /**
8179
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
8180
- * maximum amount for this price.
8179
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
8180
+ * amount for this price.
8181
8181
  */
8182
8182
  maximum_amount?: string | null;
8183
8183
 
8184
8184
  /**
8185
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
8186
- * minimum amount for this price.
8185
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
8186
+ * amount for this price.
8187
8187
  */
8188
8188
  minimum_amount?: string | null;
8189
8189
 
@@ -10723,7 +10723,7 @@ export namespace SubscriptionCreateParams {
10723
10723
  replaces_price_id: string;
10724
10724
 
10725
10725
  /**
10726
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
10726
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
10727
10727
  * discounts for the replacement price.
10728
10728
  */
10729
10729
  discounts?: Array<ReplacePrice.Discount> | null;
@@ -10739,14 +10739,14 @@ export namespace SubscriptionCreateParams {
10739
10739
  fixed_price_quantity?: number | null;
10740
10740
 
10741
10741
  /**
10742
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
10743
- * maximum amount for the replacement price.
10742
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
10743
+ * amount for the replacement price.
10744
10744
  */
10745
10745
  maximum_amount?: string | null;
10746
10746
 
10747
10747
  /**
10748
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
10749
- * minimum amount for the replacement price.
10748
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
10749
+ * amount for the replacement price.
10750
10750
  */
10751
10751
  minimum_amount?: string | null;
10752
10752
 
@@ -13351,6 +13351,7 @@ export namespace SubscriptionPriceIntervalsParams {
13351
13351
  | Add.NewFloatingThresholdTotalAmountPrice
13352
13352
  | Add.NewFloatingTieredPackagePrice
13353
13353
  | Add.NewFloatingGroupedTieredPrice
13354
+ | Add.NewFloatingMaxGroupTieredPrice
13354
13355
  | Add.NewFloatingTieredWithMinimumPrice
13355
13356
  | Add.NewFloatingPackageWithAllocationPrice
13356
13357
  | Add.NewFloatingTieredPackageWithMinimumPrice
@@ -14993,6 +14994,118 @@ export namespace SubscriptionPriceIntervalsParams {
14993
14994
  }
14994
14995
  }
14995
14996
 
14997
+ export interface NewFloatingMaxGroupTieredPrice {
14998
+ /**
14999
+ * The cadence to bill for this price on.
15000
+ */
15001
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
15002
+
15003
+ /**
15004
+ * An ISO 4217 currency string for which this price is billed in.
15005
+ */
15006
+ currency: string;
15007
+
15008
+ /**
15009
+ * The id of the item the plan will be associated with.
15010
+ */
15011
+ item_id: string;
15012
+
15013
+ max_group_tiered_config: Record<string, unknown>;
15014
+
15015
+ model_type: 'max_group_tiered';
15016
+
15017
+ /**
15018
+ * The name of the price.
15019
+ */
15020
+ name: string;
15021
+
15022
+ /**
15023
+ * The id of the billable metric for the price. Only needed if the price is
15024
+ * usage-based.
15025
+ */
15026
+ billable_metric_id?: string | null;
15027
+
15028
+ /**
15029
+ * If the Price represents a fixed cost, the price will be billed in-advance if
15030
+ * this is true, and in-arrears if this is false.
15031
+ */
15032
+ billed_in_advance?: boolean | null;
15033
+
15034
+ /**
15035
+ * For custom cadence: specifies the duration of the billing period in days or
15036
+ * months.
15037
+ */
15038
+ billing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
15039
+
15040
+ /**
15041
+ * The per unit conversion rate of the price currency to the invoicing currency.
15042
+ */
15043
+ conversion_rate?: number | null;
15044
+
15045
+ /**
15046
+ * An alias for the price.
15047
+ */
15048
+ external_price_id?: string | null;
15049
+
15050
+ /**
15051
+ * If the Price represents a fixed cost, this represents the quantity of units
15052
+ * applied.
15053
+ */
15054
+ fixed_price_quantity?: number | null;
15055
+
15056
+ /**
15057
+ * The property used to group this price on an invoice
15058
+ */
15059
+ invoice_grouping_key?: string | null;
15060
+
15061
+ /**
15062
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
15063
+ * If unspecified, a single invoice is produced per billing cycle.
15064
+ */
15065
+ invoicing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
15066
+
15067
+ /**
15068
+ * User-specified key/value pairs for the resource. Individual keys can be removed
15069
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
15070
+ * by setting `metadata` to `null`.
15071
+ */
15072
+ metadata?: Record<string, string | null> | null;
15073
+ }
15074
+
15075
+ export namespace NewFloatingMaxGroupTieredPrice {
15076
+ /**
15077
+ * For custom cadence: specifies the duration of the billing period in days or
15078
+ * months.
15079
+ */
15080
+ export interface BillingCycleConfiguration {
15081
+ /**
15082
+ * The duration of the billing period.
15083
+ */
15084
+ duration: number;
15085
+
15086
+ /**
15087
+ * The unit of billing period duration.
15088
+ */
15089
+ duration_unit: 'day' | 'month';
15090
+ }
15091
+
15092
+ /**
15093
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
15094
+ * If unspecified, a single invoice is produced per billing cycle.
15095
+ */
15096
+ export interface InvoicingCycleConfiguration {
15097
+ /**
15098
+ * The duration of the billing period.
15099
+ */
15100
+ duration: number;
15101
+
15102
+ /**
15103
+ * The unit of billing period duration.
15104
+ */
15105
+ duration_unit: 'day' | 'month';
15106
+ }
15107
+ }
15108
+
14996
15109
  export interface NewFloatingTieredWithMinimumPrice {
14997
15110
  /**
14998
15111
  * The cadence to bill for this price on.
@@ -16560,7 +16673,8 @@ export interface SubscriptionSchedulePlanChangeParams {
16560
16673
 
16561
16674
  /**
16562
16675
  * The date that the plan change should take effect. This parameter can only be
16563
- * passed if the `change_option` is `requested_date`.
16676
+ * passed if the `change_option` is `requested_date`. If a date with no time is
16677
+ * passed, the plan change will happen at midnight in the customer's timezone.
16564
16678
  */
16565
16679
  change_date?: string | null;
16566
16680
 
@@ -16790,7 +16904,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
16790
16904
 
16791
16905
  export interface AddPrice {
16792
16906
  /**
16793
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
16907
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
16794
16908
  * discounts for this price.
16795
16909
  */
16796
16910
  discounts?: Array<AddPrice.Discount> | null;
@@ -16808,14 +16922,14 @@ export namespace SubscriptionSchedulePlanChangeParams {
16808
16922
  external_price_id?: string | null;
16809
16923
 
16810
16924
  /**
16811
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
16812
- * maximum amount for this price.
16925
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
16926
+ * amount for this price.
16813
16927
  */
16814
16928
  maximum_amount?: string | null;
16815
16929
 
16816
16930
  /**
16817
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
16818
- * minimum amount for this price.
16931
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
16932
+ * amount for this price.
16819
16933
  */
16820
16934
  minimum_amount?: string | null;
16821
16935
 
@@ -19355,7 +19469,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
19355
19469
  replaces_price_id: string;
19356
19470
 
19357
19471
  /**
19358
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
19472
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's
19359
19473
  * discounts for the replacement price.
19360
19474
  */
19361
19475
  discounts?: Array<ReplacePrice.Discount> | null;
@@ -19371,14 +19485,14 @@ export namespace SubscriptionSchedulePlanChangeParams {
19371
19485
  fixed_price_quantity?: number | null;
19372
19486
 
19373
19487
  /**
19374
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
19375
- * maximum amount for the replacement price.
19488
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's maximum
19489
+ * amount for the replacement price.
19376
19490
  */
19377
19491
  maximum_amount?: string | null;
19378
19492
 
19379
19493
  /**
19380
- * @deprecated: [DEPRECATED] Use add_adjustments instead. The subscription's
19381
- * minimum amount for the replacement price.
19494
+ * @deprecated [DEPRECATED] Use add_adjustments instead. The subscription's minimum
19495
+ * amount for the replacement price.
19382
19496
  */
19383
19497
  minimum_amount?: string | null;
19384
19498
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.50.0'; // x-release-please-version
1
+ export const VERSION = '4.51.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.50.0";
1
+ export declare const VERSION = "4.51.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.50.0'; // x-release-please-version
4
+ exports.VERSION = '4.51.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.50.0'; // x-release-please-version
1
+ export const VERSION = '4.51.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map