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.
@@ -414,8 +414,10 @@ export declare class Subscriptions extends APIResource {
414
414
  * recently created subscription. For a full discussion of the subscription
415
415
  * resource, see [Subscription](../guides/concepts#subscription).
416
416
  *
417
- * Subscriptions can be filtered to a single customer by passing in the
418
- * `customer_id` query parameter or the `external_customer_id` query parameter.
417
+ * Subscriptions can be filtered for a specific customer by using either the
418
+ * customer_id or external_customer_id query parameters. To filter subscriptions
419
+ * for multiple customers, use the customer_id[] or external_customer_id[] query
420
+ * parameters.
419
421
  */
420
422
  list(query?: SubscriptionListParams, options?: Core.RequestOptions): Core.PagePromise<SubscriptionsPage, Subscription>;
421
423
  list(options?: Core.RequestOptions): Core.PagePromise<SubscriptionsPage, Subscription>;
@@ -918,6 +920,7 @@ export interface Subscription {
918
920
  * the plan's behavior. If null, defaults to the customer's setting.
919
921
  */
920
922
  auto_collection: boolean | null;
923
+ billing_cycle_anchor_configuration: Subscription.BillingCycleAnchorConfiguration;
921
924
  /**
922
925
  * The day of the month on which the billing cycle is anchored. If the maximum
923
926
  * number of days in a month is greater than this value, the last day of the month
@@ -1119,6 +1122,26 @@ export declare namespace Subscription {
1119
1122
  reason: string | null;
1120
1123
  }
1121
1124
  }
1125
+ interface BillingCycleAnchorConfiguration {
1126
+ /**
1127
+ * The day of the month on which the billing cycle is anchored. If the maximum
1128
+ * number of days in a month is greater than this value, the last day of the month
1129
+ * is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
1130
+ * period begins on the 30th.
1131
+ */
1132
+ day: number;
1133
+ /**
1134
+ * The month on which the billing cycle is anchored (e.g. a quarterly price
1135
+ * anchored in February would have cycles starting February, May, August, and
1136
+ * November).
1137
+ */
1138
+ month?: number | null;
1139
+ /**
1140
+ * The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
1141
+ * anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
1142
+ */
1143
+ year?: number | null;
1144
+ }
1122
1145
  interface AmountDiscountInterval {
1123
1146
  /**
1124
1147
  * Only available if discount_type is `amount`.
@@ -1876,6 +1899,7 @@ export interface SubscriptionCreateParams {
1876
1899
  align_billing_with_subscription_start_date?: boolean;
1877
1900
  auto_collection?: boolean | null;
1878
1901
  aws_region?: string | null;
1902
+ billing_cycle_anchor_configuration?: SubscriptionCreateParams.BillingCycleAnchorConfiguration | null;
1879
1903
  coupon_redemption_code?: string | null;
1880
1904
  credits_overage_rate?: number | null;
1881
1905
  customer_id?: string | null;
@@ -1911,6 +1935,26 @@ export interface SubscriptionCreateParams {
1911
1935
  start_date?: string | null;
1912
1936
  }
1913
1937
  export declare namespace SubscriptionCreateParams {
1938
+ interface BillingCycleAnchorConfiguration {
1939
+ /**
1940
+ * The day of the month on which the billing cycle is anchored. If the maximum
1941
+ * number of days in a month is greater than this value, the last day of the month
1942
+ * is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
1943
+ * period begins on the 30th.
1944
+ */
1945
+ day: number;
1946
+ /**
1947
+ * The month on which the billing cycle is anchored (e.g. a quarterly price
1948
+ * anchored in February would have cycles starting February, May, August, and
1949
+ * November).
1950
+ */
1951
+ month?: number | null;
1952
+ /**
1953
+ * The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
1954
+ * anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
1955
+ */
1956
+ year?: number | null;
1957
+ }
1914
1958
  interface OverrideUnitPrice {
1915
1959
  id: string;
1916
1960
  model_type: 'unit';
@@ -2887,7 +2931,7 @@ export interface SubscriptionListParams extends PageParams {
2887
2931
  'created_at[gte]'?: string | null;
2888
2932
  'created_at[lt]'?: string | null;
2889
2933
  'created_at[lte]'?: string | null;
2890
- customer_id?: string | null;
2934
+ customer_id?: Array<string> | null;
2891
2935
  external_customer_id?: string | null;
2892
2936
  status?: 'active' | 'ended' | 'upcoming' | null;
2893
2937
  }
@@ -3115,6 +3159,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3115
3159
  * this is true, and in-arrears if this is false.
3116
3160
  */
3117
3161
  billed_in_advance?: boolean | null;
3162
+ /**
3163
+ * For custom cadence: specifies the duration of the billing period in days or
3164
+ * months.
3165
+ */
3166
+ billing_cycle_configuration?: NewFloatingUnitPrice.BillingCycleConfiguration | null;
3118
3167
  /**
3119
3168
  * The per unit conversion rate of the price currency to the invoicing currency.
3120
3169
  */
@@ -3132,6 +3181,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3132
3181
  * The property used to group this price on an invoice
3133
3182
  */
3134
3183
  invoice_grouping_key?: string | null;
3184
+ /**
3185
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3186
+ * If unspecified, a single invoice is produced per billing cycle.
3187
+ */
3188
+ invoicing_cycle_configuration?: NewFloatingUnitPrice.InvoicingCycleConfiguration | null;
3135
3189
  /**
3136
3190
  * User-specified key/value pairs for the resource. Individual keys can be removed
3137
3191
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3146,6 +3200,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3146
3200
  */
3147
3201
  unit_amount: string;
3148
3202
  }
3203
+ /**
3204
+ * For custom cadence: specifies the duration of the billing period in days or
3205
+ * months.
3206
+ */
3207
+ interface BillingCycleConfiguration {
3208
+ /**
3209
+ * The duration of the billing period.
3210
+ */
3211
+ duration: number;
3212
+ /**
3213
+ * The unit of billing period duration.
3214
+ */
3215
+ duration_unit: 'day' | 'month';
3216
+ }
3217
+ /**
3218
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3219
+ * If unspecified, a single invoice is produced per billing cycle.
3220
+ */
3221
+ interface InvoicingCycleConfiguration {
3222
+ /**
3223
+ * The duration of the billing period.
3224
+ */
3225
+ duration: number;
3226
+ /**
3227
+ * The unit of billing period duration.
3228
+ */
3229
+ duration_unit: 'day' | 'month';
3230
+ }
3149
3231
  }
3150
3232
  interface NewFloatingPackagePrice {
3151
3233
  /**
@@ -3176,6 +3258,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3176
3258
  * this is true, and in-arrears if this is false.
3177
3259
  */
3178
3260
  billed_in_advance?: boolean | null;
3261
+ /**
3262
+ * For custom cadence: specifies the duration of the billing period in days or
3263
+ * months.
3264
+ */
3265
+ billing_cycle_configuration?: NewFloatingPackagePrice.BillingCycleConfiguration | null;
3179
3266
  /**
3180
3267
  * The per unit conversion rate of the price currency to the invoicing currency.
3181
3268
  */
@@ -3193,6 +3280,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3193
3280
  * The property used to group this price on an invoice
3194
3281
  */
3195
3282
  invoice_grouping_key?: string | null;
3283
+ /**
3284
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3285
+ * If unspecified, a single invoice is produced per billing cycle.
3286
+ */
3287
+ invoicing_cycle_configuration?: NewFloatingPackagePrice.InvoicingCycleConfiguration | null;
3196
3288
  /**
3197
3289
  * User-specified key/value pairs for the resource. Individual keys can be removed
3198
3290
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3212,6 +3304,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3212
3304
  */
3213
3305
  package_size: number;
3214
3306
  }
3307
+ /**
3308
+ * For custom cadence: specifies the duration of the billing period in days or
3309
+ * months.
3310
+ */
3311
+ interface BillingCycleConfiguration {
3312
+ /**
3313
+ * The duration of the billing period.
3314
+ */
3315
+ duration: number;
3316
+ /**
3317
+ * The unit of billing period duration.
3318
+ */
3319
+ duration_unit: 'day' | 'month';
3320
+ }
3321
+ /**
3322
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3323
+ * If unspecified, a single invoice is produced per billing cycle.
3324
+ */
3325
+ interface InvoicingCycleConfiguration {
3326
+ /**
3327
+ * The duration of the billing period.
3328
+ */
3329
+ duration: number;
3330
+ /**
3331
+ * The unit of billing period duration.
3332
+ */
3333
+ duration_unit: 'day' | 'month';
3334
+ }
3215
3335
  }
3216
3336
  interface NewFloatingMatrixPrice {
3217
3337
  /**
@@ -3242,6 +3362,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3242
3362
  * this is true, and in-arrears if this is false.
3243
3363
  */
3244
3364
  billed_in_advance?: boolean | null;
3365
+ /**
3366
+ * For custom cadence: specifies the duration of the billing period in days or
3367
+ * months.
3368
+ */
3369
+ billing_cycle_configuration?: NewFloatingMatrixPrice.BillingCycleConfiguration | null;
3245
3370
  /**
3246
3371
  * The per unit conversion rate of the price currency to the invoicing currency.
3247
3372
  */
@@ -3259,6 +3384,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3259
3384
  * The property used to group this price on an invoice
3260
3385
  */
3261
3386
  invoice_grouping_key?: string | null;
3387
+ /**
3388
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3389
+ * If unspecified, a single invoice is produced per billing cycle.
3390
+ */
3391
+ invoicing_cycle_configuration?: NewFloatingMatrixPrice.InvoicingCycleConfiguration | null;
3262
3392
  /**
3263
3393
  * User-specified key/value pairs for the resource. Individual keys can be removed
3264
3394
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3295,6 +3425,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3295
3425
  unit_amount: string;
3296
3426
  }
3297
3427
  }
3428
+ /**
3429
+ * For custom cadence: specifies the duration of the billing period in days or
3430
+ * months.
3431
+ */
3432
+ interface BillingCycleConfiguration {
3433
+ /**
3434
+ * The duration of the billing period.
3435
+ */
3436
+ duration: number;
3437
+ /**
3438
+ * The unit of billing period duration.
3439
+ */
3440
+ duration_unit: 'day' | 'month';
3441
+ }
3442
+ /**
3443
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3444
+ * If unspecified, a single invoice is produced per billing cycle.
3445
+ */
3446
+ interface InvoicingCycleConfiguration {
3447
+ /**
3448
+ * The duration of the billing period.
3449
+ */
3450
+ duration: number;
3451
+ /**
3452
+ * The unit of billing period duration.
3453
+ */
3454
+ duration_unit: 'day' | 'month';
3455
+ }
3298
3456
  }
3299
3457
  interface NewFloatingMatrixWithAllocationPrice {
3300
3458
  /**
@@ -3325,6 +3483,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3325
3483
  * this is true, and in-arrears if this is false.
3326
3484
  */
3327
3485
  billed_in_advance?: boolean | null;
3486
+ /**
3487
+ * For custom cadence: specifies the duration of the billing period in days or
3488
+ * months.
3489
+ */
3490
+ billing_cycle_configuration?: NewFloatingMatrixWithAllocationPrice.BillingCycleConfiguration | null;
3328
3491
  /**
3329
3492
  * The per unit conversion rate of the price currency to the invoicing currency.
3330
3493
  */
@@ -3342,6 +3505,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3342
3505
  * The property used to group this price on an invoice
3343
3506
  */
3344
3507
  invoice_grouping_key?: string | null;
3508
+ /**
3509
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3510
+ * If unspecified, a single invoice is produced per billing cycle.
3511
+ */
3512
+ invoicing_cycle_configuration?: NewFloatingMatrixWithAllocationPrice.InvoicingCycleConfiguration | null;
3345
3513
  /**
3346
3514
  * User-specified key/value pairs for the resource. Individual keys can be removed
3347
3515
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3382,6 +3550,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3382
3550
  unit_amount: string;
3383
3551
  }
3384
3552
  }
3553
+ /**
3554
+ * For custom cadence: specifies the duration of the billing period in days or
3555
+ * months.
3556
+ */
3557
+ interface BillingCycleConfiguration {
3558
+ /**
3559
+ * The duration of the billing period.
3560
+ */
3561
+ duration: number;
3562
+ /**
3563
+ * The unit of billing period duration.
3564
+ */
3565
+ duration_unit: 'day' | 'month';
3566
+ }
3567
+ /**
3568
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3569
+ * If unspecified, a single invoice is produced per billing cycle.
3570
+ */
3571
+ interface InvoicingCycleConfiguration {
3572
+ /**
3573
+ * The duration of the billing period.
3574
+ */
3575
+ duration: number;
3576
+ /**
3577
+ * The unit of billing period duration.
3578
+ */
3579
+ duration_unit: 'day' | 'month';
3580
+ }
3385
3581
  }
3386
3582
  interface NewFloatingTieredPrice {
3387
3583
  /**
@@ -3412,6 +3608,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3412
3608
  * this is true, and in-arrears if this is false.
3413
3609
  */
3414
3610
  billed_in_advance?: boolean | null;
3611
+ /**
3612
+ * For custom cadence: specifies the duration of the billing period in days or
3613
+ * months.
3614
+ */
3615
+ billing_cycle_configuration?: NewFloatingTieredPrice.BillingCycleConfiguration | null;
3415
3616
  /**
3416
3617
  * The per unit conversion rate of the price currency to the invoicing currency.
3417
3618
  */
@@ -3429,6 +3630,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3429
3630
  * The property used to group this price on an invoice
3430
3631
  */
3431
3632
  invoice_grouping_key?: string | null;
3633
+ /**
3634
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3635
+ * If unspecified, a single invoice is produced per billing cycle.
3636
+ */
3637
+ invoicing_cycle_configuration?: NewFloatingTieredPrice.InvoicingCycleConfiguration | null;
3432
3638
  /**
3433
3639
  * User-specified key/value pairs for the resource. Individual keys can be removed
3434
3640
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3459,6 +3665,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3459
3665
  last_unit?: number | null;
3460
3666
  }
3461
3667
  }
3668
+ /**
3669
+ * For custom cadence: specifies the duration of the billing period in days or
3670
+ * months.
3671
+ */
3672
+ interface BillingCycleConfiguration {
3673
+ /**
3674
+ * The duration of the billing period.
3675
+ */
3676
+ duration: number;
3677
+ /**
3678
+ * The unit of billing period duration.
3679
+ */
3680
+ duration_unit: 'day' | 'month';
3681
+ }
3682
+ /**
3683
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3684
+ * If unspecified, a single invoice is produced per billing cycle.
3685
+ */
3686
+ interface InvoicingCycleConfiguration {
3687
+ /**
3688
+ * The duration of the billing period.
3689
+ */
3690
+ duration: number;
3691
+ /**
3692
+ * The unit of billing period duration.
3693
+ */
3694
+ duration_unit: 'day' | 'month';
3695
+ }
3462
3696
  }
3463
3697
  interface NewFloatingTieredBpsPrice {
3464
3698
  /**
@@ -3489,6 +3723,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3489
3723
  * this is true, and in-arrears if this is false.
3490
3724
  */
3491
3725
  billed_in_advance?: boolean | null;
3726
+ /**
3727
+ * For custom cadence: specifies the duration of the billing period in days or
3728
+ * months.
3729
+ */
3730
+ billing_cycle_configuration?: NewFloatingTieredBpsPrice.BillingCycleConfiguration | null;
3492
3731
  /**
3493
3732
  * The per unit conversion rate of the price currency to the invoicing currency.
3494
3733
  */
@@ -3506,6 +3745,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3506
3745
  * The property used to group this price on an invoice
3507
3746
  */
3508
3747
  invoice_grouping_key?: string | null;
3748
+ /**
3749
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3750
+ * If unspecified, a single invoice is produced per billing cycle.
3751
+ */
3752
+ invoicing_cycle_configuration?: NewFloatingTieredBpsPrice.InvoicingCycleConfiguration | null;
3509
3753
  /**
3510
3754
  * User-specified key/value pairs for the resource. Individual keys can be removed
3511
3755
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3541,6 +3785,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3541
3785
  per_unit_maximum?: string | null;
3542
3786
  }
3543
3787
  }
3788
+ /**
3789
+ * For custom cadence: specifies the duration of the billing period in days or
3790
+ * months.
3791
+ */
3792
+ interface BillingCycleConfiguration {
3793
+ /**
3794
+ * The duration of the billing period.
3795
+ */
3796
+ duration: number;
3797
+ /**
3798
+ * The unit of billing period duration.
3799
+ */
3800
+ duration_unit: 'day' | 'month';
3801
+ }
3802
+ /**
3803
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3804
+ * If unspecified, a single invoice is produced per billing cycle.
3805
+ */
3806
+ interface InvoicingCycleConfiguration {
3807
+ /**
3808
+ * The duration of the billing period.
3809
+ */
3810
+ duration: number;
3811
+ /**
3812
+ * The unit of billing period duration.
3813
+ */
3814
+ duration_unit: 'day' | 'month';
3815
+ }
3544
3816
  }
3545
3817
  interface NewFloatingBpsPrice {
3546
3818
  bps_config: NewFloatingBpsPrice.BpsConfig;
@@ -3571,6 +3843,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3571
3843
  * this is true, and in-arrears if this is false.
3572
3844
  */
3573
3845
  billed_in_advance?: boolean | null;
3846
+ /**
3847
+ * For custom cadence: specifies the duration of the billing period in days or
3848
+ * months.
3849
+ */
3850
+ billing_cycle_configuration?: NewFloatingBpsPrice.BillingCycleConfiguration | null;
3574
3851
  /**
3575
3852
  * The per unit conversion rate of the price currency to the invoicing currency.
3576
3853
  */
@@ -3588,6 +3865,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3588
3865
  * The property used to group this price on an invoice
3589
3866
  */
3590
3867
  invoice_grouping_key?: string | null;
3868
+ /**
3869
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3870
+ * If unspecified, a single invoice is produced per billing cycle.
3871
+ */
3872
+ invoicing_cycle_configuration?: NewFloatingBpsPrice.InvoicingCycleConfiguration | null;
3591
3873
  /**
3592
3874
  * User-specified key/value pairs for the resource. Individual keys can be removed
3593
3875
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3606,6 +3888,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3606
3888
  */
3607
3889
  per_unit_maximum?: string | null;
3608
3890
  }
3891
+ /**
3892
+ * For custom cadence: specifies the duration of the billing period in days or
3893
+ * months.
3894
+ */
3895
+ interface BillingCycleConfiguration {
3896
+ /**
3897
+ * The duration of the billing period.
3898
+ */
3899
+ duration: number;
3900
+ /**
3901
+ * The unit of billing period duration.
3902
+ */
3903
+ duration_unit: 'day' | 'month';
3904
+ }
3905
+ /**
3906
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3907
+ * If unspecified, a single invoice is produced per billing cycle.
3908
+ */
3909
+ interface InvoicingCycleConfiguration {
3910
+ /**
3911
+ * The duration of the billing period.
3912
+ */
3913
+ duration: number;
3914
+ /**
3915
+ * The unit of billing period duration.
3916
+ */
3917
+ duration_unit: 'day' | 'month';
3918
+ }
3609
3919
  }
3610
3920
  interface NewFloatingBulkBpsPrice {
3611
3921
  bulk_bps_config: NewFloatingBulkBpsPrice.BulkBpsConfig;
@@ -3636,6 +3946,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3636
3946
  * this is true, and in-arrears if this is false.
3637
3947
  */
3638
3948
  billed_in_advance?: boolean | null;
3949
+ /**
3950
+ * For custom cadence: specifies the duration of the billing period in days or
3951
+ * months.
3952
+ */
3953
+ billing_cycle_configuration?: NewFloatingBulkBpsPrice.BillingCycleConfiguration | null;
3639
3954
  /**
3640
3955
  * The per unit conversion rate of the price currency to the invoicing currency.
3641
3956
  */
@@ -3653,6 +3968,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3653
3968
  * The property used to group this price on an invoice
3654
3969
  */
3655
3970
  invoice_grouping_key?: string | null;
3971
+ /**
3972
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
3973
+ * If unspecified, a single invoice is produced per billing cycle.
3974
+ */
3975
+ invoicing_cycle_configuration?: NewFloatingBulkBpsPrice.InvoicingCycleConfiguration | null;
3656
3976
  /**
3657
3977
  * User-specified key/value pairs for the resource. Individual keys can be removed
3658
3978
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3684,6 +4004,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3684
4004
  per_unit_maximum?: string | null;
3685
4005
  }
3686
4006
  }
4007
+ /**
4008
+ * For custom cadence: specifies the duration of the billing period in days or
4009
+ * months.
4010
+ */
4011
+ interface BillingCycleConfiguration {
4012
+ /**
4013
+ * The duration of the billing period.
4014
+ */
4015
+ duration: number;
4016
+ /**
4017
+ * The unit of billing period duration.
4018
+ */
4019
+ duration_unit: 'day' | 'month';
4020
+ }
4021
+ /**
4022
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4023
+ * If unspecified, a single invoice is produced per billing cycle.
4024
+ */
4025
+ interface InvoicingCycleConfiguration {
4026
+ /**
4027
+ * The duration of the billing period.
4028
+ */
4029
+ duration: number;
4030
+ /**
4031
+ * The unit of billing period duration.
4032
+ */
4033
+ duration_unit: 'day' | 'month';
4034
+ }
3687
4035
  }
3688
4036
  interface NewFloatingBulkPrice {
3689
4037
  bulk_config: NewFloatingBulkPrice.BulkConfig;
@@ -3714,6 +4062,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3714
4062
  * this is true, and in-arrears if this is false.
3715
4063
  */
3716
4064
  billed_in_advance?: boolean | null;
4065
+ /**
4066
+ * For custom cadence: specifies the duration of the billing period in days or
4067
+ * months.
4068
+ */
4069
+ billing_cycle_configuration?: NewFloatingBulkPrice.BillingCycleConfiguration | null;
3717
4070
  /**
3718
4071
  * The per unit conversion rate of the price currency to the invoicing currency.
3719
4072
  */
@@ -3731,6 +4084,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3731
4084
  * The property used to group this price on an invoice
3732
4085
  */
3733
4086
  invoice_grouping_key?: string | null;
4087
+ /**
4088
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4089
+ * If unspecified, a single invoice is produced per billing cycle.
4090
+ */
4091
+ invoicing_cycle_configuration?: NewFloatingBulkPrice.InvoicingCycleConfiguration | null;
3734
4092
  /**
3735
4093
  * User-specified key/value pairs for the resource. Individual keys can be removed
3736
4094
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3757,6 +4115,34 @@ export declare namespace SubscriptionPriceIntervalsParams {
3757
4115
  maximum_units?: number | null;
3758
4116
  }
3759
4117
  }
4118
+ /**
4119
+ * For custom cadence: specifies the duration of the billing period in days or
4120
+ * months.
4121
+ */
4122
+ interface BillingCycleConfiguration {
4123
+ /**
4124
+ * The duration of the billing period.
4125
+ */
4126
+ duration: number;
4127
+ /**
4128
+ * The unit of billing period duration.
4129
+ */
4130
+ duration_unit: 'day' | 'month';
4131
+ }
4132
+ /**
4133
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4134
+ * If unspecified, a single invoice is produced per billing cycle.
4135
+ */
4136
+ interface InvoicingCycleConfiguration {
4137
+ /**
4138
+ * The duration of the billing period.
4139
+ */
4140
+ duration: number;
4141
+ /**
4142
+ * The unit of billing period duration.
4143
+ */
4144
+ duration_unit: 'day' | 'month';
4145
+ }
3760
4146
  }
3761
4147
  interface NewFloatingThresholdTotalAmountPrice {
3762
4148
  /**
@@ -3787,6 +4173,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3787
4173
  * this is true, and in-arrears if this is false.
3788
4174
  */
3789
4175
  billed_in_advance?: boolean | null;
4176
+ /**
4177
+ * For custom cadence: specifies the duration of the billing period in days or
4178
+ * months.
4179
+ */
4180
+ billing_cycle_configuration?: NewFloatingThresholdTotalAmountPrice.BillingCycleConfiguration | null;
3790
4181
  /**
3791
4182
  * The per unit conversion rate of the price currency to the invoicing currency.
3792
4183
  */
@@ -3804,6 +4195,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3804
4195
  * The property used to group this price on an invoice
3805
4196
  */
3806
4197
  invoice_grouping_key?: string | null;
4198
+ /**
4199
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4200
+ * If unspecified, a single invoice is produced per billing cycle.
4201
+ */
4202
+ invoicing_cycle_configuration?: NewFloatingThresholdTotalAmountPrice.InvoicingCycleConfiguration | null;
3807
4203
  /**
3808
4204
  * User-specified key/value pairs for the resource. Individual keys can be removed
3809
4205
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3811,6 +4207,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
3811
4207
  */
3812
4208
  metadata?: Record<string, string | null> | null;
3813
4209
  }
4210
+ namespace NewFloatingThresholdTotalAmountPrice {
4211
+ /**
4212
+ * For custom cadence: specifies the duration of the billing period in days or
4213
+ * months.
4214
+ */
4215
+ interface BillingCycleConfiguration {
4216
+ /**
4217
+ * The duration of the billing period.
4218
+ */
4219
+ duration: number;
4220
+ /**
4221
+ * The unit of billing period duration.
4222
+ */
4223
+ duration_unit: 'day' | 'month';
4224
+ }
4225
+ /**
4226
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4227
+ * If unspecified, a single invoice is produced per billing cycle.
4228
+ */
4229
+ interface InvoicingCycleConfiguration {
4230
+ /**
4231
+ * The duration of the billing period.
4232
+ */
4233
+ duration: number;
4234
+ /**
4235
+ * The unit of billing period duration.
4236
+ */
4237
+ duration_unit: 'day' | 'month';
4238
+ }
4239
+ }
3814
4240
  interface NewFloatingTieredPackagePrice {
3815
4241
  /**
3816
4242
  * The cadence to bill for this price on.
@@ -3840,6 +4266,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3840
4266
  * this is true, and in-arrears if this is false.
3841
4267
  */
3842
4268
  billed_in_advance?: boolean | null;
4269
+ /**
4270
+ * For custom cadence: specifies the duration of the billing period in days or
4271
+ * months.
4272
+ */
4273
+ billing_cycle_configuration?: NewFloatingTieredPackagePrice.BillingCycleConfiguration | null;
3843
4274
  /**
3844
4275
  * The per unit conversion rate of the price currency to the invoicing currency.
3845
4276
  */
@@ -3857,6 +4288,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3857
4288
  * The property used to group this price on an invoice
3858
4289
  */
3859
4290
  invoice_grouping_key?: string | null;
4291
+ /**
4292
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4293
+ * If unspecified, a single invoice is produced per billing cycle.
4294
+ */
4295
+ invoicing_cycle_configuration?: NewFloatingTieredPackagePrice.InvoicingCycleConfiguration | null;
3860
4296
  /**
3861
4297
  * User-specified key/value pairs for the resource. Individual keys can be removed
3862
4298
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3864,6 +4300,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
3864
4300
  */
3865
4301
  metadata?: Record<string, string | null> | null;
3866
4302
  }
4303
+ namespace NewFloatingTieredPackagePrice {
4304
+ /**
4305
+ * For custom cadence: specifies the duration of the billing period in days or
4306
+ * months.
4307
+ */
4308
+ interface BillingCycleConfiguration {
4309
+ /**
4310
+ * The duration of the billing period.
4311
+ */
4312
+ duration: number;
4313
+ /**
4314
+ * The unit of billing period duration.
4315
+ */
4316
+ duration_unit: 'day' | 'month';
4317
+ }
4318
+ /**
4319
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4320
+ * If unspecified, a single invoice is produced per billing cycle.
4321
+ */
4322
+ interface InvoicingCycleConfiguration {
4323
+ /**
4324
+ * The duration of the billing period.
4325
+ */
4326
+ duration: number;
4327
+ /**
4328
+ * The unit of billing period duration.
4329
+ */
4330
+ duration_unit: 'day' | 'month';
4331
+ }
4332
+ }
3867
4333
  interface NewFloatingGroupedTieredPrice {
3868
4334
  /**
3869
4335
  * The cadence to bill for this price on.
@@ -3893,6 +4359,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3893
4359
  * this is true, and in-arrears if this is false.
3894
4360
  */
3895
4361
  billed_in_advance?: boolean | null;
4362
+ /**
4363
+ * For custom cadence: specifies the duration of the billing period in days or
4364
+ * months.
4365
+ */
4366
+ billing_cycle_configuration?: NewFloatingGroupedTieredPrice.BillingCycleConfiguration | null;
3896
4367
  /**
3897
4368
  * The per unit conversion rate of the price currency to the invoicing currency.
3898
4369
  */
@@ -3910,6 +4381,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3910
4381
  * The property used to group this price on an invoice
3911
4382
  */
3912
4383
  invoice_grouping_key?: string | null;
4384
+ /**
4385
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4386
+ * If unspecified, a single invoice is produced per billing cycle.
4387
+ */
4388
+ invoicing_cycle_configuration?: NewFloatingGroupedTieredPrice.InvoicingCycleConfiguration | null;
3913
4389
  /**
3914
4390
  * User-specified key/value pairs for the resource. Individual keys can be removed
3915
4391
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3917,6 +4393,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
3917
4393
  */
3918
4394
  metadata?: Record<string, string | null> | null;
3919
4395
  }
4396
+ namespace NewFloatingGroupedTieredPrice {
4397
+ /**
4398
+ * For custom cadence: specifies the duration of the billing period in days or
4399
+ * months.
4400
+ */
4401
+ interface BillingCycleConfiguration {
4402
+ /**
4403
+ * The duration of the billing period.
4404
+ */
4405
+ duration: number;
4406
+ /**
4407
+ * The unit of billing period duration.
4408
+ */
4409
+ duration_unit: 'day' | 'month';
4410
+ }
4411
+ /**
4412
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4413
+ * If unspecified, a single invoice is produced per billing cycle.
4414
+ */
4415
+ interface InvoicingCycleConfiguration {
4416
+ /**
4417
+ * The duration of the billing period.
4418
+ */
4419
+ duration: number;
4420
+ /**
4421
+ * The unit of billing period duration.
4422
+ */
4423
+ duration_unit: 'day' | 'month';
4424
+ }
4425
+ }
3920
4426
  interface NewFloatingTieredWithMinimumPrice {
3921
4427
  /**
3922
4428
  * The cadence to bill for this price on.
@@ -3946,6 +4452,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3946
4452
  * this is true, and in-arrears if this is false.
3947
4453
  */
3948
4454
  billed_in_advance?: boolean | null;
4455
+ /**
4456
+ * For custom cadence: specifies the duration of the billing period in days or
4457
+ * months.
4458
+ */
4459
+ billing_cycle_configuration?: NewFloatingTieredWithMinimumPrice.BillingCycleConfiguration | null;
3949
4460
  /**
3950
4461
  * The per unit conversion rate of the price currency to the invoicing currency.
3951
4462
  */
@@ -3963,6 +4474,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3963
4474
  * The property used to group this price on an invoice
3964
4475
  */
3965
4476
  invoice_grouping_key?: string | null;
4477
+ /**
4478
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4479
+ * If unspecified, a single invoice is produced per billing cycle.
4480
+ */
4481
+ invoicing_cycle_configuration?: NewFloatingTieredWithMinimumPrice.InvoicingCycleConfiguration | null;
3966
4482
  /**
3967
4483
  * User-specified key/value pairs for the resource. Individual keys can be removed
3968
4484
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3970,6 +4486,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
3970
4486
  */
3971
4487
  metadata?: Record<string, string | null> | null;
3972
4488
  }
4489
+ namespace NewFloatingTieredWithMinimumPrice {
4490
+ /**
4491
+ * For custom cadence: specifies the duration of the billing period in days or
4492
+ * months.
4493
+ */
4494
+ interface BillingCycleConfiguration {
4495
+ /**
4496
+ * The duration of the billing period.
4497
+ */
4498
+ duration: number;
4499
+ /**
4500
+ * The unit of billing period duration.
4501
+ */
4502
+ duration_unit: 'day' | 'month';
4503
+ }
4504
+ /**
4505
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4506
+ * If unspecified, a single invoice is produced per billing cycle.
4507
+ */
4508
+ interface InvoicingCycleConfiguration {
4509
+ /**
4510
+ * The duration of the billing period.
4511
+ */
4512
+ duration: number;
4513
+ /**
4514
+ * The unit of billing period duration.
4515
+ */
4516
+ duration_unit: 'day' | 'month';
4517
+ }
4518
+ }
3973
4519
  interface NewFloatingPackageWithAllocationPrice {
3974
4520
  /**
3975
4521
  * The cadence to bill for this price on.
@@ -3999,6 +4545,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
3999
4545
  * this is true, and in-arrears if this is false.
4000
4546
  */
4001
4547
  billed_in_advance?: boolean | null;
4548
+ /**
4549
+ * For custom cadence: specifies the duration of the billing period in days or
4550
+ * months.
4551
+ */
4552
+ billing_cycle_configuration?: NewFloatingPackageWithAllocationPrice.BillingCycleConfiguration | null;
4002
4553
  /**
4003
4554
  * The per unit conversion rate of the price currency to the invoicing currency.
4004
4555
  */
@@ -4016,6 +4567,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4016
4567
  * The property used to group this price on an invoice
4017
4568
  */
4018
4569
  invoice_grouping_key?: string | null;
4570
+ /**
4571
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4572
+ * If unspecified, a single invoice is produced per billing cycle.
4573
+ */
4574
+ invoicing_cycle_configuration?: NewFloatingPackageWithAllocationPrice.InvoicingCycleConfiguration | null;
4019
4575
  /**
4020
4576
  * User-specified key/value pairs for the resource. Individual keys can be removed
4021
4577
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4023,6 +4579,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
4023
4579
  */
4024
4580
  metadata?: Record<string, string | null> | null;
4025
4581
  }
4582
+ namespace NewFloatingPackageWithAllocationPrice {
4583
+ /**
4584
+ * For custom cadence: specifies the duration of the billing period in days or
4585
+ * months.
4586
+ */
4587
+ interface BillingCycleConfiguration {
4588
+ /**
4589
+ * The duration of the billing period.
4590
+ */
4591
+ duration: number;
4592
+ /**
4593
+ * The unit of billing period duration.
4594
+ */
4595
+ duration_unit: 'day' | 'month';
4596
+ }
4597
+ /**
4598
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4599
+ * If unspecified, a single invoice is produced per billing cycle.
4600
+ */
4601
+ interface InvoicingCycleConfiguration {
4602
+ /**
4603
+ * The duration of the billing period.
4604
+ */
4605
+ duration: number;
4606
+ /**
4607
+ * The unit of billing period duration.
4608
+ */
4609
+ duration_unit: 'day' | 'month';
4610
+ }
4611
+ }
4026
4612
  interface NewFloatingTieredPackageWithMinimumPrice {
4027
4613
  /**
4028
4614
  * The cadence to bill for this price on.
@@ -4052,6 +4638,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4052
4638
  * this is true, and in-arrears if this is false.
4053
4639
  */
4054
4640
  billed_in_advance?: boolean | null;
4641
+ /**
4642
+ * For custom cadence: specifies the duration of the billing period in days or
4643
+ * months.
4644
+ */
4645
+ billing_cycle_configuration?: NewFloatingTieredPackageWithMinimumPrice.BillingCycleConfiguration | null;
4055
4646
  /**
4056
4647
  * The per unit conversion rate of the price currency to the invoicing currency.
4057
4648
  */
@@ -4069,6 +4660,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4069
4660
  * The property used to group this price on an invoice
4070
4661
  */
4071
4662
  invoice_grouping_key?: string | null;
4663
+ /**
4664
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4665
+ * If unspecified, a single invoice is produced per billing cycle.
4666
+ */
4667
+ invoicing_cycle_configuration?: NewFloatingTieredPackageWithMinimumPrice.InvoicingCycleConfiguration | null;
4072
4668
  /**
4073
4669
  * User-specified key/value pairs for the resource. Individual keys can be removed
4074
4670
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4076,6 +4672,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
4076
4672
  */
4077
4673
  metadata?: Record<string, string | null> | null;
4078
4674
  }
4675
+ namespace NewFloatingTieredPackageWithMinimumPrice {
4676
+ /**
4677
+ * For custom cadence: specifies the duration of the billing period in days or
4678
+ * months.
4679
+ */
4680
+ interface BillingCycleConfiguration {
4681
+ /**
4682
+ * The duration of the billing period.
4683
+ */
4684
+ duration: number;
4685
+ /**
4686
+ * The unit of billing period duration.
4687
+ */
4688
+ duration_unit: 'day' | 'month';
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
+ interface InvoicingCycleConfiguration {
4695
+ /**
4696
+ * The duration of the billing period.
4697
+ */
4698
+ duration: number;
4699
+ /**
4700
+ * The unit of billing period duration.
4701
+ */
4702
+ duration_unit: 'day' | 'month';
4703
+ }
4704
+ }
4079
4705
  interface NewFloatingUnitWithPercentPrice {
4080
4706
  /**
4081
4707
  * The cadence to bill for this price on.
@@ -4105,6 +4731,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4105
4731
  * this is true, and in-arrears if this is false.
4106
4732
  */
4107
4733
  billed_in_advance?: boolean | null;
4734
+ /**
4735
+ * For custom cadence: specifies the duration of the billing period in days or
4736
+ * months.
4737
+ */
4738
+ billing_cycle_configuration?: NewFloatingUnitWithPercentPrice.BillingCycleConfiguration | null;
4108
4739
  /**
4109
4740
  * The per unit conversion rate of the price currency to the invoicing currency.
4110
4741
  */
@@ -4122,6 +4753,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4122
4753
  * The property used to group this price on an invoice
4123
4754
  */
4124
4755
  invoice_grouping_key?: string | null;
4756
+ /**
4757
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4758
+ * If unspecified, a single invoice is produced per billing cycle.
4759
+ */
4760
+ invoicing_cycle_configuration?: NewFloatingUnitWithPercentPrice.InvoicingCycleConfiguration | null;
4125
4761
  /**
4126
4762
  * User-specified key/value pairs for the resource. Individual keys can be removed
4127
4763
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4129,6 +4765,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
4129
4765
  */
4130
4766
  metadata?: Record<string, string | null> | null;
4131
4767
  }
4768
+ namespace NewFloatingUnitWithPercentPrice {
4769
+ /**
4770
+ * For custom cadence: specifies the duration of the billing period in days or
4771
+ * months.
4772
+ */
4773
+ interface BillingCycleConfiguration {
4774
+ /**
4775
+ * The duration of the billing period.
4776
+ */
4777
+ duration: number;
4778
+ /**
4779
+ * The unit of billing period duration.
4780
+ */
4781
+ duration_unit: 'day' | 'month';
4782
+ }
4783
+ /**
4784
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4785
+ * If unspecified, a single invoice is produced per billing cycle.
4786
+ */
4787
+ interface InvoicingCycleConfiguration {
4788
+ /**
4789
+ * The duration of the billing period.
4790
+ */
4791
+ duration: number;
4792
+ /**
4793
+ * The unit of billing period duration.
4794
+ */
4795
+ duration_unit: 'day' | 'month';
4796
+ }
4797
+ }
4132
4798
  interface NewFloatingTieredWithProrationPrice {
4133
4799
  /**
4134
4800
  * The cadence to bill for this price on.
@@ -4158,6 +4824,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4158
4824
  * this is true, and in-arrears if this is false.
4159
4825
  */
4160
4826
  billed_in_advance?: boolean | null;
4827
+ /**
4828
+ * For custom cadence: specifies the duration of the billing period in days or
4829
+ * months.
4830
+ */
4831
+ billing_cycle_configuration?: NewFloatingTieredWithProrationPrice.BillingCycleConfiguration | null;
4161
4832
  /**
4162
4833
  * The per unit conversion rate of the price currency to the invoicing currency.
4163
4834
  */
@@ -4175,6 +4846,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4175
4846
  * The property used to group this price on an invoice
4176
4847
  */
4177
4848
  invoice_grouping_key?: string | null;
4849
+ /**
4850
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4851
+ * If unspecified, a single invoice is produced per billing cycle.
4852
+ */
4853
+ invoicing_cycle_configuration?: NewFloatingTieredWithProrationPrice.InvoicingCycleConfiguration | null;
4178
4854
  /**
4179
4855
  * User-specified key/value pairs for the resource. Individual keys can be removed
4180
4856
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4182,6 +4858,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
4182
4858
  */
4183
4859
  metadata?: Record<string, string | null> | null;
4184
4860
  }
4861
+ namespace NewFloatingTieredWithProrationPrice {
4862
+ /**
4863
+ * For custom cadence: specifies the duration of the billing period in days or
4864
+ * months.
4865
+ */
4866
+ interface BillingCycleConfiguration {
4867
+ /**
4868
+ * The duration of the billing period.
4869
+ */
4870
+ duration: number;
4871
+ /**
4872
+ * The unit of billing period duration.
4873
+ */
4874
+ duration_unit: 'day' | 'month';
4875
+ }
4876
+ /**
4877
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4878
+ * If unspecified, a single invoice is produced per billing cycle.
4879
+ */
4880
+ interface InvoicingCycleConfiguration {
4881
+ /**
4882
+ * The duration of the billing period.
4883
+ */
4884
+ duration: number;
4885
+ /**
4886
+ * The unit of billing period duration.
4887
+ */
4888
+ duration_unit: 'day' | 'month';
4889
+ }
4890
+ }
4185
4891
  interface NewFloatingUnitWithProrationPrice {
4186
4892
  /**
4187
4893
  * The cadence to bill for this price on.
@@ -4211,6 +4917,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4211
4917
  * this is true, and in-arrears if this is false.
4212
4918
  */
4213
4919
  billed_in_advance?: boolean | null;
4920
+ /**
4921
+ * For custom cadence: specifies the duration of the billing period in days or
4922
+ * months.
4923
+ */
4924
+ billing_cycle_configuration?: NewFloatingUnitWithProrationPrice.BillingCycleConfiguration | null;
4214
4925
  /**
4215
4926
  * The per unit conversion rate of the price currency to the invoicing currency.
4216
4927
  */
@@ -4228,6 +4939,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4228
4939
  * The property used to group this price on an invoice
4229
4940
  */
4230
4941
  invoice_grouping_key?: string | null;
4942
+ /**
4943
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4944
+ * If unspecified, a single invoice is produced per billing cycle.
4945
+ */
4946
+ invoicing_cycle_configuration?: NewFloatingUnitWithProrationPrice.InvoicingCycleConfiguration | null;
4231
4947
  /**
4232
4948
  * User-specified key/value pairs for the resource. Individual keys can be removed
4233
4949
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4235,6 +4951,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
4235
4951
  */
4236
4952
  metadata?: Record<string, string | null> | null;
4237
4953
  }
4954
+ namespace NewFloatingUnitWithProrationPrice {
4955
+ /**
4956
+ * For custom cadence: specifies the duration of the billing period in days or
4957
+ * months.
4958
+ */
4959
+ interface BillingCycleConfiguration {
4960
+ /**
4961
+ * The duration of the billing period.
4962
+ */
4963
+ duration: number;
4964
+ /**
4965
+ * The unit of billing period duration.
4966
+ */
4967
+ duration_unit: 'day' | 'month';
4968
+ }
4969
+ /**
4970
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
4971
+ * If unspecified, a single invoice is produced per billing cycle.
4972
+ */
4973
+ interface InvoicingCycleConfiguration {
4974
+ /**
4975
+ * The duration of the billing period.
4976
+ */
4977
+ duration: number;
4978
+ /**
4979
+ * The unit of billing period duration.
4980
+ */
4981
+ duration_unit: 'day' | 'month';
4982
+ }
4983
+ }
4238
4984
  interface NewFloatingGroupedAllocationPrice {
4239
4985
  /**
4240
4986
  * The cadence to bill for this price on.
@@ -4264,6 +5010,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4264
5010
  * this is true, and in-arrears if this is false.
4265
5011
  */
4266
5012
  billed_in_advance?: boolean | null;
5013
+ /**
5014
+ * For custom cadence: specifies the duration of the billing period in days or
5015
+ * months.
5016
+ */
5017
+ billing_cycle_configuration?: NewFloatingGroupedAllocationPrice.BillingCycleConfiguration | null;
4267
5018
  /**
4268
5019
  * The per unit conversion rate of the price currency to the invoicing currency.
4269
5020
  */
@@ -4281,6 +5032,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4281
5032
  * The property used to group this price on an invoice
4282
5033
  */
4283
5034
  invoice_grouping_key?: string | null;
5035
+ /**
5036
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
5037
+ * If unspecified, a single invoice is produced per billing cycle.
5038
+ */
5039
+ invoicing_cycle_configuration?: NewFloatingGroupedAllocationPrice.InvoicingCycleConfiguration | null;
4284
5040
  /**
4285
5041
  * User-specified key/value pairs for the resource. Individual keys can be removed
4286
5042
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4288,6 +5044,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
4288
5044
  */
4289
5045
  metadata?: Record<string, string | null> | null;
4290
5046
  }
5047
+ namespace NewFloatingGroupedAllocationPrice {
5048
+ /**
5049
+ * For custom cadence: specifies the duration of the billing period in days or
5050
+ * months.
5051
+ */
5052
+ interface BillingCycleConfiguration {
5053
+ /**
5054
+ * The duration of the billing period.
5055
+ */
5056
+ duration: number;
5057
+ /**
5058
+ * The unit of billing period duration.
5059
+ */
5060
+ duration_unit: 'day' | 'month';
5061
+ }
5062
+ /**
5063
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
5064
+ * If unspecified, a single invoice is produced per billing cycle.
5065
+ */
5066
+ interface InvoicingCycleConfiguration {
5067
+ /**
5068
+ * The duration of the billing period.
5069
+ */
5070
+ duration: number;
5071
+ /**
5072
+ * The unit of billing period duration.
5073
+ */
5074
+ duration_unit: 'day' | 'month';
5075
+ }
5076
+ }
4291
5077
  interface NewFloatingBulkWithProrationPrice {
4292
5078
  bulk_with_proration_config: Record<string, unknown>;
4293
5079
  /**
@@ -4317,6 +5103,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4317
5103
  * this is true, and in-arrears if this is false.
4318
5104
  */
4319
5105
  billed_in_advance?: boolean | null;
5106
+ /**
5107
+ * For custom cadence: specifies the duration of the billing period in days or
5108
+ * months.
5109
+ */
5110
+ billing_cycle_configuration?: NewFloatingBulkWithProrationPrice.BillingCycleConfiguration | null;
4320
5111
  /**
4321
5112
  * The per unit conversion rate of the price currency to the invoicing currency.
4322
5113
  */
@@ -4334,6 +5125,11 @@ export declare namespace SubscriptionPriceIntervalsParams {
4334
5125
  * The property used to group this price on an invoice
4335
5126
  */
4336
5127
  invoice_grouping_key?: string | null;
5128
+ /**
5129
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
5130
+ * If unspecified, a single invoice is produced per billing cycle.
5131
+ */
5132
+ invoicing_cycle_configuration?: NewFloatingBulkWithProrationPrice.InvoicingCycleConfiguration | null;
4337
5133
  /**
4338
5134
  * User-specified key/value pairs for the resource. Individual keys can be removed
4339
5135
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4341,6 +5137,36 @@ export declare namespace SubscriptionPriceIntervalsParams {
4341
5137
  */
4342
5138
  metadata?: Record<string, string | null> | null;
4343
5139
  }
5140
+ namespace NewFloatingBulkWithProrationPrice {
5141
+ /**
5142
+ * For custom cadence: specifies the duration of the billing period in days or
5143
+ * months.
5144
+ */
5145
+ interface BillingCycleConfiguration {
5146
+ /**
5147
+ * The duration of the billing period.
5148
+ */
5149
+ duration: number;
5150
+ /**
5151
+ * The unit of billing period duration.
5152
+ */
5153
+ duration_unit: 'day' | 'month';
5154
+ }
5155
+ /**
5156
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
5157
+ * If unspecified, a single invoice is produced per billing cycle.
5158
+ */
5159
+ interface InvoicingCycleConfiguration {
5160
+ /**
5161
+ * The duration of the billing period.
5162
+ */
5163
+ duration: number;
5164
+ /**
5165
+ * The unit of billing period duration.
5166
+ */
5167
+ duration_unit: 'day' | 'month';
5168
+ }
5169
+ }
4344
5170
  }
4345
5171
  interface AddAdjustment {
4346
5172
  /**