Account
- class q2_sdk.hq.models.account.Account(element=None, data_elements=None, provider_data=None, **kwargs)[source]
Object representation of the Account information that comes in on a Q2 Online request
Typically created by passing in the XML shape provided by HQ. Also possible to build this by passing in kwargs.
ie.
Account(element: lxmlElement)
orAccount(CifInternal="12345")
If both are provided, kwargs will override anything inside the given element
- Parameters:
element (
Optional
[Element
]) – XML node form Q2 Online requestdata_elements (
Optional
[List
[Element
]]) – Optional list of Q2_AccountDataElement nodes.provider_data (
Optional
[dict
]) – If the account originates from another system (such as a core), this can hold additional data that does not fit into the Q2 model.kwargs – Any items provided as kwargs will override the data passed in from element
- property access: int | None
- property allow_interest: bool | None
- property host_acct_id: int | None
- property hade_dict: Dict[str, HADE]
Create a dict of HADE objects keyed by name for all data_elements that match the host_acct_id
- property can_deposit: bool[source]
Return bool indicating whether this account’s access level allows deposit
- property can_view: bool[source]
Return bool indicating whether this account’s access level allows view