orb-billing 4.10.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 +13 -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 +824 -0
- 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 +959 -7
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -315,7 +315,7 @@ export declare namespace Price {
|
|
|
315
315
|
interface UnitPrice {
|
|
316
316
|
id: string;
|
|
317
317
|
billable_metric: UnitPrice.BillableMetric | null;
|
|
318
|
-
billing_cycle_configuration: UnitPrice.BillingCycleConfiguration
|
|
318
|
+
billing_cycle_configuration: UnitPrice.BillingCycleConfiguration;
|
|
319
319
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
320
320
|
conversion_rate: number | null;
|
|
321
321
|
created_at: string;
|
|
@@ -324,6 +324,7 @@ export declare namespace Price {
|
|
|
324
324
|
discount: Shared.Discount | null;
|
|
325
325
|
external_price_id: string | null;
|
|
326
326
|
fixed_price_quantity: number | null;
|
|
327
|
+
invoicing_cycle_configuration: UnitPrice.InvoicingCycleConfiguration | null;
|
|
327
328
|
item: UnitPrice.Item;
|
|
328
329
|
maximum: UnitPrice.Maximum | null;
|
|
329
330
|
maximum_amount: string | null;
|
|
@@ -354,6 +355,10 @@ export declare namespace Price {
|
|
|
354
355
|
allows_rollover: boolean;
|
|
355
356
|
currency: string;
|
|
356
357
|
}
|
|
358
|
+
interface InvoicingCycleConfiguration {
|
|
359
|
+
duration: number;
|
|
360
|
+
duration_unit: 'day' | 'month';
|
|
361
|
+
}
|
|
357
362
|
interface Item {
|
|
358
363
|
id: string;
|
|
359
364
|
name: string;
|
|
@@ -390,7 +395,7 @@ export declare namespace Price {
|
|
|
390
395
|
interface PackagePrice {
|
|
391
396
|
id: string;
|
|
392
397
|
billable_metric: PackagePrice.BillableMetric | null;
|
|
393
|
-
billing_cycle_configuration: PackagePrice.BillingCycleConfiguration
|
|
398
|
+
billing_cycle_configuration: PackagePrice.BillingCycleConfiguration;
|
|
394
399
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
395
400
|
conversion_rate: number | null;
|
|
396
401
|
created_at: string;
|
|
@@ -399,6 +404,7 @@ export declare namespace Price {
|
|
|
399
404
|
discount: Shared.Discount | null;
|
|
400
405
|
external_price_id: string | null;
|
|
401
406
|
fixed_price_quantity: number | null;
|
|
407
|
+
invoicing_cycle_configuration: PackagePrice.InvoicingCycleConfiguration | null;
|
|
402
408
|
item: PackagePrice.Item;
|
|
403
409
|
maximum: PackagePrice.Maximum | null;
|
|
404
410
|
maximum_amount: string | null;
|
|
@@ -429,6 +435,10 @@ export declare namespace Price {
|
|
|
429
435
|
allows_rollover: boolean;
|
|
430
436
|
currency: string;
|
|
431
437
|
}
|
|
438
|
+
interface InvoicingCycleConfiguration {
|
|
439
|
+
duration: number;
|
|
440
|
+
duration_unit: 'day' | 'month';
|
|
441
|
+
}
|
|
432
442
|
interface Item {
|
|
433
443
|
id: string;
|
|
434
444
|
name: string;
|
|
@@ -470,7 +480,7 @@ export declare namespace Price {
|
|
|
470
480
|
interface MatrixPrice {
|
|
471
481
|
id: string;
|
|
472
482
|
billable_metric: MatrixPrice.BillableMetric | null;
|
|
473
|
-
billing_cycle_configuration: MatrixPrice.BillingCycleConfiguration
|
|
483
|
+
billing_cycle_configuration: MatrixPrice.BillingCycleConfiguration;
|
|
474
484
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
475
485
|
conversion_rate: number | null;
|
|
476
486
|
created_at: string;
|
|
@@ -479,6 +489,7 @@ export declare namespace Price {
|
|
|
479
489
|
discount: Shared.Discount | null;
|
|
480
490
|
external_price_id: string | null;
|
|
481
491
|
fixed_price_quantity: number | null;
|
|
492
|
+
invoicing_cycle_configuration: MatrixPrice.InvoicingCycleConfiguration | null;
|
|
482
493
|
item: MatrixPrice.Item;
|
|
483
494
|
matrix_config: MatrixPrice.MatrixConfig;
|
|
484
495
|
maximum: MatrixPrice.Maximum | null;
|
|
@@ -509,6 +520,10 @@ export declare namespace Price {
|
|
|
509
520
|
allows_rollover: boolean;
|
|
510
521
|
currency: string;
|
|
511
522
|
}
|
|
523
|
+
interface InvoicingCycleConfiguration {
|
|
524
|
+
duration: number;
|
|
525
|
+
duration_unit: 'day' | 'month';
|
|
526
|
+
}
|
|
512
527
|
interface Item {
|
|
513
528
|
id: string;
|
|
514
529
|
name: string;
|
|
@@ -567,7 +582,7 @@ export declare namespace Price {
|
|
|
567
582
|
interface TieredPrice {
|
|
568
583
|
id: string;
|
|
569
584
|
billable_metric: TieredPrice.BillableMetric | null;
|
|
570
|
-
billing_cycle_configuration: TieredPrice.BillingCycleConfiguration
|
|
585
|
+
billing_cycle_configuration: TieredPrice.BillingCycleConfiguration;
|
|
571
586
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
572
587
|
conversion_rate: number | null;
|
|
573
588
|
created_at: string;
|
|
@@ -576,6 +591,7 @@ export declare namespace Price {
|
|
|
576
591
|
discount: Shared.Discount | null;
|
|
577
592
|
external_price_id: string | null;
|
|
578
593
|
fixed_price_quantity: number | null;
|
|
594
|
+
invoicing_cycle_configuration: TieredPrice.InvoicingCycleConfiguration | null;
|
|
579
595
|
item: TieredPrice.Item;
|
|
580
596
|
maximum: TieredPrice.Maximum | null;
|
|
581
597
|
maximum_amount: string | null;
|
|
@@ -606,6 +622,10 @@ export declare namespace Price {
|
|
|
606
622
|
allows_rollover: boolean;
|
|
607
623
|
currency: string;
|
|
608
624
|
}
|
|
625
|
+
interface InvoicingCycleConfiguration {
|
|
626
|
+
duration: number;
|
|
627
|
+
duration_unit: 'day' | 'month';
|
|
628
|
+
}
|
|
609
629
|
interface Item {
|
|
610
630
|
id: string;
|
|
611
631
|
name: string;
|
|
@@ -658,7 +678,7 @@ export declare namespace Price {
|
|
|
658
678
|
interface TieredBpsPrice {
|
|
659
679
|
id: string;
|
|
660
680
|
billable_metric: TieredBpsPrice.BillableMetric | null;
|
|
661
|
-
billing_cycle_configuration: TieredBpsPrice.BillingCycleConfiguration
|
|
681
|
+
billing_cycle_configuration: TieredBpsPrice.BillingCycleConfiguration;
|
|
662
682
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
663
683
|
conversion_rate: number | null;
|
|
664
684
|
created_at: string;
|
|
@@ -667,6 +687,7 @@ export declare namespace Price {
|
|
|
667
687
|
discount: Shared.Discount | null;
|
|
668
688
|
external_price_id: string | null;
|
|
669
689
|
fixed_price_quantity: number | null;
|
|
690
|
+
invoicing_cycle_configuration: TieredBpsPrice.InvoicingCycleConfiguration | null;
|
|
670
691
|
item: TieredBpsPrice.Item;
|
|
671
692
|
maximum: TieredBpsPrice.Maximum | null;
|
|
672
693
|
maximum_amount: string | null;
|
|
@@ -697,6 +718,10 @@ export declare namespace Price {
|
|
|
697
718
|
allows_rollover: boolean;
|
|
698
719
|
currency: string;
|
|
699
720
|
}
|
|
721
|
+
interface InvoicingCycleConfiguration {
|
|
722
|
+
duration: number;
|
|
723
|
+
duration_unit: 'day' | 'month';
|
|
724
|
+
}
|
|
700
725
|
interface Item {
|
|
701
726
|
id: string;
|
|
702
727
|
name: string;
|
|
@@ -754,7 +779,7 @@ export declare namespace Price {
|
|
|
754
779
|
interface BpsPrice {
|
|
755
780
|
id: string;
|
|
756
781
|
billable_metric: BpsPrice.BillableMetric | null;
|
|
757
|
-
billing_cycle_configuration: BpsPrice.BillingCycleConfiguration
|
|
782
|
+
billing_cycle_configuration: BpsPrice.BillingCycleConfiguration;
|
|
758
783
|
bps_config: BpsPrice.BpsConfig;
|
|
759
784
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
760
785
|
conversion_rate: number | null;
|
|
@@ -764,6 +789,7 @@ export declare namespace Price {
|
|
|
764
789
|
discount: Shared.Discount | null;
|
|
765
790
|
external_price_id: string | null;
|
|
766
791
|
fixed_price_quantity: number | null;
|
|
792
|
+
invoicing_cycle_configuration: BpsPrice.InvoicingCycleConfiguration | null;
|
|
767
793
|
item: BpsPrice.Item;
|
|
768
794
|
maximum: BpsPrice.Maximum | null;
|
|
769
795
|
maximum_amount: string | null;
|
|
@@ -803,6 +829,10 @@ export declare namespace Price {
|
|
|
803
829
|
allows_rollover: boolean;
|
|
804
830
|
currency: string;
|
|
805
831
|
}
|
|
832
|
+
interface InvoicingCycleConfiguration {
|
|
833
|
+
duration: number;
|
|
834
|
+
duration_unit: 'day' | 'month';
|
|
835
|
+
}
|
|
806
836
|
interface Item {
|
|
807
837
|
id: string;
|
|
808
838
|
name: string;
|
|
@@ -833,7 +863,7 @@ export declare namespace Price {
|
|
|
833
863
|
interface BulkBpsPrice {
|
|
834
864
|
id: string;
|
|
835
865
|
billable_metric: BulkBpsPrice.BillableMetric | null;
|
|
836
|
-
billing_cycle_configuration: BulkBpsPrice.BillingCycleConfiguration
|
|
866
|
+
billing_cycle_configuration: BulkBpsPrice.BillingCycleConfiguration;
|
|
837
867
|
bulk_bps_config: BulkBpsPrice.BulkBpsConfig;
|
|
838
868
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
839
869
|
conversion_rate: number | null;
|
|
@@ -843,6 +873,7 @@ export declare namespace Price {
|
|
|
843
873
|
discount: Shared.Discount | null;
|
|
844
874
|
external_price_id: string | null;
|
|
845
875
|
fixed_price_quantity: number | null;
|
|
876
|
+
invoicing_cycle_configuration: BulkBpsPrice.InvoicingCycleConfiguration | null;
|
|
846
877
|
item: BulkBpsPrice.Item;
|
|
847
878
|
maximum: BulkBpsPrice.Maximum | null;
|
|
848
879
|
maximum_amount: string | null;
|
|
@@ -895,6 +926,10 @@ export declare namespace Price {
|
|
|
895
926
|
allows_rollover: boolean;
|
|
896
927
|
currency: string;
|
|
897
928
|
}
|
|
929
|
+
interface InvoicingCycleConfiguration {
|
|
930
|
+
duration: number;
|
|
931
|
+
duration_unit: 'day' | 'month';
|
|
932
|
+
}
|
|
898
933
|
interface Item {
|
|
899
934
|
id: string;
|
|
900
935
|
name: string;
|
|
@@ -925,7 +960,7 @@ export declare namespace Price {
|
|
|
925
960
|
interface BulkPrice {
|
|
926
961
|
id: string;
|
|
927
962
|
billable_metric: BulkPrice.BillableMetric | null;
|
|
928
|
-
billing_cycle_configuration: BulkPrice.BillingCycleConfiguration
|
|
963
|
+
billing_cycle_configuration: BulkPrice.BillingCycleConfiguration;
|
|
929
964
|
bulk_config: BulkPrice.BulkConfig;
|
|
930
965
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
931
966
|
conversion_rate: number | null;
|
|
@@ -935,6 +970,7 @@ export declare namespace Price {
|
|
|
935
970
|
discount: Shared.Discount | null;
|
|
936
971
|
external_price_id: string | null;
|
|
937
972
|
fixed_price_quantity: number | null;
|
|
973
|
+
invoicing_cycle_configuration: BulkPrice.InvoicingCycleConfiguration | null;
|
|
938
974
|
item: BulkPrice.Item;
|
|
939
975
|
maximum: BulkPrice.Maximum | null;
|
|
940
976
|
maximum_amount: string | null;
|
|
@@ -982,6 +1018,10 @@ export declare namespace Price {
|
|
|
982
1018
|
allows_rollover: boolean;
|
|
983
1019
|
currency: string;
|
|
984
1020
|
}
|
|
1021
|
+
interface InvoicingCycleConfiguration {
|
|
1022
|
+
duration: number;
|
|
1023
|
+
duration_unit: 'day' | 'month';
|
|
1024
|
+
}
|
|
985
1025
|
interface Item {
|
|
986
1026
|
id: string;
|
|
987
1027
|
name: string;
|
|
@@ -1012,7 +1052,7 @@ export declare namespace Price {
|
|
|
1012
1052
|
interface ThresholdTotalAmountPrice {
|
|
1013
1053
|
id: string;
|
|
1014
1054
|
billable_metric: ThresholdTotalAmountPrice.BillableMetric | null;
|
|
1015
|
-
billing_cycle_configuration: ThresholdTotalAmountPrice.BillingCycleConfiguration
|
|
1055
|
+
billing_cycle_configuration: ThresholdTotalAmountPrice.BillingCycleConfiguration;
|
|
1016
1056
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1017
1057
|
conversion_rate: number | null;
|
|
1018
1058
|
created_at: string;
|
|
@@ -1021,6 +1061,7 @@ export declare namespace Price {
|
|
|
1021
1061
|
discount: Shared.Discount | null;
|
|
1022
1062
|
external_price_id: string | null;
|
|
1023
1063
|
fixed_price_quantity: number | null;
|
|
1064
|
+
invoicing_cycle_configuration: ThresholdTotalAmountPrice.InvoicingCycleConfiguration | null;
|
|
1024
1065
|
item: ThresholdTotalAmountPrice.Item;
|
|
1025
1066
|
maximum: ThresholdTotalAmountPrice.Maximum | null;
|
|
1026
1067
|
maximum_amount: string | null;
|
|
@@ -1051,6 +1092,10 @@ export declare namespace Price {
|
|
|
1051
1092
|
allows_rollover: boolean;
|
|
1052
1093
|
currency: string;
|
|
1053
1094
|
}
|
|
1095
|
+
interface InvoicingCycleConfiguration {
|
|
1096
|
+
duration: number;
|
|
1097
|
+
duration_unit: 'day' | 'month';
|
|
1098
|
+
}
|
|
1054
1099
|
interface Item {
|
|
1055
1100
|
id: string;
|
|
1056
1101
|
name: string;
|
|
@@ -1081,7 +1126,7 @@ export declare namespace Price {
|
|
|
1081
1126
|
interface TieredPackagePrice {
|
|
1082
1127
|
id: string;
|
|
1083
1128
|
billable_metric: TieredPackagePrice.BillableMetric | null;
|
|
1084
|
-
billing_cycle_configuration: TieredPackagePrice.BillingCycleConfiguration
|
|
1129
|
+
billing_cycle_configuration: TieredPackagePrice.BillingCycleConfiguration;
|
|
1085
1130
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1086
1131
|
conversion_rate: number | null;
|
|
1087
1132
|
created_at: string;
|
|
@@ -1090,6 +1135,7 @@ export declare namespace Price {
|
|
|
1090
1135
|
discount: Shared.Discount | null;
|
|
1091
1136
|
external_price_id: string | null;
|
|
1092
1137
|
fixed_price_quantity: number | null;
|
|
1138
|
+
invoicing_cycle_configuration: TieredPackagePrice.InvoicingCycleConfiguration | null;
|
|
1093
1139
|
item: TieredPackagePrice.Item;
|
|
1094
1140
|
maximum: TieredPackagePrice.Maximum | null;
|
|
1095
1141
|
maximum_amount: string | null;
|
|
@@ -1120,6 +1166,10 @@ export declare namespace Price {
|
|
|
1120
1166
|
allows_rollover: boolean;
|
|
1121
1167
|
currency: string;
|
|
1122
1168
|
}
|
|
1169
|
+
interface InvoicingCycleConfiguration {
|
|
1170
|
+
duration: number;
|
|
1171
|
+
duration_unit: 'day' | 'month';
|
|
1172
|
+
}
|
|
1123
1173
|
interface Item {
|
|
1124
1174
|
id: string;
|
|
1125
1175
|
name: string;
|
|
@@ -1150,7 +1200,7 @@ export declare namespace Price {
|
|
|
1150
1200
|
interface GroupedTieredPrice {
|
|
1151
1201
|
id: string;
|
|
1152
1202
|
billable_metric: GroupedTieredPrice.BillableMetric | null;
|
|
1153
|
-
billing_cycle_configuration: GroupedTieredPrice.BillingCycleConfiguration
|
|
1203
|
+
billing_cycle_configuration: GroupedTieredPrice.BillingCycleConfiguration;
|
|
1154
1204
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1155
1205
|
conversion_rate: number | null;
|
|
1156
1206
|
created_at: string;
|
|
@@ -1160,6 +1210,7 @@ export declare namespace Price {
|
|
|
1160
1210
|
external_price_id: string | null;
|
|
1161
1211
|
fixed_price_quantity: number | null;
|
|
1162
1212
|
grouped_tiered_config: Record<string, unknown>;
|
|
1213
|
+
invoicing_cycle_configuration: GroupedTieredPrice.InvoicingCycleConfiguration | null;
|
|
1163
1214
|
item: GroupedTieredPrice.Item;
|
|
1164
1215
|
maximum: GroupedTieredPrice.Maximum | null;
|
|
1165
1216
|
maximum_amount: string | null;
|
|
@@ -1189,6 +1240,10 @@ export declare namespace Price {
|
|
|
1189
1240
|
allows_rollover: boolean;
|
|
1190
1241
|
currency: string;
|
|
1191
1242
|
}
|
|
1243
|
+
interface InvoicingCycleConfiguration {
|
|
1244
|
+
duration: number;
|
|
1245
|
+
duration_unit: 'day' | 'month';
|
|
1246
|
+
}
|
|
1192
1247
|
interface Item {
|
|
1193
1248
|
id: string;
|
|
1194
1249
|
name: string;
|
|
@@ -1219,7 +1274,7 @@ export declare namespace Price {
|
|
|
1219
1274
|
interface TieredWithMinimumPrice {
|
|
1220
1275
|
id: string;
|
|
1221
1276
|
billable_metric: TieredWithMinimumPrice.BillableMetric | null;
|
|
1222
|
-
billing_cycle_configuration: TieredWithMinimumPrice.BillingCycleConfiguration
|
|
1277
|
+
billing_cycle_configuration: TieredWithMinimumPrice.BillingCycleConfiguration;
|
|
1223
1278
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1224
1279
|
conversion_rate: number | null;
|
|
1225
1280
|
created_at: string;
|
|
@@ -1228,6 +1283,7 @@ export declare namespace Price {
|
|
|
1228
1283
|
discount: Shared.Discount | null;
|
|
1229
1284
|
external_price_id: string | null;
|
|
1230
1285
|
fixed_price_quantity: number | null;
|
|
1286
|
+
invoicing_cycle_configuration: TieredWithMinimumPrice.InvoicingCycleConfiguration | null;
|
|
1231
1287
|
item: TieredWithMinimumPrice.Item;
|
|
1232
1288
|
maximum: TieredWithMinimumPrice.Maximum | null;
|
|
1233
1289
|
maximum_amount: string | null;
|
|
@@ -1258,6 +1314,10 @@ export declare namespace Price {
|
|
|
1258
1314
|
allows_rollover: boolean;
|
|
1259
1315
|
currency: string;
|
|
1260
1316
|
}
|
|
1317
|
+
interface InvoicingCycleConfiguration {
|
|
1318
|
+
duration: number;
|
|
1319
|
+
duration_unit: 'day' | 'month';
|
|
1320
|
+
}
|
|
1261
1321
|
interface Item {
|
|
1262
1322
|
id: string;
|
|
1263
1323
|
name: string;
|
|
@@ -1288,7 +1348,7 @@ export declare namespace Price {
|
|
|
1288
1348
|
interface TieredPackageWithMinimumPrice {
|
|
1289
1349
|
id: string;
|
|
1290
1350
|
billable_metric: TieredPackageWithMinimumPrice.BillableMetric | null;
|
|
1291
|
-
billing_cycle_configuration: TieredPackageWithMinimumPrice.BillingCycleConfiguration
|
|
1351
|
+
billing_cycle_configuration: TieredPackageWithMinimumPrice.BillingCycleConfiguration;
|
|
1292
1352
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1293
1353
|
conversion_rate: number | null;
|
|
1294
1354
|
created_at: string;
|
|
@@ -1297,6 +1357,7 @@ export declare namespace Price {
|
|
|
1297
1357
|
discount: Shared.Discount | null;
|
|
1298
1358
|
external_price_id: string | null;
|
|
1299
1359
|
fixed_price_quantity: number | null;
|
|
1360
|
+
invoicing_cycle_configuration: TieredPackageWithMinimumPrice.InvoicingCycleConfiguration | null;
|
|
1300
1361
|
item: TieredPackageWithMinimumPrice.Item;
|
|
1301
1362
|
maximum: TieredPackageWithMinimumPrice.Maximum | null;
|
|
1302
1363
|
maximum_amount: string | null;
|
|
@@ -1327,6 +1388,10 @@ export declare namespace Price {
|
|
|
1327
1388
|
allows_rollover: boolean;
|
|
1328
1389
|
currency: string;
|
|
1329
1390
|
}
|
|
1391
|
+
interface InvoicingCycleConfiguration {
|
|
1392
|
+
duration: number;
|
|
1393
|
+
duration_unit: 'day' | 'month';
|
|
1394
|
+
}
|
|
1330
1395
|
interface Item {
|
|
1331
1396
|
id: string;
|
|
1332
1397
|
name: string;
|
|
@@ -1357,7 +1422,7 @@ export declare namespace Price {
|
|
|
1357
1422
|
interface PackageWithAllocationPrice {
|
|
1358
1423
|
id: string;
|
|
1359
1424
|
billable_metric: PackageWithAllocationPrice.BillableMetric | null;
|
|
1360
|
-
billing_cycle_configuration: PackageWithAllocationPrice.BillingCycleConfiguration
|
|
1425
|
+
billing_cycle_configuration: PackageWithAllocationPrice.BillingCycleConfiguration;
|
|
1361
1426
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1362
1427
|
conversion_rate: number | null;
|
|
1363
1428
|
created_at: string;
|
|
@@ -1366,6 +1431,7 @@ export declare namespace Price {
|
|
|
1366
1431
|
discount: Shared.Discount | null;
|
|
1367
1432
|
external_price_id: string | null;
|
|
1368
1433
|
fixed_price_quantity: number | null;
|
|
1434
|
+
invoicing_cycle_configuration: PackageWithAllocationPrice.InvoicingCycleConfiguration | null;
|
|
1369
1435
|
item: PackageWithAllocationPrice.Item;
|
|
1370
1436
|
maximum: PackageWithAllocationPrice.Maximum | null;
|
|
1371
1437
|
maximum_amount: string | null;
|
|
@@ -1396,6 +1462,10 @@ export declare namespace Price {
|
|
|
1396
1462
|
allows_rollover: boolean;
|
|
1397
1463
|
currency: string;
|
|
1398
1464
|
}
|
|
1465
|
+
interface InvoicingCycleConfiguration {
|
|
1466
|
+
duration: number;
|
|
1467
|
+
duration_unit: 'day' | 'month';
|
|
1468
|
+
}
|
|
1399
1469
|
interface Item {
|
|
1400
1470
|
id: string;
|
|
1401
1471
|
name: string;
|
|
@@ -1426,7 +1496,7 @@ export declare namespace Price {
|
|
|
1426
1496
|
interface UnitWithPercentPrice {
|
|
1427
1497
|
id: string;
|
|
1428
1498
|
billable_metric: UnitWithPercentPrice.BillableMetric | null;
|
|
1429
|
-
billing_cycle_configuration: UnitWithPercentPrice.BillingCycleConfiguration
|
|
1499
|
+
billing_cycle_configuration: UnitWithPercentPrice.BillingCycleConfiguration;
|
|
1430
1500
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1431
1501
|
conversion_rate: number | null;
|
|
1432
1502
|
created_at: string;
|
|
@@ -1435,6 +1505,7 @@ export declare namespace Price {
|
|
|
1435
1505
|
discount: Shared.Discount | null;
|
|
1436
1506
|
external_price_id: string | null;
|
|
1437
1507
|
fixed_price_quantity: number | null;
|
|
1508
|
+
invoicing_cycle_configuration: UnitWithPercentPrice.InvoicingCycleConfiguration | null;
|
|
1438
1509
|
item: UnitWithPercentPrice.Item;
|
|
1439
1510
|
maximum: UnitWithPercentPrice.Maximum | null;
|
|
1440
1511
|
maximum_amount: string | null;
|
|
@@ -1465,6 +1536,10 @@ export declare namespace Price {
|
|
|
1465
1536
|
allows_rollover: boolean;
|
|
1466
1537
|
currency: string;
|
|
1467
1538
|
}
|
|
1539
|
+
interface InvoicingCycleConfiguration {
|
|
1540
|
+
duration: number;
|
|
1541
|
+
duration_unit: 'day' | 'month';
|
|
1542
|
+
}
|
|
1468
1543
|
interface Item {
|
|
1469
1544
|
id: string;
|
|
1470
1545
|
name: string;
|
|
@@ -1495,7 +1570,7 @@ export declare namespace Price {
|
|
|
1495
1570
|
interface MatrixWithAllocationPrice {
|
|
1496
1571
|
id: string;
|
|
1497
1572
|
billable_metric: MatrixWithAllocationPrice.BillableMetric | null;
|
|
1498
|
-
billing_cycle_configuration: MatrixWithAllocationPrice.BillingCycleConfiguration
|
|
1573
|
+
billing_cycle_configuration: MatrixWithAllocationPrice.BillingCycleConfiguration;
|
|
1499
1574
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1500
1575
|
conversion_rate: number | null;
|
|
1501
1576
|
created_at: string;
|
|
@@ -1504,6 +1579,7 @@ export declare namespace Price {
|
|
|
1504
1579
|
discount: Shared.Discount | null;
|
|
1505
1580
|
external_price_id: string | null;
|
|
1506
1581
|
fixed_price_quantity: number | null;
|
|
1582
|
+
invoicing_cycle_configuration: MatrixWithAllocationPrice.InvoicingCycleConfiguration | null;
|
|
1507
1583
|
item: MatrixWithAllocationPrice.Item;
|
|
1508
1584
|
matrix_with_allocation_config: MatrixWithAllocationPrice.MatrixWithAllocationConfig;
|
|
1509
1585
|
maximum: MatrixWithAllocationPrice.Maximum | null;
|
|
@@ -1534,6 +1610,10 @@ export declare namespace Price {
|
|
|
1534
1610
|
allows_rollover: boolean;
|
|
1535
1611
|
currency: string;
|
|
1536
1612
|
}
|
|
1613
|
+
interface InvoicingCycleConfiguration {
|
|
1614
|
+
duration: number;
|
|
1615
|
+
duration_unit: 'day' | 'month';
|
|
1616
|
+
}
|
|
1537
1617
|
interface Item {
|
|
1538
1618
|
id: string;
|
|
1539
1619
|
name: string;
|
|
@@ -1596,7 +1676,7 @@ export declare namespace Price {
|
|
|
1596
1676
|
interface TieredWithProrationPrice {
|
|
1597
1677
|
id: string;
|
|
1598
1678
|
billable_metric: TieredWithProrationPrice.BillableMetric | null;
|
|
1599
|
-
billing_cycle_configuration: TieredWithProrationPrice.BillingCycleConfiguration
|
|
1679
|
+
billing_cycle_configuration: TieredWithProrationPrice.BillingCycleConfiguration;
|
|
1600
1680
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1601
1681
|
conversion_rate: number | null;
|
|
1602
1682
|
created_at: string;
|
|
@@ -1605,6 +1685,7 @@ export declare namespace Price {
|
|
|
1605
1685
|
discount: Shared.Discount | null;
|
|
1606
1686
|
external_price_id: string | null;
|
|
1607
1687
|
fixed_price_quantity: number | null;
|
|
1688
|
+
invoicing_cycle_configuration: TieredWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
1608
1689
|
item: TieredWithProrationPrice.Item;
|
|
1609
1690
|
maximum: TieredWithProrationPrice.Maximum | null;
|
|
1610
1691
|
maximum_amount: string | null;
|
|
@@ -1635,6 +1716,10 @@ export declare namespace Price {
|
|
|
1635
1716
|
allows_rollover: boolean;
|
|
1636
1717
|
currency: string;
|
|
1637
1718
|
}
|
|
1719
|
+
interface InvoicingCycleConfiguration {
|
|
1720
|
+
duration: number;
|
|
1721
|
+
duration_unit: 'day' | 'month';
|
|
1722
|
+
}
|
|
1638
1723
|
interface Item {
|
|
1639
1724
|
id: string;
|
|
1640
1725
|
name: string;
|
|
@@ -1665,7 +1750,7 @@ export declare namespace Price {
|
|
|
1665
1750
|
interface UnitWithProrationPrice {
|
|
1666
1751
|
id: string;
|
|
1667
1752
|
billable_metric: UnitWithProrationPrice.BillableMetric | null;
|
|
1668
|
-
billing_cycle_configuration: UnitWithProrationPrice.BillingCycleConfiguration
|
|
1753
|
+
billing_cycle_configuration: UnitWithProrationPrice.BillingCycleConfiguration;
|
|
1669
1754
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1670
1755
|
conversion_rate: number | null;
|
|
1671
1756
|
created_at: string;
|
|
@@ -1674,6 +1759,7 @@ export declare namespace Price {
|
|
|
1674
1759
|
discount: Shared.Discount | null;
|
|
1675
1760
|
external_price_id: string | null;
|
|
1676
1761
|
fixed_price_quantity: number | null;
|
|
1762
|
+
invoicing_cycle_configuration: UnitWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
1677
1763
|
item: UnitWithProrationPrice.Item;
|
|
1678
1764
|
maximum: UnitWithProrationPrice.Maximum | null;
|
|
1679
1765
|
maximum_amount: string | null;
|
|
@@ -1704,6 +1790,10 @@ export declare namespace Price {
|
|
|
1704
1790
|
allows_rollover: boolean;
|
|
1705
1791
|
currency: string;
|
|
1706
1792
|
}
|
|
1793
|
+
interface InvoicingCycleConfiguration {
|
|
1794
|
+
duration: number;
|
|
1795
|
+
duration_unit: 'day' | 'month';
|
|
1796
|
+
}
|
|
1707
1797
|
interface Item {
|
|
1708
1798
|
id: string;
|
|
1709
1799
|
name: string;
|
|
@@ -1734,7 +1824,7 @@ export declare namespace Price {
|
|
|
1734
1824
|
interface GroupedAllocationPrice {
|
|
1735
1825
|
id: string;
|
|
1736
1826
|
billable_metric: GroupedAllocationPrice.BillableMetric | null;
|
|
1737
|
-
billing_cycle_configuration: GroupedAllocationPrice.BillingCycleConfiguration
|
|
1827
|
+
billing_cycle_configuration: GroupedAllocationPrice.BillingCycleConfiguration;
|
|
1738
1828
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1739
1829
|
conversion_rate: number | null;
|
|
1740
1830
|
created_at: string;
|
|
@@ -1744,6 +1834,7 @@ export declare namespace Price {
|
|
|
1744
1834
|
external_price_id: string | null;
|
|
1745
1835
|
fixed_price_quantity: number | null;
|
|
1746
1836
|
grouped_allocation_config: Record<string, unknown>;
|
|
1837
|
+
invoicing_cycle_configuration: GroupedAllocationPrice.InvoicingCycleConfiguration | null;
|
|
1747
1838
|
item: GroupedAllocationPrice.Item;
|
|
1748
1839
|
maximum: GroupedAllocationPrice.Maximum | null;
|
|
1749
1840
|
maximum_amount: string | null;
|
|
@@ -1773,6 +1864,10 @@ export declare namespace Price {
|
|
|
1773
1864
|
allows_rollover: boolean;
|
|
1774
1865
|
currency: string;
|
|
1775
1866
|
}
|
|
1867
|
+
interface InvoicingCycleConfiguration {
|
|
1868
|
+
duration: number;
|
|
1869
|
+
duration_unit: 'day' | 'month';
|
|
1870
|
+
}
|
|
1776
1871
|
interface Item {
|
|
1777
1872
|
id: string;
|
|
1778
1873
|
name: string;
|
|
@@ -1803,7 +1898,7 @@ export declare namespace Price {
|
|
|
1803
1898
|
interface BulkWithProrationPrice {
|
|
1804
1899
|
id: string;
|
|
1805
1900
|
billable_metric: BulkWithProrationPrice.BillableMetric | null;
|
|
1806
|
-
billing_cycle_configuration: BulkWithProrationPrice.BillingCycleConfiguration
|
|
1901
|
+
billing_cycle_configuration: BulkWithProrationPrice.BillingCycleConfiguration;
|
|
1807
1902
|
bulk_with_proration_config: Record<string, unknown>;
|
|
1808
1903
|
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
1809
1904
|
conversion_rate: number | null;
|
|
@@ -1813,6 +1908,7 @@ export declare namespace Price {
|
|
|
1813
1908
|
discount: Shared.Discount | null;
|
|
1814
1909
|
external_price_id: string | null;
|
|
1815
1910
|
fixed_price_quantity: number | null;
|
|
1911
|
+
invoicing_cycle_configuration: BulkWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
1816
1912
|
item: BulkWithProrationPrice.Item;
|
|
1817
1913
|
maximum: BulkWithProrationPrice.Maximum | null;
|
|
1818
1914
|
maximum_amount: string | null;
|
|
@@ -1842,6 +1938,10 @@ export declare namespace Price {
|
|
|
1842
1938
|
allows_rollover: boolean;
|
|
1843
1939
|
currency: string;
|
|
1844
1940
|
}
|
|
1941
|
+
interface InvoicingCycleConfiguration {
|
|
1942
|
+
duration: number;
|
|
1943
|
+
duration_unit: 'day' | 'month';
|
|
1944
|
+
}
|
|
1845
1945
|
interface Item {
|
|
1846
1946
|
id: string;
|
|
1847
1947
|
name: string;
|
|
@@ -1904,6 +2004,11 @@ export declare namespace PriceCreateParams {
|
|
|
1904
2004
|
* this is true, and in-arrears if this is false.
|
|
1905
2005
|
*/
|
|
1906
2006
|
billed_in_advance?: boolean | null;
|
|
2007
|
+
/**
|
|
2008
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2009
|
+
* months.
|
|
2010
|
+
*/
|
|
2011
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingUnitPrice.BillingCycleConfiguration | null;
|
|
1907
2012
|
/**
|
|
1908
2013
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1909
2014
|
*/
|
|
@@ -1921,6 +2026,11 @@ export declare namespace PriceCreateParams {
|
|
|
1921
2026
|
* The property used to group this price on an invoice
|
|
1922
2027
|
*/
|
|
1923
2028
|
invoice_grouping_key?: string | null;
|
|
2029
|
+
/**
|
|
2030
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2031
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2032
|
+
*/
|
|
2033
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingUnitPrice.InvoicingCycleConfiguration | null;
|
|
1924
2034
|
/**
|
|
1925
2035
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1926
2036
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1935,6 +2045,34 @@ export declare namespace PriceCreateParams {
|
|
|
1935
2045
|
*/
|
|
1936
2046
|
unit_amount: string;
|
|
1937
2047
|
}
|
|
2048
|
+
/**
|
|
2049
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2050
|
+
* months.
|
|
2051
|
+
*/
|
|
2052
|
+
interface BillingCycleConfiguration {
|
|
2053
|
+
/**
|
|
2054
|
+
* The duration of the billing period.
|
|
2055
|
+
*/
|
|
2056
|
+
duration: number;
|
|
2057
|
+
/**
|
|
2058
|
+
* The unit of billing period duration.
|
|
2059
|
+
*/
|
|
2060
|
+
duration_unit: 'day' | 'month';
|
|
2061
|
+
}
|
|
2062
|
+
/**
|
|
2063
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2064
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2065
|
+
*/
|
|
2066
|
+
interface InvoicingCycleConfiguration {
|
|
2067
|
+
/**
|
|
2068
|
+
* The duration of the billing period.
|
|
2069
|
+
*/
|
|
2070
|
+
duration: number;
|
|
2071
|
+
/**
|
|
2072
|
+
* The unit of billing period duration.
|
|
2073
|
+
*/
|
|
2074
|
+
duration_unit: 'day' | 'month';
|
|
2075
|
+
}
|
|
1938
2076
|
}
|
|
1939
2077
|
interface NewFloatingPackagePrice {
|
|
1940
2078
|
/**
|
|
@@ -1965,6 +2103,11 @@ export declare namespace PriceCreateParams {
|
|
|
1965
2103
|
* this is true, and in-arrears if this is false.
|
|
1966
2104
|
*/
|
|
1967
2105
|
billed_in_advance?: boolean | null;
|
|
2106
|
+
/**
|
|
2107
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2108
|
+
* months.
|
|
2109
|
+
*/
|
|
2110
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingPackagePrice.BillingCycleConfiguration | null;
|
|
1968
2111
|
/**
|
|
1969
2112
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1970
2113
|
*/
|
|
@@ -1982,6 +2125,11 @@ export declare namespace PriceCreateParams {
|
|
|
1982
2125
|
* The property used to group this price on an invoice
|
|
1983
2126
|
*/
|
|
1984
2127
|
invoice_grouping_key?: string | null;
|
|
2128
|
+
/**
|
|
2129
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2130
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2131
|
+
*/
|
|
2132
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingPackagePrice.InvoicingCycleConfiguration | null;
|
|
1985
2133
|
/**
|
|
1986
2134
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1987
2135
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2001,6 +2149,34 @@ export declare namespace PriceCreateParams {
|
|
|
2001
2149
|
*/
|
|
2002
2150
|
package_size: number;
|
|
2003
2151
|
}
|
|
2152
|
+
/**
|
|
2153
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2154
|
+
* months.
|
|
2155
|
+
*/
|
|
2156
|
+
interface BillingCycleConfiguration {
|
|
2157
|
+
/**
|
|
2158
|
+
* The duration of the billing period.
|
|
2159
|
+
*/
|
|
2160
|
+
duration: number;
|
|
2161
|
+
/**
|
|
2162
|
+
* The unit of billing period duration.
|
|
2163
|
+
*/
|
|
2164
|
+
duration_unit: 'day' | 'month';
|
|
2165
|
+
}
|
|
2166
|
+
/**
|
|
2167
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2168
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2169
|
+
*/
|
|
2170
|
+
interface InvoicingCycleConfiguration {
|
|
2171
|
+
/**
|
|
2172
|
+
* The duration of the billing period.
|
|
2173
|
+
*/
|
|
2174
|
+
duration: number;
|
|
2175
|
+
/**
|
|
2176
|
+
* The unit of billing period duration.
|
|
2177
|
+
*/
|
|
2178
|
+
duration_unit: 'day' | 'month';
|
|
2179
|
+
}
|
|
2004
2180
|
}
|
|
2005
2181
|
interface NewFloatingMatrixPrice {
|
|
2006
2182
|
/**
|
|
@@ -2031,6 +2207,11 @@ export declare namespace PriceCreateParams {
|
|
|
2031
2207
|
* this is true, and in-arrears if this is false.
|
|
2032
2208
|
*/
|
|
2033
2209
|
billed_in_advance?: boolean | null;
|
|
2210
|
+
/**
|
|
2211
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2212
|
+
* months.
|
|
2213
|
+
*/
|
|
2214
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingMatrixPrice.BillingCycleConfiguration | null;
|
|
2034
2215
|
/**
|
|
2035
2216
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2036
2217
|
*/
|
|
@@ -2048,6 +2229,11 @@ export declare namespace PriceCreateParams {
|
|
|
2048
2229
|
* The property used to group this price on an invoice
|
|
2049
2230
|
*/
|
|
2050
2231
|
invoice_grouping_key?: string | null;
|
|
2232
|
+
/**
|
|
2233
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2234
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2235
|
+
*/
|
|
2236
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingMatrixPrice.InvoicingCycleConfiguration | null;
|
|
2051
2237
|
/**
|
|
2052
2238
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2053
2239
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2084,6 +2270,34 @@ export declare namespace PriceCreateParams {
|
|
|
2084
2270
|
unit_amount: string;
|
|
2085
2271
|
}
|
|
2086
2272
|
}
|
|
2273
|
+
/**
|
|
2274
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2275
|
+
* months.
|
|
2276
|
+
*/
|
|
2277
|
+
interface BillingCycleConfiguration {
|
|
2278
|
+
/**
|
|
2279
|
+
* The duration of the billing period.
|
|
2280
|
+
*/
|
|
2281
|
+
duration: number;
|
|
2282
|
+
/**
|
|
2283
|
+
* The unit of billing period duration.
|
|
2284
|
+
*/
|
|
2285
|
+
duration_unit: 'day' | 'month';
|
|
2286
|
+
}
|
|
2287
|
+
/**
|
|
2288
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2289
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2290
|
+
*/
|
|
2291
|
+
interface InvoicingCycleConfiguration {
|
|
2292
|
+
/**
|
|
2293
|
+
* The duration of the billing period.
|
|
2294
|
+
*/
|
|
2295
|
+
duration: number;
|
|
2296
|
+
/**
|
|
2297
|
+
* The unit of billing period duration.
|
|
2298
|
+
*/
|
|
2299
|
+
duration_unit: 'day' | 'month';
|
|
2300
|
+
}
|
|
2087
2301
|
}
|
|
2088
2302
|
interface NewFloatingMatrixWithAllocationPrice {
|
|
2089
2303
|
/**
|
|
@@ -2114,6 +2328,11 @@ export declare namespace PriceCreateParams {
|
|
|
2114
2328
|
* this is true, and in-arrears if this is false.
|
|
2115
2329
|
*/
|
|
2116
2330
|
billed_in_advance?: boolean | null;
|
|
2331
|
+
/**
|
|
2332
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2333
|
+
* months.
|
|
2334
|
+
*/
|
|
2335
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingMatrixWithAllocationPrice.BillingCycleConfiguration | null;
|
|
2117
2336
|
/**
|
|
2118
2337
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2119
2338
|
*/
|
|
@@ -2131,6 +2350,11 @@ export declare namespace PriceCreateParams {
|
|
|
2131
2350
|
* The property used to group this price on an invoice
|
|
2132
2351
|
*/
|
|
2133
2352
|
invoice_grouping_key?: string | null;
|
|
2353
|
+
/**
|
|
2354
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2355
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2356
|
+
*/
|
|
2357
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingMatrixWithAllocationPrice.InvoicingCycleConfiguration | null;
|
|
2134
2358
|
/**
|
|
2135
2359
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2136
2360
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2171,6 +2395,34 @@ export declare namespace PriceCreateParams {
|
|
|
2171
2395
|
unit_amount: string;
|
|
2172
2396
|
}
|
|
2173
2397
|
}
|
|
2398
|
+
/**
|
|
2399
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2400
|
+
* months.
|
|
2401
|
+
*/
|
|
2402
|
+
interface BillingCycleConfiguration {
|
|
2403
|
+
/**
|
|
2404
|
+
* The duration of the billing period.
|
|
2405
|
+
*/
|
|
2406
|
+
duration: number;
|
|
2407
|
+
/**
|
|
2408
|
+
* The unit of billing period duration.
|
|
2409
|
+
*/
|
|
2410
|
+
duration_unit: 'day' | 'month';
|
|
2411
|
+
}
|
|
2412
|
+
/**
|
|
2413
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2414
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2415
|
+
*/
|
|
2416
|
+
interface InvoicingCycleConfiguration {
|
|
2417
|
+
/**
|
|
2418
|
+
* The duration of the billing period.
|
|
2419
|
+
*/
|
|
2420
|
+
duration: number;
|
|
2421
|
+
/**
|
|
2422
|
+
* The unit of billing period duration.
|
|
2423
|
+
*/
|
|
2424
|
+
duration_unit: 'day' | 'month';
|
|
2425
|
+
}
|
|
2174
2426
|
}
|
|
2175
2427
|
interface NewFloatingTieredPrice {
|
|
2176
2428
|
/**
|
|
@@ -2201,6 +2453,11 @@ export declare namespace PriceCreateParams {
|
|
|
2201
2453
|
* this is true, and in-arrears if this is false.
|
|
2202
2454
|
*/
|
|
2203
2455
|
billed_in_advance?: boolean | null;
|
|
2456
|
+
/**
|
|
2457
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2458
|
+
* months.
|
|
2459
|
+
*/
|
|
2460
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingTieredPrice.BillingCycleConfiguration | null;
|
|
2204
2461
|
/**
|
|
2205
2462
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2206
2463
|
*/
|
|
@@ -2218,6 +2475,11 @@ export declare namespace PriceCreateParams {
|
|
|
2218
2475
|
* The property used to group this price on an invoice
|
|
2219
2476
|
*/
|
|
2220
2477
|
invoice_grouping_key?: string | null;
|
|
2478
|
+
/**
|
|
2479
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2480
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2481
|
+
*/
|
|
2482
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingTieredPrice.InvoicingCycleConfiguration | null;
|
|
2221
2483
|
/**
|
|
2222
2484
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2223
2485
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2248,6 +2510,34 @@ export declare namespace PriceCreateParams {
|
|
|
2248
2510
|
last_unit?: number | null;
|
|
2249
2511
|
}
|
|
2250
2512
|
}
|
|
2513
|
+
/**
|
|
2514
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2515
|
+
* months.
|
|
2516
|
+
*/
|
|
2517
|
+
interface BillingCycleConfiguration {
|
|
2518
|
+
/**
|
|
2519
|
+
* The duration of the billing period.
|
|
2520
|
+
*/
|
|
2521
|
+
duration: number;
|
|
2522
|
+
/**
|
|
2523
|
+
* The unit of billing period duration.
|
|
2524
|
+
*/
|
|
2525
|
+
duration_unit: 'day' | 'month';
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2529
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2530
|
+
*/
|
|
2531
|
+
interface InvoicingCycleConfiguration {
|
|
2532
|
+
/**
|
|
2533
|
+
* The duration of the billing period.
|
|
2534
|
+
*/
|
|
2535
|
+
duration: number;
|
|
2536
|
+
/**
|
|
2537
|
+
* The unit of billing period duration.
|
|
2538
|
+
*/
|
|
2539
|
+
duration_unit: 'day' | 'month';
|
|
2540
|
+
}
|
|
2251
2541
|
}
|
|
2252
2542
|
interface NewFloatingTieredBpsPrice {
|
|
2253
2543
|
/**
|
|
@@ -2278,6 +2568,11 @@ export declare namespace PriceCreateParams {
|
|
|
2278
2568
|
* this is true, and in-arrears if this is false.
|
|
2279
2569
|
*/
|
|
2280
2570
|
billed_in_advance?: boolean | null;
|
|
2571
|
+
/**
|
|
2572
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2573
|
+
* months.
|
|
2574
|
+
*/
|
|
2575
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingTieredBpsPrice.BillingCycleConfiguration | null;
|
|
2281
2576
|
/**
|
|
2282
2577
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2283
2578
|
*/
|
|
@@ -2295,6 +2590,11 @@ export declare namespace PriceCreateParams {
|
|
|
2295
2590
|
* The property used to group this price on an invoice
|
|
2296
2591
|
*/
|
|
2297
2592
|
invoice_grouping_key?: string | null;
|
|
2593
|
+
/**
|
|
2594
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2595
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2596
|
+
*/
|
|
2597
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingTieredBpsPrice.InvoicingCycleConfiguration | null;
|
|
2298
2598
|
/**
|
|
2299
2599
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2300
2600
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2330,6 +2630,34 @@ export declare namespace PriceCreateParams {
|
|
|
2330
2630
|
per_unit_maximum?: string | null;
|
|
2331
2631
|
}
|
|
2332
2632
|
}
|
|
2633
|
+
/**
|
|
2634
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2635
|
+
* months.
|
|
2636
|
+
*/
|
|
2637
|
+
interface BillingCycleConfiguration {
|
|
2638
|
+
/**
|
|
2639
|
+
* The duration of the billing period.
|
|
2640
|
+
*/
|
|
2641
|
+
duration: number;
|
|
2642
|
+
/**
|
|
2643
|
+
* The unit of billing period duration.
|
|
2644
|
+
*/
|
|
2645
|
+
duration_unit: 'day' | 'month';
|
|
2646
|
+
}
|
|
2647
|
+
/**
|
|
2648
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2649
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2650
|
+
*/
|
|
2651
|
+
interface InvoicingCycleConfiguration {
|
|
2652
|
+
/**
|
|
2653
|
+
* The duration of the billing period.
|
|
2654
|
+
*/
|
|
2655
|
+
duration: number;
|
|
2656
|
+
/**
|
|
2657
|
+
* The unit of billing period duration.
|
|
2658
|
+
*/
|
|
2659
|
+
duration_unit: 'day' | 'month';
|
|
2660
|
+
}
|
|
2333
2661
|
}
|
|
2334
2662
|
interface NewFloatingBpsPrice {
|
|
2335
2663
|
bps_config: PriceCreateParams.NewFloatingBpsPrice.BpsConfig;
|
|
@@ -2360,6 +2688,11 @@ export declare namespace PriceCreateParams {
|
|
|
2360
2688
|
* this is true, and in-arrears if this is false.
|
|
2361
2689
|
*/
|
|
2362
2690
|
billed_in_advance?: boolean | null;
|
|
2691
|
+
/**
|
|
2692
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2693
|
+
* months.
|
|
2694
|
+
*/
|
|
2695
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingBpsPrice.BillingCycleConfiguration | null;
|
|
2363
2696
|
/**
|
|
2364
2697
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2365
2698
|
*/
|
|
@@ -2377,6 +2710,11 @@ export declare namespace PriceCreateParams {
|
|
|
2377
2710
|
* The property used to group this price on an invoice
|
|
2378
2711
|
*/
|
|
2379
2712
|
invoice_grouping_key?: string | null;
|
|
2713
|
+
/**
|
|
2714
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2715
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2716
|
+
*/
|
|
2717
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingBpsPrice.InvoicingCycleConfiguration | null;
|
|
2380
2718
|
/**
|
|
2381
2719
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2382
2720
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2395,6 +2733,34 @@ export declare namespace PriceCreateParams {
|
|
|
2395
2733
|
*/
|
|
2396
2734
|
per_unit_maximum?: string | null;
|
|
2397
2735
|
}
|
|
2736
|
+
/**
|
|
2737
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2738
|
+
* months.
|
|
2739
|
+
*/
|
|
2740
|
+
interface BillingCycleConfiguration {
|
|
2741
|
+
/**
|
|
2742
|
+
* The duration of the billing period.
|
|
2743
|
+
*/
|
|
2744
|
+
duration: number;
|
|
2745
|
+
/**
|
|
2746
|
+
* The unit of billing period duration.
|
|
2747
|
+
*/
|
|
2748
|
+
duration_unit: 'day' | 'month';
|
|
2749
|
+
}
|
|
2750
|
+
/**
|
|
2751
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2752
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2753
|
+
*/
|
|
2754
|
+
interface InvoicingCycleConfiguration {
|
|
2755
|
+
/**
|
|
2756
|
+
* The duration of the billing period.
|
|
2757
|
+
*/
|
|
2758
|
+
duration: number;
|
|
2759
|
+
/**
|
|
2760
|
+
* The unit of billing period duration.
|
|
2761
|
+
*/
|
|
2762
|
+
duration_unit: 'day' | 'month';
|
|
2763
|
+
}
|
|
2398
2764
|
}
|
|
2399
2765
|
interface NewFloatingBulkBpsPrice {
|
|
2400
2766
|
bulk_bps_config: PriceCreateParams.NewFloatingBulkBpsPrice.BulkBpsConfig;
|
|
@@ -2425,6 +2791,11 @@ export declare namespace PriceCreateParams {
|
|
|
2425
2791
|
* this is true, and in-arrears if this is false.
|
|
2426
2792
|
*/
|
|
2427
2793
|
billed_in_advance?: boolean | null;
|
|
2794
|
+
/**
|
|
2795
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2796
|
+
* months.
|
|
2797
|
+
*/
|
|
2798
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingBulkBpsPrice.BillingCycleConfiguration | null;
|
|
2428
2799
|
/**
|
|
2429
2800
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2430
2801
|
*/
|
|
@@ -2442,6 +2813,11 @@ export declare namespace PriceCreateParams {
|
|
|
2442
2813
|
* The property used to group this price on an invoice
|
|
2443
2814
|
*/
|
|
2444
2815
|
invoice_grouping_key?: string | null;
|
|
2816
|
+
/**
|
|
2817
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2818
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2819
|
+
*/
|
|
2820
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingBulkBpsPrice.InvoicingCycleConfiguration | null;
|
|
2445
2821
|
/**
|
|
2446
2822
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2447
2823
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2473,6 +2849,34 @@ export declare namespace PriceCreateParams {
|
|
|
2473
2849
|
per_unit_maximum?: string | null;
|
|
2474
2850
|
}
|
|
2475
2851
|
}
|
|
2852
|
+
/**
|
|
2853
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2854
|
+
* months.
|
|
2855
|
+
*/
|
|
2856
|
+
interface BillingCycleConfiguration {
|
|
2857
|
+
/**
|
|
2858
|
+
* The duration of the billing period.
|
|
2859
|
+
*/
|
|
2860
|
+
duration: number;
|
|
2861
|
+
/**
|
|
2862
|
+
* The unit of billing period duration.
|
|
2863
|
+
*/
|
|
2864
|
+
duration_unit: 'day' | 'month';
|
|
2865
|
+
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2868
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2869
|
+
*/
|
|
2870
|
+
interface InvoicingCycleConfiguration {
|
|
2871
|
+
/**
|
|
2872
|
+
* The duration of the billing period.
|
|
2873
|
+
*/
|
|
2874
|
+
duration: number;
|
|
2875
|
+
/**
|
|
2876
|
+
* The unit of billing period duration.
|
|
2877
|
+
*/
|
|
2878
|
+
duration_unit: 'day' | 'month';
|
|
2879
|
+
}
|
|
2476
2880
|
}
|
|
2477
2881
|
interface NewFloatingBulkPrice {
|
|
2478
2882
|
bulk_config: PriceCreateParams.NewFloatingBulkPrice.BulkConfig;
|
|
@@ -2503,6 +2907,11 @@ export declare namespace PriceCreateParams {
|
|
|
2503
2907
|
* this is true, and in-arrears if this is false.
|
|
2504
2908
|
*/
|
|
2505
2909
|
billed_in_advance?: boolean | null;
|
|
2910
|
+
/**
|
|
2911
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2912
|
+
* months.
|
|
2913
|
+
*/
|
|
2914
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingBulkPrice.BillingCycleConfiguration | null;
|
|
2506
2915
|
/**
|
|
2507
2916
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2508
2917
|
*/
|
|
@@ -2520,6 +2929,11 @@ export declare namespace PriceCreateParams {
|
|
|
2520
2929
|
* The property used to group this price on an invoice
|
|
2521
2930
|
*/
|
|
2522
2931
|
invoice_grouping_key?: string | null;
|
|
2932
|
+
/**
|
|
2933
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2934
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2935
|
+
*/
|
|
2936
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingBulkPrice.InvoicingCycleConfiguration | null;
|
|
2523
2937
|
/**
|
|
2524
2938
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2525
2939
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2546,16 +2960,44 @@ export declare namespace PriceCreateParams {
|
|
|
2546
2960
|
maximum_units?: number | null;
|
|
2547
2961
|
}
|
|
2548
2962
|
}
|
|
2549
|
-
}
|
|
2550
|
-
interface NewFloatingThresholdTotalAmountPrice {
|
|
2551
|
-
/**
|
|
2552
|
-
* The cadence to bill for this price on.
|
|
2553
|
-
*/
|
|
2554
|
-
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
2555
2963
|
/**
|
|
2556
|
-
*
|
|
2964
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
2965
|
+
* months.
|
|
2557
2966
|
*/
|
|
2558
|
-
|
|
2967
|
+
interface BillingCycleConfiguration {
|
|
2968
|
+
/**
|
|
2969
|
+
* The duration of the billing period.
|
|
2970
|
+
*/
|
|
2971
|
+
duration: number;
|
|
2972
|
+
/**
|
|
2973
|
+
* The unit of billing period duration.
|
|
2974
|
+
*/
|
|
2975
|
+
duration_unit: 'day' | 'month';
|
|
2976
|
+
}
|
|
2977
|
+
/**
|
|
2978
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
2979
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
2980
|
+
*/
|
|
2981
|
+
interface InvoicingCycleConfiguration {
|
|
2982
|
+
/**
|
|
2983
|
+
* The duration of the billing period.
|
|
2984
|
+
*/
|
|
2985
|
+
duration: number;
|
|
2986
|
+
/**
|
|
2987
|
+
* The unit of billing period duration.
|
|
2988
|
+
*/
|
|
2989
|
+
duration_unit: 'day' | 'month';
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
interface NewFloatingThresholdTotalAmountPrice {
|
|
2993
|
+
/**
|
|
2994
|
+
* The cadence to bill for this price on.
|
|
2995
|
+
*/
|
|
2996
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
2997
|
+
/**
|
|
2998
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2999
|
+
*/
|
|
3000
|
+
currency: string;
|
|
2559
3001
|
/**
|
|
2560
3002
|
* The id of the item the plan will be associated with.
|
|
2561
3003
|
*/
|
|
@@ -2576,6 +3018,11 @@ export declare namespace PriceCreateParams {
|
|
|
2576
3018
|
* this is true, and in-arrears if this is false.
|
|
2577
3019
|
*/
|
|
2578
3020
|
billed_in_advance?: boolean | null;
|
|
3021
|
+
/**
|
|
3022
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3023
|
+
* months.
|
|
3024
|
+
*/
|
|
3025
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingThresholdTotalAmountPrice.BillingCycleConfiguration | null;
|
|
2579
3026
|
/**
|
|
2580
3027
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2581
3028
|
*/
|
|
@@ -2593,6 +3040,11 @@ export declare namespace PriceCreateParams {
|
|
|
2593
3040
|
* The property used to group this price on an invoice
|
|
2594
3041
|
*/
|
|
2595
3042
|
invoice_grouping_key?: string | null;
|
|
3043
|
+
/**
|
|
3044
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3045
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3046
|
+
*/
|
|
3047
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingThresholdTotalAmountPrice.InvoicingCycleConfiguration | null;
|
|
2596
3048
|
/**
|
|
2597
3049
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2598
3050
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2600,6 +3052,36 @@ export declare namespace PriceCreateParams {
|
|
|
2600
3052
|
*/
|
|
2601
3053
|
metadata?: Record<string, string | null> | null;
|
|
2602
3054
|
}
|
|
3055
|
+
namespace NewFloatingThresholdTotalAmountPrice {
|
|
3056
|
+
/**
|
|
3057
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3058
|
+
* months.
|
|
3059
|
+
*/
|
|
3060
|
+
interface BillingCycleConfiguration {
|
|
3061
|
+
/**
|
|
3062
|
+
* The duration of the billing period.
|
|
3063
|
+
*/
|
|
3064
|
+
duration: number;
|
|
3065
|
+
/**
|
|
3066
|
+
* The unit of billing period duration.
|
|
3067
|
+
*/
|
|
3068
|
+
duration_unit: 'day' | 'month';
|
|
3069
|
+
}
|
|
3070
|
+
/**
|
|
3071
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3072
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3073
|
+
*/
|
|
3074
|
+
interface InvoicingCycleConfiguration {
|
|
3075
|
+
/**
|
|
3076
|
+
* The duration of the billing period.
|
|
3077
|
+
*/
|
|
3078
|
+
duration: number;
|
|
3079
|
+
/**
|
|
3080
|
+
* The unit of billing period duration.
|
|
3081
|
+
*/
|
|
3082
|
+
duration_unit: 'day' | 'month';
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
2603
3085
|
interface NewFloatingTieredPackagePrice {
|
|
2604
3086
|
/**
|
|
2605
3087
|
* The cadence to bill for this price on.
|
|
@@ -2629,6 +3111,11 @@ export declare namespace PriceCreateParams {
|
|
|
2629
3111
|
* this is true, and in-arrears if this is false.
|
|
2630
3112
|
*/
|
|
2631
3113
|
billed_in_advance?: boolean | null;
|
|
3114
|
+
/**
|
|
3115
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3116
|
+
* months.
|
|
3117
|
+
*/
|
|
3118
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingTieredPackagePrice.BillingCycleConfiguration | null;
|
|
2632
3119
|
/**
|
|
2633
3120
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2634
3121
|
*/
|
|
@@ -2646,6 +3133,11 @@ export declare namespace PriceCreateParams {
|
|
|
2646
3133
|
* The property used to group this price on an invoice
|
|
2647
3134
|
*/
|
|
2648
3135
|
invoice_grouping_key?: string | null;
|
|
3136
|
+
/**
|
|
3137
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3138
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3139
|
+
*/
|
|
3140
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingTieredPackagePrice.InvoicingCycleConfiguration | null;
|
|
2649
3141
|
/**
|
|
2650
3142
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2651
3143
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2653,6 +3145,36 @@ export declare namespace PriceCreateParams {
|
|
|
2653
3145
|
*/
|
|
2654
3146
|
metadata?: Record<string, string | null> | null;
|
|
2655
3147
|
}
|
|
3148
|
+
namespace NewFloatingTieredPackagePrice {
|
|
3149
|
+
/**
|
|
3150
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3151
|
+
* months.
|
|
3152
|
+
*/
|
|
3153
|
+
interface BillingCycleConfiguration {
|
|
3154
|
+
/**
|
|
3155
|
+
* The duration of the billing period.
|
|
3156
|
+
*/
|
|
3157
|
+
duration: number;
|
|
3158
|
+
/**
|
|
3159
|
+
* The unit of billing period duration.
|
|
3160
|
+
*/
|
|
3161
|
+
duration_unit: 'day' | 'month';
|
|
3162
|
+
}
|
|
3163
|
+
/**
|
|
3164
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3165
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3166
|
+
*/
|
|
3167
|
+
interface InvoicingCycleConfiguration {
|
|
3168
|
+
/**
|
|
3169
|
+
* The duration of the billing period.
|
|
3170
|
+
*/
|
|
3171
|
+
duration: number;
|
|
3172
|
+
/**
|
|
3173
|
+
* The unit of billing period duration.
|
|
3174
|
+
*/
|
|
3175
|
+
duration_unit: 'day' | 'month';
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
2656
3178
|
interface NewFloatingGroupedTieredPrice {
|
|
2657
3179
|
/**
|
|
2658
3180
|
* The cadence to bill for this price on.
|
|
@@ -2682,6 +3204,11 @@ export declare namespace PriceCreateParams {
|
|
|
2682
3204
|
* this is true, and in-arrears if this is false.
|
|
2683
3205
|
*/
|
|
2684
3206
|
billed_in_advance?: boolean | null;
|
|
3207
|
+
/**
|
|
3208
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3209
|
+
* months.
|
|
3210
|
+
*/
|
|
3211
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingGroupedTieredPrice.BillingCycleConfiguration | null;
|
|
2685
3212
|
/**
|
|
2686
3213
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2687
3214
|
*/
|
|
@@ -2699,6 +3226,11 @@ export declare namespace PriceCreateParams {
|
|
|
2699
3226
|
* The property used to group this price on an invoice
|
|
2700
3227
|
*/
|
|
2701
3228
|
invoice_grouping_key?: string | null;
|
|
3229
|
+
/**
|
|
3230
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3231
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3232
|
+
*/
|
|
3233
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingGroupedTieredPrice.InvoicingCycleConfiguration | null;
|
|
2702
3234
|
/**
|
|
2703
3235
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2704
3236
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2706,6 +3238,36 @@ export declare namespace PriceCreateParams {
|
|
|
2706
3238
|
*/
|
|
2707
3239
|
metadata?: Record<string, string | null> | null;
|
|
2708
3240
|
}
|
|
3241
|
+
namespace NewFloatingGroupedTieredPrice {
|
|
3242
|
+
/**
|
|
3243
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3244
|
+
* months.
|
|
3245
|
+
*/
|
|
3246
|
+
interface BillingCycleConfiguration {
|
|
3247
|
+
/**
|
|
3248
|
+
* The duration of the billing period.
|
|
3249
|
+
*/
|
|
3250
|
+
duration: number;
|
|
3251
|
+
/**
|
|
3252
|
+
* The unit of billing period duration.
|
|
3253
|
+
*/
|
|
3254
|
+
duration_unit: 'day' | 'month';
|
|
3255
|
+
}
|
|
3256
|
+
/**
|
|
3257
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3258
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3259
|
+
*/
|
|
3260
|
+
interface InvoicingCycleConfiguration {
|
|
3261
|
+
/**
|
|
3262
|
+
* The duration of the billing period.
|
|
3263
|
+
*/
|
|
3264
|
+
duration: number;
|
|
3265
|
+
/**
|
|
3266
|
+
* The unit of billing period duration.
|
|
3267
|
+
*/
|
|
3268
|
+
duration_unit: 'day' | 'month';
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
2709
3271
|
interface NewFloatingTieredWithMinimumPrice {
|
|
2710
3272
|
/**
|
|
2711
3273
|
* The cadence to bill for this price on.
|
|
@@ -2735,6 +3297,11 @@ export declare namespace PriceCreateParams {
|
|
|
2735
3297
|
* this is true, and in-arrears if this is false.
|
|
2736
3298
|
*/
|
|
2737
3299
|
billed_in_advance?: boolean | null;
|
|
3300
|
+
/**
|
|
3301
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3302
|
+
* months.
|
|
3303
|
+
*/
|
|
3304
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingTieredWithMinimumPrice.BillingCycleConfiguration | null;
|
|
2738
3305
|
/**
|
|
2739
3306
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2740
3307
|
*/
|
|
@@ -2752,6 +3319,11 @@ export declare namespace PriceCreateParams {
|
|
|
2752
3319
|
* The property used to group this price on an invoice
|
|
2753
3320
|
*/
|
|
2754
3321
|
invoice_grouping_key?: string | null;
|
|
3322
|
+
/**
|
|
3323
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3324
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3325
|
+
*/
|
|
3326
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingTieredWithMinimumPrice.InvoicingCycleConfiguration | null;
|
|
2755
3327
|
/**
|
|
2756
3328
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2757
3329
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2759,6 +3331,36 @@ export declare namespace PriceCreateParams {
|
|
|
2759
3331
|
*/
|
|
2760
3332
|
metadata?: Record<string, string | null> | null;
|
|
2761
3333
|
}
|
|
3334
|
+
namespace NewFloatingTieredWithMinimumPrice {
|
|
3335
|
+
/**
|
|
3336
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3337
|
+
* months.
|
|
3338
|
+
*/
|
|
3339
|
+
interface BillingCycleConfiguration {
|
|
3340
|
+
/**
|
|
3341
|
+
* The duration of the billing period.
|
|
3342
|
+
*/
|
|
3343
|
+
duration: number;
|
|
3344
|
+
/**
|
|
3345
|
+
* The unit of billing period duration.
|
|
3346
|
+
*/
|
|
3347
|
+
duration_unit: 'day' | 'month';
|
|
3348
|
+
}
|
|
3349
|
+
/**
|
|
3350
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3351
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3352
|
+
*/
|
|
3353
|
+
interface InvoicingCycleConfiguration {
|
|
3354
|
+
/**
|
|
3355
|
+
* The duration of the billing period.
|
|
3356
|
+
*/
|
|
3357
|
+
duration: number;
|
|
3358
|
+
/**
|
|
3359
|
+
* The unit of billing period duration.
|
|
3360
|
+
*/
|
|
3361
|
+
duration_unit: 'day' | 'month';
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
2762
3364
|
interface NewFloatingPackageWithAllocationPrice {
|
|
2763
3365
|
/**
|
|
2764
3366
|
* The cadence to bill for this price on.
|
|
@@ -2788,6 +3390,11 @@ export declare namespace PriceCreateParams {
|
|
|
2788
3390
|
* this is true, and in-arrears if this is false.
|
|
2789
3391
|
*/
|
|
2790
3392
|
billed_in_advance?: boolean | null;
|
|
3393
|
+
/**
|
|
3394
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3395
|
+
* months.
|
|
3396
|
+
*/
|
|
3397
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingPackageWithAllocationPrice.BillingCycleConfiguration | null;
|
|
2791
3398
|
/**
|
|
2792
3399
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2793
3400
|
*/
|
|
@@ -2805,6 +3412,11 @@ export declare namespace PriceCreateParams {
|
|
|
2805
3412
|
* The property used to group this price on an invoice
|
|
2806
3413
|
*/
|
|
2807
3414
|
invoice_grouping_key?: string | null;
|
|
3415
|
+
/**
|
|
3416
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3417
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3418
|
+
*/
|
|
3419
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingPackageWithAllocationPrice.InvoicingCycleConfiguration | null;
|
|
2808
3420
|
/**
|
|
2809
3421
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2810
3422
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2812,6 +3424,36 @@ export declare namespace PriceCreateParams {
|
|
|
2812
3424
|
*/
|
|
2813
3425
|
metadata?: Record<string, string | null> | null;
|
|
2814
3426
|
}
|
|
3427
|
+
namespace NewFloatingPackageWithAllocationPrice {
|
|
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
|
+
}
|
|
3456
|
+
}
|
|
2815
3457
|
interface NewFloatingTieredPackageWithMinimumPrice {
|
|
2816
3458
|
/**
|
|
2817
3459
|
* The cadence to bill for this price on.
|
|
@@ -2841,6 +3483,11 @@ export declare namespace PriceCreateParams {
|
|
|
2841
3483
|
* this is true, and in-arrears if this is false.
|
|
2842
3484
|
*/
|
|
2843
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?: PriceCreateParams.NewFloatingTieredPackageWithMinimumPrice.BillingCycleConfiguration | null;
|
|
2844
3491
|
/**
|
|
2845
3492
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2846
3493
|
*/
|
|
@@ -2858,6 +3505,11 @@ export declare namespace PriceCreateParams {
|
|
|
2858
3505
|
* The property used to group this price on an invoice
|
|
2859
3506
|
*/
|
|
2860
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?: PriceCreateParams.NewFloatingTieredPackageWithMinimumPrice.InvoicingCycleConfiguration | null;
|
|
2861
3513
|
/**
|
|
2862
3514
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2863
3515
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2865,6 +3517,36 @@ export declare namespace PriceCreateParams {
|
|
|
2865
3517
|
*/
|
|
2866
3518
|
metadata?: Record<string, string | null> | null;
|
|
2867
3519
|
}
|
|
3520
|
+
namespace NewFloatingTieredPackageWithMinimumPrice {
|
|
3521
|
+
/**
|
|
3522
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3523
|
+
* months.
|
|
3524
|
+
*/
|
|
3525
|
+
interface BillingCycleConfiguration {
|
|
3526
|
+
/**
|
|
3527
|
+
* The duration of the billing period.
|
|
3528
|
+
*/
|
|
3529
|
+
duration: number;
|
|
3530
|
+
/**
|
|
3531
|
+
* The unit of billing period duration.
|
|
3532
|
+
*/
|
|
3533
|
+
duration_unit: 'day' | 'month';
|
|
3534
|
+
}
|
|
3535
|
+
/**
|
|
3536
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3537
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3538
|
+
*/
|
|
3539
|
+
interface InvoicingCycleConfiguration {
|
|
3540
|
+
/**
|
|
3541
|
+
* The duration of the billing period.
|
|
3542
|
+
*/
|
|
3543
|
+
duration: number;
|
|
3544
|
+
/**
|
|
3545
|
+
* The unit of billing period duration.
|
|
3546
|
+
*/
|
|
3547
|
+
duration_unit: 'day' | 'month';
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
2868
3550
|
interface NewFloatingUnitWithPercentPrice {
|
|
2869
3551
|
/**
|
|
2870
3552
|
* The cadence to bill for this price on.
|
|
@@ -2894,6 +3576,11 @@ export declare namespace PriceCreateParams {
|
|
|
2894
3576
|
* this is true, and in-arrears if this is false.
|
|
2895
3577
|
*/
|
|
2896
3578
|
billed_in_advance?: boolean | null;
|
|
3579
|
+
/**
|
|
3580
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3581
|
+
* months.
|
|
3582
|
+
*/
|
|
3583
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingUnitWithPercentPrice.BillingCycleConfiguration | null;
|
|
2897
3584
|
/**
|
|
2898
3585
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2899
3586
|
*/
|
|
@@ -2911,6 +3598,11 @@ export declare namespace PriceCreateParams {
|
|
|
2911
3598
|
* The property used to group this price on an invoice
|
|
2912
3599
|
*/
|
|
2913
3600
|
invoice_grouping_key?: string | null;
|
|
3601
|
+
/**
|
|
3602
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3603
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3604
|
+
*/
|
|
3605
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingUnitWithPercentPrice.InvoicingCycleConfiguration | null;
|
|
2914
3606
|
/**
|
|
2915
3607
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2916
3608
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2918,6 +3610,36 @@ export declare namespace PriceCreateParams {
|
|
|
2918
3610
|
*/
|
|
2919
3611
|
metadata?: Record<string, string | null> | null;
|
|
2920
3612
|
}
|
|
3613
|
+
namespace NewFloatingUnitWithPercentPrice {
|
|
3614
|
+
/**
|
|
3615
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3616
|
+
* months.
|
|
3617
|
+
*/
|
|
3618
|
+
interface BillingCycleConfiguration {
|
|
3619
|
+
/**
|
|
3620
|
+
* The duration of the billing period.
|
|
3621
|
+
*/
|
|
3622
|
+
duration: number;
|
|
3623
|
+
/**
|
|
3624
|
+
* The unit of billing period duration.
|
|
3625
|
+
*/
|
|
3626
|
+
duration_unit: 'day' | 'month';
|
|
3627
|
+
}
|
|
3628
|
+
/**
|
|
3629
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3630
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3631
|
+
*/
|
|
3632
|
+
interface InvoicingCycleConfiguration {
|
|
3633
|
+
/**
|
|
3634
|
+
* The duration of the billing period.
|
|
3635
|
+
*/
|
|
3636
|
+
duration: number;
|
|
3637
|
+
/**
|
|
3638
|
+
* The unit of billing period duration.
|
|
3639
|
+
*/
|
|
3640
|
+
duration_unit: 'day' | 'month';
|
|
3641
|
+
}
|
|
3642
|
+
}
|
|
2921
3643
|
interface NewFloatingTieredWithProrationPrice {
|
|
2922
3644
|
/**
|
|
2923
3645
|
* The cadence to bill for this price on.
|
|
@@ -2947,6 +3669,11 @@ export declare namespace PriceCreateParams {
|
|
|
2947
3669
|
* this is true, and in-arrears if this is false.
|
|
2948
3670
|
*/
|
|
2949
3671
|
billed_in_advance?: boolean | null;
|
|
3672
|
+
/**
|
|
3673
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3674
|
+
* months.
|
|
3675
|
+
*/
|
|
3676
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingTieredWithProrationPrice.BillingCycleConfiguration | null;
|
|
2950
3677
|
/**
|
|
2951
3678
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2952
3679
|
*/
|
|
@@ -2964,6 +3691,11 @@ export declare namespace PriceCreateParams {
|
|
|
2964
3691
|
* The property used to group this price on an invoice
|
|
2965
3692
|
*/
|
|
2966
3693
|
invoice_grouping_key?: string | null;
|
|
3694
|
+
/**
|
|
3695
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3696
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3697
|
+
*/
|
|
3698
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingTieredWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
2967
3699
|
/**
|
|
2968
3700
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2969
3701
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2971,6 +3703,36 @@ export declare namespace PriceCreateParams {
|
|
|
2971
3703
|
*/
|
|
2972
3704
|
metadata?: Record<string, string | null> | null;
|
|
2973
3705
|
}
|
|
3706
|
+
namespace NewFloatingTieredWithProrationPrice {
|
|
3707
|
+
/**
|
|
3708
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3709
|
+
* months.
|
|
3710
|
+
*/
|
|
3711
|
+
interface BillingCycleConfiguration {
|
|
3712
|
+
/**
|
|
3713
|
+
* The duration of the billing period.
|
|
3714
|
+
*/
|
|
3715
|
+
duration: number;
|
|
3716
|
+
/**
|
|
3717
|
+
* The unit of billing period duration.
|
|
3718
|
+
*/
|
|
3719
|
+
duration_unit: 'day' | 'month';
|
|
3720
|
+
}
|
|
3721
|
+
/**
|
|
3722
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3723
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3724
|
+
*/
|
|
3725
|
+
interface InvoicingCycleConfiguration {
|
|
3726
|
+
/**
|
|
3727
|
+
* The duration of the billing period.
|
|
3728
|
+
*/
|
|
3729
|
+
duration: number;
|
|
3730
|
+
/**
|
|
3731
|
+
* The unit of billing period duration.
|
|
3732
|
+
*/
|
|
3733
|
+
duration_unit: 'day' | 'month';
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
2974
3736
|
interface NewFloatingUnitWithProrationPrice {
|
|
2975
3737
|
/**
|
|
2976
3738
|
* The cadence to bill for this price on.
|
|
@@ -3000,6 +3762,11 @@ export declare namespace PriceCreateParams {
|
|
|
3000
3762
|
* this is true, and in-arrears if this is false.
|
|
3001
3763
|
*/
|
|
3002
3764
|
billed_in_advance?: boolean | null;
|
|
3765
|
+
/**
|
|
3766
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3767
|
+
* months.
|
|
3768
|
+
*/
|
|
3769
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingUnitWithProrationPrice.BillingCycleConfiguration | null;
|
|
3003
3770
|
/**
|
|
3004
3771
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3005
3772
|
*/
|
|
@@ -3017,6 +3784,11 @@ export declare namespace PriceCreateParams {
|
|
|
3017
3784
|
* The property used to group this price on an invoice
|
|
3018
3785
|
*/
|
|
3019
3786
|
invoice_grouping_key?: string | null;
|
|
3787
|
+
/**
|
|
3788
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3789
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3790
|
+
*/
|
|
3791
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingUnitWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
3020
3792
|
/**
|
|
3021
3793
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3022
3794
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3024,6 +3796,36 @@ export declare namespace PriceCreateParams {
|
|
|
3024
3796
|
*/
|
|
3025
3797
|
metadata?: Record<string, string | null> | null;
|
|
3026
3798
|
}
|
|
3799
|
+
namespace NewFloatingUnitWithProrationPrice {
|
|
3800
|
+
/**
|
|
3801
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3802
|
+
* months.
|
|
3803
|
+
*/
|
|
3804
|
+
interface BillingCycleConfiguration {
|
|
3805
|
+
/**
|
|
3806
|
+
* The duration of the billing period.
|
|
3807
|
+
*/
|
|
3808
|
+
duration: number;
|
|
3809
|
+
/**
|
|
3810
|
+
* The unit of billing period duration.
|
|
3811
|
+
*/
|
|
3812
|
+
duration_unit: 'day' | 'month';
|
|
3813
|
+
}
|
|
3814
|
+
/**
|
|
3815
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3816
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3817
|
+
*/
|
|
3818
|
+
interface InvoicingCycleConfiguration {
|
|
3819
|
+
/**
|
|
3820
|
+
* The duration of the billing period.
|
|
3821
|
+
*/
|
|
3822
|
+
duration: number;
|
|
3823
|
+
/**
|
|
3824
|
+
* The unit of billing period duration.
|
|
3825
|
+
*/
|
|
3826
|
+
duration_unit: 'day' | 'month';
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3027
3829
|
interface NewFloatingGroupedAllocationPrice {
|
|
3028
3830
|
/**
|
|
3029
3831
|
* The cadence to bill for this price on.
|
|
@@ -3053,6 +3855,11 @@ export declare namespace PriceCreateParams {
|
|
|
3053
3855
|
* this is true, and in-arrears if this is false.
|
|
3054
3856
|
*/
|
|
3055
3857
|
billed_in_advance?: boolean | null;
|
|
3858
|
+
/**
|
|
3859
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3860
|
+
* months.
|
|
3861
|
+
*/
|
|
3862
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingGroupedAllocationPrice.BillingCycleConfiguration | null;
|
|
3056
3863
|
/**
|
|
3057
3864
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3058
3865
|
*/
|
|
@@ -3070,6 +3877,11 @@ export declare namespace PriceCreateParams {
|
|
|
3070
3877
|
* The property used to group this price on an invoice
|
|
3071
3878
|
*/
|
|
3072
3879
|
invoice_grouping_key?: string | null;
|
|
3880
|
+
/**
|
|
3881
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3882
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3883
|
+
*/
|
|
3884
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingGroupedAllocationPrice.InvoicingCycleConfiguration | null;
|
|
3073
3885
|
/**
|
|
3074
3886
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3075
3887
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3077,6 +3889,36 @@ export declare namespace PriceCreateParams {
|
|
|
3077
3889
|
*/
|
|
3078
3890
|
metadata?: Record<string, string | null> | null;
|
|
3079
3891
|
}
|
|
3892
|
+
namespace NewFloatingGroupedAllocationPrice {
|
|
3893
|
+
/**
|
|
3894
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3895
|
+
* months.
|
|
3896
|
+
*/
|
|
3897
|
+
interface BillingCycleConfiguration {
|
|
3898
|
+
/**
|
|
3899
|
+
* The duration of the billing period.
|
|
3900
|
+
*/
|
|
3901
|
+
duration: number;
|
|
3902
|
+
/**
|
|
3903
|
+
* The unit of billing period duration.
|
|
3904
|
+
*/
|
|
3905
|
+
duration_unit: 'day' | 'month';
|
|
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
|
+
interface InvoicingCycleConfiguration {
|
|
3912
|
+
/**
|
|
3913
|
+
* The duration of the billing period.
|
|
3914
|
+
*/
|
|
3915
|
+
duration: number;
|
|
3916
|
+
/**
|
|
3917
|
+
* The unit of billing period duration.
|
|
3918
|
+
*/
|
|
3919
|
+
duration_unit: 'day' | 'month';
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3080
3922
|
interface NewFloatingBulkWithProrationPrice {
|
|
3081
3923
|
bulk_with_proration_config: Record<string, unknown>;
|
|
3082
3924
|
/**
|
|
@@ -3106,6 +3948,11 @@ export declare namespace PriceCreateParams {
|
|
|
3106
3948
|
* this is true, and in-arrears if this is false.
|
|
3107
3949
|
*/
|
|
3108
3950
|
billed_in_advance?: boolean | null;
|
|
3951
|
+
/**
|
|
3952
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3953
|
+
* months.
|
|
3954
|
+
*/
|
|
3955
|
+
billing_cycle_configuration?: PriceCreateParams.NewFloatingBulkWithProrationPrice.BillingCycleConfiguration | null;
|
|
3109
3956
|
/**
|
|
3110
3957
|
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3111
3958
|
*/
|
|
@@ -3123,6 +3970,11 @@ export declare namespace PriceCreateParams {
|
|
|
3123
3970
|
* The property used to group this price on an invoice
|
|
3124
3971
|
*/
|
|
3125
3972
|
invoice_grouping_key?: string | null;
|
|
3973
|
+
/**
|
|
3974
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3975
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3976
|
+
*/
|
|
3977
|
+
invoicing_cycle_configuration?: PriceCreateParams.NewFloatingBulkWithProrationPrice.InvoicingCycleConfiguration | null;
|
|
3126
3978
|
/**
|
|
3127
3979
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3128
3980
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3130,6 +3982,36 @@ export declare namespace PriceCreateParams {
|
|
|
3130
3982
|
*/
|
|
3131
3983
|
metadata?: Record<string, string | null> | null;
|
|
3132
3984
|
}
|
|
3985
|
+
namespace NewFloatingBulkWithProrationPrice {
|
|
3986
|
+
/**
|
|
3987
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3988
|
+
* months.
|
|
3989
|
+
*/
|
|
3990
|
+
interface BillingCycleConfiguration {
|
|
3991
|
+
/**
|
|
3992
|
+
* The duration of the billing period.
|
|
3993
|
+
*/
|
|
3994
|
+
duration: number;
|
|
3995
|
+
/**
|
|
3996
|
+
* The unit of billing period duration.
|
|
3997
|
+
*/
|
|
3998
|
+
duration_unit: 'day' | 'month';
|
|
3999
|
+
}
|
|
4000
|
+
/**
|
|
4001
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4002
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4003
|
+
*/
|
|
4004
|
+
interface InvoicingCycleConfiguration {
|
|
4005
|
+
/**
|
|
4006
|
+
* The duration of the billing period.
|
|
4007
|
+
*/
|
|
4008
|
+
duration: number;
|
|
4009
|
+
/**
|
|
4010
|
+
* The unit of billing period duration.
|
|
4011
|
+
*/
|
|
4012
|
+
duration_unit: 'day' | 'month';
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
3133
4015
|
}
|
|
3134
4016
|
export interface PriceUpdateParams {
|
|
3135
4017
|
/**
|