orb-billing 4.56.0 → 4.58.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.
- package/CHANGELOG.md +27 -0
- package/package.json +29 -8
- package/resources/customers/costs.d.ts +10 -20
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/events/events.d.ts +2 -0
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +2 -0
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +2 -0
- package/resources/events/events.mjs.map +1 -1
- package/resources/plans/plans.d.ts +95 -1
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/prices.d.ts +174 -2
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +123 -11
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/resources/customers/costs.ts +12 -20
- package/src/resources/events/events.ts +2 -0
- package/src/resources/plans/plans.ts +114 -0
- package/src/resources/prices/prices.ts +234 -2
- package/src/resources/subscriptions.ts +147 -10
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2999,19 +2999,15 @@ export namespace SubscriptionFetchCostsResponse {
|
|
|
2999
2999
|
export namespace Data {
|
|
3000
3000
|
export interface PerPriceCost {
|
|
3001
3001
|
/**
|
|
3002
|
-
* The
|
|
3003
|
-
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
3004
|
-
* take a quantity and determine an amount to bill.
|
|
3005
|
-
*
|
|
3006
|
-
* Orb supports a few different pricing models out of the box. Each of these models
|
|
3007
|
-
* is serialized differently in a given Price object. The model_type field
|
|
3008
|
-
* determines the key for the configuration object that is present.
|
|
3009
|
-
*
|
|
3010
|
-
* For more on the types of prices, see
|
|
3011
|
-
* [the core concepts documentation](/core-concepts#plan-and-price)
|
|
3002
|
+
* The price object
|
|
3012
3003
|
*/
|
|
3013
3004
|
price: PricesAPI.Price;
|
|
3014
3005
|
|
|
3006
|
+
/**
|
|
3007
|
+
* The price the cost is associated with
|
|
3008
|
+
*/
|
|
3009
|
+
price_id: string;
|
|
3010
|
+
|
|
3015
3011
|
/**
|
|
3016
3012
|
* Price's contributions for the timeframe, excluding any minimums and discounts.
|
|
3017
3013
|
*/
|
|
@@ -13239,6 +13235,13 @@ export interface SubscriptionCancelParams {
|
|
|
13239
13235
|
*/
|
|
13240
13236
|
cancel_option: 'end_of_subscription_term' | 'immediate' | 'requested_date';
|
|
13241
13237
|
|
|
13238
|
+
/**
|
|
13239
|
+
* If false, this request will fail if it would void an issued invoice or create a
|
|
13240
|
+
* credit note. Consider using this as a safety mechanism if you do not expect
|
|
13241
|
+
* existing invoices to be changed.
|
|
13242
|
+
*/
|
|
13243
|
+
allow_invoice_credit_or_void?: boolean | null;
|
|
13244
|
+
|
|
13242
13245
|
/**
|
|
13243
13246
|
* The date that the cancellation should take effect. This parameter can only be
|
|
13244
13247
|
* passed if the `cancel_option` is `requested_date`.
|
|
@@ -13337,6 +13340,13 @@ export interface SubscriptionPriceIntervalsParams {
|
|
|
13337
13340
|
*/
|
|
13338
13341
|
add_adjustments?: Array<SubscriptionPriceIntervalsParams.AddAdjustment>;
|
|
13339
13342
|
|
|
13343
|
+
/**
|
|
13344
|
+
* If false, this request will fail if it would void an issued invoice or create a
|
|
13345
|
+
* credit note. Consider using this as a safety mechanism if you do not expect
|
|
13346
|
+
* existing invoices to be changed.
|
|
13347
|
+
*/
|
|
13348
|
+
allow_invoice_credit_or_void?: boolean | null;
|
|
13349
|
+
|
|
13340
13350
|
/**
|
|
13341
13351
|
* A list of price intervals to edit on the subscription.
|
|
13342
13352
|
*/
|
|
@@ -13429,6 +13439,7 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
13429
13439
|
| Add.NewFloatingGroupedTieredPackagePrice
|
|
13430
13440
|
| Add.NewFloatingScalableMatrixWithUnitPricingPrice
|
|
13431
13441
|
| Add.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
13442
|
+
| Add.NewFloatingCumulativeGroupedBulkPrice
|
|
13432
13443
|
| null;
|
|
13433
13444
|
|
|
13434
13445
|
/**
|
|
@@ -16738,6 +16749,118 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
16738
16749
|
duration_unit: 'day' | 'month';
|
|
16739
16750
|
}
|
|
16740
16751
|
}
|
|
16752
|
+
|
|
16753
|
+
export interface NewFloatingCumulativeGroupedBulkPrice {
|
|
16754
|
+
/**
|
|
16755
|
+
* The cadence to bill for this price on.
|
|
16756
|
+
*/
|
|
16757
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
16758
|
+
|
|
16759
|
+
cumulative_grouped_bulk_config: Record<string, unknown>;
|
|
16760
|
+
|
|
16761
|
+
/**
|
|
16762
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
16763
|
+
*/
|
|
16764
|
+
currency: string;
|
|
16765
|
+
|
|
16766
|
+
/**
|
|
16767
|
+
* The id of the item the plan will be associated with.
|
|
16768
|
+
*/
|
|
16769
|
+
item_id: string;
|
|
16770
|
+
|
|
16771
|
+
model_type: 'cumulative_grouped_bulk';
|
|
16772
|
+
|
|
16773
|
+
/**
|
|
16774
|
+
* The name of the price.
|
|
16775
|
+
*/
|
|
16776
|
+
name: string;
|
|
16777
|
+
|
|
16778
|
+
/**
|
|
16779
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
16780
|
+
* usage-based.
|
|
16781
|
+
*/
|
|
16782
|
+
billable_metric_id?: string | null;
|
|
16783
|
+
|
|
16784
|
+
/**
|
|
16785
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
16786
|
+
* this is true, and in-arrears if this is false.
|
|
16787
|
+
*/
|
|
16788
|
+
billed_in_advance?: boolean | null;
|
|
16789
|
+
|
|
16790
|
+
/**
|
|
16791
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
16792
|
+
* months.
|
|
16793
|
+
*/
|
|
16794
|
+
billing_cycle_configuration?: NewFloatingCumulativeGroupedBulkPrice.BillingCycleConfiguration | null;
|
|
16795
|
+
|
|
16796
|
+
/**
|
|
16797
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
16798
|
+
*/
|
|
16799
|
+
conversion_rate?: number | null;
|
|
16800
|
+
|
|
16801
|
+
/**
|
|
16802
|
+
* An alias for the price.
|
|
16803
|
+
*/
|
|
16804
|
+
external_price_id?: string | null;
|
|
16805
|
+
|
|
16806
|
+
/**
|
|
16807
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
16808
|
+
* applied.
|
|
16809
|
+
*/
|
|
16810
|
+
fixed_price_quantity?: number | null;
|
|
16811
|
+
|
|
16812
|
+
/**
|
|
16813
|
+
* The property used to group this price on an invoice
|
|
16814
|
+
*/
|
|
16815
|
+
invoice_grouping_key?: string | null;
|
|
16816
|
+
|
|
16817
|
+
/**
|
|
16818
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
16819
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
16820
|
+
*/
|
|
16821
|
+
invoicing_cycle_configuration?: NewFloatingCumulativeGroupedBulkPrice.InvoicingCycleConfiguration | null;
|
|
16822
|
+
|
|
16823
|
+
/**
|
|
16824
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
16825
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
16826
|
+
* by setting `metadata` to `null`.
|
|
16827
|
+
*/
|
|
16828
|
+
metadata?: Record<string, string | null> | null;
|
|
16829
|
+
}
|
|
16830
|
+
|
|
16831
|
+
export namespace NewFloatingCumulativeGroupedBulkPrice {
|
|
16832
|
+
/**
|
|
16833
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
16834
|
+
* months.
|
|
16835
|
+
*/
|
|
16836
|
+
export interface BillingCycleConfiguration {
|
|
16837
|
+
/**
|
|
16838
|
+
* The duration of the billing period.
|
|
16839
|
+
*/
|
|
16840
|
+
duration: number;
|
|
16841
|
+
|
|
16842
|
+
/**
|
|
16843
|
+
* The unit of billing period duration.
|
|
16844
|
+
*/
|
|
16845
|
+
duration_unit: 'day' | 'month';
|
|
16846
|
+
}
|
|
16847
|
+
|
|
16848
|
+
/**
|
|
16849
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
16850
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
16851
|
+
*/
|
|
16852
|
+
export interface InvoicingCycleConfiguration {
|
|
16853
|
+
/**
|
|
16854
|
+
* The duration of the billing period.
|
|
16855
|
+
*/
|
|
16856
|
+
duration: number;
|
|
16857
|
+
|
|
16858
|
+
/**
|
|
16859
|
+
* The unit of billing period duration.
|
|
16860
|
+
*/
|
|
16861
|
+
duration_unit: 'day' | 'month';
|
|
16862
|
+
}
|
|
16863
|
+
}
|
|
16741
16864
|
}
|
|
16742
16865
|
|
|
16743
16866
|
export interface AddAdjustment {
|
|
@@ -22216,6 +22339,13 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
22216
22339
|
}
|
|
22217
22340
|
|
|
22218
22341
|
export interface SubscriptionTriggerPhaseParams {
|
|
22342
|
+
/**
|
|
22343
|
+
* If false, this request will fail if it would void an issued invoice or create a
|
|
22344
|
+
* credit note. Consider using this as a safety mechanism if you do not expect
|
|
22345
|
+
* existing invoices to be changed.
|
|
22346
|
+
*/
|
|
22347
|
+
allow_invoice_credit_or_void?: boolean | null;
|
|
22348
|
+
|
|
22219
22349
|
/**
|
|
22220
22350
|
* The date on which the phase change should take effect. If not provided, defaults
|
|
22221
22351
|
* to today in the customer's timezone.
|
|
@@ -22238,6 +22368,13 @@ export interface SubscriptionUpdateFixedFeeQuantityParams {
|
|
|
22238
22368
|
|
|
22239
22369
|
quantity: number;
|
|
22240
22370
|
|
|
22371
|
+
/**
|
|
22372
|
+
* If false, this request will fail if it would void an issued invoice or create a
|
|
22373
|
+
* credit note. Consider using this as a safety mechanism if you do not expect
|
|
22374
|
+
* existing invoices to be changed.
|
|
22375
|
+
*/
|
|
22376
|
+
allow_invoice_credit_or_void?: boolean | null;
|
|
22377
|
+
|
|
22241
22378
|
/**
|
|
22242
22379
|
* Determines when the change takes effect. Note that if `effective_date` is
|
|
22243
22380
|
* specified, this defaults to `effective_date`. Otherwise, this defaults to
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.58.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.58.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.58.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|