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 at 0x7f8004a33a70>, 'account_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a33cb0>, 'acct_type': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a44170>, 'acctid': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a442f0>, 'as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a44470>, 'avail_bal': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a446b0>, 'avail_bal_as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a44770>, 'bankid': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a33fb0>, 'brokerid': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a44230>, 'currency': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a33ef0>, 'file_mtime': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a33e30>, 'filename': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a33d70>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a33bf0>, 'ledger_bal': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a44530>, 'ledger_bal_as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a445f0>, 'routing_number': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a440b0>, 'type': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8004a443b0>}
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

routing_number

Routing Number

type

Account Type, string corresponding to ofxparser.ofxparser.AccountType