Queries
DemographicInfoQuery
- class q2_cores.MiserCohesion.queries.demographic_info_query.DemographicInfoQuery(logger, cif_nbr='', tax_id='')[source]
Bases:
BaseQuery
Returns addresses, First/Last Name, Phones, etc for an MiserCohesion cif_nbr
Object which builds the query to be send to the Core. If server is running debug mode, will return mocked response instead of calling the core.
- Parameters:
logger (
Logger
) – Reference to calling request’s logger (self.logger in your extension)mock_failure – If server is running in debug mode, will be used while mocking the response
- build()[source]
Call Shape:
<VBTPRequest xmlns="http://schemas.fidelityinfoservices.com/webservices/miser/vbtp"> <Transaction> <ApplCode>CF</ApplCode> <TranCode>CUS</TranCode> </Transaction> <Parameters> <CIFNbr>{cif_nbr}</CIFNbr> # Either this one <TaxID>{tax_id}</TaxID> # or this one </Parameters> </VBTPRequest>