Legacy webhook handler for NDD property data lookups. Original implementation superseded by ObjHookDevelopments. Provides a two-phase API: broad search with fuzzy matching and narrow search for detailed development and bank information. Organisation ID is resolved from request parameters or the external GUID query string.
ObjData.ObjData
|
+-- ObjHook
- _IsA = "ObjHookNDD_Data"
- _Version = "1.1"
- kafka
- payload
+ Process(payload, webhook_code, Param1..Param8)
+ fuzz_match(text_a, text_b, score)
- _resolve_organisation_id(external_guid)
- _broad_search(payload, organisation_id, webhook_code, site_url)
- _narrow_search(external_guid, organisation_id)
| Method | Description |
|---|---|
__init__(DB, Page) |
Initialises the hook with database connection |
Process(payload, webhook_code, Param1..Param8) |
Resolves organisation ID and delegates to broad or narrow search |
fuzz_match(text_a, text_b, score) |
Checks if two strings match using weighted fuzzy ratio |
_resolve_organisation_id(external_guid) |
Resolves organisationId from params or external GUID query string |
_broad_search(payload, organisation_id, webhook_code, site_url) |
Parses JSON payload, queries developments with fuzzy matching |
_narrow_search(external_guid, organisation_id) |
Retrieves full development info and bank records |
ndd_prop_development filtered by organisationprop_development_no from external GUID| Table | Operation |
|---|---|
ndd_prop_development |
SELECT - development data |
ndd_prop_development_source |
JOIN - filters by organisation |
ndd_prop_development_bank |
SELECT - bank and attorney info |
data_switchx_authcodes |
SELECT - auth code validation |
ObjData - base database functionalityfuzzywuzzy - fuzzy string matchingjson - JSON payload parsingtime - performance timingcythonize -3 -a -i ObjHookDevelopmentsOld.py
Compiling /home/axion/projects/axion/factory.webhook/ObjHookDevelopmentsOld.py because it changed..[1/1] Cythonizing /home/axion/projects/axion/factory.webhook/ObjHookDevelopmentsOld.py
Updated: 2026-03-20