Finance::Bank::BR::Santander::Spreadsheet - Parse statement exported from Brazilian branch of Santander Internet Banking
use Finance::Bank::BR::Santander::Spreadsheet; my $spreadsheet = Finance::Bank::BR::Santander::Spreadsheet->new($filename); my $balance = $spreadsheet->balance; my @data = $spreadsheet->statement; foreach my $transaction (@data) { say "$transaction->{date}, $transaction->{name}, $transaction->{extra}, $transaction->{value}, $transaction->{balance}"; }
This module is an object-oriented interface that parses statements exported as XLS from the Internet Banking for the Brazilian branch of Santander.
The new() method creates a new Spreadsheet object containing the data parsed from $filename.
new()
$filename
If an error occurs while loading the file, new() returns undef.
undef
The balance() method returns the last balance found in the sheet.
balance()
The statement() method returns an array of transactions, described as below.
statement()
The transaction is a hash containing the following keys:
A string with a name describing the transaction.
A floating number containing the credit (positive) or debit (negative) of the transaction.
A DateTime object representing the date when the transaction occurred.
A floating number containing the balance resulting from the transaction.
Data provided by the bank identifying the transaction. In this case, a number specific to the type of transaction. It can be used to help uniquely identify the transaction.
Copyright (C) 2015 Thadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Finance::Bank::BR::Santander::Spreadsheet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Bank::BR::Santander::Spreadsheet
CPAN shell
perl -MCPAN -e shell install Finance::Bank::BR::Santander::Spreadsheet
For more information on module installation, please visit the detailed CPAN module installation guide.