Finance::Bank::Cahoot::Statement::Entry - Cahoot statement transaction object


Finance-Bank-Cahoot documentation  | view source Contained in the Finance-Bank-Cahoot distribution.

Index


NAME

Top

Finance::Bank::Cahoot::Statement::Entry - Cahoot statement transaction object

DESCRIPTION

Top

This module describes describes the object that holds the information contained in a single statement transaction.

SYNOPSIS

Top

  my $cahoot = Finance::Bank::Cahoot->new(credentials => 'ReadLine');
  my @accounts = $cahoot->accounts;
  $cahoot->set_account($accounts->[0]->{account});
  my $snapshot = $cahoot->snapshot;
  foreach my $transaction (@$snapshot) {
    print $transaction->date, q{,},
          $transaction->details, q{,},
          $transaction->credit || 0, q{,},
          $transaction->debit || 0, qq{\n};
  }

METHODS

Top

new

Create a new instance of a a Cahoot statement. It is unlikely that the new method should need to be called by anything other than Finance::Bank::Cahoot.

date

Returns the date of the transaction as a text string in the form DD/MM/YYYY.

time

Returns the time of the transaction as returned by the time function.

balance

Returns the balance of the account following the transaction (where available).

debit

Returns the amount of the transaction if it is a debit.

credit

Returns the amount of the transaction if it is a credit.

details

Returns the text description of the transaction.

WARNING

Top

This warning is from Simon Cozens' Finance::Bank::LloydsTSB, and seems just as apt here.

This is code for online banking, and that means your money, and that means BE CAREFUL. You are encouraged, nay, expected, to audit the source of this module yourself to reassure yourself that I am not doing anything untoward with your banking data. This software is useful to me, but is provided under NO GUARANTEE, explicit or implied.

NOTES

Top

This has only been tested on my own accounts. I imagine it should work on any account types, but I can't guarantee this.

AUTHOR

Top

Jon Connell <jon@figsandfudge.com>

LICENSE AND COPYRIGHT

Top


Finance-Bank-Cahoot documentation  | view source Contained in the Finance-Bank-Cahoot distribution.