orb-billing 5.31.0 → 5.33.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 +16 -0
- package/package.json +1 -1
- package/resources/beta/beta.d.ts +218 -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 +218 -2
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/plans/plans.d.ts +109 -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 +309 -3
- 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 +105 -1
- 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 +539 -5
- 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/beta/beta.ts +258 -0
- package/src/resources/beta/external-plan-id.ts +258 -0
- package/src/resources/plans/plans.ts +129 -0
- package/src/resources/prices/prices.ts +366 -0
- package/src/resources/shared.ts +138 -0
- package/src/resources/subscriptions.ts +655 -17
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;AA8wcrC,MAAa,eAAgB,SAAQ,iBAAgB;CAAG;AAAxD,0CAAwD;AAExD,MAAa,YAAa,SAAQ,iBAAa;CAAG;AAAlD,oCAAkD;AAElD,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C"}
|
package/resources/shared.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;AA8wcf,MAAM,OAAO,eAAgB,SAAQ,IAAgB;CAAG;AAExD,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AAElD,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG"}
|
|
@@ -4079,7 +4079,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
4079
4079
|
/**
|
|
4080
4080
|
* New subscription price request body params.
|
|
4081
4081
|
*/
|
|
4082
|
-
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | AddPrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | AddPrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | AddPrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | AddPrice.NewSubscriptionPercentCompositePrice | AddPrice.NewSubscriptionEventOutputPrice | null;
|
|
4082
|
+
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | AddPrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | AddPrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | AddPrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | AddPrice.NewSubscriptionCumulativeGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | AddPrice.NewSubscriptionPercentCompositePrice | AddPrice.NewSubscriptionEventOutputPrice | null;
|
|
4083
4083
|
/**
|
|
4084
4084
|
* The id of the price to add to the subscription.
|
|
4085
4085
|
*/
|
|
@@ -4440,6 +4440,114 @@ export declare namespace SubscriptionCreateParams {
|
|
|
4440
4440
|
per_unit_rate: string;
|
|
4441
4441
|
}
|
|
4442
4442
|
}
|
|
4443
|
+
interface NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
4444
|
+
/**
|
|
4445
|
+
* The cadence to bill for this price on.
|
|
4446
|
+
*/
|
|
4447
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
4448
|
+
/**
|
|
4449
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
4450
|
+
*/
|
|
4451
|
+
cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
4452
|
+
/**
|
|
4453
|
+
* The id of the item the price will be associated with.
|
|
4454
|
+
*/
|
|
4455
|
+
item_id: string;
|
|
4456
|
+
/**
|
|
4457
|
+
* The pricing model type
|
|
4458
|
+
*/
|
|
4459
|
+
model_type: 'cumulative_grouped_allocation';
|
|
4460
|
+
/**
|
|
4461
|
+
* The name of the price.
|
|
4462
|
+
*/
|
|
4463
|
+
name: string;
|
|
4464
|
+
/**
|
|
4465
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
4466
|
+
* usage-based.
|
|
4467
|
+
*/
|
|
4468
|
+
billable_metric_id?: string | null;
|
|
4469
|
+
/**
|
|
4470
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
4471
|
+
* this is true, and in-arrears if this is false.
|
|
4472
|
+
*/
|
|
4473
|
+
billed_in_advance?: boolean | null;
|
|
4474
|
+
/**
|
|
4475
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
4476
|
+
* months.
|
|
4477
|
+
*/
|
|
4478
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4479
|
+
/**
|
|
4480
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4481
|
+
*/
|
|
4482
|
+
conversion_rate?: number | null;
|
|
4483
|
+
/**
|
|
4484
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
4485
|
+
*/
|
|
4486
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
4487
|
+
/**
|
|
4488
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
4489
|
+
* price is billed.
|
|
4490
|
+
*/
|
|
4491
|
+
currency?: string | null;
|
|
4492
|
+
/**
|
|
4493
|
+
* For dimensional price: specifies a price group and dimension values
|
|
4494
|
+
*/
|
|
4495
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
4496
|
+
/**
|
|
4497
|
+
* An alias for the price.
|
|
4498
|
+
*/
|
|
4499
|
+
external_price_id?: string | null;
|
|
4500
|
+
/**
|
|
4501
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
4502
|
+
* applied.
|
|
4503
|
+
*/
|
|
4504
|
+
fixed_price_quantity?: number | null;
|
|
4505
|
+
/**
|
|
4506
|
+
* The property used to group this price on an invoice
|
|
4507
|
+
*/
|
|
4508
|
+
invoice_grouping_key?: string | null;
|
|
4509
|
+
/**
|
|
4510
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
4511
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
4512
|
+
*/
|
|
4513
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4514
|
+
/**
|
|
4515
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4516
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
4517
|
+
* by setting `metadata` to `null`.
|
|
4518
|
+
*/
|
|
4519
|
+
metadata?: {
|
|
4520
|
+
[key: string]: string | null;
|
|
4521
|
+
} | null;
|
|
4522
|
+
/**
|
|
4523
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
4524
|
+
* in the same API call.
|
|
4525
|
+
*/
|
|
4526
|
+
reference_id?: string | null;
|
|
4527
|
+
}
|
|
4528
|
+
namespace NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
4529
|
+
/**
|
|
4530
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
4531
|
+
*/
|
|
4532
|
+
interface CumulativeGroupedAllocationConfig {
|
|
4533
|
+
/**
|
|
4534
|
+
* The overall allocation across all groups
|
|
4535
|
+
*/
|
|
4536
|
+
cumulative_allocation: string;
|
|
4537
|
+
/**
|
|
4538
|
+
* The allocation per individual group
|
|
4539
|
+
*/
|
|
4540
|
+
group_allocation: string;
|
|
4541
|
+
/**
|
|
4542
|
+
* The event property used to group usage before applying allocations
|
|
4543
|
+
*/
|
|
4544
|
+
grouping_key: string;
|
|
4545
|
+
/**
|
|
4546
|
+
* The amount to charge for each unit outside of the allocation
|
|
4547
|
+
*/
|
|
4548
|
+
unit_amount: string;
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4443
4551
|
interface NewSubscriptionPercentCompositePrice {
|
|
4444
4552
|
/**
|
|
4445
4553
|
* The cadence to bill for this price on.
|
|
@@ -4705,7 +4813,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
4705
4813
|
/**
|
|
4706
4814
|
* New subscription price request body params.
|
|
4707
4815
|
*/
|
|
4708
|
-
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | ReplacePrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | ReplacePrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | ReplacePrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | ReplacePrice.NewSubscriptionPercentCompositePrice | ReplacePrice.NewSubscriptionEventOutputPrice | null;
|
|
4816
|
+
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | ReplacePrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | ReplacePrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | ReplacePrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | ReplacePrice.NewSubscriptionCumulativeGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | ReplacePrice.NewSubscriptionPercentCompositePrice | ReplacePrice.NewSubscriptionEventOutputPrice | null;
|
|
4709
4817
|
/**
|
|
4710
4818
|
* The id of the price to add to the subscription.
|
|
4711
4819
|
*/
|
|
@@ -5060,6 +5168,114 @@ export declare namespace SubscriptionCreateParams {
|
|
|
5060
5168
|
per_unit_rate: string;
|
|
5061
5169
|
}
|
|
5062
5170
|
}
|
|
5171
|
+
interface NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
5172
|
+
/**
|
|
5173
|
+
* The cadence to bill for this price on.
|
|
5174
|
+
*/
|
|
5175
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
5176
|
+
/**
|
|
5177
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
5178
|
+
*/
|
|
5179
|
+
cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
5180
|
+
/**
|
|
5181
|
+
* The id of the item the price will be associated with.
|
|
5182
|
+
*/
|
|
5183
|
+
item_id: string;
|
|
5184
|
+
/**
|
|
5185
|
+
* The pricing model type
|
|
5186
|
+
*/
|
|
5187
|
+
model_type: 'cumulative_grouped_allocation';
|
|
5188
|
+
/**
|
|
5189
|
+
* The name of the price.
|
|
5190
|
+
*/
|
|
5191
|
+
name: string;
|
|
5192
|
+
/**
|
|
5193
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
5194
|
+
* usage-based.
|
|
5195
|
+
*/
|
|
5196
|
+
billable_metric_id?: string | null;
|
|
5197
|
+
/**
|
|
5198
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
5199
|
+
* this is true, and in-arrears if this is false.
|
|
5200
|
+
*/
|
|
5201
|
+
billed_in_advance?: boolean | null;
|
|
5202
|
+
/**
|
|
5203
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5204
|
+
* months.
|
|
5205
|
+
*/
|
|
5206
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5207
|
+
/**
|
|
5208
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5209
|
+
*/
|
|
5210
|
+
conversion_rate?: number | null;
|
|
5211
|
+
/**
|
|
5212
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
5213
|
+
*/
|
|
5214
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
5215
|
+
/**
|
|
5216
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
5217
|
+
* price is billed.
|
|
5218
|
+
*/
|
|
5219
|
+
currency?: string | null;
|
|
5220
|
+
/**
|
|
5221
|
+
* For dimensional price: specifies a price group and dimension values
|
|
5222
|
+
*/
|
|
5223
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
5224
|
+
/**
|
|
5225
|
+
* An alias for the price.
|
|
5226
|
+
*/
|
|
5227
|
+
external_price_id?: string | null;
|
|
5228
|
+
/**
|
|
5229
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
5230
|
+
* applied.
|
|
5231
|
+
*/
|
|
5232
|
+
fixed_price_quantity?: number | null;
|
|
5233
|
+
/**
|
|
5234
|
+
* The property used to group this price on an invoice
|
|
5235
|
+
*/
|
|
5236
|
+
invoice_grouping_key?: string | null;
|
|
5237
|
+
/**
|
|
5238
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
5239
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
5240
|
+
*/
|
|
5241
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5242
|
+
/**
|
|
5243
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
5244
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
5245
|
+
* by setting `metadata` to `null`.
|
|
5246
|
+
*/
|
|
5247
|
+
metadata?: {
|
|
5248
|
+
[key: string]: string | null;
|
|
5249
|
+
} | null;
|
|
5250
|
+
/**
|
|
5251
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
5252
|
+
* in the same API call.
|
|
5253
|
+
*/
|
|
5254
|
+
reference_id?: string | null;
|
|
5255
|
+
}
|
|
5256
|
+
namespace NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
5257
|
+
/**
|
|
5258
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
5259
|
+
*/
|
|
5260
|
+
interface CumulativeGroupedAllocationConfig {
|
|
5261
|
+
/**
|
|
5262
|
+
* The overall allocation across all groups
|
|
5263
|
+
*/
|
|
5264
|
+
cumulative_allocation: string;
|
|
5265
|
+
/**
|
|
5266
|
+
* The allocation per individual group
|
|
5267
|
+
*/
|
|
5268
|
+
group_allocation: string;
|
|
5269
|
+
/**
|
|
5270
|
+
* The event property used to group usage before applying allocations
|
|
5271
|
+
*/
|
|
5272
|
+
grouping_key: string;
|
|
5273
|
+
/**
|
|
5274
|
+
* The amount to charge for each unit outside of the allocation
|
|
5275
|
+
*/
|
|
5276
|
+
unit_amount: string;
|
|
5277
|
+
}
|
|
5278
|
+
}
|
|
5063
5279
|
interface NewSubscriptionPercentCompositePrice {
|
|
5064
5280
|
/**
|
|
5065
5281
|
* The cadence to bill for this price on.
|
|
@@ -5467,7 +5683,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
5467
5683
|
/**
|
|
5468
5684
|
* New floating price request body params.
|
|
5469
5685
|
*/
|
|
5470
|
-
price?: Shared.NewFloatingUnitPrice | Shared.NewFloatingTieredPrice | Shared.NewFloatingBulkPrice | Add.NewFloatingBulkWithFiltersPrice | Shared.NewFloatingPackagePrice | Shared.NewFloatingMatrixPrice | Shared.NewFloatingThresholdTotalAmountPrice | Shared.NewFloatingTieredPackagePrice | Shared.NewFloatingTieredWithMinimumPrice | Shared.NewFloatingGroupedTieredPrice | Shared.NewFloatingTieredPackageWithMinimumPrice | Shared.NewFloatingPackageWithAllocationPrice | Shared.NewFloatingUnitWithPercentPrice | Shared.NewFloatingMatrixWithAllocationPrice | Shared.NewFloatingTieredWithProrationPrice | Shared.NewFloatingUnitWithProrationPrice | Shared.NewFloatingGroupedAllocationPrice | Shared.NewFloatingBulkWithProrationPrice | Shared.NewFloatingGroupedWithProratedMinimumPrice | Shared.NewFloatingGroupedWithMeteredMinimumPrice | Add.NewFloatingGroupedWithMinMaxThresholdsPrice | Shared.NewFloatingMatrixWithDisplayNamePrice | Shared.NewFloatingGroupedTieredPackagePrice | Shared.NewFloatingMaxGroupTieredPackagePrice | Shared.NewFloatingScalableMatrixWithUnitPricingPrice | Shared.NewFloatingScalableMatrixWithTieredPricingPrice | Shared.NewFloatingCumulativeGroupedBulkPrice | Shared.NewFloatingMinimumCompositePrice | Add.NewFloatingPercentCompositePrice | Add.NewFloatingEventOutputPrice | null;
|
|
5686
|
+
price?: Shared.NewFloatingUnitPrice | Shared.NewFloatingTieredPrice | Shared.NewFloatingBulkPrice | Add.NewFloatingBulkWithFiltersPrice | Shared.NewFloatingPackagePrice | Shared.NewFloatingMatrixPrice | Shared.NewFloatingThresholdTotalAmountPrice | Shared.NewFloatingTieredPackagePrice | Shared.NewFloatingTieredWithMinimumPrice | Shared.NewFloatingGroupedTieredPrice | Shared.NewFloatingTieredPackageWithMinimumPrice | Shared.NewFloatingPackageWithAllocationPrice | Shared.NewFloatingUnitWithPercentPrice | Shared.NewFloatingMatrixWithAllocationPrice | Shared.NewFloatingTieredWithProrationPrice | Shared.NewFloatingUnitWithProrationPrice | Shared.NewFloatingGroupedAllocationPrice | Shared.NewFloatingBulkWithProrationPrice | Shared.NewFloatingGroupedWithProratedMinimumPrice | Shared.NewFloatingGroupedWithMeteredMinimumPrice | Add.NewFloatingGroupedWithMinMaxThresholdsPrice | Shared.NewFloatingMatrixWithDisplayNamePrice | Shared.NewFloatingGroupedTieredPackagePrice | Shared.NewFloatingMaxGroupTieredPackagePrice | Shared.NewFloatingScalableMatrixWithUnitPricingPrice | Shared.NewFloatingScalableMatrixWithTieredPricingPrice | Shared.NewFloatingCumulativeGroupedBulkPrice | Add.NewFloatingCumulativeGroupedAllocationPrice | Shared.NewFloatingMinimumCompositePrice | Add.NewFloatingPercentCompositePrice | Add.NewFloatingEventOutputPrice | null;
|
|
5471
5687
|
/**
|
|
5472
5688
|
* The id of the price to add to the subscription.
|
|
5473
5689
|
*/
|
|
@@ -5740,6 +5956,108 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
5740
5956
|
per_unit_rate: string;
|
|
5741
5957
|
}
|
|
5742
5958
|
}
|
|
5959
|
+
interface NewFloatingCumulativeGroupedAllocationPrice {
|
|
5960
|
+
/**
|
|
5961
|
+
* The cadence to bill for this price on.
|
|
5962
|
+
*/
|
|
5963
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
5964
|
+
/**
|
|
5965
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
5966
|
+
*/
|
|
5967
|
+
cumulative_grouped_allocation_config: NewFloatingCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
5968
|
+
/**
|
|
5969
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
5970
|
+
*/
|
|
5971
|
+
currency: string;
|
|
5972
|
+
/**
|
|
5973
|
+
* The id of the item the price will be associated with.
|
|
5974
|
+
*/
|
|
5975
|
+
item_id: string;
|
|
5976
|
+
/**
|
|
5977
|
+
* The pricing model type
|
|
5978
|
+
*/
|
|
5979
|
+
model_type: 'cumulative_grouped_allocation';
|
|
5980
|
+
/**
|
|
5981
|
+
* The name of the price.
|
|
5982
|
+
*/
|
|
5983
|
+
name: string;
|
|
5984
|
+
/**
|
|
5985
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
5986
|
+
* usage-based.
|
|
5987
|
+
*/
|
|
5988
|
+
billable_metric_id?: string | null;
|
|
5989
|
+
/**
|
|
5990
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
5991
|
+
* this is true, and in-arrears if this is false.
|
|
5992
|
+
*/
|
|
5993
|
+
billed_in_advance?: boolean | null;
|
|
5994
|
+
/**
|
|
5995
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
5996
|
+
* months.
|
|
5997
|
+
*/
|
|
5998
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
5999
|
+
/**
|
|
6000
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
6001
|
+
*/
|
|
6002
|
+
conversion_rate?: number | null;
|
|
6003
|
+
/**
|
|
6004
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
6005
|
+
*/
|
|
6006
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
6007
|
+
/**
|
|
6008
|
+
* For dimensional price: specifies a price group and dimension values
|
|
6009
|
+
*/
|
|
6010
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
6011
|
+
/**
|
|
6012
|
+
* An alias for the price.
|
|
6013
|
+
*/
|
|
6014
|
+
external_price_id?: string | null;
|
|
6015
|
+
/**
|
|
6016
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
6017
|
+
* applied.
|
|
6018
|
+
*/
|
|
6019
|
+
fixed_price_quantity?: number | null;
|
|
6020
|
+
/**
|
|
6021
|
+
* The property used to group this price on an invoice
|
|
6022
|
+
*/
|
|
6023
|
+
invoice_grouping_key?: string | null;
|
|
6024
|
+
/**
|
|
6025
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
6026
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
6027
|
+
*/
|
|
6028
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
6029
|
+
/**
|
|
6030
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
6031
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
6032
|
+
* by setting `metadata` to `null`.
|
|
6033
|
+
*/
|
|
6034
|
+
metadata?: {
|
|
6035
|
+
[key: string]: string | null;
|
|
6036
|
+
} | null;
|
|
6037
|
+
}
|
|
6038
|
+
namespace NewFloatingCumulativeGroupedAllocationPrice {
|
|
6039
|
+
/**
|
|
6040
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
6041
|
+
*/
|
|
6042
|
+
interface CumulativeGroupedAllocationConfig {
|
|
6043
|
+
/**
|
|
6044
|
+
* The overall allocation across all groups
|
|
6045
|
+
*/
|
|
6046
|
+
cumulative_allocation: string;
|
|
6047
|
+
/**
|
|
6048
|
+
* The allocation per individual group
|
|
6049
|
+
*/
|
|
6050
|
+
group_allocation: string;
|
|
6051
|
+
/**
|
|
6052
|
+
* The event property used to group usage before applying allocations
|
|
6053
|
+
*/
|
|
6054
|
+
grouping_key: string;
|
|
6055
|
+
/**
|
|
6056
|
+
* The amount to charge for each unit outside of the allocation
|
|
6057
|
+
*/
|
|
6058
|
+
unit_amount: string;
|
|
6059
|
+
}
|
|
6060
|
+
}
|
|
5743
6061
|
interface NewFloatingPercentCompositePrice {
|
|
5744
6062
|
/**
|
|
5745
6063
|
* The cadence to bill for this price on.
|
|
@@ -6252,7 +6570,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
6252
6570
|
/**
|
|
6253
6571
|
* New subscription price request body params.
|
|
6254
6572
|
*/
|
|
6255
|
-
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | AddPrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | AddPrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | AddPrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | AddPrice.NewSubscriptionPercentCompositePrice | AddPrice.NewSubscriptionEventOutputPrice | null;
|
|
6573
|
+
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | AddPrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | AddPrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | AddPrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | AddPrice.NewSubscriptionCumulativeGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | AddPrice.NewSubscriptionPercentCompositePrice | AddPrice.NewSubscriptionEventOutputPrice | null;
|
|
6256
6574
|
/**
|
|
6257
6575
|
* The id of the price to add to the subscription.
|
|
6258
6576
|
*/
|
|
@@ -6613,6 +6931,114 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
6613
6931
|
per_unit_rate: string;
|
|
6614
6932
|
}
|
|
6615
6933
|
}
|
|
6934
|
+
interface NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
6935
|
+
/**
|
|
6936
|
+
* The cadence to bill for this price on.
|
|
6937
|
+
*/
|
|
6938
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
6939
|
+
/**
|
|
6940
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
6941
|
+
*/
|
|
6942
|
+
cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
6943
|
+
/**
|
|
6944
|
+
* The id of the item the price will be associated with.
|
|
6945
|
+
*/
|
|
6946
|
+
item_id: string;
|
|
6947
|
+
/**
|
|
6948
|
+
* The pricing model type
|
|
6949
|
+
*/
|
|
6950
|
+
model_type: 'cumulative_grouped_allocation';
|
|
6951
|
+
/**
|
|
6952
|
+
* The name of the price.
|
|
6953
|
+
*/
|
|
6954
|
+
name: string;
|
|
6955
|
+
/**
|
|
6956
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
6957
|
+
* usage-based.
|
|
6958
|
+
*/
|
|
6959
|
+
billable_metric_id?: string | null;
|
|
6960
|
+
/**
|
|
6961
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
6962
|
+
* this is true, and in-arrears if this is false.
|
|
6963
|
+
*/
|
|
6964
|
+
billed_in_advance?: boolean | null;
|
|
6965
|
+
/**
|
|
6966
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
6967
|
+
* months.
|
|
6968
|
+
*/
|
|
6969
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
6970
|
+
/**
|
|
6971
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
6972
|
+
*/
|
|
6973
|
+
conversion_rate?: number | null;
|
|
6974
|
+
/**
|
|
6975
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
6976
|
+
*/
|
|
6977
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
6978
|
+
/**
|
|
6979
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
6980
|
+
* price is billed.
|
|
6981
|
+
*/
|
|
6982
|
+
currency?: string | null;
|
|
6983
|
+
/**
|
|
6984
|
+
* For dimensional price: specifies a price group and dimension values
|
|
6985
|
+
*/
|
|
6986
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
6987
|
+
/**
|
|
6988
|
+
* An alias for the price.
|
|
6989
|
+
*/
|
|
6990
|
+
external_price_id?: string | null;
|
|
6991
|
+
/**
|
|
6992
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
6993
|
+
* applied.
|
|
6994
|
+
*/
|
|
6995
|
+
fixed_price_quantity?: number | null;
|
|
6996
|
+
/**
|
|
6997
|
+
* The property used to group this price on an invoice
|
|
6998
|
+
*/
|
|
6999
|
+
invoice_grouping_key?: string | null;
|
|
7000
|
+
/**
|
|
7001
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
7002
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
7003
|
+
*/
|
|
7004
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
7005
|
+
/**
|
|
7006
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
7007
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
7008
|
+
* by setting `metadata` to `null`.
|
|
7009
|
+
*/
|
|
7010
|
+
metadata?: {
|
|
7011
|
+
[key: string]: string | null;
|
|
7012
|
+
} | null;
|
|
7013
|
+
/**
|
|
7014
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
7015
|
+
* in the same API call.
|
|
7016
|
+
*/
|
|
7017
|
+
reference_id?: string | null;
|
|
7018
|
+
}
|
|
7019
|
+
namespace NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
7020
|
+
/**
|
|
7021
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
7022
|
+
*/
|
|
7023
|
+
interface CumulativeGroupedAllocationConfig {
|
|
7024
|
+
/**
|
|
7025
|
+
* The overall allocation across all groups
|
|
7026
|
+
*/
|
|
7027
|
+
cumulative_allocation: string;
|
|
7028
|
+
/**
|
|
7029
|
+
* The allocation per individual group
|
|
7030
|
+
*/
|
|
7031
|
+
group_allocation: string;
|
|
7032
|
+
/**
|
|
7033
|
+
* The event property used to group usage before applying allocations
|
|
7034
|
+
*/
|
|
7035
|
+
grouping_key: string;
|
|
7036
|
+
/**
|
|
7037
|
+
* The amount to charge for each unit outside of the allocation
|
|
7038
|
+
*/
|
|
7039
|
+
unit_amount: string;
|
|
7040
|
+
}
|
|
7041
|
+
}
|
|
6616
7042
|
interface NewSubscriptionPercentCompositePrice {
|
|
6617
7043
|
/**
|
|
6618
7044
|
* The cadence to bill for this price on.
|
|
@@ -6878,7 +7304,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
6878
7304
|
/**
|
|
6879
7305
|
* New subscription price request body params.
|
|
6880
7306
|
*/
|
|
6881
|
-
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | ReplacePrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | ReplacePrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | ReplacePrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | ReplacePrice.NewSubscriptionPercentCompositePrice | ReplacePrice.NewSubscriptionEventOutputPrice | null;
|
|
7307
|
+
price?: SubscriptionsAPI.NewSubscriptionUnitPrice | SubscriptionsAPI.NewSubscriptionTieredPrice | SubscriptionsAPI.NewSubscriptionBulkPrice | ReplacePrice.NewSubscriptionBulkWithFiltersPrice | SubscriptionsAPI.NewSubscriptionPackagePrice | SubscriptionsAPI.NewSubscriptionMatrixPrice | SubscriptionsAPI.NewSubscriptionThresholdTotalAmountPrice | SubscriptionsAPI.NewSubscriptionTieredPackagePrice | SubscriptionsAPI.NewSubscriptionTieredWithMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPrice | SubscriptionsAPI.NewSubscriptionTieredPackageWithMinimumPrice | SubscriptionsAPI.NewSubscriptionPackageWithAllocationPrice | SubscriptionsAPI.NewSubscriptionUnitWithPercentPrice | SubscriptionsAPI.NewSubscriptionMatrixWithAllocationPrice | ReplacePrice.NewSubscriptionTieredWithProrationPrice | SubscriptionsAPI.NewSubscriptionUnitWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionBulkWithProrationPrice | SubscriptionsAPI.NewSubscriptionGroupedWithProratedMinimumPrice | SubscriptionsAPI.NewSubscriptionGroupedWithMeteredMinimumPrice | ReplacePrice.NewSubscriptionGroupedWithMinMaxThresholdsPrice | SubscriptionsAPI.NewSubscriptionMatrixWithDisplayNamePrice | SubscriptionsAPI.NewSubscriptionGroupedTieredPackagePrice | SubscriptionsAPI.NewSubscriptionMaxGroupTieredPackagePrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithUnitPricingPrice | SubscriptionsAPI.NewSubscriptionScalableMatrixWithTieredPricingPrice | SubscriptionsAPI.NewSubscriptionCumulativeGroupedBulkPrice | ReplacePrice.NewSubscriptionCumulativeGroupedAllocationPrice | SubscriptionsAPI.NewSubscriptionMinimumCompositePrice | ReplacePrice.NewSubscriptionPercentCompositePrice | ReplacePrice.NewSubscriptionEventOutputPrice | null;
|
|
6882
7308
|
/**
|
|
6883
7309
|
* The id of the price to add to the subscription.
|
|
6884
7310
|
*/
|
|
@@ -7233,6 +7659,114 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
7233
7659
|
per_unit_rate: string;
|
|
7234
7660
|
}
|
|
7235
7661
|
}
|
|
7662
|
+
interface NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
7663
|
+
/**
|
|
7664
|
+
* The cadence to bill for this price on.
|
|
7665
|
+
*/
|
|
7666
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
7667
|
+
/**
|
|
7668
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
7669
|
+
*/
|
|
7670
|
+
cumulative_grouped_allocation_config: NewSubscriptionCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;
|
|
7671
|
+
/**
|
|
7672
|
+
* The id of the item the price will be associated with.
|
|
7673
|
+
*/
|
|
7674
|
+
item_id: string;
|
|
7675
|
+
/**
|
|
7676
|
+
* The pricing model type
|
|
7677
|
+
*/
|
|
7678
|
+
model_type: 'cumulative_grouped_allocation';
|
|
7679
|
+
/**
|
|
7680
|
+
* The name of the price.
|
|
7681
|
+
*/
|
|
7682
|
+
name: string;
|
|
7683
|
+
/**
|
|
7684
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
7685
|
+
* usage-based.
|
|
7686
|
+
*/
|
|
7687
|
+
billable_metric_id?: string | null;
|
|
7688
|
+
/**
|
|
7689
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
7690
|
+
* this is true, and in-arrears if this is false.
|
|
7691
|
+
*/
|
|
7692
|
+
billed_in_advance?: boolean | null;
|
|
7693
|
+
/**
|
|
7694
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
7695
|
+
* months.
|
|
7696
|
+
*/
|
|
7697
|
+
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
7698
|
+
/**
|
|
7699
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
7700
|
+
*/
|
|
7701
|
+
conversion_rate?: number | null;
|
|
7702
|
+
/**
|
|
7703
|
+
* The configuration for the rate of the price currency to the invoicing currency.
|
|
7704
|
+
*/
|
|
7705
|
+
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
7706
|
+
/**
|
|
7707
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
7708
|
+
* price is billed.
|
|
7709
|
+
*/
|
|
7710
|
+
currency?: string | null;
|
|
7711
|
+
/**
|
|
7712
|
+
* For dimensional price: specifies a price group and dimension values
|
|
7713
|
+
*/
|
|
7714
|
+
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
|
|
7715
|
+
/**
|
|
7716
|
+
* An alias for the price.
|
|
7717
|
+
*/
|
|
7718
|
+
external_price_id?: string | null;
|
|
7719
|
+
/**
|
|
7720
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
7721
|
+
* applied.
|
|
7722
|
+
*/
|
|
7723
|
+
fixed_price_quantity?: number | null;
|
|
7724
|
+
/**
|
|
7725
|
+
* The property used to group this price on an invoice
|
|
7726
|
+
*/
|
|
7727
|
+
invoice_grouping_key?: string | null;
|
|
7728
|
+
/**
|
|
7729
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
7730
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
7731
|
+
*/
|
|
7732
|
+
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
7733
|
+
/**
|
|
7734
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
7735
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
7736
|
+
* by setting `metadata` to `null`.
|
|
7737
|
+
*/
|
|
7738
|
+
metadata?: {
|
|
7739
|
+
[key: string]: string | null;
|
|
7740
|
+
} | null;
|
|
7741
|
+
/**
|
|
7742
|
+
* A transient ID that can be used to reference this price when adding adjustments
|
|
7743
|
+
* in the same API call.
|
|
7744
|
+
*/
|
|
7745
|
+
reference_id?: string | null;
|
|
7746
|
+
}
|
|
7747
|
+
namespace NewSubscriptionCumulativeGroupedAllocationPrice {
|
|
7748
|
+
/**
|
|
7749
|
+
* Configuration for cumulative_grouped_allocation pricing
|
|
7750
|
+
*/
|
|
7751
|
+
interface CumulativeGroupedAllocationConfig {
|
|
7752
|
+
/**
|
|
7753
|
+
* The overall allocation across all groups
|
|
7754
|
+
*/
|
|
7755
|
+
cumulative_allocation: string;
|
|
7756
|
+
/**
|
|
7757
|
+
* The allocation per individual group
|
|
7758
|
+
*/
|
|
7759
|
+
group_allocation: string;
|
|
7760
|
+
/**
|
|
7761
|
+
* The event property used to group usage before applying allocations
|
|
7762
|
+
*/
|
|
7763
|
+
grouping_key: string;
|
|
7764
|
+
/**
|
|
7765
|
+
* The amount to charge for each unit outside of the allocation
|
|
7766
|
+
*/
|
|
7767
|
+
unit_amount: string;
|
|
7768
|
+
}
|
|
7769
|
+
}
|
|
7236
7770
|
interface NewSubscriptionPercentCompositePrice {
|
|
7237
7771
|
/**
|
|
7238
7772
|
* The cadence to bill for this price on.
|