5151    "PriceOverrideOverridePackageWithAllocationPriceDiscount" ,
5252    "PriceOverrideOverrideUnitWithPercentPrice" ,
5353    "PriceOverrideOverrideUnitWithPercentPriceDiscount" ,
54+     "PriceOverrideOverrideGroupedAllocationPrice" ,
55+     "PriceOverrideOverrideGroupedAllocationPriceDiscount" ,
56+     "PriceOverrideOverrideBulkWithProrationPrice" ,
57+     "PriceOverrideOverrideBulkWithProrationPriceDiscount" ,
5458]
5559
5660
@@ -995,6 +999,120 @@ class PriceOverrideOverrideUnitWithPercentPrice(TypedDict, total=False):
995999    """The subscription's override minimum amount for the plan.""" 
9961000
9971001
1002+ class  PriceOverrideOverrideGroupedAllocationPriceDiscount (TypedDict , total = False ):
1003+     discount_type : Required [Literal ["percentage" , "trial" , "usage" , "amount" ]]
1004+ 
1005+     amount_discount : Optional [str ]
1006+     """Only available if discount_type is `amount`.""" 
1007+ 
1008+     applies_to_price_ids : Optional [List [str ]]
1009+     """List of price_ids that this discount applies to. 
1010+ 
1011+     For plan/plan phase discounts, this can be a subset of prices. 
1012+     """ 
1013+ 
1014+     percentage_discount : Optional [float ]
1015+     """Only available if discount_type is `percentage`. 
1016+ 
1017+     This is a number between 0 and 1. 
1018+     """ 
1019+ 
1020+     trial_amount_discount : Optional [str ]
1021+     """Only available if discount_type is `trial`""" 
1022+ 
1023+     usage_discount : Optional [float ]
1024+     """Only available if discount_type is `usage`. 
1025+ 
1026+     Number of usage units that this discount is for 
1027+     """ 
1028+ 
1029+ 
1030+ class  PriceOverrideOverrideGroupedAllocationPrice (TypedDict , total = False ):
1031+     id : Required [str ]
1032+ 
1033+     grouped_allocation_config : Required [Dict [str , object ]]
1034+ 
1035+     model_type : Required [Literal ["grouped_allocation" ]]
1036+ 
1037+     conversion_rate : Optional [float ]
1038+     """The per unit conversion rate of the price currency to the invoicing currency.""" 
1039+ 
1040+     currency : Optional [str ]
1041+     """The currency of the price. 
1042+ 
1043+     If not provided, the currency of the plan will be used. 
1044+     """ 
1045+ 
1046+     discount : Optional [PriceOverrideOverrideGroupedAllocationPriceDiscount ]
1047+     """The subscription's override discount for the plan.""" 
1048+ 
1049+     fixed_price_quantity : Optional [float ]
1050+     """The starting quantity of the price, if the price is a fixed price.""" 
1051+ 
1052+     maximum_amount : Optional [str ]
1053+     """The subscription's override maximum amount for the plan.""" 
1054+ 
1055+     minimum_amount : Optional [str ]
1056+     """The subscription's override minimum amount for the plan.""" 
1057+ 
1058+ 
1059+ class  PriceOverrideOverrideBulkWithProrationPriceDiscount (TypedDict , total = False ):
1060+     discount_type : Required [Literal ["percentage" , "trial" , "usage" , "amount" ]]
1061+ 
1062+     amount_discount : Optional [str ]
1063+     """Only available if discount_type is `amount`.""" 
1064+ 
1065+     applies_to_price_ids : Optional [List [str ]]
1066+     """List of price_ids that this discount applies to. 
1067+ 
1068+     For plan/plan phase discounts, this can be a subset of prices. 
1069+     """ 
1070+ 
1071+     percentage_discount : Optional [float ]
1072+     """Only available if discount_type is `percentage`. 
1073+ 
1074+     This is a number between 0 and 1. 
1075+     """ 
1076+ 
1077+     trial_amount_discount : Optional [str ]
1078+     """Only available if discount_type is `trial`""" 
1079+ 
1080+     usage_discount : Optional [float ]
1081+     """Only available if discount_type is `usage`. 
1082+ 
1083+     Number of usage units that this discount is for 
1084+     """ 
1085+ 
1086+ 
1087+ class  PriceOverrideOverrideBulkWithProrationPrice (TypedDict , total = False ):
1088+     id : Required [str ]
1089+ 
1090+     bulk_with_proration_config : Required [Dict [str , object ]]
1091+ 
1092+     model_type : Required [Literal ["bulk_with_proration" ]]
1093+ 
1094+     conversion_rate : Optional [float ]
1095+     """The per unit conversion rate of the price currency to the invoicing currency.""" 
1096+ 
1097+     currency : Optional [str ]
1098+     """The currency of the price. 
1099+ 
1100+     If not provided, the currency of the plan will be used. 
1101+     """ 
1102+ 
1103+     discount : Optional [PriceOverrideOverrideBulkWithProrationPriceDiscount ]
1104+     """The subscription's override discount for the plan.""" 
1105+ 
1106+     fixed_price_quantity : Optional [float ]
1107+     """The starting quantity of the price, if the price is a fixed price.""" 
1108+ 
1109+     maximum_amount : Optional [str ]
1110+     """The subscription's override maximum amount for the plan.""" 
1111+ 
1112+     minimum_amount : Optional [str ]
1113+     """The subscription's override minimum amount for the plan.""" 
1114+ 
1115+ 
9981116PriceOverride : TypeAlias  =  Union [
9991117    PriceOverrideOverrideUnitPrice ,
10001118    PriceOverrideOverridePackagePrice ,
@@ -1009,4 +1127,6 @@ class PriceOverrideOverrideUnitWithPercentPrice(TypedDict, total=False):
10091127    PriceOverrideOverrideTieredWithMinimumPrice ,
10101128    PriceOverrideOverridePackageWithAllocationPrice ,
10111129    PriceOverrideOverrideUnitWithPercentPrice ,
1130+     PriceOverrideOverrideGroupedAllocationPrice ,
1131+     PriceOverrideOverrideBulkWithProrationPrice ,
10121132]
0 commit comments