GetAccountListByCif module

Get account list by internal CIF

Sample response (may differ slightly in your environment)

<Q2API HqAssemblyVersion="4.2.6185.31252" HqVersion="4.2.3.4215A" ServerDateTime="2018-02-13T16:25:55.0150014-06:00">
    <Result>
        <ErrorCode ErrorType="Success">0</ErrorCode>
        <ErrorDescription/>
        <HydraErrorReturnCode>0</HydraErrorReturnCode>
    </Result>
    <Data>
        <DalHostAccountLookup>
            <Q2_HostAccountLookup>
                <HostAccountID>5003</HostAccountID>
                <AccountNumberInternal>8683224</AccountNumberInternal>
                <AccountDesc>Main Checking</AccountDesc>
                <CIFInternal>HQ_Test_9229627</CIFInternal>
                <BranchID>1</BranchID>
                <ProductID>1</ProductID>
                <ProductName>Regular Checking</ProductName>
                <HydraProductCode>C</HydraProductCode>
                <ProductTypeID>1</ProductTypeID>
                <ProductTypeName>Deposit</ProductTypeName>
                <HydraProductTypeCode>D</HydraProductTypeCode>
                <HostProductCode>01</HostProductCode>
                <HostProductTypeCode>D</HostProductTypeCode>
                <IsExternalAccount>false</IsExternalAccount>
            </Q2_HostAccountLookup>
            <Q2_HostAccountLookup>
                <HostAccountID>5004</HostAccountID>
                <AccountNumberInternal>1161171</AccountNumberInternal>
                <AccountDesc>Payroll Checking</AccountDesc>
                <CIFInternal>HQ_Test_9229627</CIFInternal>
                <BranchID>1</BranchID>
                <ProductID>1</ProductID>
                <ProductName>Regular Checking</ProductName>
                <HydraProductCode>C</HydraProductCode>
                <ProductTypeID>1</ProductTypeID>
                <ProductTypeName>Deposit</ProductTypeName>
                <HydraProductTypeCode>D</HydraProductTypeCode>
                <HostProductCode>01</HostProductCode>
                <HostProductTypeCode>D</HostProductTypeCode>
                <IsExternalAccount>false</IsExternalAccount>
            </Q2_HostAccountLookup>
            <Q2_HostAccountLookup>
                <HostAccountID>5005</HostAccountID>
                <AccountNumberInternal>3891655</AccountNumberInternal>
                <AccountDesc>Emergency Savings</AccountDesc>
                <CIFInternal>HQ_Test_9229627</CIFInternal>
                <BranchID>1</BranchID>
                <ProductID>3</ProductID>
                <ProductName>Regular Savings</ProductName>
                <HydraProductCode>S</HydraProductCode>
                <ProductTypeID>1</ProductTypeID>
                <ProductTypeName>Deposit</ProductTypeName>
                <HydraProductTypeCode>D</HydraProductTypeCode>
                <HostProductCode>03</HostProductCode>
                <HostProductTypeCode>D</HostProductTypeCode>
                <IsExternalAccount>false</IsExternalAccount>
            </Q2_HostAccountLookup>
        </DalHostAccountLookup>
    </Data>
</Q2API>
class q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.ParamsObj(logger, cif, cif_is_internal, use_host_relation_table, hq_credentials=None)[source]

Bases: Q2ApiParamsObj

Parameters definition for GetAccountListByCif

Parameters:
  • logger (TypeAliasType) – Reference to calling request’s logger (self.logger in your extension)

  • cif (str)

  • cif_is_internal (bool)

  • use_host_relation_table (bool)

  • hq_credentials (Optional[HqCredentials]) – Defaults to settings.HQ_CREDENTIALS

class q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.Q2_HostAccountLookup(AccountDesc, AccountNumberInternal, BranchID, CIFInternal, HostAccountID, HostProductCode, HostProductTypeCode, HydraProductCode, HydraProductTypeCode, IsExternalAccount, ProductID, ProductName, ProductTypeID, ProductTypeName)[source]

Bases: object

Q2_HostAccountLookup(AccountDesc: lxml.objectify.StringElement, AccountNumberInternal: lxml.objectify.IntElement, BranchID: lxml.objectify.IntElement, CIFInternal: lxml.objectify.StringElement, HostAccountID: lxml.objectify.IntElement, HostProductCode: lxml.objectify.StringElement, HostProductTypeCode: lxml.objectify.StringElement, HydraProductCode: lxml.objectify.StringElement, HydraProductTypeCode: lxml.objectify.StringElement, IsExternalAccount: lxml.objectify.BoolElement, ProductID: lxml.objectify.IntElement, ProductName: lxml.objectify.StringElement, ProductTypeID: lxml.objectify.IntElement, ProductTypeName: lxml.objectify.StringElement)

AccountDesc: StringElement
AccountNumberInternal: IntElement
BranchID: IntElement
CIFInternal: StringElement
HostAccountID: IntElement
HostProductCode: StringElement
HostProductTypeCode: StringElement
HydraProductCode: StringElement
HydraProductTypeCode: StringElement
IsExternalAccount: BoolElement
ProductID: IntElement
ProductName: StringElement
ProductTypeID: IntElement
ProductTypeName: StringElement
class q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.DalHostAccountLookup(Q2_HostAccountLookup)[source]

Bases: object

DalHostAccountLookup(Q2_HostAccountLookup: Union[q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.Q2_HostAccountLookup, List[q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.Q2_HostAccountLookup]])

Q2_HostAccountLookup: Union[Q2_HostAccountLookup, List[Q2_HostAccountLookup]]
class q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.Data(DalHostAccountLookup)[source]

Bases: object

Data(DalHostAccountLookup: Union[q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.DalHostAccountLookup, List[q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.DalHostAccountLookup]])

DalHostAccountLookup: Union[DalHostAccountLookup, List[DalHostAccountLookup]]
class q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.ResultNode[source]

Bases: object

class q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.HqResponse(raw_response)[source]

Bases: HqResponse

Parameters:

response – Body of HQ response

async q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.execute(params_obj, use_json=False, **kwargs)[source]

This is the default way to submit the request to HQ. In theory, both json and soap payloads are equally accepted by HQ, though several variables may affect that (HQ version, Q2SDK implementation bugs, etc). This should not affect anything about the way your code deals with the data. In fact, the only difference to consuming extensions is the logging. Basically, call this with default parameters unless you find a compelling reason not to.

Parameters:
  • params_obj (ParamsObj) – Object containing everything necessary to call this HQ endpoint

  • use_json – If True, will call HQ’s .ashx (json) endpoint instead of .asmx (soap)

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.get_soap(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.get_json(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.build_json(params_obj)[source]
q2_sdk.hq.hq_api.q2_api.GetAccountListByCif.build_soap(params_obj)[source]