Mappers

CardListMapper

class q2_cores.MiserCohesion.mappers.card_list.CardListMapper(list_of_queries, hq_credentials=None, zone_context=None)[source]

Bases: BaseCardListMapper

VISA_PROD_TYPES = ['01', '02', '03', '04']
DEBIT_CODES = ['00', '10']
static parse_returned_queries(list_of_queries)[source]

After all queries in list_of_queries have been run, this parses the results into a standardized response type.

Return type:

List[Card]

static verify_is_visa(account)[source]
static verify_is_debit(account)[source]
static verify_is_cancelled(account)[source]

DemographicInfoMapper

class q2_cores.MiserCohesion.mappers.demographic_info.DemographicInfoMapper(list_of_queries, hq_credentials=None, zone_context=None)[source]

Bases: BaseDemographicInfoMapper

static parse_returned_queries(list_of_queries)[source]

After all queries in list_of_queries have been run, this parses the results into a standardized response type.

Return type:

DemographicInfo