Queries
DemographicInfoQuery
- class q2_cores.Phoenix.queries.demographic_info_query.DemographicInfoQuery(logger, service_id, emp_id, ssn=None, acct_no=None, acct_type=None)[source]
Bases:
BaseQuery
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_with_ssn()[source]
shape:
<INQUIRY> <TRAN_INFO> <ReferenceNo>YYYYMMDDHHMMSS[TZ]</ReferenceNo> <XapiTranCode>13005</XapiTranCode> <OutputTypeId>2</OutputTypeId> </TRAN_INFO> <Tin>123456789%</Tin> </INQUIRY>
- build_with_account_and_type()[source]
shape:
<INQUIRY> <TRAN_INFO> <ReferenceNo>YYYYMMDDHHMMSS[TZ]</ReferenceNo> <XapiTranCode>13005</XapiTranCode> <OutputTypeId>2</OutputTypeId> </TRAN_INFO> <TRAN_ACCT> <AcctNo>5401000012</AcctNo> <AcctType>SAV</AcctType> </TRAN_ACCT> </INQUIRY>
- 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.