File Coverage

blib/lib/Finance/AMEX/Transaction/EPPRC/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::EPPRC::Summary 0.005;
2              
3 9     9   51 use strict;
  9         12  
  9         221  
4 9     9   38 use warnings;
  9         18  
  9         186  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Summary Rows
7              
8 9     9   36 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  9         16  
  9         3947  
9              
10             sub field_map {
11             return {
12 960     960 1 9170 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 120     120 1 28257 sub type {return 'SUMMARY'}
31              
32 60     60 1 25902 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
33 60     60 1 26207 sub AMEX_SORT_FIELD_1 {return $_[0]->_get_column('AMEX_SORT_FIELD_1')}
34 60     60 1 25749 sub AMEX_SORT_FIELD_2 {return $_[0]->_get_column('AMEX_SORT_FIELD_2')}
35 60     60 1 25322 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
36 60     60 1 23269 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
37 60     60 1 27826 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
38 60     60 1 25180 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
39 60     60 1 26459 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
40 60     60 1 26303 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
41 60     60 1 27679 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
42 60     60 1 24320 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
43 60     60 1 26852 sub PAYMENT_AMOUNT {return $_[0]->_get_column('PAYMENT_AMOUNT')}
44 60     60 1 25581 sub DEBIT_BALANCE_AMOUNT {return $_[0]->_get_column('DEBIT_BALANCE_AMOUNT')}
45 60     60 1 27296 sub ABA_BANK_NUMBER {return $_[0]->_get_column('ABA_BANK_NUMBER')}
46 60     60 1 26453 sub SE_DDA_NUMBER {return $_[0]->_get_column('SE_DDA_NUMBER')}
47              
48             1;
49              
50             __END__