File Coverage

blib/lib/Finance/AMEX/Transaction/EPTRN/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::EPTRN::Summary 0.005;
2              
3 9     9   52 use strict;
  9         20  
  9         214  
4 9     9   38 use warnings;
  9         15  
  9         192  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPTRN) Summary Rows
7              
8 9     9   36 use base 'Finance::AMEX::Transaction::EPTRN::Base';
  9         18  
  9         4032  
9              
10             sub field_map {
11             return {
12 16     16 1 143 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 2     2 1 463 sub type {return 'SUMMARY'}
31              
32 1     1 1 434 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
33 1     1 1 431 sub AMEX_SORT_FIELD_1 {return $_[0]->_get_column('AMEX_SORT_FIELD_1')}
34 1     1 1 454 sub AMEX_SORT_FIELD_2 {return $_[0]->_get_column('AMEX_SORT_FIELD_2')}
35 1     1 1 499 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
36 1     1 1 430 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
37 1     1 1 432 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
38 1     1 1 461 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
39 1     1 1 434 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
40 1     1 1 434 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
41 1     1 1 430 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
42 1     1 1 431 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
43 1     1 1 431 sub PAYMENT_AMOUNT {return $_[0]->_get_column('PAYMENT_AMOUNT')}
44 1     1 1 434 sub DEBIT_BALANCE_AMOUNT {return $_[0]->_get_column('DEBIT_BALANCE_AMOUNT')}
45 1     1 1 451 sub ABA_BANK_NUMBER {return $_[0]->_get_column('ABA_BANK_NUMBER')}
46 1     1 1 12 sub SE_DDA_NUMBER {return $_[0]->_get_column('SE_DDA_NUMBER')}
47              
48             1;
49              
50             __END__