File Coverage

blib/lib/Finance/AMEX/Transaction/EPRAW/Detail/Adjustment.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 26 26 100.0
pod 22 23 95.6
total 80 81 98.7


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPRAW::Detail::Adjustment;
2             $Finance::AMEX::Transaction::EPRAW::Detail::Adjustment::VERSION = '0.003';
3 7     7   44 use strict;
  7         14  
  7         186  
4 7     7   36 use warnings;
  7         14  
  7         170  
5              
6             # ABSTRACT: Parse AMEX Reconciliation Files (EPRAW) Adjustment Detail Rows
7              
8 7     7   36 use base 'Finance::AMEX::Transaction::EPRAW::Base';
  7         14  
  7         4452  
9              
10             sub field_map {
11             return {
12              
13 22     22 0 354 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              
19             PAYMENT_NUMBER_DATE => [35, 3],
20             PAYMENT_NUMBER_TYPE => [38, 1],
21             PAYMENT_NUMBER_NUMBER => [39, 4],
22              
23             RECORD_TYPE => [43, 1],
24             DETAIL_RECORD_TYPE => [44, 2],
25             AMEX_PROCESS_DATE => [46, 7],
26             ADJUSTMENT_NUMBER => [53, 6],
27             ADJUSTMENT_AMOUNT => [59, 9],
28             DISCOUNT_AMOUNT => [68, 9],
29             SERVICE_FEE_AMOUNT => [77, 7],
30             NET_ADJUSTMENT_AMOUNT => [91, 9],
31             DISCOUNT_RATE => [100, 5],
32             SERVICE_FEE_RATE => [105, 5],
33             CARDMEMBER_NUMBER => [126, 17],
34             ADJUSTMENT_REASON => [143, 280],
35             SERVICE_AGENT_MERCHANT_ID => [429, 15],
36             };
37             }
38              
39 2     2 1 623 sub type {return 'ADJUSTMENT_DETAIL'}
40              
41 1     1 1 534 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
42 1     1 1 544 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
43 1     1 1 535 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
44 1     1 1 536 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
45 1     1 1 569 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
46 1     1 1 536 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
47 1     1 1 540 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
48 1     1 1 547 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
49 1     1 1 597 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
50 1     1 1 567 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
51 1     1 1 559 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
52 1     1 1 535 sub ADJUSTMENT_NUMBER {return $_[0]->_get_column('ADJUSTMENT_NUMBER')}
53 1     1 1 606 sub ADJUSTMENT_AMOUNT {return $_[0]->_get_column('ADJUSTMENT_AMOUNT')}
54 1     1 1 554 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
55 1     1 1 534 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
56 1     1 1 553 sub NET_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('NET_ADJUSTMENT_AMOUNT')}
57 1     1 1 564 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
58 1     1 1 547 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
59 1     1 1 551 sub CARDMEMBER_NUMBER {return $_[0]->_get_column('CARDMEMBER_NUMBER')}
60 1     1 1 581 sub ADJUSTMENT_REASON {return $_[0]->_get_column('ADJUSTMENT_REASON')}
61 1     1 1 12 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
62              
63             1;
64              
65             __END__