orb-billing 4.47.4 → 4.49.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 +21 -0
- package/index.d.mts +5 -5
- package/index.d.ts +5 -5
- package/index.d.ts.map +1 -1
- package/package.json +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 +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 +96 -2
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +5 -5
- package/src/resources/plans/plans.ts +114 -0
- package/src/resources/prices/prices.ts +225 -1
- package/src/resources/subscriptions.ts +115 -1
- 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+PG;IACH,MAAM,CACJ,IAA8B,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AO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,wCAAwC,EAAE;YACjG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,4BAA4B,CAC1B,cAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,CACpB,cAAsB,EACtB,IAA8C,EAC9C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,4BAA4B,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CACT,cAAsB,EACtB,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,IAAkB;CAAG;AAE5D,MAAM,OAAO,sCAAuC,SAAQ,IAAuC;CAAG;AAk+tBtG,aAAa,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AACpD,aAAa,CAAC,sCAAsC,GAAG,sCAAsC,CAAC"}
|
package/src/index.ts
CHANGED
|
@@ -171,7 +171,7 @@ export interface ClientOptions {
|
|
|
171
171
|
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
172
172
|
* much longer than this timeout before the promise succeeds or fails.
|
|
173
173
|
*/
|
|
174
|
-
timeout?: number;
|
|
174
|
+
timeout?: number | undefined;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* An HTTP agent used to manage HTTP(S) connections.
|
|
@@ -179,7 +179,7 @@ export interface ClientOptions {
|
|
|
179
179
|
* If not provided, an agent will be constructed by default in the Node.js environment,
|
|
180
180
|
* otherwise no agent is used.
|
|
181
181
|
*/
|
|
182
|
-
httpAgent?: Agent;
|
|
182
|
+
httpAgent?: Agent | undefined;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* Specify a custom `fetch` function implementation.
|
|
@@ -195,7 +195,7 @@ export interface ClientOptions {
|
|
|
195
195
|
*
|
|
196
196
|
* @default 2
|
|
197
197
|
*/
|
|
198
|
-
maxRetries?: number;
|
|
198
|
+
maxRetries?: number | undefined;
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* Default headers to include with every request to the API.
|
|
@@ -203,7 +203,7 @@ export interface ClientOptions {
|
|
|
203
203
|
* These can be removed in individual requests by explicitly setting the
|
|
204
204
|
* header to `undefined` or `null` in request options.
|
|
205
205
|
*/
|
|
206
|
-
defaultHeaders?: Core.Headers;
|
|
206
|
+
defaultHeaders?: Core.Headers | undefined;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Default query parameters to include with every request to the API.
|
|
@@ -211,7 +211,7 @@ export interface ClientOptions {
|
|
|
211
211
|
* These can be removed in individual requests by explicitly setting the
|
|
212
212
|
* param to `undefined` in request options.
|
|
213
213
|
*/
|
|
214
|
-
defaultQuery?: Core.DefaultQuery;
|
|
214
|
+
defaultQuery?: Core.DefaultQuery | undefined;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/**
|
|
@@ -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 {
|
|
@@ -367,7 +367,8 @@ export type Price =
|
|
|
367
367
|
| Price.GroupedWithMeteredMinimumPrice
|
|
368
368
|
| Price.MatrixWithDisplayNamePrice
|
|
369
369
|
| Price.BulkWithProrationPrice
|
|
370
|
-
| Price.GroupedTieredPackagePrice
|
|
370
|
+
| Price.GroupedTieredPackagePrice
|
|
371
|
+
| Price.MaxGroupTieredPrice;
|
|
371
372
|
|
|
372
373
|
export namespace Price {
|
|
373
374
|
export interface UnitPrice {
|
|
@@ -3218,6 +3219,116 @@ export namespace Price {
|
|
|
3218
3219
|
minimum_amount: string;
|
|
3219
3220
|
}
|
|
3220
3221
|
}
|
|
3222
|
+
|
|
3223
|
+
export interface MaxGroupTieredPrice {
|
|
3224
|
+
id: string;
|
|
3225
|
+
|
|
3226
|
+
billable_metric: MaxGroupTieredPrice.BillableMetric | null;
|
|
3227
|
+
|
|
3228
|
+
billing_cycle_configuration: MaxGroupTieredPrice.BillingCycleConfiguration;
|
|
3229
|
+
|
|
3230
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
3231
|
+
|
|
3232
|
+
conversion_rate: number | null;
|
|
3233
|
+
|
|
3234
|
+
created_at: string;
|
|
3235
|
+
|
|
3236
|
+
credit_allocation: MaxGroupTieredPrice.CreditAllocation | null;
|
|
3237
|
+
|
|
3238
|
+
currency: string;
|
|
3239
|
+
|
|
3240
|
+
discount: Shared.Discount | null;
|
|
3241
|
+
|
|
3242
|
+
external_price_id: string | null;
|
|
3243
|
+
|
|
3244
|
+
fixed_price_quantity: number | null;
|
|
3245
|
+
|
|
3246
|
+
invoicing_cycle_configuration: MaxGroupTieredPrice.InvoicingCycleConfiguration | null;
|
|
3247
|
+
|
|
3248
|
+
item: MaxGroupTieredPrice.Item;
|
|
3249
|
+
|
|
3250
|
+
max_group_tiered_config: Record<string, unknown>;
|
|
3251
|
+
|
|
3252
|
+
maximum: MaxGroupTieredPrice.Maximum | null;
|
|
3253
|
+
|
|
3254
|
+
maximum_amount: string | null;
|
|
3255
|
+
|
|
3256
|
+
/**
|
|
3257
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
3258
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
3259
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
3260
|
+
* `null`.
|
|
3261
|
+
*/
|
|
3262
|
+
metadata: Record<string, string>;
|
|
3263
|
+
|
|
3264
|
+
minimum: MaxGroupTieredPrice.Minimum | null;
|
|
3265
|
+
|
|
3266
|
+
minimum_amount: string | null;
|
|
3267
|
+
|
|
3268
|
+
model_type: 'max_group_tiered';
|
|
3269
|
+
|
|
3270
|
+
name: string;
|
|
3271
|
+
|
|
3272
|
+
plan_phase_order: number | null;
|
|
3273
|
+
|
|
3274
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
export namespace MaxGroupTieredPrice {
|
|
3278
|
+
export interface BillableMetric {
|
|
3279
|
+
id: string;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
export interface BillingCycleConfiguration {
|
|
3283
|
+
duration: number;
|
|
3284
|
+
|
|
3285
|
+
duration_unit: 'day' | 'month';
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
export interface CreditAllocation {
|
|
3289
|
+
allows_rollover: boolean;
|
|
3290
|
+
|
|
3291
|
+
currency: string;
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
export interface InvoicingCycleConfiguration {
|
|
3295
|
+
duration: number;
|
|
3296
|
+
|
|
3297
|
+
duration_unit: 'day' | 'month';
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
export interface Item {
|
|
3301
|
+
id: string;
|
|
3302
|
+
|
|
3303
|
+
name: string;
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3306
|
+
export interface Maximum {
|
|
3307
|
+
/**
|
|
3308
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
3309
|
+
* maximums, this can be a subset of prices.
|
|
3310
|
+
*/
|
|
3311
|
+
applies_to_price_ids: Array<string>;
|
|
3312
|
+
|
|
3313
|
+
/**
|
|
3314
|
+
* Maximum amount applied
|
|
3315
|
+
*/
|
|
3316
|
+
maximum_amount: string;
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
export interface Minimum {
|
|
3320
|
+
/**
|
|
3321
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
3322
|
+
* minimums, this can be a subset of prices.
|
|
3323
|
+
*/
|
|
3324
|
+
applies_to_price_ids: Array<string>;
|
|
3325
|
+
|
|
3326
|
+
/**
|
|
3327
|
+
* Minimum amount applied
|
|
3328
|
+
*/
|
|
3329
|
+
minimum_amount: string;
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3221
3332
|
}
|
|
3222
3333
|
|
|
3223
3334
|
export interface PriceEvaluateResponse {
|
|
@@ -3237,6 +3348,7 @@ export type PriceCreateParams =
|
|
|
3237
3348
|
| PriceCreateParams.NewFloatingThresholdTotalAmountPrice
|
|
3238
3349
|
| PriceCreateParams.NewFloatingTieredPackagePrice
|
|
3239
3350
|
| PriceCreateParams.NewFloatingGroupedTieredPrice
|
|
3351
|
+
| PriceCreateParams.NewFloatingMaxGroupTieredPrice
|
|
3240
3352
|
| PriceCreateParams.NewFloatingTieredWithMinimumPrice
|
|
3241
3353
|
| PriceCreateParams.NewFloatingPackageWithAllocationPrice
|
|
3242
3354
|
| PriceCreateParams.NewFloatingTieredPackageWithMinimumPrice
|
|
@@ -4804,6 +4916,118 @@ export declare namespace PriceCreateParams {
|
|
|
4804
4916
|
}
|
|
4805
4917
|
}
|
|
4806
4918
|
|
|
4919
|
+
export interface NewFloatingMaxGroupTieredPrice {
|
|
4920
|
+
/**
|
|
4921
|
+
* The cadence to bill for this price on.
|
|
4922
|
+
*/
|
|
4923
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
4924
|
+
|
|
4925
|
+
/**
|
|
4926
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
4927
|
+
*/
|
|
4928
|
+
currency: string;
|
|
4929
|
+
|
|
4930
|
+
/**
|
|
4931
|
+
* The id of the item the plan will be associated with.
|
|
4932
|
+
*/
|
|
4933
|
+
item_id: string;
|
|
4934
|
+
|
|
4935
|
+
max_group_tiered_config: Record<string, unknown>;
|
|
4936
|
+
|
|
4937
|
+
model_type: 'max_group_tiered';
|
|
4938
|
+
|
|
4939
|
+
/**
|
|
4940
|
+
* The name of the price.
|
|
4941
|
+
*/
|
|
4942
|
+
name: string;
|
|
4943
|
+
|
|
4944
|
+
/**
|
|
4945
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4946
|
+
* usage-based.
|
|
4947
|
+
*/
|
|
4948
|
+
billable_metric_id?: string | null;
|
|
4949
|
+
|
|
4950
|
+
/**
|
|
4951
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4952
|
+
* this is true, and in-arrears if this is false.
|
|
4953
|
+
*/
|
|
4954
|
+
billed_in_advance?: boolean | null;
|
|
4955
|
+
|
|
4956
|
+
/**
|
|
4957
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4958
|
+
* months.
|
|
4959
|
+
*/
|
|
4960
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
|
|
4961
|
+
|
|
4962
|
+
/**
|
|
4963
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4964
|
+
*/
|
|
4965
|
+
conversion_rate?: number | null;
|
|
4966
|
+
|
|
4967
|
+
/**
|
|
4968
|
+
* An alias for the price.
|
|
4969
|
+
*/
|
|
4970
|
+
external_price_id?: string | null;
|
|
4971
|
+
|
|
4972
|
+
/**
|
|
4973
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4974
|
+
* applied.
|
|
4975
|
+
*/
|
|
4976
|
+
fixed_price_quantity?: number | null;
|
|
4977
|
+
|
|
4978
|
+
/**
|
|
4979
|
+
* The property used to group this price on an invoice
|
|
4980
|
+
*/
|
|
4981
|
+
invoice_grouping_key?: string | null;
|
|
4982
|
+
|
|
4983
|
+
/**
|
|
4984
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4985
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4986
|
+
*/
|
|
4987
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
|
|
4988
|
+
|
|
4989
|
+
/**
|
|
4990
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4991
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4992
|
+
* by setting `metadata` to `null`.
|
|
4993
|
+
*/
|
|
4994
|
+
metadata?: Record<string, string | null> | null;
|
|
4995
|
+
}
|
|
4996
|
+
|
|
4997
|
+
export namespace NewFloatingMaxGroupTieredPrice {
|
|
4998
|
+
/**
|
|
4999
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5000
|
+
* months.
|
|
5001
|
+
*/
|
|
5002
|
+
export interface BillingCycleConfiguration {
|
|
5003
|
+
/**
|
|
5004
|
+
* The duration of the billing period.
|
|
5005
|
+
*/
|
|
5006
|
+
duration: number;
|
|
5007
|
+
|
|
5008
|
+
/**
|
|
5009
|
+
* The unit of billing period duration.
|
|
5010
|
+
*/
|
|
5011
|
+
duration_unit: 'day' | 'month';
|
|
5012
|
+
}
|
|
5013
|
+
|
|
5014
|
+
/**
|
|
5015
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5016
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5017
|
+
*/
|
|
5018
|
+
export interface InvoicingCycleConfiguration {
|
|
5019
|
+
/**
|
|
5020
|
+
* The duration of the billing period.
|
|
5021
|
+
*/
|
|
5022
|
+
duration: number;
|
|
5023
|
+
|
|
5024
|
+
/**
|
|
5025
|
+
* The unit of billing period duration.
|
|
5026
|
+
*/
|
|
5027
|
+
duration_unit: 'day' | 'month';
|
|
5028
|
+
}
|
|
5029
|
+
}
|
|
5030
|
+
|
|
4807
5031
|
export interface NewFloatingTieredWithMinimumPrice {
|
|
4808
5032
|
/**
|
|
4809
5033
|
* The cadence to bill for this price on.
|
|
@@ -16010,6 +16010,7 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
16010
16010
|
| Add.NewFloatingThresholdTotalAmountPrice
|
|
16011
16011
|
| Add.NewFloatingTieredPackagePrice
|
|
16012
16012
|
| Add.NewFloatingGroupedTieredPrice
|
|
16013
|
+
| Add.NewFloatingMaxGroupTieredPrice
|
|
16013
16014
|
| Add.NewFloatingTieredWithMinimumPrice
|
|
16014
16015
|
| Add.NewFloatingPackageWithAllocationPrice
|
|
16015
16016
|
| Add.NewFloatingTieredPackageWithMinimumPrice
|
|
@@ -17652,6 +17653,118 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
17652
17653
|
}
|
|
17653
17654
|
}
|
|
17654
17655
|
|
|
17656
|
+
export interface NewFloatingMaxGroupTieredPrice {
|
|
17657
|
+
/**
|
|
17658
|
+
* The cadence to bill for this price on.
|
|
17659
|
+
*/
|
|
17660
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
17661
|
+
|
|
17662
|
+
/**
|
|
17663
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
17664
|
+
*/
|
|
17665
|
+
currency: string;
|
|
17666
|
+
|
|
17667
|
+
/**
|
|
17668
|
+
* The id of the item the plan will be associated with.
|
|
17669
|
+
*/
|
|
17670
|
+
item_id: string;
|
|
17671
|
+
|
|
17672
|
+
max_group_tiered_config: Record<string, unknown>;
|
|
17673
|
+
|
|
17674
|
+
model_type: 'max_group_tiered';
|
|
17675
|
+
|
|
17676
|
+
/**
|
|
17677
|
+
* The name of the price.
|
|
17678
|
+
*/
|
|
17679
|
+
name: string;
|
|
17680
|
+
|
|
17681
|
+
/**
|
|
17682
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
17683
|
+
* usage-based.
|
|
17684
|
+
*/
|
|
17685
|
+
billable_metric_id?: string | null;
|
|
17686
|
+
|
|
17687
|
+
/**
|
|
17688
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
17689
|
+
* this is true, and in-arrears if this is false.
|
|
17690
|
+
*/
|
|
17691
|
+
billed_in_advance?: boolean | null;
|
|
17692
|
+
|
|
17693
|
+
/**
|
|
17694
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
17695
|
+
* months.
|
|
17696
|
+
*/
|
|
17697
|
+
billing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.BillingCycleConfiguration | null;
|
|
17698
|
+
|
|
17699
|
+
/**
|
|
17700
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
17701
|
+
*/
|
|
17702
|
+
conversion_rate?: number | null;
|
|
17703
|
+
|
|
17704
|
+
/**
|
|
17705
|
+
* An alias for the price.
|
|
17706
|
+
*/
|
|
17707
|
+
external_price_id?: string | null;
|
|
17708
|
+
|
|
17709
|
+
/**
|
|
17710
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
17711
|
+
* applied.
|
|
17712
|
+
*/
|
|
17713
|
+
fixed_price_quantity?: number | null;
|
|
17714
|
+
|
|
17715
|
+
/**
|
|
17716
|
+
* The property used to group this price on an invoice
|
|
17717
|
+
*/
|
|
17718
|
+
invoice_grouping_key?: string | null;
|
|
17719
|
+
|
|
17720
|
+
/**
|
|
17721
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
17722
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
17723
|
+
*/
|
|
17724
|
+
invoicing_cycle_configuration?: NewFloatingMaxGroupTieredPrice.InvoicingCycleConfiguration | null;
|
|
17725
|
+
|
|
17726
|
+
/**
|
|
17727
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
17728
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
17729
|
+
* by setting `metadata` to `null`.
|
|
17730
|
+
*/
|
|
17731
|
+
metadata?: Record<string, string | null> | null;
|
|
17732
|
+
}
|
|
17733
|
+
|
|
17734
|
+
export namespace NewFloatingMaxGroupTieredPrice {
|
|
17735
|
+
/**
|
|
17736
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
17737
|
+
* months.
|
|
17738
|
+
*/
|
|
17739
|
+
export interface BillingCycleConfiguration {
|
|
17740
|
+
/**
|
|
17741
|
+
* The duration of the billing period.
|
|
17742
|
+
*/
|
|
17743
|
+
duration: number;
|
|
17744
|
+
|
|
17745
|
+
/**
|
|
17746
|
+
* The unit of billing period duration.
|
|
17747
|
+
*/
|
|
17748
|
+
duration_unit: 'day' | 'month';
|
|
17749
|
+
}
|
|
17750
|
+
|
|
17751
|
+
/**
|
|
17752
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
17753
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
17754
|
+
*/
|
|
17755
|
+
export interface InvoicingCycleConfiguration {
|
|
17756
|
+
/**
|
|
17757
|
+
* The duration of the billing period.
|
|
17758
|
+
*/
|
|
17759
|
+
duration: number;
|
|
17760
|
+
|
|
17761
|
+
/**
|
|
17762
|
+
* The unit of billing period duration.
|
|
17763
|
+
*/
|
|
17764
|
+
duration_unit: 'day' | 'month';
|
|
17765
|
+
}
|
|
17766
|
+
}
|
|
17767
|
+
|
|
17655
17768
|
export interface NewFloatingTieredWithMinimumPrice {
|
|
17656
17769
|
/**
|
|
17657
17770
|
* The cadence to bill for this price on.
|
|
@@ -19219,7 +19332,8 @@ export interface SubscriptionSchedulePlanChangeParams {
|
|
|
19219
19332
|
|
|
19220
19333
|
/**
|
|
19221
19334
|
* The date that the plan change should take effect. This parameter can only be
|
|
19222
|
-
* passed if the `change_option` is `requested_date`.
|
|
19335
|
+
* passed if the `change_option` is `requested_date`. If a date with no time is
|
|
19336
|
+
* passed, the plan change will happen at midnight in the customer's timezone.
|
|
19223
19337
|
*/
|
|
19224
19338
|
change_date?: string | null;
|
|
19225
19339
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.49.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.49.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.49.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|