|
18 | 18 | "AddAdjustmentAdjustmentNewMinimum",
|
19 | 19 | "AddAdjustmentAdjustmentNewMaximum",
|
20 | 20 | "AddPrice",
|
| 21 | + "AddPriceAllocationPrice", |
21 | 22 | "AddPriceDiscount",
|
22 | 23 | "AddPricePrice",
|
23 | 24 | "AddPricePriceNewSubscriptionUnitPrice",
|
|
98 | 99 | "ReplaceAdjustmentAdjustmentNewMinimum",
|
99 | 100 | "ReplaceAdjustmentAdjustmentNewMaximum",
|
100 | 101 | "ReplacePrice",
|
| 102 | + "ReplacePriceAllocationPrice", |
101 | 103 | "ReplacePriceDiscount",
|
102 | 104 | "ReplacePricePrice",
|
103 | 105 | "ReplacePricePriceNewSubscriptionUnitPrice",
|
@@ -427,6 +429,26 @@ class AddAdjustment(TypedDict, total=False):
|
427 | 429 | """
|
428 | 430 |
|
429 | 431 |
|
| 432 | +class AddPriceAllocationPrice(TypedDict, total=False): |
| 433 | + amount: Required[str] |
| 434 | + """An amount of the currency to allocate to the customer at the specified cadence.""" |
| 435 | + |
| 436 | + cadence: Required[Literal["one_time", "monthly", "quarterly", "semi_annual", "annual", "custom"]] |
| 437 | + """The cadence at which to allocate the amount to the customer.""" |
| 438 | + |
| 439 | + currency: Required[str] |
| 440 | + """ |
| 441 | + An ISO 4217 currency string or a custom pricing unit identifier in which to bill |
| 442 | + this price. |
| 443 | + """ |
| 444 | + |
| 445 | + expires_at_end_of_cadence: Required[bool] |
| 446 | + """ |
| 447 | + Whether the allocated amount should expire at the end of the cadence or roll |
| 448 | + over to the next period. |
| 449 | + """ |
| 450 | + |
| 451 | + |
430 | 452 | class AddPriceDiscount(TypedDict, total=False):
|
431 | 453 | discount_type: Required[Literal["percentage", "usage", "amount"]]
|
432 | 454 |
|
@@ -2211,6 +2233,9 @@ class AddPricePriceNewSubscriptionBulkWithProrationPrice(TypedDict, total=False)
|
2211 | 2233 |
|
2212 | 2234 |
|
2213 | 2235 | class AddPrice(TypedDict, total=False):
|
| 2236 | + allocation_price: Optional[AddPriceAllocationPrice] |
| 2237 | + """The definition of a new allocation price to create and add to the subscription.""" |
| 2238 | + |
2214 | 2239 | discounts: Optional[Iterable[AddPriceDiscount]]
|
2215 | 2240 | """[DEPRECATED] Use add_adjustments instead.
|
2216 | 2241 |
|
@@ -2388,6 +2413,26 @@ class ReplaceAdjustment(TypedDict, total=False):
|
2388 | 2413 | """The id of the adjustment on the plan to replace in the subscription."""
|
2389 | 2414 |
|
2390 | 2415 |
|
| 2416 | +class ReplacePriceAllocationPrice(TypedDict, total=False): |
| 2417 | + amount: Required[str] |
| 2418 | + """An amount of the currency to allocate to the customer at the specified cadence.""" |
| 2419 | + |
| 2420 | + cadence: Required[Literal["one_time", "monthly", "quarterly", "semi_annual", "annual", "custom"]] |
| 2421 | + """The cadence at which to allocate the amount to the customer.""" |
| 2422 | + |
| 2423 | + currency: Required[str] |
| 2424 | + """ |
| 2425 | + An ISO 4217 currency string or a custom pricing unit identifier in which to bill |
| 2426 | + this price. |
| 2427 | + """ |
| 2428 | + |
| 2429 | + expires_at_end_of_cadence: Required[bool] |
| 2430 | + """ |
| 2431 | + Whether the allocated amount should expire at the end of the cadence or roll |
| 2432 | + over to the next period. |
| 2433 | + """ |
| 2434 | + |
| 2435 | + |
2391 | 2436 | class ReplacePriceDiscount(TypedDict, total=False):
|
2392 | 2437 | discount_type: Required[Literal["percentage", "usage", "amount"]]
|
2393 | 2438 |
|
@@ -4191,6 +4236,9 @@ class ReplacePrice(TypedDict, total=False):
|
4191 | 4236 | replaces_price_id: Required[str]
|
4192 | 4237 | """The id of the price on the plan to replace in the subscription."""
|
4193 | 4238 |
|
| 4239 | + allocation_price: Optional[ReplacePriceAllocationPrice] |
| 4240 | + """The definition of a new allocation price to create and add to the subscription.""" |
| 4241 | + |
4194 | 4242 | discounts: Optional[Iterable[ReplacePriceDiscount]]
|
4195 | 4243 | """[DEPRECATED] Use add_adjustments instead.
|
4196 | 4244 |
|
|
0 commit comments