The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

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

DESCRIPTION

This class represents a single transaction for a given account.

ACCESSORS

  • content - Hashref of data from the response

  • parent - Parent object with acces to the user agent

TRANSACTION INFORMATION

  • raw_name

  • guid

  • memo

  • note

  • raw_txntype

  • amount

  • date - A DateTime object

  • original_date - A DateTime object

METHODS

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

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2009-2010 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.