Skip to content

Commit 8f813ea

Browse files
authored
fix(models): Update grouped_by type to allow None in ProjectedGroupedUsage and GroupedUsage classes (#344)
* fix(models): Update `grouped_by` type to allow None in ProjectedGroupedUsage and GroupedUsage classes * fix(models): Change `grouped_by` type to use `Optional[str]` for python 3.9 support
1 parent f173970 commit 8f813ea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lago_python_client/models/customer_projected_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ProjectedGroupedUsage(BaseModel):
4141
events_count: int
4242
units: str
4343
projected_units: str
44-
grouped_by: Dict[str, str]
44+
grouped_by: Dict[str, Optional[str]]
4545
filters: List[ProjectedChargeFilterUsage]
4646
pricing_unit_details: Optional[PricingUnitDetails]
4747

lago_python_client/models/customer_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class GroupedUsage(BaseModel):
3737
amount_cents: int
3838
events_count: int
3939
units: str
40-
grouped_by: Dict[str, str]
40+
grouped_by: Dict[str, Optional[str]]
4141
filters: List[ChargeFilterUsage]
4242
pricing_unit_details: Optional[PricingUnitDetails]
4343

0 commit comments

Comments
 (0)