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 0x7f8f70700cb0>, 'account_id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70700ef0>, 'acct_type': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f707143b0>, 'acctid': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70714530>, 'as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f707146b0>, 'avail_bal': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f707148f0>, 'avail_bal_as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f707149b0>, 'bankid': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70714230>, 'brokerid': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70714470>, 'currency': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70714170>, 'file_mtime': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f707140b0>, 'filename': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70700fb0>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70700e30>, 'ledger_bal': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70714770>, 'ledger_bal_as_of': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f70714830>, 'routing_number': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f707142f0>, 'type': <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x7f8f707145f0>}
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