orb-billing 4.8.0 → 4.11.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 +29 -0
- package/package.json +1 -1
- package/resources/plans/plans.d.ts +664 -0
- 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 +910 -28
- 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 +829 -3
- 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/plans/plans.ts +766 -0
- package/src/resources/prices/prices.ts +1087 -25
- package/src/resources/subscriptions.ts +962 -8
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -443,8 +443,10 @@ export class Subscriptions extends APIResource {
|
|
|
443
443
|
* recently created subscription. For a full discussion of the subscription
|
|
444
444
|
* resource, see [Subscription](../guides/concepts#subscription).
|
|
445
445
|
*
|
|
446
|
-
* Subscriptions can be filtered
|
|
447
|
-
*
|
|
446
|
+
* Subscriptions can be filtered for a specific customer by using either the
|
|
447
|
+
* customer_id or external_customer_id query parameters. To filter subscriptions
|
|
448
|
+
* for multiple customers, use the customer_id[] or external_customer_id[] query
|
|
449
|
+
* parameters.
|
|
448
450
|
*/
|
|
449
451
|
list(
|
|
450
452
|
query?: SubscriptionListParams,
|
|
@@ -1098,6 +1100,8 @@ export interface Subscription {
|
|
|
1098
1100
|
*/
|
|
1099
1101
|
auto_collection: boolean | null;
|
|
1100
1102
|
|
|
1103
|
+
billing_cycle_anchor_configuration: Subscription.BillingCycleAnchorConfiguration;
|
|
1104
|
+
|
|
1101
1105
|
/**
|
|
1102
1106
|
* The day of the month on which the billing cycle is anchored. If the maximum
|
|
1103
1107
|
* number of days in a month is greater than this value, the last day of the month
|
|
@@ -1354,6 +1358,29 @@ export namespace Subscription {
|
|
|
1354
1358
|
}
|
|
1355
1359
|
}
|
|
1356
1360
|
|
|
1361
|
+
export interface BillingCycleAnchorConfiguration {
|
|
1362
|
+
/**
|
|
1363
|
+
* The day of the month on which the billing cycle is anchored. If the maximum
|
|
1364
|
+
* number of days in a month is greater than this value, the last day of the month
|
|
1365
|
+
* is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
|
1366
|
+
* period begins on the 30th.
|
|
1367
|
+
*/
|
|
1368
|
+
day: number;
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* The month on which the billing cycle is anchored (e.g. a quarterly price
|
|
1372
|
+
* anchored in February would have cycles starting February, May, August, and
|
|
1373
|
+
* November).
|
|
1374
|
+
*/
|
|
1375
|
+
month?: number | null;
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
|
1379
|
+
* anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
|
1380
|
+
*/
|
|
1381
|
+
year?: number | null;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1357
1384
|
export interface AmountDiscountInterval {
|
|
1358
1385
|
/**
|
|
1359
1386
|
* Only available if discount_type is `amount`.
|
|
@@ -2205,6 +2232,8 @@ export interface SubscriptionCreateParams {
|
|
|
2205
2232
|
|
|
2206
2233
|
aws_region?: string | null;
|
|
2207
2234
|
|
|
2235
|
+
billing_cycle_anchor_configuration?: SubscriptionCreateParams.BillingCycleAnchorConfiguration | null;
|
|
2236
|
+
|
|
2208
2237
|
coupon_redemption_code?: string | null;
|
|
2209
2238
|
|
|
2210
2239
|
credits_overage_rate?: number | null;
|
|
@@ -2271,6 +2300,29 @@ export interface SubscriptionCreateParams {
|
|
|
2271
2300
|
}
|
|
2272
2301
|
|
|
2273
2302
|
export namespace SubscriptionCreateParams {
|
|
2303
|
+
export interface BillingCycleAnchorConfiguration {
|
|
2304
|
+
/**
|
|
2305
|
+
* The day of the month on which the billing cycle is anchored. If the maximum
|
|
2306
|
+
* number of days in a month is greater than this value, the last day of the month
|
|
2307
|
+
* is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
|
2308
|
+
* period begins on the 30th.
|
|
2309
|
+
*/
|
|
2310
|
+
day: number;
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* The month on which the billing cycle is anchored (e.g. a quarterly price
|
|
2314
|
+
* anchored in February would have cycles starting February, May, August, and
|
|
2315
|
+
* November).
|
|
2316
|
+
*/
|
|
2317
|
+
month?: number | null;
|
|
2318
|
+
|
|
2319
|
+
/**
|
|
2320
|
+
* The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
|
2321
|
+
* anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
|
2322
|
+
*/
|
|
2323
|
+
year?: number | null;
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2274
2326
|
export interface OverrideUnitPrice {
|
|
2275
2327
|
id: string;
|
|
2276
2328
|
|
|
@@ -3477,7 +3529,7 @@ export interface SubscriptionListParams extends PageParams {
|
|
|
3477
3529
|
|
|
3478
3530
|
'created_at[lte]'?: string | null;
|
|
3479
3531
|
|
|
3480
|
-
customer_id?: string | null;
|
|
3532
|
+
customer_id?: Array<string> | null;
|
|
3481
3533
|
|
|
3482
3534
|
external_customer_id?: string | null;
|
|
3483
3535
|
|
|
@@ -3787,6 +3839,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3787
3839
|
*/
|
|
3788
3840
|
billed_in_advance?: boolean | null;
|
|
3789
3841
|
|
|
3842
|
+
/**
|
|
3843
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3844
|
+
* months.
|
|
3845
|
+
*/
|
|
3846
|
+
billing_cycle_configuration?: NewFloatingUnitPrice.BillingCycleConfiguration | null;
|
|
3847
|
+
|
|
3790
3848
|
/**
|
|
3791
3849
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3792
3850
|
*/
|
|
@@ -3808,6 +3866,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3808
3866
|
*/
|
|
3809
3867
|
invoice_grouping_key?: string | null;
|
|
3810
3868
|
|
|
3869
|
+
/**
|
|
3870
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3871
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3872
|
+
*/
|
|
3873
|
+
invoicing_cycle_configuration?: NewFloatingUnitPrice.InvoicingCycleConfiguration | null;
|
|
3874
|
+
|
|
3811
3875
|
/**
|
|
3812
3876
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3813
3877
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3823,6 +3887,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3823
3887
|
*/
|
|
3824
3888
|
unit_amount: string;
|
|
3825
3889
|
}
|
|
3890
|
+
|
|
3891
|
+
/**
|
|
3892
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3893
|
+
* months.
|
|
3894
|
+
*/
|
|
3895
|
+
export interface BillingCycleConfiguration {
|
|
3896
|
+
/**
|
|
3897
|
+
* The duration of the billing period.
|
|
3898
|
+
*/
|
|
3899
|
+
duration: number;
|
|
3900
|
+
|
|
3901
|
+
/**
|
|
3902
|
+
* The unit of billing period duration.
|
|
3903
|
+
*/
|
|
3904
|
+
duration_unit: 'day' | 'month';
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3907
|
+
/**
|
|
3908
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3909
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3910
|
+
*/
|
|
3911
|
+
export interface InvoicingCycleConfiguration {
|
|
3912
|
+
/**
|
|
3913
|
+
* The duration of the billing period.
|
|
3914
|
+
*/
|
|
3915
|
+
duration: number;
|
|
3916
|
+
|
|
3917
|
+
/**
|
|
3918
|
+
* The unit of billing period duration.
|
|
3919
|
+
*/
|
|
3920
|
+
duration_unit: 'day' | 'month';
|
|
3921
|
+
}
|
|
3826
3922
|
}
|
|
3827
3923
|
|
|
3828
3924
|
export interface NewFloatingPackagePrice {
|
|
@@ -3862,6 +3958,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3862
3958
|
*/
|
|
3863
3959
|
billed_in_advance?: boolean | null;
|
|
3864
3960
|
|
|
3961
|
+
/**
|
|
3962
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3963
|
+
* months.
|
|
3964
|
+
*/
|
|
3965
|
+
billing_cycle_configuration?: NewFloatingPackagePrice.BillingCycleConfiguration | null;
|
|
3966
|
+
|
|
3865
3967
|
/**
|
|
3866
3968
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3867
3969
|
*/
|
|
@@ -3883,6 +3985,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3883
3985
|
*/
|
|
3884
3986
|
invoice_grouping_key?: string | null;
|
|
3885
3987
|
|
|
3988
|
+
/**
|
|
3989
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3990
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3991
|
+
*/
|
|
3992
|
+
invoicing_cycle_configuration?: NewFloatingPackagePrice.InvoicingCycleConfiguration | null;
|
|
3993
|
+
|
|
3886
3994
|
/**
|
|
3887
3995
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3888
3996
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3904,6 +4012,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3904
4012
|
*/
|
|
3905
4013
|
package_size: number;
|
|
3906
4014
|
}
|
|
4015
|
+
|
|
4016
|
+
/**
|
|
4017
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4018
|
+
* months.
|
|
4019
|
+
*/
|
|
4020
|
+
export interface BillingCycleConfiguration {
|
|
4021
|
+
/**
|
|
4022
|
+
* The duration of the billing period.
|
|
4023
|
+
*/
|
|
4024
|
+
duration: number;
|
|
4025
|
+
|
|
4026
|
+
/**
|
|
4027
|
+
* The unit of billing period duration.
|
|
4028
|
+
*/
|
|
4029
|
+
duration_unit: 'day' | 'month';
|
|
4030
|
+
}
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4034
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4035
|
+
*/
|
|
4036
|
+
export interface InvoicingCycleConfiguration {
|
|
4037
|
+
/**
|
|
4038
|
+
* The duration of the billing period.
|
|
4039
|
+
*/
|
|
4040
|
+
duration: number;
|
|
4041
|
+
|
|
4042
|
+
/**
|
|
4043
|
+
* The unit of billing period duration.
|
|
4044
|
+
*/
|
|
4045
|
+
duration_unit: 'day' | 'month';
|
|
4046
|
+
}
|
|
3907
4047
|
}
|
|
3908
4048
|
|
|
3909
4049
|
export interface NewFloatingMatrixPrice {
|
|
@@ -3943,6 +4083,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3943
4083
|
*/
|
|
3944
4084
|
billed_in_advance?: boolean | null;
|
|
3945
4085
|
|
|
4086
|
+
/**
|
|
4087
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4088
|
+
* months.
|
|
4089
|
+
*/
|
|
4090
|
+
billing_cycle_configuration?: NewFloatingMatrixPrice.BillingCycleConfiguration | null;
|
|
4091
|
+
|
|
3946
4092
|
/**
|
|
3947
4093
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3948
4094
|
*/
|
|
@@ -3964,6 +4110,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3964
4110
|
*/
|
|
3965
4111
|
invoice_grouping_key?: string | null;
|
|
3966
4112
|
|
|
4113
|
+
/**
|
|
4114
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4115
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4116
|
+
*/
|
|
4117
|
+
invoicing_cycle_configuration?: NewFloatingMatrixPrice.InvoicingCycleConfiguration | null;
|
|
4118
|
+
|
|
3967
4119
|
/**
|
|
3968
4120
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3969
4121
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4005,6 +4157,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4005
4157
|
unit_amount: string;
|
|
4006
4158
|
}
|
|
4007
4159
|
}
|
|
4160
|
+
|
|
4161
|
+
/**
|
|
4162
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4163
|
+
* months.
|
|
4164
|
+
*/
|
|
4165
|
+
export interface BillingCycleConfiguration {
|
|
4166
|
+
/**
|
|
4167
|
+
* The duration of the billing period.
|
|
4168
|
+
*/
|
|
4169
|
+
duration: number;
|
|
4170
|
+
|
|
4171
|
+
/**
|
|
4172
|
+
* The unit of billing period duration.
|
|
4173
|
+
*/
|
|
4174
|
+
duration_unit: 'day' | 'month';
|
|
4175
|
+
}
|
|
4176
|
+
|
|
4177
|
+
/**
|
|
4178
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4179
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4180
|
+
*/
|
|
4181
|
+
export interface InvoicingCycleConfiguration {
|
|
4182
|
+
/**
|
|
4183
|
+
* The duration of the billing period.
|
|
4184
|
+
*/
|
|
4185
|
+
duration: number;
|
|
4186
|
+
|
|
4187
|
+
/**
|
|
4188
|
+
* The unit of billing period duration.
|
|
4189
|
+
*/
|
|
4190
|
+
duration_unit: 'day' | 'month';
|
|
4191
|
+
}
|
|
4008
4192
|
}
|
|
4009
4193
|
|
|
4010
4194
|
export interface NewFloatingMatrixWithAllocationPrice {
|
|
@@ -4044,6 +4228,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4044
4228
|
*/
|
|
4045
4229
|
billed_in_advance?: boolean | null;
|
|
4046
4230
|
|
|
4231
|
+
/**
|
|
4232
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4233
|
+
* months.
|
|
4234
|
+
*/
|
|
4235
|
+
billing_cycle_configuration?: NewFloatingMatrixWithAllocationPrice.BillingCycleConfiguration | null;
|
|
4236
|
+
|
|
4047
4237
|
/**
|
|
4048
4238
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4049
4239
|
*/
|
|
@@ -4065,6 +4255,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4065
4255
|
*/
|
|
4066
4256
|
invoice_grouping_key?: string | null;
|
|
4067
4257
|
|
|
4258
|
+
/**
|
|
4259
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4260
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4261
|
+
*/
|
|
4262
|
+
invoicing_cycle_configuration?: NewFloatingMatrixWithAllocationPrice.InvoicingCycleConfiguration | null;
|
|
4263
|
+
|
|
4068
4264
|
/**
|
|
4069
4265
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4070
4266
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4111,6 +4307,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4111
4307
|
unit_amount: string;
|
|
4112
4308
|
}
|
|
4113
4309
|
}
|
|
4310
|
+
|
|
4311
|
+
/**
|
|
4312
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4313
|
+
* months.
|
|
4314
|
+
*/
|
|
4315
|
+
export interface BillingCycleConfiguration {
|
|
4316
|
+
/**
|
|
4317
|
+
* The duration of the billing period.
|
|
4318
|
+
*/
|
|
4319
|
+
duration: number;
|
|
4320
|
+
|
|
4321
|
+
/**
|
|
4322
|
+
* The unit of billing period duration.
|
|
4323
|
+
*/
|
|
4324
|
+
duration_unit: 'day' | 'month';
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4327
|
+
/**
|
|
4328
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4329
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4330
|
+
*/
|
|
4331
|
+
export interface InvoicingCycleConfiguration {
|
|
4332
|
+
/**
|
|
4333
|
+
* The duration of the billing period.
|
|
4334
|
+
*/
|
|
4335
|
+
duration: number;
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* The unit of billing period duration.
|
|
4339
|
+
*/
|
|
4340
|
+
duration_unit: 'day' | 'month';
|
|
4341
|
+
}
|
|
4114
4342
|
}
|
|
4115
4343
|
|
|
4116
4344
|
export interface NewFloatingTieredPrice {
|
|
@@ -4150,6 +4378,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4150
4378
|
*/
|
|
4151
4379
|
billed_in_advance?: boolean | null;
|
|
4152
4380
|
|
|
4381
|
+
/**
|
|
4382
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4383
|
+
* months.
|
|
4384
|
+
*/
|
|
4385
|
+
billing_cycle_configuration?: NewFloatingTieredPrice.BillingCycleConfiguration | null;
|
|
4386
|
+
|
|
4153
4387
|
/**
|
|
4154
4388
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4155
4389
|
*/
|
|
@@ -4171,6 +4405,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4171
4405
|
*/
|
|
4172
4406
|
invoice_grouping_key?: string | null;
|
|
4173
4407
|
|
|
4408
|
+
/**
|
|
4409
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4410
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4411
|
+
*/
|
|
4412
|
+
invoicing_cycle_configuration?: NewFloatingTieredPrice.InvoicingCycleConfiguration | null;
|
|
4413
|
+
|
|
4174
4414
|
/**
|
|
4175
4415
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4176
4416
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4205,6 +4445,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4205
4445
|
last_unit?: number | null;
|
|
4206
4446
|
}
|
|
4207
4447
|
}
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4451
|
+
* months.
|
|
4452
|
+
*/
|
|
4453
|
+
export interface BillingCycleConfiguration {
|
|
4454
|
+
/**
|
|
4455
|
+
* The duration of the billing period.
|
|
4456
|
+
*/
|
|
4457
|
+
duration: number;
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* The unit of billing period duration.
|
|
4461
|
+
*/
|
|
4462
|
+
duration_unit: 'day' | 'month';
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
/**
|
|
4466
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4467
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4468
|
+
*/
|
|
4469
|
+
export interface InvoicingCycleConfiguration {
|
|
4470
|
+
/**
|
|
4471
|
+
* The duration of the billing period.
|
|
4472
|
+
*/
|
|
4473
|
+
duration: number;
|
|
4474
|
+
|
|
4475
|
+
/**
|
|
4476
|
+
* The unit of billing period duration.
|
|
4477
|
+
*/
|
|
4478
|
+
duration_unit: 'day' | 'month';
|
|
4479
|
+
}
|
|
4208
4480
|
}
|
|
4209
4481
|
|
|
4210
4482
|
export interface NewFloatingTieredBpsPrice {
|
|
@@ -4244,6 +4516,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4244
4516
|
*/
|
|
4245
4517
|
billed_in_advance?: boolean | null;
|
|
4246
4518
|
|
|
4519
|
+
/**
|
|
4520
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4521
|
+
* months.
|
|
4522
|
+
*/
|
|
4523
|
+
billing_cycle_configuration?: NewFloatingTieredBpsPrice.BillingCycleConfiguration | null;
|
|
4524
|
+
|
|
4247
4525
|
/**
|
|
4248
4526
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4249
4527
|
*/
|
|
@@ -4265,6 +4543,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4265
4543
|
*/
|
|
4266
4544
|
invoice_grouping_key?: string | null;
|
|
4267
4545
|
|
|
4546
|
+
/**
|
|
4547
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4548
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4549
|
+
*/
|
|
4550
|
+
invoicing_cycle_configuration?: NewFloatingTieredBpsPrice.InvoicingCycleConfiguration | null;
|
|
4551
|
+
|
|
4268
4552
|
/**
|
|
4269
4553
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4270
4554
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4305,6 +4589,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4305
4589
|
per_unit_maximum?: string | null;
|
|
4306
4590
|
}
|
|
4307
4591
|
}
|
|
4592
|
+
|
|
4593
|
+
/**
|
|
4594
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4595
|
+
* months.
|
|
4596
|
+
*/
|
|
4597
|
+
export interface BillingCycleConfiguration {
|
|
4598
|
+
/**
|
|
4599
|
+
* The duration of the billing period.
|
|
4600
|
+
*/
|
|
4601
|
+
duration: number;
|
|
4602
|
+
|
|
4603
|
+
/**
|
|
4604
|
+
* The unit of billing period duration.
|
|
4605
|
+
*/
|
|
4606
|
+
duration_unit: 'day' | 'month';
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4609
|
+
/**
|
|
4610
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4611
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4612
|
+
*/
|
|
4613
|
+
export interface InvoicingCycleConfiguration {
|
|
4614
|
+
/**
|
|
4615
|
+
* The duration of the billing period.
|
|
4616
|
+
*/
|
|
4617
|
+
duration: number;
|
|
4618
|
+
|
|
4619
|
+
/**
|
|
4620
|
+
* The unit of billing period duration.
|
|
4621
|
+
*/
|
|
4622
|
+
duration_unit: 'day' | 'month';
|
|
4623
|
+
}
|
|
4308
4624
|
}
|
|
4309
4625
|
|
|
4310
4626
|
export interface NewFloatingBpsPrice {
|
|
@@ -4344,6 +4660,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4344
4660
|
*/
|
|
4345
4661
|
billed_in_advance?: boolean | null;
|
|
4346
4662
|
|
|
4663
|
+
/**
|
|
4664
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4665
|
+
* months.
|
|
4666
|
+
*/
|
|
4667
|
+
billing_cycle_configuration?: NewFloatingBpsPrice.BillingCycleConfiguration | null;
|
|
4668
|
+
|
|
4347
4669
|
/**
|
|
4348
4670
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4349
4671
|
*/
|
|
@@ -4365,6 +4687,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4365
4687
|
*/
|
|
4366
4688
|
invoice_grouping_key?: string | null;
|
|
4367
4689
|
|
|
4690
|
+
/**
|
|
4691
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4692
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4693
|
+
*/
|
|
4694
|
+
invoicing_cycle_configuration?: NewFloatingBpsPrice.InvoicingCycleConfiguration | null;
|
|
4695
|
+
|
|
4368
4696
|
/**
|
|
4369
4697
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4370
4698
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4385,6 +4713,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4385
4713
|
*/
|
|
4386
4714
|
per_unit_maximum?: string | null;
|
|
4387
4715
|
}
|
|
4716
|
+
|
|
4717
|
+
/**
|
|
4718
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4719
|
+
* months.
|
|
4720
|
+
*/
|
|
4721
|
+
export interface BillingCycleConfiguration {
|
|
4722
|
+
/**
|
|
4723
|
+
* The duration of the billing period.
|
|
4724
|
+
*/
|
|
4725
|
+
duration: number;
|
|
4726
|
+
|
|
4727
|
+
/**
|
|
4728
|
+
* The unit of billing period duration.
|
|
4729
|
+
*/
|
|
4730
|
+
duration_unit: 'day' | 'month';
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4733
|
+
/**
|
|
4734
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4735
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4736
|
+
*/
|
|
4737
|
+
export interface InvoicingCycleConfiguration {
|
|
4738
|
+
/**
|
|
4739
|
+
* The duration of the billing period.
|
|
4740
|
+
*/
|
|
4741
|
+
duration: number;
|
|
4742
|
+
|
|
4743
|
+
/**
|
|
4744
|
+
* The unit of billing period duration.
|
|
4745
|
+
*/
|
|
4746
|
+
duration_unit: 'day' | 'month';
|
|
4747
|
+
}
|
|
4388
4748
|
}
|
|
4389
4749
|
|
|
4390
4750
|
export interface NewFloatingBulkBpsPrice {
|
|
@@ -4424,6 +4784,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4424
4784
|
*/
|
|
4425
4785
|
billed_in_advance?: boolean | null;
|
|
4426
4786
|
|
|
4787
|
+
/**
|
|
4788
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4789
|
+
* months.
|
|
4790
|
+
*/
|
|
4791
|
+
billing_cycle_configuration?: NewFloatingBulkBpsPrice.BillingCycleConfiguration | null;
|
|
4792
|
+
|
|
4427
4793
|
/**
|
|
4428
4794
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4429
4795
|
*/
|
|
@@ -4445,6 +4811,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4445
4811
|
*/
|
|
4446
4812
|
invoice_grouping_key?: string | null;
|
|
4447
4813
|
|
|
4814
|
+
/**
|
|
4815
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4816
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4817
|
+
*/
|
|
4818
|
+
invoicing_cycle_configuration?: NewFloatingBulkBpsPrice.InvoicingCycleConfiguration | null;
|
|
4819
|
+
|
|
4448
4820
|
/**
|
|
4449
4821
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4450
4822
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4480,6 +4852,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4480
4852
|
per_unit_maximum?: string | null;
|
|
4481
4853
|
}
|
|
4482
4854
|
}
|
|
4855
|
+
|
|
4856
|
+
/**
|
|
4857
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4858
|
+
* months.
|
|
4859
|
+
*/
|
|
4860
|
+
export interface BillingCycleConfiguration {
|
|
4861
|
+
/**
|
|
4862
|
+
* The duration of the billing period.
|
|
4863
|
+
*/
|
|
4864
|
+
duration: number;
|
|
4865
|
+
|
|
4866
|
+
/**
|
|
4867
|
+
* The unit of billing period duration.
|
|
4868
|
+
*/
|
|
4869
|
+
duration_unit: 'day' | 'month';
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4872
|
+
/**
|
|
4873
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4874
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4875
|
+
*/
|
|
4876
|
+
export interface InvoicingCycleConfiguration {
|
|
4877
|
+
/**
|
|
4878
|
+
* The duration of the billing period.
|
|
4879
|
+
*/
|
|
4880
|
+
duration: number;
|
|
4881
|
+
|
|
4882
|
+
/**
|
|
4883
|
+
* The unit of billing period duration.
|
|
4884
|
+
*/
|
|
4885
|
+
duration_unit: 'day' | 'month';
|
|
4886
|
+
}
|
|
4483
4887
|
}
|
|
4484
4888
|
|
|
4485
4889
|
export interface NewFloatingBulkPrice {
|
|
@@ -4519,6 +4923,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4519
4923
|
*/
|
|
4520
4924
|
billed_in_advance?: boolean | null;
|
|
4521
4925
|
|
|
4926
|
+
/**
|
|
4927
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4928
|
+
* months.
|
|
4929
|
+
*/
|
|
4930
|
+
billing_cycle_configuration?: NewFloatingBulkPrice.BillingCycleConfiguration | null;
|
|
4931
|
+
|
|
4522
4932
|
/**
|
|
4523
4933
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4524
4934
|
*/
|
|
@@ -4540,6 +4950,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4540
4950
|
*/
|
|
4541
4951
|
invoice_grouping_key?: string | null;
|
|
4542
4952
|
|
|
4953
|
+
/**
|
|
4954
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4955
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4956
|
+
*/
|
|
4957
|
+
invoicing_cycle_configuration?: NewFloatingBulkPrice.InvoicingCycleConfiguration | null;
|
|
4958
|
+
|
|
4543
4959
|
/**
|
|
4544
4960
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4545
4961
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4569,6 +4985,38 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4569
4985
|
maximum_units?: number | null;
|
|
4570
4986
|
}
|
|
4571
4987
|
}
|
|
4988
|
+
|
|
4989
|
+
/**
|
|
4990
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4991
|
+
* months.
|
|
4992
|
+
*/
|
|
4993
|
+
export interface BillingCycleConfiguration {
|
|
4994
|
+
/**
|
|
4995
|
+
* The duration of the billing period.
|
|
4996
|
+
*/
|
|
4997
|
+
duration: number;
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* The unit of billing period duration.
|
|
5001
|
+
*/
|
|
5002
|
+
duration_unit: 'day' | 'month';
|
|
5003
|
+
}
|
|
5004
|
+
|
|
5005
|
+
/**
|
|
5006
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5007
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5008
|
+
*/
|
|
5009
|
+
export interface InvoicingCycleConfiguration {
|
|
5010
|
+
/**
|
|
5011
|
+
* The duration of the billing period.
|
|
5012
|
+
*/
|
|
5013
|
+
duration: number;
|
|
5014
|
+
|
|
5015
|
+
/**
|
|
5016
|
+
* The unit of billing period duration.
|
|
5017
|
+
*/
|
|
5018
|
+
duration_unit: 'day' | 'month';
|
|
5019
|
+
}
|
|
4572
5020
|
}
|
|
4573
5021
|
|
|
4574
5022
|
export interface NewFloatingThresholdTotalAmountPrice {
|
|
@@ -4608,6 +5056,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4608
5056
|
*/
|
|
4609
5057
|
billed_in_advance?: boolean | null;
|
|
4610
5058
|
|
|
5059
|
+
/**
|
|
5060
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5061
|
+
* months.
|
|
5062
|
+
*/
|
|
5063
|
+
billing_cycle_configuration?: NewFloatingThresholdTotalAmountPrice.BillingCycleConfiguration | null;
|
|
5064
|
+
|
|
4611
5065
|
/**
|
|
4612
5066
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4613
5067
|
*/
|
|
@@ -4629,6 +5083,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4629
5083
|
*/
|
|
4630
5084
|
invoice_grouping_key?: string | null;
|
|
4631
5085
|
|
|
5086
|
+
/**
|
|
5087
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5088
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5089
|
+
*/
|
|
5090
|
+
invoicing_cycle_configuration?: NewFloatingThresholdTotalAmountPrice.InvoicingCycleConfiguration | null;
|
|
5091
|
+
|
|
4632
5092
|
/**
|
|
4633
5093
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4634
5094
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4637,16 +5097,50 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4637
5097
|
metadata?: Record<string, string | null> | null;
|
|
4638
5098
|
}
|
|
4639
5099
|
|
|
4640
|
-
export
|
|
5100
|
+
export namespace NewFloatingThresholdTotalAmountPrice {
|
|
4641
5101
|
/**
|
|
4642
|
-
*
|
|
5102
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5103
|
+
* months.
|
|
4643
5104
|
*/
|
|
4644
|
-
|
|
5105
|
+
export interface BillingCycleConfiguration {
|
|
5106
|
+
/**
|
|
5107
|
+
* The duration of the billing period.
|
|
5108
|
+
*/
|
|
5109
|
+
duration: number;
|
|
5110
|
+
|
|
5111
|
+
/**
|
|
5112
|
+
* The unit of billing period duration.
|
|
5113
|
+
*/
|
|
5114
|
+
duration_unit: 'day' | 'month';
|
|
5115
|
+
}
|
|
4645
5116
|
|
|
4646
5117
|
/**
|
|
4647
|
-
*
|
|
5118
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5119
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4648
5120
|
*/
|
|
4649
|
-
|
|
5121
|
+
export interface InvoicingCycleConfiguration {
|
|
5122
|
+
/**
|
|
5123
|
+
* The duration of the billing period.
|
|
5124
|
+
*/
|
|
5125
|
+
duration: number;
|
|
5126
|
+
|
|
5127
|
+
/**
|
|
5128
|
+
* The unit of billing period duration.
|
|
5129
|
+
*/
|
|
5130
|
+
duration_unit: 'day' | 'month';
|
|
5131
|
+
}
|
|
5132
|
+
}
|
|
5133
|
+
|
|
5134
|
+
export interface NewFloatingTieredPackagePrice {
|
|
5135
|
+
/**
|
|
5136
|
+
* The cadence to bill for this price on.
|
|
5137
|
+
*/
|
|
5138
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
5139
|
+
|
|
5140
|
+
/**
|
|
5141
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
5142
|
+
*/
|
|
5143
|
+
currency: string;
|
|
4650
5144
|
|
|
4651
5145
|
/**
|
|
4652
5146
|
* The id of the item the plan will be associated with.
|
|
@@ -4674,6 +5168,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4674
5168
|
*/
|
|
4675
5169
|
billed_in_advance?: boolean | null;
|
|
4676
5170
|
|
|
5171
|
+
/**
|
|
5172
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5173
|
+
* months.
|
|
5174
|
+
*/
|
|
5175
|
+
billing_cycle_configuration?: NewFloatingTieredPackagePrice.BillingCycleConfiguration | null;
|
|
5176
|
+
|
|
4677
5177
|
/**
|
|
4678
5178
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4679
5179
|
*/
|
|
@@ -4695,6 +5195,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4695
5195
|
*/
|
|
4696
5196
|
invoice_grouping_key?: string | null;
|
|
4697
5197
|
|
|
5198
|
+
/**
|
|
5199
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5200
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5201
|
+
*/
|
|
5202
|
+
invoicing_cycle_configuration?: NewFloatingTieredPackagePrice.InvoicingCycleConfiguration | null;
|
|
5203
|
+
|
|
4698
5204
|
/**
|
|
4699
5205
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4700
5206
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4703,6 +5209,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4703
5209
|
metadata?: Record<string, string | null> | null;
|
|
4704
5210
|
}
|
|
4705
5211
|
|
|
5212
|
+
export namespace NewFloatingTieredPackagePrice {
|
|
5213
|
+
/**
|
|
5214
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5215
|
+
* months.
|
|
5216
|
+
*/
|
|
5217
|
+
export interface BillingCycleConfiguration {
|
|
5218
|
+
/**
|
|
5219
|
+
* The duration of the billing period.
|
|
5220
|
+
*/
|
|
5221
|
+
duration: number;
|
|
5222
|
+
|
|
5223
|
+
/**
|
|
5224
|
+
* The unit of billing period duration.
|
|
5225
|
+
*/
|
|
5226
|
+
duration_unit: 'day' | 'month';
|
|
5227
|
+
}
|
|
5228
|
+
|
|
5229
|
+
/**
|
|
5230
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5231
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5232
|
+
*/
|
|
5233
|
+
export interface InvoicingCycleConfiguration {
|
|
5234
|
+
/**
|
|
5235
|
+
* The duration of the billing period.
|
|
5236
|
+
*/
|
|
5237
|
+
duration: number;
|
|
5238
|
+
|
|
5239
|
+
/**
|
|
5240
|
+
* The unit of billing period duration.
|
|
5241
|
+
*/
|
|
5242
|
+
duration_unit: 'day' | 'month';
|
|
5243
|
+
}
|
|
5244
|
+
}
|
|
5245
|
+
|
|
4706
5246
|
export interface NewFloatingGroupedTieredPrice {
|
|
4707
5247
|
/**
|
|
4708
5248
|
* The cadence to bill for this price on.
|
|
@@ -4740,6 +5280,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4740
5280
|
*/
|
|
4741
5281
|
billed_in_advance?: boolean | null;
|
|
4742
5282
|
|
|
5283
|
+
/**
|
|
5284
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5285
|
+
* months.
|
|
5286
|
+
*/
|
|
5287
|
+
billing_cycle_configuration?: NewFloatingGroupedTieredPrice.BillingCycleConfiguration | null;
|
|
5288
|
+
|
|
4743
5289
|
/**
|
|
4744
5290
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4745
5291
|
*/
|
|
@@ -4761,6 +5307,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4761
5307
|
*/
|
|
4762
5308
|
invoice_grouping_key?: string | null;
|
|
4763
5309
|
|
|
5310
|
+
/**
|
|
5311
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5312
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5313
|
+
*/
|
|
5314
|
+
invoicing_cycle_configuration?: NewFloatingGroupedTieredPrice.InvoicingCycleConfiguration | null;
|
|
5315
|
+
|
|
4764
5316
|
/**
|
|
4765
5317
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4766
5318
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4769,6 +5321,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4769
5321
|
metadata?: Record<string, string | null> | null;
|
|
4770
5322
|
}
|
|
4771
5323
|
|
|
5324
|
+
export namespace NewFloatingGroupedTieredPrice {
|
|
5325
|
+
/**
|
|
5326
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5327
|
+
* months.
|
|
5328
|
+
*/
|
|
5329
|
+
export interface BillingCycleConfiguration {
|
|
5330
|
+
/**
|
|
5331
|
+
* The duration of the billing period.
|
|
5332
|
+
*/
|
|
5333
|
+
duration: number;
|
|
5334
|
+
|
|
5335
|
+
/**
|
|
5336
|
+
* The unit of billing period duration.
|
|
5337
|
+
*/
|
|
5338
|
+
duration_unit: 'day' | 'month';
|
|
5339
|
+
}
|
|
5340
|
+
|
|
5341
|
+
/**
|
|
5342
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5343
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5344
|
+
*/
|
|
5345
|
+
export interface InvoicingCycleConfiguration {
|
|
5346
|
+
/**
|
|
5347
|
+
* The duration of the billing period.
|
|
5348
|
+
*/
|
|
5349
|
+
duration: number;
|
|
5350
|
+
|
|
5351
|
+
/**
|
|
5352
|
+
* The unit of billing period duration.
|
|
5353
|
+
*/
|
|
5354
|
+
duration_unit: 'day' | 'month';
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
|
|
4772
5358
|
export interface NewFloatingTieredWithMinimumPrice {
|
|
4773
5359
|
/**
|
|
4774
5360
|
* The cadence to bill for this price on.
|
|
@@ -4806,6 +5392,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4806
5392
|
*/
|
|
4807
5393
|
billed_in_advance?: boolean | null;
|
|
4808
5394
|
|
|
5395
|
+
/**
|
|
5396
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5397
|
+
* months.
|
|
5398
|
+
*/
|
|
5399
|
+
billing_cycle_configuration?: NewFloatingTieredWithMinimumPrice.BillingCycleConfiguration | null;
|
|
5400
|
+
|
|
4809
5401
|
/**
|
|
4810
5402
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4811
5403
|
*/
|
|
@@ -4827,6 +5419,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4827
5419
|
*/
|
|
4828
5420
|
invoice_grouping_key?: string | null;
|
|
4829
5421
|
|
|
5422
|
+
/**
|
|
5423
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5424
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5425
|
+
*/
|
|
5426
|
+
invoicing_cycle_configuration?: NewFloatingTieredWithMinimumPrice.InvoicingCycleConfiguration | null;
|
|
5427
|
+
|
|
4830
5428
|
/**
|
|
4831
5429
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4832
5430
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4835,6 +5433,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4835
5433
|
metadata?: Record<string, string | null> | null;
|
|
4836
5434
|
}
|
|
4837
5435
|
|
|
5436
|
+
export namespace NewFloatingTieredWithMinimumPrice {
|
|
5437
|
+
/**
|
|
5438
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5439
|
+
* months.
|
|
5440
|
+
*/
|
|
5441
|
+
export interface BillingCycleConfiguration {
|
|
5442
|
+
/**
|
|
5443
|
+
* The duration of the billing period.
|
|
5444
|
+
*/
|
|
5445
|
+
duration: number;
|
|
5446
|
+
|
|
5447
|
+
/**
|
|
5448
|
+
* The unit of billing period duration.
|
|
5449
|
+
*/
|
|
5450
|
+
duration_unit: 'day' | 'month';
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
/**
|
|
5454
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5455
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5456
|
+
*/
|
|
5457
|
+
export interface InvoicingCycleConfiguration {
|
|
5458
|
+
/**
|
|
5459
|
+
* The duration of the billing period.
|
|
5460
|
+
*/
|
|
5461
|
+
duration: number;
|
|
5462
|
+
|
|
5463
|
+
/**
|
|
5464
|
+
* The unit of billing period duration.
|
|
5465
|
+
*/
|
|
5466
|
+
duration_unit: 'day' | 'month';
|
|
5467
|
+
}
|
|
5468
|
+
}
|
|
5469
|
+
|
|
4838
5470
|
export interface NewFloatingPackageWithAllocationPrice {
|
|
4839
5471
|
/**
|
|
4840
5472
|
* The cadence to bill for this price on.
|
|
@@ -4872,6 +5504,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4872
5504
|
*/
|
|
4873
5505
|
billed_in_advance?: boolean | null;
|
|
4874
5506
|
|
|
5507
|
+
/**
|
|
5508
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5509
|
+
* months.
|
|
5510
|
+
*/
|
|
5511
|
+
billing_cycle_configuration?: NewFloatingPackageWithAllocationPrice.BillingCycleConfiguration | null;
|
|
5512
|
+
|
|
4875
5513
|
/**
|
|
4876
5514
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4877
5515
|
*/
|
|
@@ -4893,6 +5531,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4893
5531
|
*/
|
|
4894
5532
|
invoice_grouping_key?: string | null;
|
|
4895
5533
|
|
|
5534
|
+
/**
|
|
5535
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5536
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5537
|
+
*/
|
|
5538
|
+
invoicing_cycle_configuration?: NewFloatingPackageWithAllocationPrice.InvoicingCycleConfiguration | null;
|
|
5539
|
+
|
|
4896
5540
|
/**
|
|
4897
5541
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4898
5542
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4901,6 +5545,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4901
5545
|
metadata?: Record<string, string | null> | null;
|
|
4902
5546
|
}
|
|
4903
5547
|
|
|
5548
|
+
export namespace NewFloatingPackageWithAllocationPrice {
|
|
5549
|
+
/**
|
|
5550
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5551
|
+
* months.
|
|
5552
|
+
*/
|
|
5553
|
+
export interface BillingCycleConfiguration {
|
|
5554
|
+
/**
|
|
5555
|
+
* The duration of the billing period.
|
|
5556
|
+
*/
|
|
5557
|
+
duration: number;
|
|
5558
|
+
|
|
5559
|
+
/**
|
|
5560
|
+
* The unit of billing period duration.
|
|
5561
|
+
*/
|
|
5562
|
+
duration_unit: 'day' | 'month';
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5565
|
+
/**
|
|
5566
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5567
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5568
|
+
*/
|
|
5569
|
+
export interface InvoicingCycleConfiguration {
|
|
5570
|
+
/**
|
|
5571
|
+
* The duration of the billing period.
|
|
5572
|
+
*/
|
|
5573
|
+
duration: number;
|
|
5574
|
+
|
|
5575
|
+
/**
|
|
5576
|
+
* The unit of billing period duration.
|
|
5577
|
+
*/
|
|
5578
|
+
duration_unit: 'day' | 'month';
|
|
5579
|
+
}
|
|
5580
|
+
}
|
|
5581
|
+
|
|
4904
5582
|
export interface NewFloatingTieredPackageWithMinimumPrice {
|
|
4905
5583
|
/**
|
|
4906
5584
|
* The cadence to bill for this price on.
|
|
@@ -4938,6 +5616,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4938
5616
|
*/
|
|
4939
5617
|
billed_in_advance?: boolean | null;
|
|
4940
5618
|
|
|
5619
|
+
/**
|
|
5620
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5621
|
+
* months.
|
|
5622
|
+
*/
|
|
5623
|
+
billing_cycle_configuration?: NewFloatingTieredPackageWithMinimumPrice.BillingCycleConfiguration | null;
|
|
5624
|
+
|
|
4941
5625
|
/**
|
|
4942
5626
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4943
5627
|
*/
|
|
@@ -4959,6 +5643,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4959
5643
|
*/
|
|
4960
5644
|
invoice_grouping_key?: string | null;
|
|
4961
5645
|
|
|
5646
|
+
/**
|
|
5647
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5648
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5649
|
+
*/
|
|
5650
|
+
invoicing_cycle_configuration?: NewFloatingTieredPackageWithMinimumPrice.InvoicingCycleConfiguration | null;
|
|
5651
|
+
|
|
4962
5652
|
/**
|
|
4963
5653
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4964
5654
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4967,6 +5657,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4967
5657
|
metadata?: Record<string, string | null> | null;
|
|
4968
5658
|
}
|
|
4969
5659
|
|
|
5660
|
+
export namespace NewFloatingTieredPackageWithMinimumPrice {
|
|
5661
|
+
/**
|
|
5662
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5663
|
+
* months.
|
|
5664
|
+
*/
|
|
5665
|
+
export interface BillingCycleConfiguration {
|
|
5666
|
+
/**
|
|
5667
|
+
* The duration of the billing period.
|
|
5668
|
+
*/
|
|
5669
|
+
duration: number;
|
|
5670
|
+
|
|
5671
|
+
/**
|
|
5672
|
+
* The unit of billing period duration.
|
|
5673
|
+
*/
|
|
5674
|
+
duration_unit: 'day' | 'month';
|
|
5675
|
+
}
|
|
5676
|
+
|
|
5677
|
+
/**
|
|
5678
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5679
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5680
|
+
*/
|
|
5681
|
+
export interface InvoicingCycleConfiguration {
|
|
5682
|
+
/**
|
|
5683
|
+
* The duration of the billing period.
|
|
5684
|
+
*/
|
|
5685
|
+
duration: number;
|
|
5686
|
+
|
|
5687
|
+
/**
|
|
5688
|
+
* The unit of billing period duration.
|
|
5689
|
+
*/
|
|
5690
|
+
duration_unit: 'day' | 'month';
|
|
5691
|
+
}
|
|
5692
|
+
}
|
|
5693
|
+
|
|
4970
5694
|
export interface NewFloatingUnitWithPercentPrice {
|
|
4971
5695
|
/**
|
|
4972
5696
|
* The cadence to bill for this price on.
|
|
@@ -5004,6 +5728,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5004
5728
|
*/
|
|
5005
5729
|
billed_in_advance?: boolean | null;
|
|
5006
5730
|
|
|
5731
|
+
/**
|
|
5732
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5733
|
+
* months.
|
|
5734
|
+
*/
|
|
5735
|
+
billing_cycle_configuration?: NewFloatingUnitWithPercentPrice.BillingCycleConfiguration | null;
|
|
5736
|
+
|
|
5007
5737
|
/**
|
|
5008
5738
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5009
5739
|
*/
|
|
@@ -5025,6 +5755,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5025
5755
|
*/
|
|
5026
5756
|
invoice_grouping_key?: string | null;
|
|
5027
5757
|
|
|
5758
|
+
/**
|
|
5759
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5760
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5761
|
+
*/
|
|
5762
|
+
invoicing_cycle_configuration?: NewFloatingUnitWithPercentPrice.InvoicingCycleConfiguration | null;
|
|
5763
|
+
|
|
5028
5764
|
/**
|
|
5029
5765
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5030
5766
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -5033,6 +5769,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5033
5769
|
metadata?: Record<string, string | null> | null;
|
|
5034
5770
|
}
|
|
5035
5771
|
|
|
5772
|
+
export namespace NewFloatingUnitWithPercentPrice {
|
|
5773
|
+
/**
|
|
5774
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5775
|
+
* months.
|
|
5776
|
+
*/
|
|
5777
|
+
export interface BillingCycleConfiguration {
|
|
5778
|
+
/**
|
|
5779
|
+
* The duration of the billing period.
|
|
5780
|
+
*/
|
|
5781
|
+
duration: number;
|
|
5782
|
+
|
|
5783
|
+
/**
|
|
5784
|
+
* The unit of billing period duration.
|
|
5785
|
+
*/
|
|
5786
|
+
duration_unit: 'day' | 'month';
|
|
5787
|
+
}
|
|
5788
|
+
|
|
5789
|
+
/**
|
|
5790
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5791
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5792
|
+
*/
|
|
5793
|
+
export interface InvoicingCycleConfiguration {
|
|
5794
|
+
/**
|
|
5795
|
+
* The duration of the billing period.
|
|
5796
|
+
*/
|
|
5797
|
+
duration: number;
|
|
5798
|
+
|
|
5799
|
+
/**
|
|
5800
|
+
* The unit of billing period duration.
|
|
5801
|
+
*/
|
|
5802
|
+
duration_unit: 'day' | 'month';
|
|
5803
|
+
}
|
|
5804
|
+
}
|
|
5805
|
+
|
|
5036
5806
|
export interface NewFloatingTieredWithProrationPrice {
|
|
5037
5807
|
/**
|
|
5038
5808
|
* The cadence to bill for this price on.
|
|
@@ -5070,6 +5840,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5070
5840
|
*/
|
|
5071
5841
|
billed_in_advance?: boolean | null;
|
|
5072
5842
|
|
|
5843
|
+
/**
|
|
5844
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5845
|
+
* months.
|
|
5846
|
+
*/
|
|
5847
|
+
billing_cycle_configuration?: NewFloatingTieredWithProrationPrice.BillingCycleConfiguration | null;
|
|
5848
|
+
|
|
5073
5849
|
/**
|
|
5074
5850
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5075
5851
|
*/
|
|
@@ -5091,6 +5867,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5091
5867
|
*/
|
|
5092
5868
|
invoice_grouping_key?: string | null;
|
|
5093
5869
|
|
|
5870
|
+
/**
|
|
5871
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5872
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5873
|
+
*/
|
|
5874
|
+
invoicing_cycle_configuration?: NewFloatingTieredWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
5875
|
+
|
|
5094
5876
|
/**
|
|
5095
5877
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5096
5878
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -5099,6 +5881,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5099
5881
|
metadata?: Record<string, string | null> | null;
|
|
5100
5882
|
}
|
|
5101
5883
|
|
|
5884
|
+
export namespace NewFloatingTieredWithProrationPrice {
|
|
5885
|
+
/**
|
|
5886
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5887
|
+
* months.
|
|
5888
|
+
*/
|
|
5889
|
+
export interface BillingCycleConfiguration {
|
|
5890
|
+
/**
|
|
5891
|
+
* The duration of the billing period.
|
|
5892
|
+
*/
|
|
5893
|
+
duration: number;
|
|
5894
|
+
|
|
5895
|
+
/**
|
|
5896
|
+
* The unit of billing period duration.
|
|
5897
|
+
*/
|
|
5898
|
+
duration_unit: 'day' | 'month';
|
|
5899
|
+
}
|
|
5900
|
+
|
|
5901
|
+
/**
|
|
5902
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5903
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5904
|
+
*/
|
|
5905
|
+
export interface InvoicingCycleConfiguration {
|
|
5906
|
+
/**
|
|
5907
|
+
* The duration of the billing period.
|
|
5908
|
+
*/
|
|
5909
|
+
duration: number;
|
|
5910
|
+
|
|
5911
|
+
/**
|
|
5912
|
+
* The unit of billing period duration.
|
|
5913
|
+
*/
|
|
5914
|
+
duration_unit: 'day' | 'month';
|
|
5915
|
+
}
|
|
5916
|
+
}
|
|
5917
|
+
|
|
5102
5918
|
export interface NewFloatingUnitWithProrationPrice {
|
|
5103
5919
|
/**
|
|
5104
5920
|
* The cadence to bill for this price on.
|
|
@@ -5136,6 +5952,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5136
5952
|
*/
|
|
5137
5953
|
billed_in_advance?: boolean | null;
|
|
5138
5954
|
|
|
5955
|
+
/**
|
|
5956
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5957
|
+
* months.
|
|
5958
|
+
*/
|
|
5959
|
+
billing_cycle_configuration?: NewFloatingUnitWithProrationPrice.BillingCycleConfiguration | null;
|
|
5960
|
+
|
|
5139
5961
|
/**
|
|
5140
5962
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5141
5963
|
*/
|
|
@@ -5157,6 +5979,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5157
5979
|
*/
|
|
5158
5980
|
invoice_grouping_key?: string | null;
|
|
5159
5981
|
|
|
5982
|
+
/**
|
|
5983
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5984
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5985
|
+
*/
|
|
5986
|
+
invoicing_cycle_configuration?: NewFloatingUnitWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
5987
|
+
|
|
5160
5988
|
/**
|
|
5161
5989
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5162
5990
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -5165,6 +5993,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5165
5993
|
metadata?: Record<string, string | null> | null;
|
|
5166
5994
|
}
|
|
5167
5995
|
|
|
5996
|
+
export namespace NewFloatingUnitWithProrationPrice {
|
|
5997
|
+
/**
|
|
5998
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5999
|
+
* months.
|
|
6000
|
+
*/
|
|
6001
|
+
export interface BillingCycleConfiguration {
|
|
6002
|
+
/**
|
|
6003
|
+
* The duration of the billing period.
|
|
6004
|
+
*/
|
|
6005
|
+
duration: number;
|
|
6006
|
+
|
|
6007
|
+
/**
|
|
6008
|
+
* The unit of billing period duration.
|
|
6009
|
+
*/
|
|
6010
|
+
duration_unit: 'day' | 'month';
|
|
6011
|
+
}
|
|
6012
|
+
|
|
6013
|
+
/**
|
|
6014
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
6015
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
6016
|
+
*/
|
|
6017
|
+
export interface InvoicingCycleConfiguration {
|
|
6018
|
+
/**
|
|
6019
|
+
* The duration of the billing period.
|
|
6020
|
+
*/
|
|
6021
|
+
duration: number;
|
|
6022
|
+
|
|
6023
|
+
/**
|
|
6024
|
+
* The unit of billing period duration.
|
|
6025
|
+
*/
|
|
6026
|
+
duration_unit: 'day' | 'month';
|
|
6027
|
+
}
|
|
6028
|
+
}
|
|
6029
|
+
|
|
5168
6030
|
export interface NewFloatingGroupedAllocationPrice {
|
|
5169
6031
|
/**
|
|
5170
6032
|
* The cadence to bill for this price on.
|
|
@@ -5202,6 +6064,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5202
6064
|
*/
|
|
5203
6065
|
billed_in_advance?: boolean | null;
|
|
5204
6066
|
|
|
6067
|
+
/**
|
|
6068
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
6069
|
+
* months.
|
|
6070
|
+
*/
|
|
6071
|
+
billing_cycle_configuration?: NewFloatingGroupedAllocationPrice.BillingCycleConfiguration | null;
|
|
6072
|
+
|
|
5205
6073
|
/**
|
|
5206
6074
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5207
6075
|
*/
|
|
@@ -5223,6 +6091,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5223
6091
|
*/
|
|
5224
6092
|
invoice_grouping_key?: string | null;
|
|
5225
6093
|
|
|
6094
|
+
/**
|
|
6095
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
6096
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
6097
|
+
*/
|
|
6098
|
+
invoicing_cycle_configuration?: NewFloatingGroupedAllocationPrice.InvoicingCycleConfiguration | null;
|
|
6099
|
+
|
|
5226
6100
|
/**
|
|
5227
6101
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5228
6102
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -5231,6 +6105,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5231
6105
|
metadata?: Record<string, string | null> | null;
|
|
5232
6106
|
}
|
|
5233
6107
|
|
|
6108
|
+
export namespace NewFloatingGroupedAllocationPrice {
|
|
6109
|
+
/**
|
|
6110
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
6111
|
+
* months.
|
|
6112
|
+
*/
|
|
6113
|
+
export interface BillingCycleConfiguration {
|
|
6114
|
+
/**
|
|
6115
|
+
* The duration of the billing period.
|
|
6116
|
+
*/
|
|
6117
|
+
duration: number;
|
|
6118
|
+
|
|
6119
|
+
/**
|
|
6120
|
+
* The unit of billing period duration.
|
|
6121
|
+
*/
|
|
6122
|
+
duration_unit: 'day' | 'month';
|
|
6123
|
+
}
|
|
6124
|
+
|
|
6125
|
+
/**
|
|
6126
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
6127
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
6128
|
+
*/
|
|
6129
|
+
export interface InvoicingCycleConfiguration {
|
|
6130
|
+
/**
|
|
6131
|
+
* The duration of the billing period.
|
|
6132
|
+
*/
|
|
6133
|
+
duration: number;
|
|
6134
|
+
|
|
6135
|
+
/**
|
|
6136
|
+
* The unit of billing period duration.
|
|
6137
|
+
*/
|
|
6138
|
+
duration_unit: 'day' | 'month';
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
|
|
5234
6142
|
export interface NewFloatingBulkWithProrationPrice {
|
|
5235
6143
|
bulk_with_proration_config: Record<string, unknown>;
|
|
5236
6144
|
|
|
@@ -5268,6 +6176,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5268
6176
|
*/
|
|
5269
6177
|
billed_in_advance?: boolean | null;
|
|
5270
6178
|
|
|
6179
|
+
/**
|
|
6180
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
6181
|
+
* months.
|
|
6182
|
+
*/
|
|
6183
|
+
billing_cycle_configuration?: NewFloatingBulkWithProrationPrice.BillingCycleConfiguration | null;
|
|
6184
|
+
|
|
5271
6185
|
/**
|
|
5272
6186
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5273
6187
|
*/
|
|
@@ -5289,6 +6203,12 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5289
6203
|
*/
|
|
5290
6204
|
invoice_grouping_key?: string | null;
|
|
5291
6205
|
|
|
6206
|
+
/**
|
|
6207
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
6208
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
6209
|
+
*/
|
|
6210
|
+
invoicing_cycle_configuration?: NewFloatingBulkWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
6211
|
+
|
|
5292
6212
|
/**
|
|
5293
6213
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5294
6214
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -5296,6 +6216,40 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
5296
6216
|
*/
|
|
5297
6217
|
metadata?: Record<string, string | null> | null;
|
|
5298
6218
|
}
|
|
6219
|
+
|
|
6220
|
+
export namespace NewFloatingBulkWithProrationPrice {
|
|
6221
|
+
/**
|
|
6222
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
6223
|
+
* months.
|
|
6224
|
+
*/
|
|
6225
|
+
export interface BillingCycleConfiguration {
|
|
6226
|
+
/**
|
|
6227
|
+
* The duration of the billing period.
|
|
6228
|
+
*/
|
|
6229
|
+
duration: number;
|
|
6230
|
+
|
|
6231
|
+
/**
|
|
6232
|
+
* The unit of billing period duration.
|
|
6233
|
+
*/
|
|
6234
|
+
duration_unit: 'day' | 'month';
|
|
6235
|
+
}
|
|
6236
|
+
|
|
6237
|
+
/**
|
|
6238
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
6239
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
6240
|
+
*/
|
|
6241
|
+
export interface InvoicingCycleConfiguration {
|
|
6242
|
+
/**
|
|
6243
|
+
* The duration of the billing period.
|
|
6244
|
+
*/
|
|
6245
|
+
duration: number;
|
|
6246
|
+
|
|
6247
|
+
/**
|
|
6248
|
+
* The unit of billing period duration.
|
|
6249
|
+
*/
|
|
6250
|
+
duration_unit: 'day' | 'month';
|
|
6251
|
+
}
|
|
6252
|
+
}
|
|
5299
6253
|
}
|
|
5300
6254
|
|
|
5301
6255
|
export interface AddAdjustment {
|