Queries
DemographicInfoQuery
- class q2_cores.FiservCommunicatorOpenPremier.queries.demographic_info_query.DemographicInfoQuery(logger, req_dict)[source]
Bases:
BaseQuery
Builds the payload for the demographic call in the Fiserv Communicator Premier Open core
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]
Creates a demographic info query to retrieve the user’s demographic information.
Example of query return to search by SSN:
{ "UrlPath": "/parties/parties/secured/list", "Method": "POST", "Base64Body": "eyJSZWNDdHJsSW4iOiB7fSwgIlBhcnR5TGlzdFNlbCI6IHsiVGF4SWRlbnQiOiAiMTQ3ODUxMjM1In19", }
We convert below request into Base64 and add it to Base64Body
{ "RecCtrlIn":{}, "PartyListSel":{ "TaxIdent":"123456789" } }
- Return type:
dict