|
21 | 21 | from ..shared_params.new_plan_tiered_package_price import NewPlanTieredPackagePrice |
22 | 22 | from ..shared_params.tiered_conversion_rate_config import TieredConversionRateConfig |
23 | 23 | from ..shared_params.new_billing_cycle_configuration import NewBillingCycleConfiguration |
| 24 | +from ..shared_params.new_plan_minimum_composite_price import NewPlanMinimumCompositePrice |
24 | 25 | from ..shared_params.new_plan_unit_with_percent_price import NewPlanUnitWithPercentPrice |
25 | 26 | from ..shared_params.new_plan_grouped_allocation_price import NewPlanGroupedAllocationPrice |
26 | 27 | from ..shared_params.new_plan_bulk_with_proration_price import NewPlanBulkWithProrationPrice |
|
50 | 51 | "AddPrice", |
51 | 52 | "AddPricePrice", |
52 | 53 | "AddPricePriceNewPlanGroupedWithMinMaxThresholdsPrice", |
53 | | - "AddPricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent158", |
54 | | - "AddPricePriceNewPlanMinimumCompositePrice", |
55 | | - "AddPricePriceNewPlanMinimumCompositePriceMinimumConfig", |
56 | | - "AddPricePriceNewPlanMinimumCompositePriceUnnamedTypeWithobjectParent159", |
| 54 | + "AddPricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent160", |
57 | 55 | "RemoveAdjustment", |
58 | 56 | "RemovePrice", |
59 | 57 | "ReplaceAdjustment", |
60 | 58 | "ReplaceAdjustmentAdjustment", |
61 | 59 | "ReplacePrice", |
62 | 60 | "ReplacePricePrice", |
63 | 61 | "ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPrice", |
64 | | - "ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent160", |
65 | | - "ReplacePricePriceNewPlanMinimumCompositePrice", |
66 | | - "ReplacePricePriceNewPlanMinimumCompositePriceMinimumConfig", |
67 | | - "ReplacePricePriceNewPlanMinimumCompositePriceUnnamedTypeWithobjectParent161", |
| 62 | + "ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent161", |
68 | 63 | ] |
69 | 64 |
|
70 | 65 |
|
@@ -107,7 +102,7 @@ class AddAdjustment(TypedDict, total=False): |
107 | 102 | """The phase to add this adjustment to.""" |
108 | 103 |
|
109 | 104 |
|
110 | | -AddPricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent158: TypeAlias = Union[ |
| 105 | +AddPricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent160: TypeAlias = Union[ |
111 | 106 | UnitConversionRateConfig, TieredConversionRateConfig |
112 | 107 | ] |
113 | 108 |
|
@@ -147,102 +142,7 @@ class AddPricePriceNewPlanGroupedWithMinMaxThresholdsPrice(TypedDict, total=Fals |
147 | 142 | conversion_rate: Optional[float] |
148 | 143 | """The per unit conversion rate of the price currency to the invoicing currency.""" |
149 | 144 |
|
150 | | - conversion_rate_config: Optional[AddPricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent158] |
151 | | - """The configuration for the rate of the price currency to the invoicing currency.""" |
152 | | - |
153 | | - currency: Optional[str] |
154 | | - """ |
155 | | - An ISO 4217 currency string, or custom pricing unit identifier, in which this |
156 | | - price is billed. |
157 | | - """ |
158 | | - |
159 | | - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] |
160 | | - """For dimensional price: specifies a price group and dimension values""" |
161 | | - |
162 | | - external_price_id: Optional[str] |
163 | | - """An alias for the price.""" |
164 | | - |
165 | | - fixed_price_quantity: Optional[float] |
166 | | - """ |
167 | | - If the Price represents a fixed cost, this represents the quantity of units |
168 | | - applied. |
169 | | - """ |
170 | | - |
171 | | - invoice_grouping_key: Optional[str] |
172 | | - """The property used to group this price on an invoice""" |
173 | | - |
174 | | - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] |
175 | | - """Within each billing cycle, specifies the cadence at which invoices are produced. |
176 | | -
|
177 | | - If unspecified, a single invoice is produced per billing cycle. |
178 | | - """ |
179 | | - |
180 | | - metadata: Optional[Dict[str, Optional[str]]] |
181 | | - """User-specified key/value pairs for the resource. |
182 | | -
|
183 | | - Individual keys can be removed by setting the value to `null`, and the entire |
184 | | - metadata mapping can be cleared by setting `metadata` to `null`. |
185 | | - """ |
186 | | - |
187 | | - reference_id: Optional[str] |
188 | | - """ |
189 | | - A transient ID that can be used to reference this price when adding adjustments |
190 | | - in the same API call. |
191 | | - """ |
192 | | - |
193 | | - |
194 | | -class AddPricePriceNewPlanMinimumCompositePriceMinimumConfig(TypedDict, total=False): |
195 | | - minimum_amount: Required[str] |
196 | | - """The minimum amount to apply""" |
197 | | - |
198 | | - prorated: Optional[bool] |
199 | | - """ |
200 | | - By default, subtotals from minimum composite prices are prorated based on the |
201 | | - service period. Set to false to disable proration. |
202 | | - """ |
203 | | - |
204 | | - |
205 | | -AddPricePriceNewPlanMinimumCompositePriceUnnamedTypeWithobjectParent159: TypeAlias = Union[ |
206 | | - UnitConversionRateConfig, TieredConversionRateConfig |
207 | | -] |
208 | | - |
209 | | - |
210 | | -class AddPricePriceNewPlanMinimumCompositePrice(TypedDict, total=False): |
211 | | - cadence: Required[Literal["annual", "semi_annual", "monthly", "quarterly", "one_time", "custom"]] |
212 | | - """The cadence to bill for this price on.""" |
213 | | - |
214 | | - item_id: Required[str] |
215 | | - """The id of the item the price will be associated with.""" |
216 | | - |
217 | | - minimum_config: Required[AddPricePriceNewPlanMinimumCompositePriceMinimumConfig] |
218 | | - |
219 | | - model_type: Required[Literal["minimum"]] |
220 | | - |
221 | | - name: Required[str] |
222 | | - """The name of the price.""" |
223 | | - |
224 | | - billable_metric_id: Optional[str] |
225 | | - """The id of the billable metric for the price. |
226 | | -
|
227 | | - Only needed if the price is usage-based. |
228 | | - """ |
229 | | - |
230 | | - billed_in_advance: Optional[bool] |
231 | | - """ |
232 | | - If the Price represents a fixed cost, the price will be billed in-advance if |
233 | | - this is true, and in-arrears if this is false. |
234 | | - """ |
235 | | - |
236 | | - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] |
237 | | - """ |
238 | | - For custom cadence: specifies the duration of the billing period in days or |
239 | | - months. |
240 | | - """ |
241 | | - |
242 | | - conversion_rate: Optional[float] |
243 | | - """The per unit conversion rate of the price currency to the invoicing currency.""" |
244 | | - |
245 | | - conversion_rate_config: Optional[AddPricePriceNewPlanMinimumCompositePriceUnnamedTypeWithobjectParent159] |
| 145 | + conversion_rate_config: Optional[AddPricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent160] |
246 | 146 | """The configuration for the rate of the price currency to the invoicing currency.""" |
247 | 147 |
|
248 | 148 | currency: Optional[str] |
@@ -313,7 +213,7 @@ class AddPricePriceNewPlanMinimumCompositePrice(TypedDict, total=False): |
313 | 213 | NewPlanTieredPackageWithMinimumPrice, |
314 | 214 | NewPlanMatrixWithAllocationPrice, |
315 | 215 | NewPlanGroupedTieredPrice, |
316 | | - AddPricePriceNewPlanMinimumCompositePrice, |
| 216 | + NewPlanMinimumCompositePrice, |
317 | 217 | ] |
318 | 218 |
|
319 | 219 |
|
@@ -360,7 +260,7 @@ class ReplaceAdjustment(TypedDict, total=False): |
360 | 260 | """The phase to replace this adjustment from.""" |
361 | 261 |
|
362 | 262 |
|
363 | | -ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent160: TypeAlias = Union[ |
| 263 | +ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent161: TypeAlias = Union[ |
364 | 264 | UnitConversionRateConfig, TieredConversionRateConfig |
365 | 265 | ] |
366 | 266 |
|
@@ -401,7 +301,7 @@ class ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPrice(TypedDict, total= |
401 | 301 | """The per unit conversion rate of the price currency to the invoicing currency.""" |
402 | 302 |
|
403 | 303 | conversion_rate_config: Optional[ |
404 | | - ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent160 |
| 304 | + ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPriceUnnamedTypeWithobjectParent161 |
405 | 305 | ] |
406 | 306 | """The configuration for the rate of the price currency to the invoicing currency.""" |
407 | 307 |
|
@@ -446,101 +346,6 @@ class ReplacePricePriceNewPlanGroupedWithMinMaxThresholdsPrice(TypedDict, total= |
446 | 346 | """ |
447 | 347 |
|
448 | 348 |
|
449 | | -class ReplacePricePriceNewPlanMinimumCompositePriceMinimumConfig(TypedDict, total=False): |
450 | | - minimum_amount: Required[str] |
451 | | - """The minimum amount to apply""" |
452 | | - |
453 | | - prorated: Optional[bool] |
454 | | - """ |
455 | | - By default, subtotals from minimum composite prices are prorated based on the |
456 | | - service period. Set to false to disable proration. |
457 | | - """ |
458 | | - |
459 | | - |
460 | | -ReplacePricePriceNewPlanMinimumCompositePriceUnnamedTypeWithobjectParent161: TypeAlias = Union[ |
461 | | - UnitConversionRateConfig, TieredConversionRateConfig |
462 | | -] |
463 | | - |
464 | | - |
465 | | -class ReplacePricePriceNewPlanMinimumCompositePrice(TypedDict, total=False): |
466 | | - cadence: Required[Literal["annual", "semi_annual", "monthly", "quarterly", "one_time", "custom"]] |
467 | | - """The cadence to bill for this price on.""" |
468 | | - |
469 | | - item_id: Required[str] |
470 | | - """The id of the item the price will be associated with.""" |
471 | | - |
472 | | - minimum_config: Required[ReplacePricePriceNewPlanMinimumCompositePriceMinimumConfig] |
473 | | - |
474 | | - model_type: Required[Literal["minimum"]] |
475 | | - |
476 | | - name: Required[str] |
477 | | - """The name of the price.""" |
478 | | - |
479 | | - billable_metric_id: Optional[str] |
480 | | - """The id of the billable metric for the price. |
481 | | -
|
482 | | - Only needed if the price is usage-based. |
483 | | - """ |
484 | | - |
485 | | - billed_in_advance: Optional[bool] |
486 | | - """ |
487 | | - If the Price represents a fixed cost, the price will be billed in-advance if |
488 | | - this is true, and in-arrears if this is false. |
489 | | - """ |
490 | | - |
491 | | - billing_cycle_configuration: Optional[NewBillingCycleConfiguration] |
492 | | - """ |
493 | | - For custom cadence: specifies the duration of the billing period in days or |
494 | | - months. |
495 | | - """ |
496 | | - |
497 | | - conversion_rate: Optional[float] |
498 | | - """The per unit conversion rate of the price currency to the invoicing currency.""" |
499 | | - |
500 | | - conversion_rate_config: Optional[ReplacePricePriceNewPlanMinimumCompositePriceUnnamedTypeWithobjectParent161] |
501 | | - """The configuration for the rate of the price currency to the invoicing currency.""" |
502 | | - |
503 | | - currency: Optional[str] |
504 | | - """ |
505 | | - An ISO 4217 currency string, or custom pricing unit identifier, in which this |
506 | | - price is billed. |
507 | | - """ |
508 | | - |
509 | | - dimensional_price_configuration: Optional[NewDimensionalPriceConfiguration] |
510 | | - """For dimensional price: specifies a price group and dimension values""" |
511 | | - |
512 | | - external_price_id: Optional[str] |
513 | | - """An alias for the price.""" |
514 | | - |
515 | | - fixed_price_quantity: Optional[float] |
516 | | - """ |
517 | | - If the Price represents a fixed cost, this represents the quantity of units |
518 | | - applied. |
519 | | - """ |
520 | | - |
521 | | - invoice_grouping_key: Optional[str] |
522 | | - """The property used to group this price on an invoice""" |
523 | | - |
524 | | - invoicing_cycle_configuration: Optional[NewBillingCycleConfiguration] |
525 | | - """Within each billing cycle, specifies the cadence at which invoices are produced. |
526 | | -
|
527 | | - If unspecified, a single invoice is produced per billing cycle. |
528 | | - """ |
529 | | - |
530 | | - metadata: Optional[Dict[str, Optional[str]]] |
531 | | - """User-specified key/value pairs for the resource. |
532 | | -
|
533 | | - Individual keys can be removed by setting the value to `null`, and the entire |
534 | | - metadata mapping can be cleared by setting `metadata` to `null`. |
535 | | - """ |
536 | | - |
537 | | - reference_id: Optional[str] |
538 | | - """ |
539 | | - A transient ID that can be used to reference this price when adding adjustments |
540 | | - in the same API call. |
541 | | - """ |
542 | | - |
543 | | - |
544 | 349 | ReplacePricePrice: TypeAlias = Union[ |
545 | 350 | NewPlanUnitPrice, |
546 | 351 | NewPlanPackagePrice, |
@@ -568,7 +373,7 @@ class ReplacePricePriceNewPlanMinimumCompositePrice(TypedDict, total=False): |
568 | 373 | NewPlanTieredPackageWithMinimumPrice, |
569 | 374 | NewPlanMatrixWithAllocationPrice, |
570 | 375 | NewPlanGroupedTieredPrice, |
571 | | - ReplacePricePriceNewPlanMinimumCompositePrice, |
| 376 | + NewPlanMinimumCompositePrice, |
572 | 377 | ] |
573 | 378 |
|
574 | 379 |
|
|
0 commit comments