Source: factory.service/package.homechoice/ObjServiceBureau.py
Base class for credit bureau service integrations.
Provides common framework for bureau API integrations including:
| Method | Signature | Description |
|---|---|---|
| register_bureau | register_bureau(cls, bureau_code, bureau_class) |
Register a bureau implementation class with a code. |
| get_bureau_class | get_bureau_class(cls, bureau_code) |
Get bureau implementation class by code. |
| get_registered_bureaus | get_registered_bureaus(cls) |
Get list of all registered bureau codes. |
| get_bureau_code | get_bureau_code() |
Get bureau code for this implementation. |
| get_remote_connection_pattern | get_remote_connection_pattern() |
Get SQL LIKE pattern for remote connection lookup. |
| get_buffer_time | get_buffer_time() |
Get buffer time in days from configuration. |
| resolve_buffer | resolve_buffer(guid = '', idnumber = '', buffer_time = '') |
Retrieve buffered bureau results instead of making new API call. |
| check_buffer | check_buffer(idnumber) |
Check if valid buffered result exists for ID number. |
| notify_failure | notify_failure(bureau_code, error_message, guid = '') |
Send notification for bureau connection or API failure. |
| get_retry_config | get_retry_config() |
Get retry configuration from database. |
| resolve_with_retry | resolve_with_retry(guid = '', id_number = '') |
Execute bureau API call with exponential backoff retry. |
| resolve | resolve(guid = '', id_number = '') |
Execute bureau API call and process response. |
| compute | compute(param1 = '', param2 = '', param3 = '100') |
Process bureau request with given parameters. |
| connect | connect() |
Execute workflow connection and compute. |
| run_workflow_direct | run_workflow_direct(guid, param1 = '', param2 = '', param3 = '') |
Direct workflow execution entry point. |
| send | send() |
Send method for workflow compatibility. |
Command-line interface for bureau service.