Carry the deal's client_booking_reference into the Abri message 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-24 15:52:24 +00:00
parent 9921d545ef
commit cf0129103e

View file

@ -268,6 +268,12 @@ class HubspotDealDiffer:
"third_party_surveyor_identifier": new_deal.get(
"third_party_surveyor_identifier"
),
# The Job Number OpenHousing returned on a successful log, if any.
# The consumer reads it to tell "job exists" (amend/abandon) from
# "never logged" (log).
"client_booking_reference": HubspotDealDiffer._client_booking_reference(
new_deal
),
# Carried for the abandon flow: it dates the cancel to the confirmed
# survey date, falling back to the last submission date.
"last_submission_date": (