pub struct AccountInfo {
pub key: AccountKey,
pub iban: Option<Iban>,
pub bic: Bic,
pub number: Option<String>,
pub subaccount: Option<String>,
pub owner: Vec<String>,
pub product_name: Option<String>,
pub currency: Option<Currency>,
pub account_type: Option<u8>,
pub class: Option<(AccountClass, ClassSource)>,
pub limit: Option<AccountLimit>,
pub allowed: Vec<JobKind>,
}Expand description
One account of the UPD (HIUPD), ready to run jobs on with
AccountInfo::account.
Fields§
§key: AccountKeyThe account’s identity, stable across logins (see AccountKey).
iban: Option<Iban>None when the UPD gives none (a depot or card at some banks).
bic: BicThe UPD’s BIC when it has one, else the bank’s.
number: Option<String>Kontonummer, as the bank sent it.
subaccount: Option<String>Unterkontomerkmal, as the bank sent it.
owner: Vec<String>Name des Kontoinhabers 1 and 2, those given.
product_name: Option<String>§currency: Option<Currency>§account_type: Option<u8>Kontoart (HIUPD 6) as the bank sent it; see AccountInfo::class.
class: Option<(AccountClass, ClassSource)>What kind of account this is, and where the answer comes from:
- The Kontoart, by the ranges of the FinTS Formals data dictionary
(“Kontoart”):
ClassSource::Kontoart. - With no Kontoart (or one outside 1-99): a depot when the UPD
allows HKWPD and none of HKSAL, HKKAZ, HKCAZ:
ClassSource::AllowedJobs. - Otherwise
None: the library does not guess a checking account.
product_name and account_type stay as the bank sent them, so a
caller can reclassify by what only it knows.
limit: Option<AccountLimit>Kontolimit.
allowed: Vec<JobKind>The jobs whose order the UPD lists for the account (Erlaubte
Geschäftsvorfälle), in the order of JobKind::ALL; transactions
when it lists HKKAZ or HKCAZ. Empty when it lists none.
Implementations§
Source§impl AccountInfo
impl AccountInfo
Sourcepub fn allows(&self, job: JobKind) -> bool
pub fn allows(&self, job: JobKind) -> bool
May the user run job on this account, by the UPD? true when the
UPD lists no orders at all (nothing is known), else only for a
listed one. Information only: the jobs never check it.
Sourcepub fn is_depot(&self) -> bool
pub fn is_depot(&self) -> bool
Whether this is a securities depot by AccountInfo::class.