class OFX::Transaction
Represents a single financial transaction parsed from an OFX statement.
Example
txn = OFX.new("statement.ofx").transactions.first txn.type #=> "DEBIT" txn.name #=> "AMAZON.COM" txn.amount #=> #<Money fractional:-5099 currency:USD> txn.posted_at #=> 2024-01-15 00:00:00 +0000 txn.account #=> #<OFX::BankAccount ...> txn.statement #=> #<OFX::BankStatement ...>
Attributes
Transaction amount as a Money object (or nil).
Transaction amount in the smallest currency unit, e.g. cents (Integer or nil).
Check number, if applicable (String or nil).
Unique transaction identifier / FITID (String).
Memo or additional description (String or nil).
Payee or description name (String or nil).
Date the transaction actually occurred (Time or nil).
Payee name from the PAYEE field, when present (String or nil).
Date the transaction was posted (Time or nil).
Reference number (String or nil).
Standard industry code / SIC (String or nil).
Transaction type, e.g. “DEBIT”, “CREDIT”, “CHECK” (String).