mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
better comments
This commit is contained in:
parent
05cae87733
commit
fc425b8b66
1 changed files with 2 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue