CoreAPI

Core

class q2_cores.CoreAPI.core.Core(logger, core_user, hq_credentials=None, db_config_dict=None)[source]

Bases: BaseCore

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 = 'CoreAPI_Core'
OPTIONAL_CONFIGURATIONS = {'GET_DEMOGRAPHIC_BY_CIF': True, 'PREFER_USER_LEVEL_CIF': False, 'get_cif_from_user_fields': {}}
property cif
async build_demographic_info()[source]

Returns a DemographicInfoMapper ready to execute

Return type:

DemographicInfoMapper

async build_update_demographic_info(demographic_info)[source]

Returns a UpdateDemographicInfoMapper ready to execute

Return type:

UpdateDemographicInfoMapper

async build_get_account_details(account_number)[source]
Return type:

CoreAPIBaseMapper

static check_for_errors(response_obj)[source]