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) or Account(CifInternal="12345")

If both are provided, kwargs will override anything inside the given element

Parameters:
  • element (Optional[Element]) – XML node form Q2 Online request

  • data_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 aba: str | None[source]
property access: int | None
property acct_desc: str | None[source]
property acct_label: str | None[source]
property acct_number_internal: str | None[source]
property acct_number_external: str | None[source]
property acct_number_external_unmasked: str | None[source]
property acct_number_internal_unmasked: str | None[source]
property allow_interest: bool | None
property allow_principal: bool | None[source]
property apr_or_apy: str | None[source]
property balance1: Decimal | None[source]
property balance2: Decimal | None[source]
property balance_additional_desc1: str | None[source]
property balance_additional_desc2: str | None[source]
property balance_desc1: str | None[source]
property balance_desc2: str | None[source]
property balance_hade_name_to_use: str | None[source]
property balance_name1: str | None[source]
property balance_name2: str | None[source]
property balance_to_disp_tran_to_desc: str | None[source]
property balance_to_display: Decimal | None[source]
property balance_to_display_desc: str | None[source]
property balance_to_display_tran_to: Decimal | None[source]
property balance_type1: str | None[source]
property balance_type2: str | None[source]
property calc_balance_for_history: bool | None[source]
property calc_balance_for_memos: bool | None[source]
property cif: str | None[source]
property cif_internal: str | None[source]
property cif_internal_unmasked: str | None[source]
property cif_external: str | None[source]
property cif_external_unmasked: str | None[source]
property data_as_of_date: datetime | None[source]
property default_pymt_amt_tran_from_desc: str | None[source]
property default_tran_from_pymt_amt: Decimal | None[source]
property display_order: int | None[source]
property display_running_balance: bool | None[source]
property has_pending_memos: bool | None[source]
property history_count: int | None[source]
property history_count_type: str | None[source]
property host_acct_id: int | None
property hydra_product_code: str | None[source]
property hydra_product_type_code: str | None[source]
property is_external_acct: bool | None[source]
property is_partial_details: bool | None[source]
property masked_cif_internal: str | None[source]
property mob_dashboard_balance_desc: str | None[source]
property mobility_dashboard_balance: Decimal | None[source]
property nickname: str | None[source]
property overview_acct_number: str[source]
property product_id: int | None[source]
property product_name: str | None[source]
property product_type_id: int | None[source]
property product_type_name: str | None[source]
property product_type_voice_file: str | None[source]
property product_voice_file: str | None[source]
property sort_value: str | None[source]
property status_short_name: str | None[source]
property user_display_order: int[source]
property user_id: int | None[source]
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

property can_withdraw: bool[source]

Return bool indicating whether this account’s access level allows withdrawal

property hydra_product_name: str[source]

Returns a generic product name for the account

static from_json(data)[source]
Return type:

Account

to_json()[source]
Return type:

Dict[str, Any]