FISHorizon
Core
- class q2_cores.FISHorizon.core.Core(logger, core_user, hq_credentials=None, **kwargs)[source]
Bases:
BaseCore
- Summary Flow:
Uses an initial search system, where an initial search is made to retrieve a unique internal ID for that user. That ID can then be used for all additional calls. This base implementation provides the ability to retrieve demographic information from the core.
The RM01 Customer Search call retrieves the unique customer identifier (the internal ID number) using the SSN and Last Name to search. The RM02 Customer Inquiry call is the primary demographic call. It uses the unique customer identifier as the input for the call.
All cores will inherit from this common base class. This contains a self.configured_user property, which is an instance of
q2_sdk.models.cores.models.core_user.CoreUser
.- CONFIG_FILE_NAME = 'FISHorizon_Core'
- OPTIONAL_CONFIGURATIONS = {'SEARCH_BY_CIF': False, 'SEARCH_BY_LASTNAME_IF_SSN_MISSING': False}
- async build_initial_customer_key_search()[source]
Make initial search call to retrieve unique customer identifier associated with the SSN. Note: If an SSN isn’t available for the search and the optional configuration
SEARCH_BY_LASTNAME_IF_SSN_MISSING
is set to True, an attempt to retrieve the unique customer identifier by last name and date of birth (if available) is made.- Return type:
- async build_demographic_info(unique_customer_identifier=None)[source]
Builds a request to retrieve a user’s demographic information from the core using a unique identifier.
If a unique identifier is provided, a demographic request is created immediately using the provided value. If SEARCH_BY_CIF config is set to True, a demographic request is created immediately using the online user’s CIF. Otherwise, an initial search is performed to find the unique customer identifier (using the user’s SSN or last name/dob if optional configuration is set). If the search fails, the user’s primary cif is still utilized for the request.
- Parameters:
unique_customer_identifier (
str
) – A unique identifier known to Fiserv for the customer, used for the demographic request. Defaults toNone
- Return type: