Finance::AMEX::Transaction::EPPRC - Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC)
version 0.002
use Finance::AMEX::Transaction; my $epprc = Finance::AMEX::Transaction->new(file_type => 'EPPRC'); open my $fh, '<', '/path to EPPRC file' or die "cannot open EPPRC file: $!"; while (my $record = $epprc->getline($fh)) { if ($record->type eq 'TRAILER') { print $record->FILE_CREATION_DATE . "\n"; } }
This module parses AMEX Transaction/Invoice Level Reconciliation (EPPRC) files and returns an object which is appropriate for the line that it was asked to parse.
You would not normally be calling this module directly, it is merely a router to the correct object type that is returned to Finance::AMEX::Transaction's getline method.
Object returned are one of:
Header Rows
print $record->type; # HEADER
Summary Rows
print $record->type; # SUMMARY
Summary of Charge (SOC) Detail Rows
print $record->type; # SOC_DETAIL
Summary of Charge (SOC) Level Pricing Rows
print $record->type; # SOC_PRICING
Record of Charge (ROC) Detail Rows
print $record->type; # ROC_DETAIL
Record of Charge (ROC) Level Pricing Record Rows
print $record->type; # ROC_PRICING
Chargeback Detail Rows
print $record->type; # CHARGEBACK_DETAIL
Adjustment Detail Rows
print $record->type; # ADJUSTMENT_DETAIL
Other Fees and Revenues Detail Rows
print $record->type; # OTHER_DETAIL
Trailer Rows
print $record->type; # TRAILER
Unknown Rows
print $record->type; # UNKNOWN
Returns a Finance::AMEX::Transaction::EPPRC object.
my $epprc = Finance::AMEX::Transaction::EPPRC->new;
Returns one of the Finance::AMEX::Transaction::EPPRC::Header, Finance::AMEX::Transaction::EPPRC::Summary, Finance::AMEX::Transaction::EPPRC::Detail::ChargeSummary, Finance::AMEX::Transaction::EPPRC::Detail::ChargeSummaryPricing, Finance::AMEX::Transaction::EPPRC::Detail::RecordSummary, Finance::AMEX::Transaction::EPPRC::Detail::RecordSummaryPricing, Finance::AMEX::Transaction::EPPRC::Detail::Chargeback, Finance::AMEX::Transaction::EPPRC::Detail::Adjustment, Finance::AMEX::Transaction::EPPRC::Detail::Other, Finance::AMEX::Transaction::EPPRC::Trailer, or Finance::AMEX::Transaction::EPPRC::Unknown records depending on the contents of the row.
my $record = $epprc->parse_line('line from a epprc file');
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.