Finance::Wesabe::Transaction - Class to represent a transaction


Finance-Wesabe documentation  | view source Contained in the Finance-Wesabe distribution.

Index


NAME

Top

Finance::Wesabe::Transaction - Class to represent a transaction

SYNOPSIS

Top

    my $txn = Finance::Wesabe::Transaction->new(
        content => $c, parent => $p
    );

DESCRIPTION

Top

This class represents a single transaction for a given account.

ACCESSORS

Top

* content - Hashref of data from the response
* parent - Parent object with acces to the user agent

TRANSACTION INFORMATION

Top

* raw_name
* guid
* memo
* note
* raw_txntype
* amount
* date - A DateTime object
* original_date - A DateTime object

METHODS

Top

pretty_amount( )

Returns the transaction amount in a nicely formatted string based on your preferenes.

tags( )

Returns a list of tag names associated with this transaction.

is_transfer( )

Returns a boolean indicating if this transaction is a transfer.

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Finance-Wesabe documentation  | view source Contained in the Finance-Wesabe distribution.