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 16 17 94.1
total 62 63 98.4


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPPRC::Summary;
2             $Finance::AMEX::Transaction::EPPRC::Summary::VERSION = '0.004';
3 8     8   55 use strict;
  8         19  
  8         235  
4 8     8   41 use warnings;
  8         17  
  8         210  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Summary Rows
7              
8 8     8   40 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  8         77  
  8         4397  
9              
10             sub field_map {
11             return {
12 960     960 0 11989 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              
18             PAYMENT_NUMBER_DATE => [35, 3],
19             PAYMENT_NUMBER_TYPE => [38, 1],
20             PAYMENT_NUMBER_NUMBER => [39, 4],
21              
22             RECORD_TYPE => [43, 1],
23             DETAIL_RECORD_TYPE => [44, 2],
24             PAYMENT_DATE => [46, 7],
25             PAYMENT_AMOUNT => [53, 11],
26             DEBIT_BALANCE_AMOUNT => [64, 9],
27             ABA_BANK_NUMBER => [73, 9],
28             SE_DDA_NUMBER => [82, 17],
29             };
30             }
31              
32 120     120 1 34669 sub type {return 'SUMMARY'}
33              
34 60     60 1 31086 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
35 60     60 1 31783 sub AMEX_SORT_FIELD_1 {return $_[0]->_get_column('AMEX_SORT_FIELD_1')}
36 60     60 1 33536 sub AMEX_SORT_FIELD_2 {return $_[0]->_get_column('AMEX_SORT_FIELD_2')}
37 60     60 1 29678 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
38 60     60 1 32813 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
39              
40 60     60 1 30624 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
41 60     60 1 32757 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
42 60     60 1 33775 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
43              
44 60     60 1 33204 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
45 60     60 1 26713 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
46 60     60 1 31907 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
47 60     60 1 28864 sub PAYMENT_AMOUNT {return $_[0]->_get_column('PAYMENT_AMOUNT')}
48 60     60 1 32323 sub DEBIT_BALANCE_AMOUNT {return $_[0]->_get_column('DEBIT_BALANCE_AMOUNT')}
49 60     60 1 25802 sub ABA_BANK_NUMBER {return $_[0]->_get_column('ABA_BANK_NUMBER')}
50 60     60 1 32699 sub SE_DDA_NUMBER {return $_[0]->_get_column('SE_DDA_NUMBER')}
51              
52             1;
53              
54             __END__