Skip to content

Commit

Permalink
@pcrespov name -> display_name
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 12, 2024
1 parent f87ccb4 commit 87f5b57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class ServicePricingPlanGetLegacy(BaseModel):

class LicensedItemGet(BaseModel):
licensed_item_id: LicensedItemID
name: str
display_name: str
licensed_resource_type: LicensedResourceType
pricing_plan_id: PricingPlanId
created_at: datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ async def get_licensed_items(
)
return create_page(
[
LicensedItemGet.model_validate(elm.model_dump())
LicensedItemGet(
licensed_item_id=elm.licensed_item_id,
display_name=elm.name,
licensed_resource_type=elm.licensed_resource_type,
pricing_plan_id=elm.pricing_plan_id,
created_at=elm.created_at,
modified_at=elm.modified_at,
)
for elm in licensed_items_page.items
],
total=licensed_items_page.total,
Expand Down

0 comments on commit 87f5b57

Please sign in to comment.