Queries

DemographicInfoQuery

class q2_cores.PCS.queries.demographic_info_query.DemographicInfoQuery(logger, bank_id, ssn)[source]

Bases: BaseQuery

Builds the xml payload for the demographic call for the PCS 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]
mock_response()[source]

When run in DEBUG mode, the SDK will intercept calls before they go to HQ’s AdapterPassThru endpoint.

In these cases, the response will be whatever is returned from this function.

MockResponses

q2_cores.PCS.queries.mock_responses.mock_demo_info_response()[source]
q2_cores.PCS.queries.mock_responses.mock_demo_error_response()[source]
q2_cores.PCS.queries.mock_responses.mock_minor_response()[source]