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.004';
3 8     8   57 use strict;
  8         20  
  8         243  
4 8     8   41 use warnings;
  8         17  
  8         217  
5              
6             # ABSTRACT: Parse AMEX Reconciliation Files (EPRAW) Adjustment Detail Rows
7              
8 8     8   41 use base 'Finance::AMEX::Transaction::EPRAW::Base';
  8         16  
  8         5539  
9              
10             sub field_map {
11             return {
12              
13 22     22 0 365 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 571 sub type {return 'ADJUSTMENT_DETAIL'}
40              
41 1     1 1 542 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
42 1     1 1 538 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
43 1     1 1 590 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
44 1     1 1 538 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
45 1     1 1 554 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
46 1     1 1 563 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
47 1     1 1 541 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
48 1     1 1 571 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
49 1     1 1 557 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
50 1     1 1 535 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
51 1     1 1 540 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 560 sub ADJUSTMENT_AMOUNT {return $_[0]->_get_column('ADJUSTMENT_AMOUNT')}
54 1     1 1 545 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
55 1     1 1 555 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
56 1     1 1 11 sub NET_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('NET_ADJUSTMENT_AMOUNT')}
57 1     1 1 537 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
58 1     1 1 538 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
59 1     1 1 536 sub CARDMEMBER_NUMBER {return $_[0]->_get_column('CARDMEMBER_NUMBER')}
60 1     1 1 544 sub ADJUSTMENT_REASON {return $_[0]->_get_column('ADJUSTMENT_REASON')}
61 1     1 1 544 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
62              
63             1;
64              
65             __END__