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 25 26 96.1
total 89 90 98.8


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPPRC::Detail::Adjustment;
2             $Finance::AMEX::Transaction::EPPRC::Detail::Adjustment::VERSION = '0.003';
3 7     7   51 use strict;
  7         18  
  7         187  
4 7     7   35 use warnings;
  7         15  
  7         175  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Adjustment Detail Rows
7              
8 7     7   33 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  7         13  
  7         4917  
9              
10             sub field_map {
11             return {
12              
13 225     225 0 3486 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             BATCH_CODE => [423, 3],
35             BILL_CODE => [426, 3],
36             SERVICE_AGENT_MERCHANT_ID => [429, 15],
37             MEMBERSHIP_REWARDS => [444, 1],
38              
39             };
40             }
41              
42 18     18 1 4915 sub type {return 'ADJUSTMENT_DETAIL'}
43              
44 9     9 1 4214 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
45 9     9 1 4802 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
46 9     9 1 4849 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
47 9     9 1 4260 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
48 9     9 1 4843 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
49 9     9 1 4296 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
50 9     9 1 4792 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
51 9     9 1 4747 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
52 9     9 1 4856 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
53 9     9 1 4331 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
54 9     9 1 4330 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
55 9     9 1 4792 sub ADJUSTMENT_NUMBER {return $_[0]->_get_column('ADJUSTMENT_NUMBER')}
56 9     9 1 4996 sub ADJUSTMENT_AMOUNT {return $_[0]->_get_column('ADJUSTMENT_AMOUNT')}
57 9     9 1 4327 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
58 9     9 1 4232 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
59 9     9 1 4800 sub NET_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('NET_ADJUSTMENT_AMOUNT')}
60 9     9 1 4787 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
61 9     9 1 4296 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
62 9     9 1 4786 sub CARDMEMBER_NUMBER {return $_[0]->_get_column('CARDMEMBER_NUMBER')}
63 9     9 1 4760 sub ADJUSTMENT_REASON {return $_[0]->_get_column('ADJUSTMENT_REASON')}
64              
65 9     9 1 4995 sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')}
66 9     9 1 4802 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
67 9     9 1 5166 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
68 9     9 1 4256 sub MEMBERSHIP_REWARDS {return $_[0]->_get_column('MEMBERSHIP_REWARDS')}
69              
70             1;
71              
72             __END__