AccountList
- class q2_sdk.hq.models.account_list.AccountList(accounts=None, account_filter=None)[source]
Object for holding multiple Account objects. Provides search options.
- property filtered_accounts: List[T]
self.accounts after self.account_filter is applied
- get_by_account_number(acct_num)[source]
Return account with given acct_number_internal_unmasked
- Return type:
TypeVar
(T
,Account
,SSOAccount
)
- filter_by_cif(cif)[source]
Return accounts with given cif
- Return type:
List
[TypeVar
(T
,Account
,SSOAccount
)]
- property filtered_cifs: List[str]
CIFs of accounts in self.filtered_accounts
- property filtered_account_numbers: List[str]
Acct Numbers of accounts in self.filtered_accounts
AccountFilter
- class q2_sdk.hq.models.account_list.AccountFilter(min_access_level=0, product_type_code_filter=None, product_name_filter=None, use_external_accounts=AccountType.All, **kwargs)[source]
Meant for use with
AccountList
object- Parameters:
min_access_level (
int
) – Integer representing deposit/view/withdraw access: 0: No rights, 7: View, Deposit, and Withdraw Rightsproduct_type_code_filter (
List
) – List of hydra_product_type_code to filter byproduct_name_filter (
List
[str
]) – List of hydra product names to filter byaccount_types – AccountType Enum value: External, Internal, or All