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.004';
3 8     8   58 use strict;
  8         18  
  8         278  
4 8     8   43 use warnings;
  8         16  
  8         294  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Adjustment Detail Rows
7              
8 8     8   45 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  8         19  
  8         6603  
9              
10             sub field_map {
11             return {
12              
13 225     225 0 3768 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 5547 sub type {return 'ADJUSTMENT_DETAIL'}
43              
44 9     9 1 4905 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
45 9     9 1 4471 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
46 9     9 1 4408 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
47 9     9 1 4852 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
48 9     9 1 4390 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
49 9     9 1 4446 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
50 9     9 1 4949 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
51 9     9 1 3902 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
52 9     9 1 4393 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
53 9     9 1 4916 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
54 9     9 1 5007 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
55 9     9 1 4933 sub ADJUSTMENT_NUMBER {return $_[0]->_get_column('ADJUSTMENT_NUMBER')}
56 9     9 1 4412 sub ADJUSTMENT_AMOUNT {return $_[0]->_get_column('ADJUSTMENT_AMOUNT')}
57 9     9 1 4914 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
58 9     9 1 4963 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
59 9     9 1 4940 sub NET_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('NET_ADJUSTMENT_AMOUNT')}
60 9     9 1 4972 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
61 9     9 1 4592 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
62 9     9 1 4901 sub CARDMEMBER_NUMBER {return $_[0]->_get_column('CARDMEMBER_NUMBER')}
63 9     9 1 4902 sub ADJUSTMENT_REASON {return $_[0]->_get_column('ADJUSTMENT_REASON')}
64              
65 9     9 1 4955 sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')}
66 9     9 1 4875 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
67 9     9 1 4936 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
68 9     9 1 4893 sub MEMBERSHIP_REWARDS {return $_[0]->_get_column('MEMBERSHIP_REWARDS')}
69              
70             1;
71              
72             __END__