File Coverage

blib/lib/Finance/AMEX/Transaction/EPTRN/Detail/Adjustment.pm
Criterion Covered Total %
statement 9 31 29.0
branch n/a
condition n/a
subroutine 3 25 12.0
pod 21 22 95.4
total 33 78 42.3


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPTRN::Detail::Adjustment;
2             $Finance::AMEX::Transaction::EPTRN::Detail::Adjustment::VERSION = '0.004';
3 8     8   56 use strict;
  8         20  
  8         238  
4 8     8   40 use warnings;
  8         17  
  8         222  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPTRN) Adjustment Detail Rows
7              
8 8     8   39 use base 'Finance::AMEX::Transaction::EPTRN::Base';
  8         18  
  8         5877  
9              
10             sub field_map {
11             return {
12              
13 0     0 0   AMEX_PAYEE_NUMBER => [1, 10],
14             AMEX_SE_NUMBER => [11, 10],
15             SE_UNIT_NUMBER => [21, 10],
16             PAYMENT_YEAR => [31, 4],
17             PAYMENT_NUMBER => [35, 8],
18             PAYMENT_NUMBER_DATE => [35, 3],
19             PAYMENT_NUMBER_TYPE => [38, 1],
20             PAYMENT_NUMBER_NUMBER => [39, 4],
21             RECORD_TYPE => [43, 1],
22             DETAIL_RECORD_TYPE => [44, 2],
23             AMEX_PROCESS_DATE => [46, 7],
24             ADJUSTMENT_NUMBER => [53, 6],
25             ADJUSTMENT_AMOUNT => [59, 9],
26             DISCOUNT_AMOUNT => [68, 9],
27             SERVICE_FEE_AMOUNT => [77, 7],
28             NET_ADJUSTMENT_AMOUNT => [91, 9],
29             DISCOUNT_RATE => [100, 5],
30             SERVICE_FEE_RATE => [105, 5],
31             CARDMEMBER_NUMBER => [126, 17],
32             ADJUSTMENT_REASON => [143, 280],
33             };
34             }
35              
36 0     0 1   sub type {return 'ADJUSTMENT_DETAIL'}
37              
38 0     0 1   sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
39 0     0 1   sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
40 0     0 1   sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
41 0     0 1   sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
42 0     0 1   sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
43 0     0 1   sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
44 0     0 1   sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
45 0     0 1   sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
46 0     0 1   sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
47 0     0 1   sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
48 0     0 1   sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
49 0     0 1   sub ADJUSTMENT_NUMBER {return $_[0]->_get_column('ADJUSTMENT_NUMBER')}
50 0     0 1   sub ADJUSTMENT_AMOUNT {return $_[0]->_get_column('ADJUSTMENT_AMOUNT')}
51 0     0 1   sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
52 0     0 1   sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
53 0     0 1   sub NET_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('NET_ADJUSTMENT_AMOUNT')}
54 0     0 1   sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
55 0     0 1   sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
56 0     0 1   sub CARDMEMBER_NUMBER {return $_[0]->_get_column('CARDMEMBER_NUMBER')}
57 0     0 1   sub ADJUSTMENT_REASON {return $_[0]->_get_column('ADJUSTMENT_REASON')}
58              
59             1;
60              
61             __END__