biweeklybudget.models.ofx_statement module

class biweeklybudget.models.ofx_statement.OFXStatement(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, biweeklybudget.models.base.ModelAsDict

_sa_class_manager = {'account': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'account_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'acct_type': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'acctid': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'avail_bal': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'avail_bal_as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'bankid': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'brokerid': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'currency': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'file_mtime': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'filename': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ledger_bal': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ledger_bal_as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'ofx_trans': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'routing_number': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'type': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}
account

Relationship to the Account this statement is for

account_id

Foreign key - Account.id - ID of the account this statement is for

acct_type

Textual account type, from the bank (i.e. “Checking”)

acctid

Institution’s account ID

as_of

Last OFX statement datetime

avail_bal

Available balance

avail_bal_as_of

as-of date for the available balance

bankid

FID of the Institution

brokerid

BrokerID, for investment accounts

currency

Currency definition (“USD”)

file_mtime

File mtime

filename

Filename parsed from

id

Unique ID

ledger_bal

Ledger balance, or investment account value

ledger_bal_as_of

as-of date for the ledger balance

ofx_trans
routing_number

Routing Number

type

Account Type, string corresponding to ofxparser.ofxparser.AccountType