orb-billing 4.1.0 → 4.3.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.
@@ -3498,6 +3498,11 @@ export interface SubscriptionCancelParams {
3498
3498
  }
3499
3499
 
3500
3500
  export interface SubscriptionFetchCostsParams {
3501
+ /**
3502
+ * The currency or custom pricing unit to use.
3503
+ */
3504
+ currency?: string | null;
3505
+
3501
3506
  /**
3502
3507
  * Costs returned are exclusive of `timeframe_end`.
3503
3508
  */
@@ -3666,6 +3671,7 @@ export namespace SubscriptionPriceIntervalsParams {
3666
3671
  | Add.NewFloatingUnitWithPercentPrice
3667
3672
  | Add.NewFloatingTieredWithProrationPrice
3668
3673
  | Add.NewFloatingUnitWithProrationPrice
3674
+ | Add.NewFloatingGroupedAllocationPrice
3669
3675
  | null;
3670
3676
 
3671
3677
  /**
@@ -5157,6 +5163,72 @@ export namespace SubscriptionPriceIntervalsParams {
5157
5163
  */
5158
5164
  metadata?: Record<string, string | null> | null;
5159
5165
  }
5166
+
5167
+ export interface NewFloatingGroupedAllocationPrice {
5168
+ /**
5169
+ * The cadence to bill for this price on.
5170
+ */
5171
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
5172
+
5173
+ /**
5174
+ * An ISO 4217 currency string for which this price is billed in.
5175
+ */
5176
+ currency: string;
5177
+
5178
+ grouped_allocation_config: Record<string, unknown>;
5179
+
5180
+ /**
5181
+ * The id of the item the plan will be associated with.
5182
+ */
5183
+ item_id: string;
5184
+
5185
+ model_type: 'grouped_allocation';
5186
+
5187
+ /**
5188
+ * The name of the price.
5189
+ */
5190
+ name: string;
5191
+
5192
+ /**
5193
+ * The id of the billable metric for the price. Only needed if the price is
5194
+ * usage-based.
5195
+ */
5196
+ billable_metric_id?: string | null;
5197
+
5198
+ /**
5199
+ * If the Price represents a fixed cost, the price will be billed in-advance if
5200
+ * this is true, and in-arrears if this is false.
5201
+ */
5202
+ billed_in_advance?: boolean | null;
5203
+
5204
+ /**
5205
+ * The per unit conversion rate of the price currency to the invoicing currency.
5206
+ */
5207
+ conversion_rate?: number | null;
5208
+
5209
+ /**
5210
+ * An alias for the price.
5211
+ */
5212
+ external_price_id?: string | null;
5213
+
5214
+ /**
5215
+ * If the Price represents a fixed cost, this represents the quantity of units
5216
+ * applied.
5217
+ */
5218
+ fixed_price_quantity?: number | null;
5219
+
5220
+ /**
5221
+ * The property used to group this price on an invoice
5222
+ */
5223
+ invoice_grouping_key?: string | null;
5224
+
5225
+ /**
5226
+ * User-specified key/value pairs for the resource. Individual keys can be removed
5227
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
5228
+ * by setting `metadata` to `null`.
5229
+ */
5230
+ metadata?: Record<string, string | null> | null;
5231
+ }
5160
5232
  }
5161
5233
 
5162
5234
  export interface AddAdjustment {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.1.0'; // x-release-please-version
1
+ export const VERSION = '4.3.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.1.0";
1
+ export declare const VERSION = "4.3.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.1.0'; // x-release-please-version
4
+ exports.VERSION = '4.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.1.0'; // x-release-please-version
1
+ export const VERSION = '4.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map