Finance::AMEX::Transaction::GRRCN::FeeRevenue - Parse AMEX Global Reconciliation (GRRCN) Fees and Revenues Record Rows
version 0.002
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 'FEEREVENUE') { print $record->PAYMENT_DATE . "\n"; } } # to parse a single line my $record = $epraw->parse_line('line from an GRRCN file'); if ($record->type eq 'FEEREVENUE') { ... }
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::FeeRevenue object.
my $record = Finance::AMEX::Transaction::GRRCN::FeeRevenue->new(line => $line);
This will always return the string FEEREVENUE.
print $record->type; # FEEREVENUE
Returns the full line that is represented by this object.
print $record->line;
This field contains the Record identifier, which will always be “FEEREVENUE” for the Fees and Revenues Record.
Note: This record is only applicable to the U.S. and Canada markets.
This field contains the American Express-assigned Service Establishment (SE) Number of the Merchant receiving the payment/settlement.
This field contains the American Express-assigned Payment/Settlement Number. This reference number may be used by the American Express Payee for reconciliation purposes.
This field contains the Payment Date scheduled in American Express systems. The date that funds are actually available to the payee's depository institution may differ from the date reported in this field.
The format is: YYYYMMDD
This field contains the Alphanumeric ISO Code for the Payment (Settlement) currency.
This field contains the Service Establishment (SE) Number of the Merchant being reconciled, which may not necessarily be the same SE receiving payment.
This field contains the Merchant-assigned SE Unit Number (such as an internal, store identifier code) that corresponds to a specific store or location.
If unused, this field is character space filled (fixed format) or blank (delimited formats).
This field contains the amount of the Fee or Revenue to the payee account.
For formats of amount values, see description in Summary Record, PAYMENT_NET_AMOUNT.
This field contains an explanation of the given fee or revenue amount.
This field contains the total Asset Billing Amount charged to the Merchant for physical assets provided by American Express.
This field contains a brief description of the physical assets provided by American Express that correspond to the Asset Billing Amount.
This field contains the tax assessed on the assets that correspond to the Asset Billing Amount.
This field contains a code that indicates whether this Fees and Revenues Record contains data associated with the recovery of a Pay In Gross (PIG) discount amount.
Valid values include the following:
This field contains the three-digit, numeric Batch Code that corresponds to the Fee or Revenue Description, when used in conjunction with Bill Code.
If unused, this field is character space filled (fixed format) or blank (delimited).
This field contains the three-digit, numeric Bill Code that corresponds to the Fee or Revenue Description, when used in conjunction with Batch Code.
Finance::AMEX::Transaction::GRRCN::FeeRevenue - Object methods for AMEX Global Reconciliation (GRRCN) adjustment 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.