better comments

This commit is contained in:
Jun-te Kim 2026-03-17 17:18:09 +00:00
parent 05cae87733
commit fc425b8b66

View file

@ -162,7 +162,7 @@ class HubspotClient:
response: AssociationsPageResponse = associations_api.get_page( # type: ignore[reportUnknownMemberType]
object_type="deals",
object_id=deal_id,
to_object_type="0-420", # <-- use your exact custom object name slug here
to_object_type="0-420", # <-- to get an listing object
limit=1,
)
@ -373,9 +373,7 @@ class HubspotClient:
properties: dict[str, str] = cast(dict[str, str], product.properties) # type: ignore[reportUnknownMemberType]
name: str = properties.get("name") or ""
price: str = (
properties.get("price") or properties.get("hs_price") or "0"
)
price: str = properties.get("price") or properties.get("hs_price") or "0"
# Build line item payload
line_item_input = SimplePublicObjectInput(