|
84 | 84 | "TieredWithMinimumPriceItem",
|
85 | 85 | "TieredWithMinimumPriceMaximum",
|
86 | 86 | "TieredWithMinimumPriceMinimum",
|
| 87 | + "TieredPackageWithMinimumPrice", |
| 88 | + "TieredPackageWithMinimumPriceBillableMetric", |
| 89 | + "TieredPackageWithMinimumPriceItem", |
| 90 | + "TieredPackageWithMinimumPriceMaximum", |
| 91 | + "TieredPackageWithMinimumPriceMinimum", |
87 | 92 | "PackageWithAllocationPrice",
|
88 | 93 | "PackageWithAllocationPriceBillableMetric",
|
89 | 94 | "PackageWithAllocationPriceItem",
|
@@ -1062,6 +1067,76 @@ class TieredWithMinimumPrice(BaseModel):
|
1062 | 1067 | tiered_with_minimum_config: Dict[str, object]
|
1063 | 1068 |
|
1064 | 1069 |
|
| 1070 | +class TieredPackageWithMinimumPriceBillableMetric(BaseModel): |
| 1071 | + id: str |
| 1072 | + |
| 1073 | + |
| 1074 | +class TieredPackageWithMinimumPriceItem(BaseModel): |
| 1075 | + id: str |
| 1076 | + |
| 1077 | + name: str |
| 1078 | + |
| 1079 | + |
| 1080 | +class TieredPackageWithMinimumPriceMaximum(BaseModel): |
| 1081 | + applies_to_price_ids: List[str] |
| 1082 | + """List of price_ids that this maximum amount applies to. |
| 1083 | +
|
| 1084 | + For plan/plan phase maximums, this can be a subset of prices. |
| 1085 | + """ |
| 1086 | + |
| 1087 | + maximum_amount: str |
| 1088 | + """Maximum amount applied""" |
| 1089 | + |
| 1090 | + |
| 1091 | +class TieredPackageWithMinimumPriceMinimum(BaseModel): |
| 1092 | + applies_to_price_ids: List[str] |
| 1093 | + """List of price_ids that this minimum amount applies to. |
| 1094 | +
|
| 1095 | + For plan/plan phase minimums, this can be a subset of prices. |
| 1096 | + """ |
| 1097 | + |
| 1098 | + minimum_amount: str |
| 1099 | + """Minimum amount applied""" |
| 1100 | + |
| 1101 | + |
| 1102 | +class TieredPackageWithMinimumPrice(BaseModel): |
| 1103 | + id: str |
| 1104 | + |
| 1105 | + billable_metric: Optional[TieredPackageWithMinimumPriceBillableMetric] = None |
| 1106 | + |
| 1107 | + cadence: Literal["one_time", "monthly", "quarterly", "annual"] |
| 1108 | + |
| 1109 | + created_at: datetime |
| 1110 | + |
| 1111 | + currency: str |
| 1112 | + |
| 1113 | + discount: Optional[Discount] = None |
| 1114 | + |
| 1115 | + external_price_id: Optional[str] = None |
| 1116 | + |
| 1117 | + fixed_price_quantity: Optional[float] = None |
| 1118 | + |
| 1119 | + item: TieredPackageWithMinimumPriceItem |
| 1120 | + |
| 1121 | + maximum: Optional[TieredPackageWithMinimumPriceMaximum] = None |
| 1122 | + |
| 1123 | + maximum_amount: Optional[str] = None |
| 1124 | + |
| 1125 | + minimum: Optional[TieredPackageWithMinimumPriceMinimum] = None |
| 1126 | + |
| 1127 | + minimum_amount: Optional[str] = None |
| 1128 | + |
| 1129 | + price_model_type: Literal["tiered_package_with_minimum"] = FieldInfo(alias="model_type") |
| 1130 | + |
| 1131 | + name: str |
| 1132 | + |
| 1133 | + plan_phase_order: Optional[int] = None |
| 1134 | + |
| 1135 | + price_type: Literal["usage_price", "fixed_price"] |
| 1136 | + |
| 1137 | + tiered_package_with_minimum_config: Dict[str, object] |
| 1138 | + |
| 1139 | + |
1065 | 1140 | class PackageWithAllocationPriceBillableMetric(BaseModel):
|
1066 | 1141 | id: str
|
1067 | 1142 |
|
@@ -1311,6 +1386,7 @@ class MatrixWithAllocationPrice(BaseModel):
|
1311 | 1386 | TieredPackagePrice,
|
1312 | 1387 | GroupedTieredPrice,
|
1313 | 1388 | TieredWithMinimumPrice,
|
| 1389 | + TieredPackageWithMinimumPrice, |
1314 | 1390 | PackageWithAllocationPrice,
|
1315 | 1391 | UnitWithPercentPrice,
|
1316 | 1392 | MatrixWithAllocationPrice,
|
|
0 commit comments