File Coverage

blib/lib/Finance/AMEX/Transaction/EPPRC/Detail/Adjustment.pm
Criterion Covered Total %
statement 35 35 100.0
branch n/a
condition n/a
subroutine 29 29 100.0
pod 26 26 100.0
total 90 90 100.0


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPPRC::Detail::Adjustment 0.005;
2              
3 9     9   53 use strict;
  9         15  
  9         221  
4 9     9   40 use warnings;
  9         17  
  9         189  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Adjustment Detail Rows
7              
8 9     9   45 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  9         24  
  9         5660  
9              
10             sub field_map {
11             return {
12 225     225 1 3381 AMEX_PAYEE_NUMBER => [1, 10],
13             AMEX_SE_NUMBER => [11, 10],
14             SE_UNIT_NUMBER => [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             AMEX_PROCESS_DATE => [46, 7],
23             ADJUSTMENT_NUMBER => [53, 6],
24             ADJUSTMENT_AMOUNT => [59, 9],
25             DISCOUNT_AMOUNT => [68, 9],
26             SERVICE_FEE_AMOUNT => [77, 7],
27             NET_ADJUSTMENT_AMOUNT => [91, 9],
28             DISCOUNT_RATE => [100, 5],
29             SERVICE_FEE_RATE => [105, 5],
30             CARDMEMBER_NUMBER => [126, 17],
31             ADJUSTMENT_REASON => [143, 280],
32             BATCH_CODE => [423, 3],
33             BILL_CODE => [426, 3],
34             SERVICE_AGENT_MERCHANT_ID => [429, 15],
35             MEMBERSHIP_REWARDS => [444, 1],
36             };
37             }
38              
39 18     18 1 4352 sub type {return 'ADJUSTMENT_DETAIL'}
40              
41 9     9 1 3845 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
42 9     9 1 3998 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
43 9     9 1 4415 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
44 9     9 1 3792 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
45 9     9 1 4226 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
46 9     9 1 4455 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
47 9     9 1 4123 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
48 9     9 1 3831 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
49 9     9 1 4195 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
50 9     9 1 4348 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
51 9     9 1 3787 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
52 9     9 1 3800 sub ADJUSTMENT_NUMBER {return $_[0]->_get_column('ADJUSTMENT_NUMBER')}
53 9     9 1 4273 sub ADJUSTMENT_AMOUNT {return $_[0]->_get_column('ADJUSTMENT_AMOUNT')}
54 9     9 1 4323 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
55 9     9 1 4150 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
56 9     9 1 4383 sub NET_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('NET_ADJUSTMENT_AMOUNT')}
57 9     9 1 3891 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
58 9     9 1 3908 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
59 9     9 1 4291 sub CARDMEMBER_NUMBER {return $_[0]->_get_column('CARDMEMBER_NUMBER')}
60 9     9 1 3700 sub ADJUSTMENT_REASON {return $_[0]->_get_column('ADJUSTMENT_REASON')}
61 9     9 1 4215 sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')}
62 9     9 1 4265 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
63 9     9 1 4254 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
64 9     9 1 4247 sub MEMBERSHIP_REWARDS {return $_[0]->_get_column('MEMBERSHIP_REWARDS')}
65              
66             1;
67              
68             __END__