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.
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/resources/customers/customers.d.ts +3 -1
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +3 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +3 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/events/backfills.d.ts +1 -1
- package/resources/events/backfills.js +1 -1
- package/resources/events/backfills.mjs +1 -1
- package/resources/invoices.d.ts +2 -2
- package/resources/plans/plans.d.ts +96 -2
- 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 +169 -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 +116 -22
- 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/customers.ts +3 -1
- package/src/resources/events/backfills.ts +1 -1
- package/src/resources/invoices.ts +2 -2
- package/src/resources/plans/plans.ts +115 -1
- package/src/resources/prices/prices.ts +225 -1
- package/src/resources/subscriptions.ts +135 -21
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../src/resources/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAM3C,iDAAsD;AAEtD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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APIResource {
|
|
|
96
96
|
* provided the customer does not have any issued invoices. Customers with issued
|
|
97
97
|
* invoices cannot be deleted. This operation is irreversible. Note that this is a
|
|
98
98
|
* _soft_ deletion, but the data will be inaccessible through the API and Orb
|
|
99
|
-
* dashboard.
|
|
99
|
+
* dashboard.
|
|
100
|
+
*
|
|
101
|
+
* For a hard-deletion, please reach out to the Orb team directly.
|
|
100
102
|
*
|
|
101
103
|
* **Note**: This operation happens asynchronously and can be expected to take a
|
|
102
104
|
* few minutes to propagate to related resources. However, querying for the
|
|
@@ -38,7 +38,7 @@ export class Backfills extends APIResource {
|
|
|
38
38
|
* affect all customers.
|
|
39
39
|
*
|
|
40
40
|
* When `replace_existing_events` is `true`, this indicates that existing events in
|
|
41
|
-
* the timeframe should no longer be
|
|
41
|
+
* the timeframe should no longer be counted towards invoiced usage. In this
|
|
42
42
|
* scenario, the parameter `filter` can be optionally added which enables filtering
|
|
43
43
|
* using
|
|
44
44
|
* [computed properties](/extensibility/advanced-metrics#computed-properties). The
|
|
@@ -287,7 +287,7 @@ export interface Invoice {
|
|
|
287
287
|
customer_tax_id: Invoice.CustomerTaxID | null;
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* @deprecated
|
|
290
|
+
* @deprecated This field is deprecated in favor of `discounts`. If a `discounts`
|
|
291
291
|
* list is provided, the first discount in the list will be returned. If the list
|
|
292
292
|
* is empty, `None` will be returned.
|
|
293
293
|
*/
|
|
@@ -1277,7 +1277,7 @@ export interface InvoiceFetchUpcomingResponse {
|
|
|
1277
1277
|
customer_tax_id: InvoiceFetchUpcomingResponse.CustomerTaxID | null;
|
|
1278
1278
|
|
|
1279
1279
|
/**
|
|
1280
|
-
* @deprecated
|
|
1280
|
+
* @deprecated This field is deprecated in favor of `discounts`. If a `discounts`
|
|
1281
1281
|
* list is provided, the first discount in the list will be returned. If the list
|
|
1282
1282
|
* is empty, `None` will be returned.
|
|
1283
1283
|
*/
|
|
@@ -106,7 +106,7 @@ export interface Plan {
|
|
|
106
106
|
created_at: string;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* @deprecated
|
|
109
|
+
* @deprecated An ISO 4217 currency string or custom pricing unit (`credits`) for
|
|
110
110
|
* this plan's prices.
|
|
111
111
|
*/
|
|
112
112
|
currency: string;
|
|
@@ -497,6 +497,7 @@ export interface PlanCreateParams {
|
|
|
497
497
|
| PlanCreateParams.NewPlanMatrixWithDisplayNamePrice
|
|
498
498
|
| PlanCreateParams.NewPlanBulkWithProrationPrice
|
|
499
499
|
| PlanCreateParams.NewPlanGroupedTieredPackagePrice
|
|
500
|
+
| PlanCreateParams.NewPlanMaxGroupTieredPrice
|
|
500
501
|
>;
|
|
501
502
|
|
|
502
503
|
/**
|
|
@@ -3071,6 +3072,119 @@ export namespace PlanCreateParams {
|
|
|
3071
3072
|
duration_unit: 'day' | 'month';
|
|
3072
3073
|
}
|
|
3073
3074
|
}
|
|
3075
|
+
|
|
3076
|
+
export interface NewPlanMaxGroupTieredPrice {
|
|
3077
|
+
/**
|
|
3078
|
+
* The cadence to bill for this price on.
|
|
3079
|
+
*/
|
|
3080
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
3081
|
+
|
|
3082
|
+
/**
|
|
3083
|
+
* The id of the item the plan will be associated with.
|
|
3084
|
+
*/
|
|
3085
|
+
item_id: string;
|
|
3086
|
+
|
|
3087
|
+
max_group_tiered_config: Record<string, unknown>;
|
|
3088
|
+
|
|
3089
|
+
model_type: 'max_group_tiered';
|
|
3090
|
+
|
|
3091
|
+
/**
|
|
3092
|
+
* The name of the price.
|
|
3093
|
+
*/
|
|
3094
|
+
name: string;
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
3098
|
+
* usage-based.
|
|
3099
|
+
*/
|
|
3100
|
+
billable_metric_id?: string | null;
|
|
3101
|
+
|
|
3102
|
+
/**
|
|
3103
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
3104
|
+
* this is true, and in-arrears if this is false.
|
|
3105
|
+
*/
|
|
3106
|
+
billed_in_advance?: boolean | null;
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3110
|
+
* months.
|
|
3111
|
+
*/
|
|
3112
|
+
billing_cycle_configuration?: NewPlanMaxGroupTieredPrice.BillingCycleConfiguration | null;
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3116
|
+
*/
|
|
3117
|
+
conversion_rate?: number | null;
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
3121
|
+
* price is billed.
|
|
3122
|
+
*/
|
|
3123
|
+
currency?: string | null;
|
|
3124
|
+
|
|
3125
|
+
/**
|
|
3126
|
+
* An alias for the price.
|
|
3127
|
+
*/
|
|
3128
|
+
external_price_id?: string | null;
|
|
3129
|
+
|
|
3130
|
+
/**
|
|
3131
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
3132
|
+
* applied.
|
|
3133
|
+
*/
|
|
3134
|
+
fixed_price_quantity?: number | null;
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
* The property used to group this price on an invoice
|
|
3138
|
+
*/
|
|
3139
|
+
invoice_grouping_key?: string | null;
|
|
3140
|
+
|
|
3141
|
+
/**
|
|
3142
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3143
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3144
|
+
*/
|
|
3145
|
+
invoicing_cycle_configuration?: NewPlanMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
|
|
3146
|
+
|
|
3147
|
+
/**
|
|
3148
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3149
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3150
|
+
* by setting `metadata` to `null`.
|
|
3151
|
+
*/
|
|
3152
|
+
metadata?: Record<string, string | null> | null;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
export namespace NewPlanMaxGroupTieredPrice {
|
|
3156
|
+
/**
|
|
3157
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3158
|
+
* months.
|
|
3159
|
+
*/
|
|
3160
|
+
export interface BillingCycleConfiguration {
|
|
3161
|
+
/**
|
|
3162
|
+
* The duration of the billing period.
|
|
3163
|
+
*/
|
|
3164
|
+
duration: number;
|
|
3165
|
+
|
|
3166
|
+
/**
|
|
3167
|
+
* The unit of billing period duration.
|
|
3168
|
+
*/
|
|
3169
|
+
duration_unit: 'day' | 'month';
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3174
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3175
|
+
*/
|
|
3176
|
+
export interface InvoicingCycleConfiguration {
|
|
3177
|
+
/**
|
|
3178
|
+
* The duration of the billing period.
|
|
3179
|
+
*/
|
|
3180
|
+
duration: number;
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* The unit of billing period duration.
|
|
3184
|
+
*/
|
|
3185
|
+
duration_unit: 'day' | 'month';
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3074
3188
|
}
|
|
3075
3189
|
|
|
3076
3190
|
export interface PlanUpdateParams {
|
|
@@ -146,7 +146,8 @@ export type Price =
|
|
|
146
146
|
| Price.GroupedWithMeteredMinimumPrice
|
|
147
147
|
| Price.MatrixWithDisplayNamePrice
|
|
148
148
|
| Price.BulkWithProrationPrice
|
|
149
|
-
| Price.GroupedTieredPackagePrice
|
|
149
|
+
| Price.GroupedTieredPackagePrice
|
|
150
|
+
| Price.MaxGroupTieredPrice;
|
|
150
151
|
|
|
151
152
|
export namespace Price {
|
|
152
153
|
export interface UnitPrice {
|
|
@@ -2997,6 +2998,116 @@ export namespace Price {
|
|
|
2997
2998
|
minimum_amount: string;
|
|
2998
2999
|
}
|
|
2999
3000
|
}
|
|
3001
|
+
|
|
3002
|
+
export interface MaxGroupTieredPrice {
|
|
3003
|
+
id: string;
|
|
3004
|
+
|
|
3005
|
+
billable_metric: MaxGroupTieredPrice.BillableMetric | null;
|
|
3006
|
+
|
|
3007
|
+
billing_cycle_configuration: MaxGroupTieredPrice.BillingCycleConfiguration;
|
|
3008
|
+
|
|
3009
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
3010
|
+
|
|
3011
|
+
conversion_rate: number | null;
|
|
3012
|
+
|
|
3013
|
+
created_at: string;
|
|
3014
|
+
|
|
3015
|
+
credit_allocation: MaxGroupTieredPrice.CreditAllocation | null;
|
|
3016
|
+
|
|
3017
|
+
currency: string;
|
|
3018
|
+
|
|
3019
|
+
discount: Shared.Discount | null;
|
|
3020
|
+
|
|
3021
|
+
external_price_id: string | null;
|
|
3022
|
+
|
|
3023
|
+
fixed_price_quantity: number | null;
|
|
3024
|
+
|
|
3025
|
+
invoicing_cycle_configuration: MaxGroupTieredPrice.InvoicingCycleConfiguration | null;
|
|
3026
|
+
|
|
3027
|
+
item: MaxGroupTieredPrice.Item;
|
|
3028
|
+
|
|
3029
|
+
max_group_tiered_config: Record<string, unknown>;
|
|
3030
|
+
|
|
3031
|
+
maximum: MaxGroupTieredPrice.Maximum | null;
|
|
3032
|
+
|
|
3033
|
+
maximum_amount: string | null;
|
|
3034
|
+
|
|
3035
|
+
/**
|
|
3036
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
3037
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
3038
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
3039
|
+
* `null`.
|
|
3040
|
+
*/
|
|
3041
|
+
metadata: Record<string, string>;
|
|
3042
|
+
|
|
3043
|
+
minimum: MaxGroupTieredPrice.Minimum | null;
|
|
3044
|
+
|
|
3045
|
+
minimum_amount: string | null;
|
|
3046
|
+
|
|
3047
|
+
model_type: 'max_group_tiered';
|
|
3048
|
+
|
|
3049
|
+
name: string;
|
|
3050
|
+
|
|
3051
|
+
plan_phase_order: number | null;
|
|
3052
|
+
|
|
3053
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
export namespace MaxGroupTieredPrice {
|
|
3057
|
+
export interface BillableMetric {
|
|
3058
|
+
id: string;
|
|
3059
|
+
}
|
|
3060
|
+
|
|
3061
|
+
export interface BillingCycleConfiguration {
|
|
3062
|
+
duration: number;
|
|
3063
|
+
|
|
3064
|
+
duration_unit: 'day' | 'month';
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3067
|
+
export interface CreditAllocation {
|
|
3068
|
+
allows_rollover: boolean;
|
|
3069
|
+
|
|
3070
|
+
currency: string;
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
export interface InvoicingCycleConfiguration {
|
|
3074
|
+
duration: number;
|
|
3075
|
+
|
|
3076
|
+
duration_unit: 'day' | 'month';
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
export interface Item {
|
|
3080
|
+
id: string;
|
|
3081
|
+
|
|
3082
|
+
name: string;
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
export interface Maximum {
|
|
3086
|
+
/**
|
|
3087
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
3088
|
+
* maximums, this can be a subset of prices.
|
|
3089
|
+
*/
|
|
3090
|
+
applies_to_price_ids: Array<string>;
|
|
3091
|
+
|
|
3092
|
+
/**
|
|
3093
|
+
* Maximum amount applied
|
|
3094
|
+
*/
|
|
3095
|
+
maximum_amount: string;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
export interface Minimum {
|
|
3099
|
+
/**
|
|
3100
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
3101
|
+
* minimums, this can be a subset of prices.
|
|
3102
|
+
*/
|
|
3103
|
+
applies_to_price_ids: Array<string>;
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* Minimum amount applied
|
|
3107
|
+
*/
|
|
3108
|
+
minimum_amount: string;
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3000
3111
|
}
|
|
3001
3112
|
|
|
3002
3113
|
export interface PriceEvaluateResponse {
|
|
@@ -3016,6 +3127,7 @@ export type PriceCreateParams =
|
|
|
3016
3127
|
| PriceCreateParams.NewFloatingThresholdTotalAmountPrice
|
|
3017
3128
|
| PriceCreateParams.NewFloatingTieredPackagePrice
|
|
3018
3129
|
| PriceCreateParams.NewFloatingGroupedTieredPrice
|
|
3130
|
+
| PriceCreateParams.NewFloatingMaxGroupTieredPrice
|
|
3019
3131
|
| PriceCreateParams.NewFloatingTieredWithMinimumPrice
|
|
3020
3132
|
| PriceCreateParams.NewFloatingPackageWithAllocationPrice
|
|
3021
3133
|
| PriceCreateParams.NewFloatingTieredPackageWithMinimumPrice
|
|
@@ -4583,6 +4695,118 @@ export declare namespace PriceCreateParams {
|
|
|
4583
4695
|
}
|
|
4584
4696
|
}
|
|
4585
4697
|
|
|
4698
|
+
export interface NewFloatingMaxGroupTieredPrice {
|
|
4699
|
+
/**
|
|
4700
|
+
* The cadence to bill for this price on.
|
|
4701
|
+
*/
|
|
4702
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
4703
|
+
|
|
4704
|
+
/**
|
|
4705
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
4706
|
+
*/
|
|
4707
|
+
currency: string;
|
|
4708
|
+
|
|
4709
|
+
/**
|
|
4710
|
+
* The id of the item the plan will be associated with.
|
|
4711
|
+
*/
|
|
4712
|
+
item_id: string;
|
|
4713
|
+
|
|
4714
|
+
max_group_tiered_config: Record<string, unknown>;
|
|
4715
|
+
|
|
4716
|
+
model_type: 'max_group_tiered';
|
|
4717
|
+
|
|
4718
|
+
/**
|
|
4719
|
+
* The name of the price.
|
|
4720
|
+
*/
|
|
4721
|
+
name: string;
|
|
4722
|
+
|
|
4723
|
+
/**
|
|
4724
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4725
|
+
* usage-based.
|
|
4726
|
+
*/
|
|
4727
|
+
billable_metric_id?: string | null;
|
|
4728
|
+
|
|
4729
|
+
/**
|
|
4730
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4731
|
+
* this is true, and in-arrears if this is false.
|
|
4732
|
+
*/
|
|
4733
|
+
billed_in_advance?: boolean | null;
|
|
4734
|
+
|
|
4735
|
+
/**
|
|
4736
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4737
|
+
* months.
|
|
4738
|
+
*/
|
|
4739
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
|
|
4740
|
+
|
|
4741
|
+
/**
|
|
4742
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4743
|
+
*/
|
|
4744
|
+
conversion_rate?: number | null;
|
|
4745
|
+
|
|
4746
|
+
/**
|
|
4747
|
+
* An alias for the price.
|
|
4748
|
+
*/
|
|
4749
|
+
external_price_id?: string | null;
|
|
4750
|
+
|
|
4751
|
+
/**
|
|
4752
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4753
|
+
* applied.
|
|
4754
|
+
*/
|
|
4755
|
+
fixed_price_quantity?: number | null;
|
|
4756
|
+
|
|
4757
|
+
/**
|
|
4758
|
+
* The property used to group this price on an invoice
|
|
4759
|
+
*/
|
|
4760
|
+
invoice_grouping_key?: string | null;
|
|
4761
|
+
|
|
4762
|
+
/**
|
|
4763
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4764
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4765
|
+
*/
|
|
4766
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
|
|
4767
|
+
|
|
4768
|
+
/**
|
|
4769
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4770
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4771
|
+
* by setting `metadata` to `null`.
|
|
4772
|
+
*/
|
|
4773
|
+
metadata?: Record<string, string | null> | null;
|
|
4774
|
+
}
|
|
4775
|
+
|
|
4776
|
+
export namespace NewFloatingMaxGroupTieredPrice {
|
|
4777
|
+
/**
|
|
4778
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4779
|
+
* months.
|
|
4780
|
+
*/
|
|
4781
|
+
export interface BillingCycleConfiguration {
|
|
4782
|
+
/**
|
|
4783
|
+
* The duration of the billing period.
|
|
4784
|
+
*/
|
|
4785
|
+
duration: number;
|
|
4786
|
+
|
|
4787
|
+
/**
|
|
4788
|
+
* The unit of billing period duration.
|
|
4789
|
+
*/
|
|
4790
|
+
duration_unit: 'day' | 'month';
|
|
4791
|
+
}
|
|
4792
|
+
|
|
4793
|
+
/**
|
|
4794
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4795
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4796
|
+
*/
|
|
4797
|
+
export interface InvoicingCycleConfiguration {
|
|
4798
|
+
/**
|
|
4799
|
+
* The duration of the billing period.
|
|
4800
|
+
*/
|
|
4801
|
+
duration: number;
|
|
4802
|
+
|
|
4803
|
+
/**
|
|
4804
|
+
* The unit of billing period duration.
|
|
4805
|
+
*/
|
|
4806
|
+
duration_unit: 'day' | 'month';
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
|
|
4586
4810
|
export interface NewFloatingTieredWithMinimumPrice {
|
|
4587
4811
|
/**
|
|
4588
4812
|
* The cadence to bill for this price on.
|