Finance::AMEX::Transaction::GRRCN::Header - Parse AMEX Global Reconciliation (GRRCN) Header Rows
version 0.001
use Finance::AMEX::Transaction; my $epraw = Finance::AMEX::Transaction->new(file_type => 'GRRCN'); open my $fh, '<', '/path to GRRCN file' or die "cannot open GRRCN file: $!"; while (my $record = $epraw->getline($fh)) { if ($record->type eq 'HEADER') { print $record->FILE_CREATION_DATE . "\n"; } } # to parse a single line my $record = $epraw->parse_line('line from an GRRCN file'); if ($record->type eq 'HEADER') { ... }
You would not normally be calling this module directly, it is one of the possible return objects from a call to Finance::AMEX::Transaction's getline method.
Returns a new Finance::AMEX::Transaction::GRRCN::Header object.
my $record = Finance::AMEX::Transaction::GRRCN::Header->new(line => $line);
This will always return the string HEADER.
print $record->type; # HEADER
Returns the full line that is represented by this object.
print $record->line;
This field contains the Record identifier, which will always be “HEADER” for the Header Record.
This field contains the File Creation Date.
The format is: YYYYMMDD
This field contains the File Creation Time (24-hour format), when the file was created.
The format is: HHMMSS
This field contains a Sequential Number, where each time a file is sent it will be incrementally higher than that in the previous file. It is intended to identify whether the file is a duplicate and ensure there has been no missing file.
A sequential number with a prefix of “A” indicates an Adhoc file.
This field contains an American Express File ID, which will always be “GRRCN” for the Global Raw Data Reconciliation File.
This field contains the raw data profile name chosen by the consumer of this service. It is established during the file setup process and is intended to assist in recognizing the file.
This field contains the version of the raw data format being consumed by the customer.
Finance::AMEX::Transaction::GRRCN::Header - Object methods for Global Reconciliation records.
Tom Heady <theady@ziprecruiter.com>
This software is copyright (c) 2018 by ZipRecruiter.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Finance::AMEX::Transaction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::AMEX::Transaction
CPAN shell
perl -MCPAN -e shell install Finance::AMEX::Transaction
For more information on module installation, please visit the detailed CPAN module installation guide.