orb-billing 5.5.1 → 5.6.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 +14 -0
- package/index.d.mts +4 -13
- package/index.d.ts +4 -13
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +4 -1
- package/resources/alerts.d.ts +1 -1
- package/resources/beta/beta.d.ts +168 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +168 -2
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/customers/balance-transactions.d.ts +2 -2
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +22 -8
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/customers.d.ts +27 -0
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.js +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs +1 -1
- package/resources/events/backfills.d.ts +2 -2
- package/resources/events/backfills.js +2 -2
- package/resources/events/backfills.mjs +2 -2
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +1 -1
- package/resources/invoices.d.ts +36 -11
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +4 -4
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +4 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +84 -1
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/prices.d.ts +262 -166
- 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/shared.d.ts +216 -615
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscriptions.d.ts +460 -192
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +5 -17
- package/src/resources/alerts.ts +1 -1
- package/src/resources/beta/beta.ts +198 -6
- package/src/resources/beta/external-plan-id.ts +198 -6
- package/src/resources/customers/balance-transactions.ts +4 -2
- package/src/resources/customers/credits/ledger.ts +24 -8
- package/src/resources/customers/customers.ts +31 -0
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +1 -1
- package/src/resources/events/backfills.ts +2 -2
- package/src/resources/index.ts +1 -3
- package/src/resources/invoice-line-items.ts +1 -1
- package/src/resources/invoices.ts +41 -11
- package/src/resources/plans/plans.ts +99 -3
- package/src/resources/prices/prices.ts +283 -179
- package/src/resources/shared.ts +260 -747
- package/src/resources/subscriptions.ts +540 -238
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -766,7 +766,7 @@ export class Subscriptions extends APIResource {
|
|
|
766
766
|
* This endpoint can be used to change an existing subscription's plan. It returns
|
|
767
767
|
* the serialized updated subscription object.
|
|
768
768
|
*
|
|
769
|
-
* The body parameter `change_option` determines when the plan change
|
|
769
|
+
* The body parameter `change_option` determines when the plan change occurs. Orb
|
|
770
770
|
* supports three options:
|
|
771
771
|
*
|
|
772
772
|
* - `end_of_subscription_term`: changes the plan at the end of the existing plan's
|
|
@@ -1092,196 +1092,6 @@ export interface DiscountOverride {
|
|
|
1092
1092
|
usage_discount?: number | null;
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
|
-
export interface NewSubscriptionBPSPrice {
|
|
1096
|
-
bps_config: Shared.BPSConfig;
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* The cadence to bill for this price on.
|
|
1100
|
-
*/
|
|
1101
|
-
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* The id of the item the price will be associated with.
|
|
1105
|
-
*/
|
|
1106
|
-
item_id: string;
|
|
1107
|
-
|
|
1108
|
-
model_type: 'bps';
|
|
1109
|
-
|
|
1110
|
-
/**
|
|
1111
|
-
* The name of the price.
|
|
1112
|
-
*/
|
|
1113
|
-
name: string;
|
|
1114
|
-
|
|
1115
|
-
/**
|
|
1116
|
-
* The id of the billable metric for the price. Only needed if the price is
|
|
1117
|
-
* usage-based.
|
|
1118
|
-
*/
|
|
1119
|
-
billable_metric_id?: string | null;
|
|
1120
|
-
|
|
1121
|
-
/**
|
|
1122
|
-
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1123
|
-
* this is true, and in-arrears if this is false.
|
|
1124
|
-
*/
|
|
1125
|
-
billed_in_advance?: boolean | null;
|
|
1126
|
-
|
|
1127
|
-
/**
|
|
1128
|
-
* For custom cadence: specifies the duration of the billing period in days or
|
|
1129
|
-
* months.
|
|
1130
|
-
*/
|
|
1131
|
-
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1135
|
-
*/
|
|
1136
|
-
conversion_rate?: number | null;
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* The configuration for the rate of the price currency to the invoicing currency.
|
|
1140
|
-
*/
|
|
1141
|
-
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
1142
|
-
|
|
1143
|
-
/**
|
|
1144
|
-
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
1145
|
-
* price is billed.
|
|
1146
|
-
*/
|
|
1147
|
-
currency?: string | null;
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* For dimensional price: specifies a price group and dimension values
|
|
1151
|
-
*/
|
|
1152
|
-
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* An alias for the price.
|
|
1156
|
-
*/
|
|
1157
|
-
external_price_id?: string | null;
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1161
|
-
* applied.
|
|
1162
|
-
*/
|
|
1163
|
-
fixed_price_quantity?: number | null;
|
|
1164
|
-
|
|
1165
|
-
/**
|
|
1166
|
-
* The property used to group this price on an invoice
|
|
1167
|
-
*/
|
|
1168
|
-
invoice_grouping_key?: string | null;
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
1172
|
-
* If unspecified, a single invoice is produced per billing cycle.
|
|
1173
|
-
*/
|
|
1174
|
-
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1175
|
-
|
|
1176
|
-
/**
|
|
1177
|
-
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1178
|
-
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1179
|
-
* by setting `metadata` to `null`.
|
|
1180
|
-
*/
|
|
1181
|
-
metadata?: { [key: string]: string | null } | null;
|
|
1182
|
-
|
|
1183
|
-
/**
|
|
1184
|
-
* A transient ID that can be used to reference this price when adding adjustments
|
|
1185
|
-
* in the same API call.
|
|
1186
|
-
*/
|
|
1187
|
-
reference_id?: string | null;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
export interface NewSubscriptionBulkBPSPrice {
|
|
1191
|
-
bulk_bps_config: Shared.BulkBPSConfig;
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* The cadence to bill for this price on.
|
|
1195
|
-
*/
|
|
1196
|
-
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
1197
|
-
|
|
1198
|
-
/**
|
|
1199
|
-
* The id of the item the price will be associated with.
|
|
1200
|
-
*/
|
|
1201
|
-
item_id: string;
|
|
1202
|
-
|
|
1203
|
-
model_type: 'bulk_bps';
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
* The name of the price.
|
|
1207
|
-
*/
|
|
1208
|
-
name: string;
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* The id of the billable metric for the price. Only needed if the price is
|
|
1212
|
-
* usage-based.
|
|
1213
|
-
*/
|
|
1214
|
-
billable_metric_id?: string | null;
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1218
|
-
* this is true, and in-arrears if this is false.
|
|
1219
|
-
*/
|
|
1220
|
-
billed_in_advance?: boolean | null;
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* For custom cadence: specifies the duration of the billing period in days or
|
|
1224
|
-
* months.
|
|
1225
|
-
*/
|
|
1226
|
-
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1227
|
-
|
|
1228
|
-
/**
|
|
1229
|
-
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1230
|
-
*/
|
|
1231
|
-
conversion_rate?: number | null;
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* The configuration for the rate of the price currency to the invoicing currency.
|
|
1235
|
-
*/
|
|
1236
|
-
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1239
|
-
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
1240
|
-
* price is billed.
|
|
1241
|
-
*/
|
|
1242
|
-
currency?: string | null;
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* For dimensional price: specifies a price group and dimension values
|
|
1246
|
-
*/
|
|
1247
|
-
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
1248
|
-
|
|
1249
|
-
/**
|
|
1250
|
-
* An alias for the price.
|
|
1251
|
-
*/
|
|
1252
|
-
external_price_id?: string | null;
|
|
1253
|
-
|
|
1254
|
-
/**
|
|
1255
|
-
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1256
|
-
* applied.
|
|
1257
|
-
*/
|
|
1258
|
-
fixed_price_quantity?: number | null;
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* The property used to group this price on an invoice
|
|
1262
|
-
*/
|
|
1263
|
-
invoice_grouping_key?: string | null;
|
|
1264
|
-
|
|
1265
|
-
/**
|
|
1266
|
-
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
1267
|
-
* If unspecified, a single invoice is produced per billing cycle.
|
|
1268
|
-
*/
|
|
1269
|
-
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1270
|
-
|
|
1271
|
-
/**
|
|
1272
|
-
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1273
|
-
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1274
|
-
* by setting `metadata` to `null`.
|
|
1275
|
-
*/
|
|
1276
|
-
metadata?: { [key: string]: string | null } | null;
|
|
1277
|
-
|
|
1278
|
-
/**
|
|
1279
|
-
* A transient ID that can be used to reference this price when adding adjustments
|
|
1280
|
-
* in the same API call.
|
|
1281
|
-
*/
|
|
1282
|
-
reference_id?: string | null;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
1095
|
export interface NewSubscriptionBulkPrice {
|
|
1286
1096
|
bulk_config: Shared.BulkConfig;
|
|
1287
1097
|
|
|
@@ -2422,7 +2232,7 @@ export interface NewSubscriptionMaxGroupTieredPackagePrice {
|
|
|
2422
2232
|
reference_id?: string | null;
|
|
2423
2233
|
}
|
|
2424
2234
|
|
|
2425
|
-
export interface
|
|
2235
|
+
export interface NewSubscriptionMinimumCompositePrice {
|
|
2426
2236
|
/**
|
|
2427
2237
|
* The cadence to bill for this price on.
|
|
2428
2238
|
*/
|
|
@@ -2433,15 +2243,15 @@ export interface NewSubscriptionPackagePrice {
|
|
|
2433
2243
|
*/
|
|
2434
2244
|
item_id: string;
|
|
2435
2245
|
|
|
2436
|
-
|
|
2246
|
+
minimum_config: NewSubscriptionMinimumCompositePrice.MinimumConfig;
|
|
2247
|
+
|
|
2248
|
+
model_type: 'minimum';
|
|
2437
2249
|
|
|
2438
2250
|
/**
|
|
2439
2251
|
* The name of the price.
|
|
2440
2252
|
*/
|
|
2441
2253
|
name: string;
|
|
2442
2254
|
|
|
2443
|
-
package_config: Shared.PackageConfig;
|
|
2444
|
-
|
|
2445
2255
|
/**
|
|
2446
2256
|
* The id of the billable metric for the price. Only needed if the price is
|
|
2447
2257
|
* usage-based.
|
|
@@ -2517,7 +2327,22 @@ export interface NewSubscriptionPackagePrice {
|
|
|
2517
2327
|
reference_id?: string | null;
|
|
2518
2328
|
}
|
|
2519
2329
|
|
|
2520
|
-
export
|
|
2330
|
+
export namespace NewSubscriptionMinimumCompositePrice {
|
|
2331
|
+
export interface MinimumConfig {
|
|
2332
|
+
/**
|
|
2333
|
+
* The minimum amount to apply
|
|
2334
|
+
*/
|
|
2335
|
+
minimum_amount: string;
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* By default, subtotals from minimum composite prices are prorated based on the
|
|
2339
|
+
* service period. Set to false to disable proration.
|
|
2340
|
+
*/
|
|
2341
|
+
prorated?: boolean | null;
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
export interface NewSubscriptionPackagePrice {
|
|
2521
2346
|
/**
|
|
2522
2347
|
* The cadence to bill for this price on.
|
|
2523
2348
|
*/
|
|
@@ -2528,14 +2353,14 @@ export interface NewSubscriptionPackageWithAllocationPrice {
|
|
|
2528
2353
|
*/
|
|
2529
2354
|
item_id: string;
|
|
2530
2355
|
|
|
2531
|
-
model_type: '
|
|
2356
|
+
model_type: 'package';
|
|
2532
2357
|
|
|
2533
2358
|
/**
|
|
2534
2359
|
* The name of the price.
|
|
2535
2360
|
*/
|
|
2536
2361
|
name: string;
|
|
2537
2362
|
|
|
2538
|
-
|
|
2363
|
+
package_config: Shared.PackageConfig;
|
|
2539
2364
|
|
|
2540
2365
|
/**
|
|
2541
2366
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2612,7 +2437,7 @@ export interface NewSubscriptionPackageWithAllocationPrice {
|
|
|
2612
2437
|
reference_id?: string | null;
|
|
2613
2438
|
}
|
|
2614
2439
|
|
|
2615
|
-
export interface
|
|
2440
|
+
export interface NewSubscriptionPackageWithAllocationPrice {
|
|
2616
2441
|
/**
|
|
2617
2442
|
* The cadence to bill for this price on.
|
|
2618
2443
|
*/
|
|
@@ -2623,14 +2448,14 @@ export interface NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2623
2448
|
*/
|
|
2624
2449
|
item_id: string;
|
|
2625
2450
|
|
|
2626
|
-
model_type: '
|
|
2451
|
+
model_type: 'package_with_allocation';
|
|
2627
2452
|
|
|
2628
2453
|
/**
|
|
2629
2454
|
* The name of the price.
|
|
2630
2455
|
*/
|
|
2631
2456
|
name: string;
|
|
2632
2457
|
|
|
2633
|
-
|
|
2458
|
+
package_with_allocation_config: { [key: string]: unknown };
|
|
2634
2459
|
|
|
2635
2460
|
/**
|
|
2636
2461
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2707,7 +2532,7 @@ export interface NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2707
2532
|
reference_id?: string | null;
|
|
2708
2533
|
}
|
|
2709
2534
|
|
|
2710
|
-
export interface
|
|
2535
|
+
export interface NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
2711
2536
|
/**
|
|
2712
2537
|
* The cadence to bill for this price on.
|
|
2713
2538
|
*/
|
|
@@ -2718,14 +2543,14 @@ export interface NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
|
2718
2543
|
*/
|
|
2719
2544
|
item_id: string;
|
|
2720
2545
|
|
|
2721
|
-
model_type: '
|
|
2546
|
+
model_type: 'scalable_matrix_with_tiered_pricing';
|
|
2722
2547
|
|
|
2723
2548
|
/**
|
|
2724
2549
|
* The name of the price.
|
|
2725
2550
|
*/
|
|
2726
2551
|
name: string;
|
|
2727
2552
|
|
|
2728
|
-
|
|
2553
|
+
scalable_matrix_with_tiered_pricing_config: { [key: string]: unknown };
|
|
2729
2554
|
|
|
2730
2555
|
/**
|
|
2731
2556
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2802,7 +2627,7 @@ export interface NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
|
2802
2627
|
reference_id?: string | null;
|
|
2803
2628
|
}
|
|
2804
2629
|
|
|
2805
|
-
export interface
|
|
2630
|
+
export interface NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
2806
2631
|
/**
|
|
2807
2632
|
* The cadence to bill for this price on.
|
|
2808
2633
|
*/
|
|
@@ -2813,14 +2638,14 @@ export interface NewSubscriptionThresholdTotalAmountPrice {
|
|
|
2813
2638
|
*/
|
|
2814
2639
|
item_id: string;
|
|
2815
2640
|
|
|
2816
|
-
model_type: '
|
|
2641
|
+
model_type: 'scalable_matrix_with_unit_pricing';
|
|
2817
2642
|
|
|
2818
2643
|
/**
|
|
2819
2644
|
* The name of the price.
|
|
2820
2645
|
*/
|
|
2821
2646
|
name: string;
|
|
2822
2647
|
|
|
2823
|
-
|
|
2648
|
+
scalable_matrix_with_unit_pricing_config: { [key: string]: unknown };
|
|
2824
2649
|
|
|
2825
2650
|
/**
|
|
2826
2651
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2897,7 +2722,7 @@ export interface NewSubscriptionThresholdTotalAmountPrice {
|
|
|
2897
2722
|
reference_id?: string | null;
|
|
2898
2723
|
}
|
|
2899
2724
|
|
|
2900
|
-
export interface
|
|
2725
|
+
export interface NewSubscriptionThresholdTotalAmountPrice {
|
|
2901
2726
|
/**
|
|
2902
2727
|
* The cadence to bill for this price on.
|
|
2903
2728
|
*/
|
|
@@ -2908,14 +2733,14 @@ export interface NewSubscriptionTierWithProrationPrice {
|
|
|
2908
2733
|
*/
|
|
2909
2734
|
item_id: string;
|
|
2910
2735
|
|
|
2911
|
-
model_type: '
|
|
2736
|
+
model_type: 'threshold_total_amount';
|
|
2912
2737
|
|
|
2913
2738
|
/**
|
|
2914
2739
|
* The name of the price.
|
|
2915
2740
|
*/
|
|
2916
2741
|
name: string;
|
|
2917
2742
|
|
|
2918
|
-
|
|
2743
|
+
threshold_total_amount_config: { [key: string]: unknown };
|
|
2919
2744
|
|
|
2920
2745
|
/**
|
|
2921
2746
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -2992,7 +2817,7 @@ export interface NewSubscriptionTierWithProrationPrice {
|
|
|
2992
2817
|
reference_id?: string | null;
|
|
2993
2818
|
}
|
|
2994
2819
|
|
|
2995
|
-
export interface
|
|
2820
|
+
export interface NewSubscriptionTierWithProrationPrice {
|
|
2996
2821
|
/**
|
|
2997
2822
|
* The cadence to bill for this price on.
|
|
2998
2823
|
*/
|
|
@@ -3003,14 +2828,14 @@ export interface NewSubscriptionTieredBPSPrice {
|
|
|
3003
2828
|
*/
|
|
3004
2829
|
item_id: string;
|
|
3005
2830
|
|
|
3006
|
-
model_type: '
|
|
2831
|
+
model_type: 'tiered_with_proration';
|
|
3007
2832
|
|
|
3008
2833
|
/**
|
|
3009
2834
|
* The name of the price.
|
|
3010
2835
|
*/
|
|
3011
2836
|
name: string;
|
|
3012
2837
|
|
|
3013
|
-
|
|
2838
|
+
tiered_with_proration_config: { [key: string]: unknown };
|
|
3014
2839
|
|
|
3015
2840
|
/**
|
|
3016
2841
|
* The id of the billable metric for the price. Only needed if the price is
|
|
@@ -4302,9 +4127,6 @@ export namespace SubscriptionCreateParams {
|
|
|
4302
4127
|
| SubscriptionsAPI.NewSubscriptionPackagePrice
|
|
4303
4128
|
| SubscriptionsAPI.NewSubscriptionMatrixPrice
|
|
4304
4129
|
| SubscriptionsAPI.NewSubscriptionTieredPrice
|
|
4305
|
-
| SubscriptionsAPI.NewSubscriptionTieredBPSPrice
|
|
4306
|
-
| SubscriptionsAPI.NewSubscriptionBPSPrice
|
|
4307
|
-
| SubscriptionsAPI.NewSubscriptionBulkBPSPrice
|
|
4308
4130
|
| SubscriptionsAPI.NewSubscriptionBulkPrice
|
|
4309
4131
|
| SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice
|
|
4310
4132
|
| SubscriptionsAPI.NewSubscriptionTieredPackagePrice
|
|
@@ -4326,6 +4148,8 @@ export namespace SubscriptionCreateParams {
|
|
|
4326
4148
|
| SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice
|
|
4327
4149
|
| SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice
|
|
4328
4150
|
| SubscriptionsAPI.NewSubscriptionGroupedTieredPrice
|
|
4151
|
+
| AddPrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice
|
|
4152
|
+
| SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
|
|
4329
4153
|
| null;
|
|
4330
4154
|
|
|
4331
4155
|
/**
|
|
@@ -4341,6 +4165,103 @@ export namespace SubscriptionCreateParams {
|
|
|
4341
4165
|
start_date?: string | null;
|
|
4342
4166
|
}
|
|
4343
4167
|
|
|
4168
|
+
export namespace AddPrice {
|
|
4169
|
+
export interface NewSubscriptionGroupedWithMinMaxThresholdsPrice {
|
|
4170
|
+
/**
|
|
4171
|
+
* The cadence to bill for this price on.
|
|
4172
|
+
*/
|
|
4173
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
4174
|
+
|
|
4175
|
+
grouped_with_min_max_thresholds_config: { [key: string]: unknown };
|
|
4176
|
+
|
|
4177
|
+
/**
|
|
4178
|
+
* The id of the item the price will be associated with.
|
|
4179
|
+
*/
|
|
4180
|
+
item_id: string;
|
|
4181
|
+
|
|
4182
|
+
model_type: 'grouped_with_min_max_thresholds';
|
|
4183
|
+
|
|
4184
|
+
/**
|
|
4185
|
+
* The name of the price.
|
|
4186
|
+
*/
|
|
4187
|
+
name: string;
|
|
4188
|
+
|
|
4189
|
+
/**
|
|
4190
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4191
|
+
* usage-based.
|
|
4192
|
+
*/
|
|
4193
|
+
billable_metric_id?: string | null;
|
|
4194
|
+
|
|
4195
|
+
/**
|
|
4196
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4197
|
+
* this is true, and in-arrears if this is false.
|
|
4198
|
+
*/
|
|
4199
|
+
billed_in_advance?: boolean | null;
|
|
4200
|
+
|
|
4201
|
+
/**
|
|
4202
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4203
|
+
* months.
|
|
4204
|
+
*/
|
|
4205
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4206
|
+
|
|
4207
|
+
/**
|
|
4208
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4209
|
+
*/
|
|
4210
|
+
conversion_rate?: number | null;
|
|
4211
|
+
|
|
4212
|
+
/**
|
|
4213
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
4214
|
+
*/
|
|
4215
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
4216
|
+
|
|
4217
|
+
/**
|
|
4218
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
4219
|
+
* price is billed.
|
|
4220
|
+
*/
|
|
4221
|
+
currency?: string | null;
|
|
4222
|
+
|
|
4223
|
+
/**
|
|
4224
|
+
* For dimensional price: specifies a price group and dimension values
|
|
4225
|
+
*/
|
|
4226
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
4227
|
+
|
|
4228
|
+
/**
|
|
4229
|
+
* An alias for the price.
|
|
4230
|
+
*/
|
|
4231
|
+
external_price_id?: string | null;
|
|
4232
|
+
|
|
4233
|
+
/**
|
|
4234
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4235
|
+
* applied.
|
|
4236
|
+
*/
|
|
4237
|
+
fixed_price_quantity?: number | null;
|
|
4238
|
+
|
|
4239
|
+
/**
|
|
4240
|
+
* The property used to group this price on an invoice
|
|
4241
|
+
*/
|
|
4242
|
+
invoice_grouping_key?: string | null;
|
|
4243
|
+
|
|
4244
|
+
/**
|
|
4245
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4246
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4247
|
+
*/
|
|
4248
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4249
|
+
|
|
4250
|
+
/**
|
|
4251
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4252
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4253
|
+
* by setting `metadata` to `null`.
|
|
4254
|
+
*/
|
|
4255
|
+
metadata?: { [key: string]: string | null } | null;
|
|
4256
|
+
|
|
4257
|
+
/**
|
|
4258
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
4259
|
+
* in the same API call.
|
|
4260
|
+
*/
|
|
4261
|
+
reference_id?: string | null;
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4344
4265
|
export interface RemoveAdjustment {
|
|
4345
4266
|
/**
|
|
4346
4267
|
* The id of the adjustment to remove on the subscription.
|
|
@@ -4424,9 +4345,6 @@ export namespace SubscriptionCreateParams {
|
|
|
4424
4345
|
| SubscriptionsAPI.NewSubscriptionPackagePrice
|
|
4425
4346
|
| SubscriptionsAPI.NewSubscriptionMatrixPrice
|
|
4426
4347
|
| SubscriptionsAPI.NewSubscriptionTieredPrice
|
|
4427
|
-
| SubscriptionsAPI.NewSubscriptionTieredBPSPrice
|
|
4428
|
-
| SubscriptionsAPI.NewSubscriptionBPSPrice
|
|
4429
|
-
| SubscriptionsAPI.NewSubscriptionBulkBPSPrice
|
|
4430
4348
|
| SubscriptionsAPI.NewSubscriptionBulkPrice
|
|
4431
4349
|
| SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice
|
|
4432
4350
|
| SubscriptionsAPI.NewSubscriptionTieredPackagePrice
|
|
@@ -4448,6 +4366,8 @@ export namespace SubscriptionCreateParams {
|
|
|
4448
4366
|
| SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice
|
|
4449
4367
|
| SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice
|
|
4450
4368
|
| SubscriptionsAPI.NewSubscriptionGroupedTieredPrice
|
|
4369
|
+
| ReplacePrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice
|
|
4370
|
+
| SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
|
|
4451
4371
|
| null;
|
|
4452
4372
|
|
|
4453
4373
|
/**
|
|
@@ -4455,6 +4375,103 @@ export namespace SubscriptionCreateParams {
|
|
|
4455
4375
|
*/
|
|
4456
4376
|
price_id?: string | null;
|
|
4457
4377
|
}
|
|
4378
|
+
|
|
4379
|
+
export namespace ReplacePrice {
|
|
4380
|
+
export interface NewSubscriptionGroupedWithMinMaxThresholdsPrice {
|
|
4381
|
+
/**
|
|
4382
|
+
* The cadence to bill for this price on.
|
|
4383
|
+
*/
|
|
4384
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
4385
|
+
|
|
4386
|
+
grouped_with_min_max_thresholds_config: { [key: string]: unknown };
|
|
4387
|
+
|
|
4388
|
+
/**
|
|
4389
|
+
* The id of the item the price will be associated with.
|
|
4390
|
+
*/
|
|
4391
|
+
item_id: string;
|
|
4392
|
+
|
|
4393
|
+
model_type: 'grouped_with_min_max_thresholds';
|
|
4394
|
+
|
|
4395
|
+
/**
|
|
4396
|
+
* The name of the price.
|
|
4397
|
+
*/
|
|
4398
|
+
name: string;
|
|
4399
|
+
|
|
4400
|
+
/**
|
|
4401
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4402
|
+
* usage-based.
|
|
4403
|
+
*/
|
|
4404
|
+
billable_metric_id?: string | null;
|
|
4405
|
+
|
|
4406
|
+
/**
|
|
4407
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4408
|
+
* this is true, and in-arrears if this is false.
|
|
4409
|
+
*/
|
|
4410
|
+
billed_in_advance?: boolean | null;
|
|
4411
|
+
|
|
4412
|
+
/**
|
|
4413
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4414
|
+
* months.
|
|
4415
|
+
*/
|
|
4416
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4417
|
+
|
|
4418
|
+
/**
|
|
4419
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4420
|
+
*/
|
|
4421
|
+
conversion_rate?: number | null;
|
|
4422
|
+
|
|
4423
|
+
/**
|
|
4424
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
4425
|
+
*/
|
|
4426
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
4427
|
+
|
|
4428
|
+
/**
|
|
4429
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
4430
|
+
* price is billed.
|
|
4431
|
+
*/
|
|
4432
|
+
currency?: string | null;
|
|
4433
|
+
|
|
4434
|
+
/**
|
|
4435
|
+
* For dimensional price: specifies a price group and dimension values
|
|
4436
|
+
*/
|
|
4437
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
4438
|
+
|
|
4439
|
+
/**
|
|
4440
|
+
* An alias for the price.
|
|
4441
|
+
*/
|
|
4442
|
+
external_price_id?: string | null;
|
|
4443
|
+
|
|
4444
|
+
/**
|
|
4445
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4446
|
+
* applied.
|
|
4447
|
+
*/
|
|
4448
|
+
fixed_price_quantity?: number | null;
|
|
4449
|
+
|
|
4450
|
+
/**
|
|
4451
|
+
* The property used to group this price on an invoice
|
|
4452
|
+
*/
|
|
4453
|
+
invoice_grouping_key?: string | null;
|
|
4454
|
+
|
|
4455
|
+
/**
|
|
4456
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4457
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4458
|
+
*/
|
|
4459
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4460
|
+
|
|
4461
|
+
/**
|
|
4462
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4463
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4464
|
+
* by setting `metadata` to `null`.
|
|
4465
|
+
*/
|
|
4466
|
+
metadata?: { [key: string]: string | null } | null;
|
|
4467
|
+
|
|
4468
|
+
/**
|
|
4469
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
4470
|
+
* in the same API call.
|
|
4471
|
+
*/
|
|
4472
|
+
reference_id?: string | null;
|
|
4473
|
+
}
|
|
4474
|
+
}
|
|
4458
4475
|
}
|
|
4459
4476
|
|
|
4460
4477
|
export interface SubscriptionUpdateParams {
|
|
@@ -4706,9 +4723,6 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4706
4723
|
| Shared.NewFloatingMatrixPrice
|
|
4707
4724
|
| Shared.NewFloatingMatrixWithAllocationPrice
|
|
4708
4725
|
| Shared.NewFloatingTieredPrice
|
|
4709
|
-
| Shared.NewFloatingTieredBPSPrice
|
|
4710
|
-
| Shared.NewFloatingBPSPrice
|
|
4711
|
-
| Shared.NewFloatingBulkBPSPrice
|
|
4712
4726
|
| Shared.NewFloatingBulkPrice
|
|
4713
4727
|
| Shared.NewFloatingThresholdTotalAmountPrice
|
|
4714
4728
|
| Shared.NewFloatingTieredPackagePrice
|
|
@@ -4729,6 +4743,8 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4729
4743
|
| Shared.NewFloatingScalableMatrixWithUnitPricingPrice
|
|
4730
4744
|
| Shared.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
4731
4745
|
| Shared.NewFloatingCumulativeGroupedBulkPrice
|
|
4746
|
+
| Add.NewFloatingGroupedWithMinMaxThresholdsPrice
|
|
4747
|
+
| Shared.NewFloatingMinimumCompositePrice
|
|
4732
4748
|
| null;
|
|
4733
4749
|
|
|
4734
4750
|
/**
|
|
@@ -4788,26 +4804,122 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4788
4804
|
*/
|
|
4789
4805
|
quantity: number;
|
|
4790
4806
|
}
|
|
4807
|
+
|
|
4808
|
+
export interface NewFloatingGroupedWithMinMaxThresholdsPrice {
|
|
4809
|
+
/**
|
|
4810
|
+
* The cadence to bill for this price on.
|
|
4811
|
+
*/
|
|
4812
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
4813
|
+
|
|
4814
|
+
/**
|
|
4815
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
4816
|
+
*/
|
|
4817
|
+
currency: string;
|
|
4818
|
+
|
|
4819
|
+
grouped_with_min_max_thresholds_config: { [key: string]: unknown };
|
|
4820
|
+
|
|
4821
|
+
/**
|
|
4822
|
+
* The id of the item the price will be associated with.
|
|
4823
|
+
*/
|
|
4824
|
+
item_id: string;
|
|
4825
|
+
|
|
4826
|
+
model_type: 'grouped_with_min_max_thresholds';
|
|
4827
|
+
|
|
4828
|
+
/**
|
|
4829
|
+
* The name of the price.
|
|
4830
|
+
*/
|
|
4831
|
+
name: string;
|
|
4832
|
+
|
|
4833
|
+
/**
|
|
4834
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4835
|
+
* usage-based.
|
|
4836
|
+
*/
|
|
4837
|
+
billable_metric_id?: string | null;
|
|
4838
|
+
|
|
4839
|
+
/**
|
|
4840
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4841
|
+
* this is true, and in-arrears if this is false.
|
|
4842
|
+
*/
|
|
4843
|
+
billed_in_advance?: boolean | null;
|
|
4844
|
+
|
|
4845
|
+
/**
|
|
4846
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4847
|
+
* months.
|
|
4848
|
+
*/
|
|
4849
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4850
|
+
|
|
4851
|
+
/**
|
|
4852
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4853
|
+
*/
|
|
4854
|
+
conversion_rate?: number | null;
|
|
4855
|
+
|
|
4856
|
+
/**
|
|
4857
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
4858
|
+
*/
|
|
4859
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
4860
|
+
|
|
4861
|
+
/**
|
|
4862
|
+
* For dimensional price: specifies a price group and dimension values
|
|
4863
|
+
*/
|
|
4864
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
4865
|
+
|
|
4866
|
+
/**
|
|
4867
|
+
* An alias for the price.
|
|
4868
|
+
*/
|
|
4869
|
+
external_price_id?: string | null;
|
|
4870
|
+
|
|
4871
|
+
/**
|
|
4872
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4873
|
+
* applied.
|
|
4874
|
+
*/
|
|
4875
|
+
fixed_price_quantity?: number | null;
|
|
4876
|
+
|
|
4877
|
+
/**
|
|
4878
|
+
* The property used to group this price on an invoice
|
|
4879
|
+
*/
|
|
4880
|
+
invoice_grouping_key?: string | null;
|
|
4881
|
+
|
|
4882
|
+
/**
|
|
4883
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4884
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4885
|
+
*/
|
|
4886
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4887
|
+
|
|
4888
|
+
/**
|
|
4889
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4890
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4891
|
+
* by setting `metadata` to `null`.
|
|
4892
|
+
*/
|
|
4893
|
+
metadata?: { [key: string]: string | null } | null;
|
|
4894
|
+
}
|
|
4791
4895
|
}
|
|
4792
4896
|
|
|
4793
4897
|
export interface AddAdjustment {
|
|
4898
|
+
/**
|
|
4899
|
+
* The start date of the adjustment interval. This is the date that the adjustment
|
|
4900
|
+
* will start affecting prices on the subscription. The adjustment will apply to
|
|
4901
|
+
* invoice dates that overlap with this `start_date`. This `start_date` is treated
|
|
4902
|
+
* as inclusive for in-advance prices, and exclusive for in-arrears prices.
|
|
4903
|
+
*/
|
|
4904
|
+
start_date: (string & {}) | Shared.BillingCycleRelativeDate;
|
|
4905
|
+
|
|
4794
4906
|
/**
|
|
4795
4907
|
* The definition of a new adjustment to create and add to the subscription.
|
|
4796
4908
|
*/
|
|
4797
|
-
adjustment
|
|
4909
|
+
adjustment?:
|
|
4798
4910
|
| Shared.NewPercentageDiscount
|
|
4799
4911
|
| Shared.NewUsageDiscount
|
|
4800
4912
|
| Shared.NewAmountDiscount
|
|
4801
4913
|
| Shared.NewMinimum
|
|
4802
|
-
| Shared.NewMaximum
|
|
4914
|
+
| Shared.NewMaximum
|
|
4915
|
+
| null;
|
|
4803
4916
|
|
|
4804
4917
|
/**
|
|
4805
|
-
* The
|
|
4806
|
-
*
|
|
4807
|
-
*
|
|
4808
|
-
* as inclusive for in-advance prices, and exclusive for in-arrears prices.
|
|
4918
|
+
* The ID of the adjustment to add to the subscription. Adjustment IDs can be
|
|
4919
|
+
* re-used from existing subscriptions or plans, but adjustments associated with
|
|
4920
|
+
* coupon redemptions cannot be re-used.
|
|
4809
4921
|
*/
|
|
4810
|
-
|
|
4922
|
+
adjustment_id?: string | null;
|
|
4811
4923
|
|
|
4812
4924
|
/**
|
|
4813
4925
|
* The end date of the adjustment interval. This is the date that the adjustment
|
|
@@ -5170,9 +5282,6 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5170
5282
|
| SubscriptionsAPI.NewSubscriptionPackagePrice
|
|
5171
5283
|
| SubscriptionsAPI.NewSubscriptionMatrixPrice
|
|
5172
5284
|
| SubscriptionsAPI.NewSubscriptionTieredPrice
|
|
5173
|
-
| SubscriptionsAPI.NewSubscriptionTieredBPSPrice
|
|
5174
|
-
| SubscriptionsAPI.NewSubscriptionBPSPrice
|
|
5175
|
-
| SubscriptionsAPI.NewSubscriptionBulkBPSPrice
|
|
5176
5285
|
| SubscriptionsAPI.NewSubscriptionBulkPrice
|
|
5177
5286
|
| SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice
|
|
5178
5287
|
| SubscriptionsAPI.NewSubscriptionTieredPackagePrice
|
|
@@ -5194,6 +5303,8 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5194
5303
|
| SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice
|
|
5195
5304
|
| SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice
|
|
5196
5305
|
| SubscriptionsAPI.NewSubscriptionGroupedTieredPrice
|
|
5306
|
+
| AddPrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice
|
|
5307
|
+
| SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
|
|
5197
5308
|
| null;
|
|
5198
5309
|
|
|
5199
5310
|
/**
|
|
@@ -5209,6 +5320,103 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5209
5320
|
start_date?: string | null;
|
|
5210
5321
|
}
|
|
5211
5322
|
|
|
5323
|
+
export namespace AddPrice {
|
|
5324
|
+
export interface NewSubscriptionGroupedWithMinMaxThresholdsPrice {
|
|
5325
|
+
/**
|
|
5326
|
+
* The cadence to bill for this price on.
|
|
5327
|
+
*/
|
|
5328
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
5329
|
+
|
|
5330
|
+
grouped_with_min_max_thresholds_config: { [key: string]: unknown };
|
|
5331
|
+
|
|
5332
|
+
/**
|
|
5333
|
+
* The id of the item the price will be associated with.
|
|
5334
|
+
*/
|
|
5335
|
+
item_id: string;
|
|
5336
|
+
|
|
5337
|
+
model_type: 'grouped_with_min_max_thresholds';
|
|
5338
|
+
|
|
5339
|
+
/**
|
|
5340
|
+
* The name of the price.
|
|
5341
|
+
*/
|
|
5342
|
+
name: string;
|
|
5343
|
+
|
|
5344
|
+
/**
|
|
5345
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
5346
|
+
* usage-based.
|
|
5347
|
+
*/
|
|
5348
|
+
billable_metric_id?: string | null;
|
|
5349
|
+
|
|
5350
|
+
/**
|
|
5351
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
5352
|
+
* this is true, and in-arrears if this is false.
|
|
5353
|
+
*/
|
|
5354
|
+
billed_in_advance?: boolean | null;
|
|
5355
|
+
|
|
5356
|
+
/**
|
|
5357
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5358
|
+
* months.
|
|
5359
|
+
*/
|
|
5360
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5361
|
+
|
|
5362
|
+
/**
|
|
5363
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5364
|
+
*/
|
|
5365
|
+
conversion_rate?: number | null;
|
|
5366
|
+
|
|
5367
|
+
/**
|
|
5368
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
5369
|
+
*/
|
|
5370
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
5371
|
+
|
|
5372
|
+
/**
|
|
5373
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
5374
|
+
* price is billed.
|
|
5375
|
+
*/
|
|
5376
|
+
currency?: string | null;
|
|
5377
|
+
|
|
5378
|
+
/**
|
|
5379
|
+
* For dimensional price: specifies a price group and dimension values
|
|
5380
|
+
*/
|
|
5381
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
5382
|
+
|
|
5383
|
+
/**
|
|
5384
|
+
* An alias for the price.
|
|
5385
|
+
*/
|
|
5386
|
+
external_price_id?: string | null;
|
|
5387
|
+
|
|
5388
|
+
/**
|
|
5389
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
5390
|
+
* applied.
|
|
5391
|
+
*/
|
|
5392
|
+
fixed_price_quantity?: number | null;
|
|
5393
|
+
|
|
5394
|
+
/**
|
|
5395
|
+
* The property used to group this price on an invoice
|
|
5396
|
+
*/
|
|
5397
|
+
invoice_grouping_key?: string | null;
|
|
5398
|
+
|
|
5399
|
+
/**
|
|
5400
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5401
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5402
|
+
*/
|
|
5403
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5404
|
+
|
|
5405
|
+
/**
|
|
5406
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5407
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
5408
|
+
* by setting `metadata` to `null`.
|
|
5409
|
+
*/
|
|
5410
|
+
metadata?: { [key: string]: string | null } | null;
|
|
5411
|
+
|
|
5412
|
+
/**
|
|
5413
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
5414
|
+
* in the same API call.
|
|
5415
|
+
*/
|
|
5416
|
+
reference_id?: string | null;
|
|
5417
|
+
}
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5212
5420
|
export interface RemoveAdjustment {
|
|
5213
5421
|
/**
|
|
5214
5422
|
* The id of the adjustment to remove on the subscription.
|
|
@@ -5292,9 +5500,6 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5292
5500
|
| SubscriptionsAPI.NewSubscriptionPackagePrice
|
|
5293
5501
|
| SubscriptionsAPI.NewSubscriptionMatrixPrice
|
|
5294
5502
|
| SubscriptionsAPI.NewSubscriptionTieredPrice
|
|
5295
|
-
| SubscriptionsAPI.NewSubscriptionTieredBPSPrice
|
|
5296
|
-
| SubscriptionsAPI.NewSubscriptionBPSPrice
|
|
5297
|
-
| SubscriptionsAPI.NewSubscriptionBulkBPSPrice
|
|
5298
5503
|
| SubscriptionsAPI.NewSubscriptionBulkPrice
|
|
5299
5504
|
| SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice
|
|
5300
5505
|
| SubscriptionsAPI.NewSubscriptionTieredPackagePrice
|
|
@@ -5316,6 +5521,8 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5316
5521
|
| SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice
|
|
5317
5522
|
| SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice
|
|
5318
5523
|
| SubscriptionsAPI.NewSubscriptionGroupedTieredPrice
|
|
5524
|
+
| ReplacePrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice
|
|
5525
|
+
| SubscriptionsAPI.NewSubscriptionMinimumCompositePrice
|
|
5319
5526
|
| null;
|
|
5320
5527
|
|
|
5321
5528
|
/**
|
|
@@ -5323,6 +5530,103 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5323
5530
|
*/
|
|
5324
5531
|
price_id?: string | null;
|
|
5325
5532
|
}
|
|
5533
|
+
|
|
5534
|
+
export namespace ReplacePrice {
|
|
5535
|
+
export interface NewSubscriptionGroupedWithMinMaxThresholdsPrice {
|
|
5536
|
+
/**
|
|
5537
|
+
* The cadence to bill for this price on.
|
|
5538
|
+
*/
|
|
5539
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
5540
|
+
|
|
5541
|
+
grouped_with_min_max_thresholds_config: { [key: string]: unknown };
|
|
5542
|
+
|
|
5543
|
+
/**
|
|
5544
|
+
* The id of the item the price will be associated with.
|
|
5545
|
+
*/
|
|
5546
|
+
item_id: string;
|
|
5547
|
+
|
|
5548
|
+
model_type: 'grouped_with_min_max_thresholds';
|
|
5549
|
+
|
|
5550
|
+
/**
|
|
5551
|
+
* The name of the price.
|
|
5552
|
+
*/
|
|
5553
|
+
name: string;
|
|
5554
|
+
|
|
5555
|
+
/**
|
|
5556
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
5557
|
+
* usage-based.
|
|
5558
|
+
*/
|
|
5559
|
+
billable_metric_id?: string | null;
|
|
5560
|
+
|
|
5561
|
+
/**
|
|
5562
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
5563
|
+
* this is true, and in-arrears if this is false.
|
|
5564
|
+
*/
|
|
5565
|
+
billed_in_advance?: boolean | null;
|
|
5566
|
+
|
|
5567
|
+
/**
|
|
5568
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5569
|
+
* months.
|
|
5570
|
+
*/
|
|
5571
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5572
|
+
|
|
5573
|
+
/**
|
|
5574
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5575
|
+
*/
|
|
5576
|
+
conversion_rate?: number | null;
|
|
5577
|
+
|
|
5578
|
+
/**
|
|
5579
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
5580
|
+
*/
|
|
5581
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
5582
|
+
|
|
5583
|
+
/**
|
|
5584
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
5585
|
+
* price is billed.
|
|
5586
|
+
*/
|
|
5587
|
+
currency?: string | null;
|
|
5588
|
+
|
|
5589
|
+
/**
|
|
5590
|
+
* For dimensional price: specifies a price group and dimension values
|
|
5591
|
+
*/
|
|
5592
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
5593
|
+
|
|
5594
|
+
/**
|
|
5595
|
+
* An alias for the price.
|
|
5596
|
+
*/
|
|
5597
|
+
external_price_id?: string | null;
|
|
5598
|
+
|
|
5599
|
+
/**
|
|
5600
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
5601
|
+
* applied.
|
|
5602
|
+
*/
|
|
5603
|
+
fixed_price_quantity?: number | null;
|
|
5604
|
+
|
|
5605
|
+
/**
|
|
5606
|
+
* The property used to group this price on an invoice
|
|
5607
|
+
*/
|
|
5608
|
+
invoice_grouping_key?: string | null;
|
|
5609
|
+
|
|
5610
|
+
/**
|
|
5611
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5612
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5613
|
+
*/
|
|
5614
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5615
|
+
|
|
5616
|
+
/**
|
|
5617
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5618
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
5619
|
+
* by setting `metadata` to `null`.
|
|
5620
|
+
*/
|
|
5621
|
+
metadata?: { [key: string]: string | null } | null;
|
|
5622
|
+
|
|
5623
|
+
/**
|
|
5624
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
5625
|
+
* in the same API call.
|
|
5626
|
+
*/
|
|
5627
|
+
reference_id?: string | null;
|
|
5628
|
+
}
|
|
5629
|
+
}
|
|
5326
5630
|
}
|
|
5327
5631
|
|
|
5328
5632
|
export interface SubscriptionTriggerPhaseParams {
|
|
@@ -5397,8 +5701,6 @@ Subscriptions.SubscriptionFetchScheduleResponsesPage = SubscriptionFetchSchedule
|
|
|
5397
5701
|
export declare namespace Subscriptions {
|
|
5398
5702
|
export {
|
|
5399
5703
|
type DiscountOverride as DiscountOverride,
|
|
5400
|
-
type NewSubscriptionBPSPrice as NewSubscriptionBPSPrice,
|
|
5401
|
-
type NewSubscriptionBulkBPSPrice as NewSubscriptionBulkBPSPrice,
|
|
5402
5704
|
type NewSubscriptionBulkPrice as NewSubscriptionBulkPrice,
|
|
5403
5705
|
type NewSubscriptionBulkWithProrationPrice as NewSubscriptionBulkWithProrationPrice,
|
|
5404
5706
|
type NewSubscriptionCumulativeGroupedBulkPrice as NewSubscriptionCumulativeGroupedBulkPrice,
|
|
@@ -5411,13 +5713,13 @@ export declare namespace Subscriptions {
|
|
|
5411
5713
|
type NewSubscriptionMatrixWithAllocationPrice as NewSubscriptionMatrixWithAllocationPrice,
|
|
5412
5714
|
type NewSubscriptionMatrixWithDisplayNamePrice as NewSubscriptionMatrixWithDisplayNamePrice,
|
|
5413
5715
|
type NewSubscriptionMaxGroupTieredPackagePrice as NewSubscriptionMaxGroupTieredPackagePrice,
|
|
5716
|
+
type NewSubscriptionMinimumCompositePrice as NewSubscriptionMinimumCompositePrice,
|
|
5414
5717
|
type NewSubscriptionPackagePrice as NewSubscriptionPackagePrice,
|
|
5415
5718
|
type NewSubscriptionPackageWithAllocationPrice as NewSubscriptionPackageWithAllocationPrice,
|
|
5416
5719
|
type NewSubscriptionScalableMatrixWithTieredPricingPrice as NewSubscriptionScalableMatrixWithTieredPricingPrice,
|
|
5417
5720
|
type NewSubscriptionScalableMatrixWithUnitPricingPrice as NewSubscriptionScalableMatrixWithUnitPricingPrice,
|
|
5418
5721
|
type NewSubscriptionThresholdTotalAmountPrice as NewSubscriptionThresholdTotalAmountPrice,
|
|
5419
5722
|
type NewSubscriptionTierWithProrationPrice as NewSubscriptionTierWithProrationPrice,
|
|
5420
|
-
type NewSubscriptionTieredBPSPrice as NewSubscriptionTieredBPSPrice,
|
|
5421
5723
|
type NewSubscriptionTieredPackagePrice as NewSubscriptionTieredPackagePrice,
|
|
5422
5724
|
type NewSubscriptionTieredPackageWithMinimumPrice as NewSubscriptionTieredPackageWithMinimumPrice,
|
|
5423
5725
|
type NewSubscriptionTieredPrice as NewSubscriptionTieredPrice,
|