NAME
Finance::AMEX::Transaction::GRRCN::FeeRevenue - Parse AMEX Global Reconciliation (GRRCN) Fees and Revenues Record Rows
VERSION
version 0.005
SYNOPSIS
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') {
...
}
DESCRIPTION
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.
METHODS
new
Returns a new Finance::AMEX::Transaction::GRRCN::FeeRevenue object.
my $record = Finance::AMEX::Transaction::GRRCN::FeeRevenue->new(line => $line);
type
This will always return the string FEEREVENUE.
print $record->type; # FEEREVENUE
line
Returns the full line that is represented by this object.
print $record->line;
field_map
Returns an arrayref of hashrefs where the name is the record name and the value is an arrayref of the start position and length of that field.
# print the start position of the PAYMENT_DATE field
print $record->field_map->[4]->{PAYMENT_DATE}->[0]; # 36
RECORD_TYPE
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.
PAYEE_MERCHANT_ID
This field contains the American Express-assigned Service Establishment (SE) Number of the Merchant receiving the payment/settlement.
AMERICAN_EXPRESS_PAYMENT_NUMBER
This field contains the American Express-assigned Payment/Settlement Number. This reference number may be used by the American Express Payee for reconciliation purposes.
PAYMENT_DATE
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
PAYMENT_CURRENCY
This field contains the Alphanumeric ISO Code for the Payment (Settlement) currency.
SUBMISSION_MERCHANT_ID
This field contains the Service Establishment (SE) Number of the Merchant being reconciled, which may not necessarily be the same SE receiving payment.
MERCHANT_LOCATION_ID
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).
FEE_OR_REVENUE_AMOUNT
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.
FEE_OR_REVENUE_DESCRIPTION
This field contains an explanation of the given fee or revenue amount.
ASSET_BILLING_AMOUNT
This field contains the total Asset Billing Amount charged to the Merchant for physical assets provided by American Express.
For formats of amount values, see description in Summary Record, PAYMENT_NET_AMOUNT.
ASSET_BILLING_DESCRIPTION
This field contains a brief description of the physical assets provided by American Express that correspond to the Asset Billing Amount.
ASSET_BILLING_TAX
This field contains the tax assessed on the assets that correspond to the Asset Billing Amount.
PAY_IN_GROSS_INDICATOR
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:
BATCH_CODE
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).
BILL_CODE
This field contains the three-digit, numeric Bill Code that corresponds to the Fee or Revenue Description, when used in conjunction with Batch Code.
If unused, this field is character space filled (fixed format) or blank (delimited).
SELLER_ID
This field will only be available in v3.01 of the GRRCN format and will be applicable from October 15, 2021.
This field contains the Seller ID, 20-byte code that uniquely identifies a Payment Aggregator or OptBlue Participant's specific seller or vendor.
If unused, this field will be character space filled (fixed format) or blank (delimited formats).
NAME
Finance::AMEX::Transaction::GRRCN::FeeRevenue - Object methods for AMEX Global Reconciliation (GRRCN) adjustment records.
AUTHOR
Tom Heady <cpan@punch.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2022 by ZipRecruiter/Tom Heady.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.