File Coverage

blib/lib/Finance/AMEX/Transaction/EPRAW/Summary.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 20 20 100.0
pod 17 17 100.0
total 63 63 100.0


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPRAW::Summary 0.005;
2              
3 9     9   70 use strict;
  9         18  
  9         238  
4 9     9   62 use warnings;
  9         26  
  9         217  
5              
6             # ABSTRACT: Parse AMEX Reconciliation Files (EPRAW) Summary Rows
7              
8 9     9   40 use base 'Finance::AMEX::Transaction::EPRAW::Base';
  9         12  
  9         4076  
9              
10             sub field_map {
11             return {
12 96     96 1 908 AMEX_PAYEE_NUMBER => [1, 10],
13             AMEX_SORT_FIELD_1 => [11, 10],
14             AMEX_SORT_FIELD_2 => [21, 10],
15             PAYMENT_YEAR => [31, 4],
16             PAYMENT_NUMBER => [35, 8],
17             PAYMENT_NUMBER_DATE => [35, 3],
18             PAYMENT_NUMBER_TYPE => [38, 1],
19             PAYMENT_NUMBER_NUMBER => [39, 4],
20             RECORD_TYPE => [43, 1],
21             DETAIL_RECORD_TYPE => [44, 2],
22             PAYMENT_DATE => [46, 7],
23             PAYMENT_AMOUNT => [53, 11],
24             DEBIT_BALANCE_AMOUNT => [64, 9],
25             ABA_BANK_NUMBER => [73, 9],
26             SE_DDA_NUMBER => [82, 17],
27             };
28             }
29              
30 12     12 1 2733 sub type {return 'SUMMARY'}
31              
32 6     6 1 2601 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
33 6     6 1 2592 sub AMEX_SORT_FIELD_1 {return $_[0]->_get_column('AMEX_SORT_FIELD_1')}
34 6     6 1 2689 sub AMEX_SORT_FIELD_2 {return $_[0]->_get_column('AMEX_SORT_FIELD_2')}
35 6     6 1 2628 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
36 6     6 1 2525 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
37 6     6 1 2198 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
38 6     6 1 2165 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
39 6     6 1 2659 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
40 6     6 1 2636 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
41 6     6 1 2632 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
42 6     6 1 2175 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
43 6     6 1 2275 sub PAYMENT_AMOUNT {return $_[0]->_get_column('PAYMENT_AMOUNT')}
44 6     6 1 2630 sub DEBIT_BALANCE_AMOUNT {return $_[0]->_get_column('DEBIT_BALANCE_AMOUNT')}
45 6     6 1 2649 sub ABA_BANK_NUMBER {return $_[0]->_get_column('ABA_BANK_NUMBER')}
46 6     6 1 2185 sub SE_DDA_NUMBER {return $_[0]->_get_column('SE_DDA_NUMBER')}
47              
48             1;
49              
50             __END__