Mappers

InitialSearchMapper

class q2_cores.FiservCommunicatorSignature.mappers.initial_search_mapper.InitialSearchMapper(list_of_queries, hq_credentials=None, zone_context=None)[source]

Bases: BaseMapper

static parse_returned_queries(list_of_queries)[source]

Handles the demographic information response from the core if THROW_ERROR_ON_MULTIPLE_CUSTPERM_ID is set to True, a CoreException error will be raised if multiple customer permanent IDs are returned from the core.

Return type:

str

Returns:

a string of customer’s permanent ID (CIF)

Raises:

DemographicInfoMapper

class q2_cores.FiservCommunicatorSignature.mappers.demographic_info_mapper.DemographicInfoMapper(list_of_queries, hq_credentials=None)[source]

Bases: BaseMapper

static parse_returned_queries(list_of_queries)[source]

Handles the demographic information response from the core. if SECRET_OVERRIDE_DEMO_ATTR configuration is set, demographic object return will be overriden with the value returned from the core “Secret” field

Return type:

DemographicInfo

get_users_dob()[source]
get_users_drivers_license()[source]
get_users_address()[source]
get_users_phones()[source]