File Coverage

blib/lib/Finance/AMEX/Transaction/EPPRC/Trailer.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod 9 9 100.0
total 39 39 100.0


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPPRC::Trailer 0.005;
2              
3 9     9   52 use strict;
  9         15  
  9         215  
4 9     9   49 use warnings;
  9         20  
  9         191  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Trailer Rows
7              
8 9     9   37 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  9         14  
  9         2764  
9              
10             sub field_map {
11             return {
12 360     360 1 2410 DF_TRL_RECORD_TYPE => [1, 5],
13             DF_TRL_DATE => [6, 8],
14             DF_TRL_TIME => [14, 4],
15             DF_TRL_FILE_ID => [18, 6],
16             DF_TRL_FILE_NAME => [24, 20],
17             DF_TRL_RECIPIENT_KEY => [44, 40],
18             DF_TRL_RECORD_COUNT => [84, 7],
19             };
20             }
21              
22 90     90 1 21220 sub type {return 'TRAILER'}
23              
24 45     45 1 17302 sub DF_TRL_RECORD_TYPE {return $_[0]->_get_column('DF_TRL_RECORD_TYPE')}
25 45     45 1 18753 sub DF_TRL_DATE {return $_[0]->_get_column('DF_TRL_DATE')}
26 45     45 1 18169 sub DF_TRL_TIME {return $_[0]->_get_column('DF_TRL_TIME')}
27 45     45 1 18539 sub DF_TRL_FILE_ID {return $_[0]->_get_column('DF_TRL_FILE_ID')}
28 45     45 1 17748 sub DF_TRL_FILE_NAME {return $_[0]->_get_column('DF_TRL_FILE_NAME')}
29 45     45 1 18413 sub DF_TRL_RECIPIENT_KEY {return $_[0]->_get_column('DF_TRL_RECIPIENT_KEY')}
30 45     45 1 17330 sub DF_TRL_RECORD_COUNT {return $_[0]->_get_column('DF_TRL_RECORD_COUNT')}
31              
32             1;
33              
34             __END__