File Coverage

blib/lib/Finance/AMEX/Transaction/EPTRN/Detail/Chargeback.pm
Criterion Covered Total %
statement 9 32 28.1
branch n/a
condition n/a
subroutine 3 26 11.5
pod 22 23 95.6
total 34 81 41.9


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPTRN::Detail::Chargeback;
2             $Finance::AMEX::Transaction::EPTRN::Detail::Chargeback::VERSION = '0.003';
3 7     7   50 use strict;
  7         394  
  7         208  
4 7     7   79 use warnings;
  7         21  
  7         179  
5              
6             # ABSTRACT: Parse AMEX Reconciliation Files (EPTRN) Chargeback Detail Rows
7              
8 7     7   35 use base 'Finance::AMEX::Transaction::EPTRN::Base';
  7         24  
  7         4363  
9              
10             sub field_map {
11             return {
12              
13 0     0 0   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             SE_BUSINESS_DATE => [46, 7],
24             AMEX_PROCESS_DATE => [53, 7],
25             SOC_INVOICE_NUMBER => [60, 6],
26             SOC_AMOUNT => [66, 11],
27             CHARGEBACK_AMOUNT => [77, 9],
28             DISCOUNT_AMOUNT => [86, 9],
29             SERVICE_FEE_AMOUNT => [95, 7],
30             NET_CHARGEBACK_AMOUNT => [109, 9],
31             DISCOUNT_RATE => [118, 5],
32             SERVICE_FEE_RATE => [123, 5],
33             CHARGEBACK_REASON => [144, 280],
34             };
35             }
36              
37 0     0 1   sub type {return 'CHARGEBACK_DETAIL'}
38              
39 0     0 1   sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
40 0     0 1   sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
41 0     0 1   sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
42 0     0 1   sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
43 0     0 1   sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
44 0     0 1   sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
45 0     0 1   sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
46 0     0 1   sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
47 0     0 1   sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
48 0     0 1   sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
49 0     0 1   sub SE_BUSINESS_DATE {return $_[0]->_get_column('SE_BUSINESS_DATE')}
50 0     0 1   sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
51 0     0 1   sub SOC_INVOICE_NUMBER {return $_[0]->_get_column('SOC_INVOICE_NUMBER')}
52 0     0 1   sub SOC_AMOUNT {return $_[0]->_get_column('SOC_AMOUNT')}
53 0     0 1   sub CHARGEBACK_AMOUNT {return $_[0]->_get_column('CHARGEBACK_AMOUNT')}
54 0     0 1   sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
55 0     0 1   sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
56 0     0 1   sub NET_CHARGEBACK_AMOUNT {return $_[0]->_get_column('NET_CHARGEBACK_AMOUNT')}
57 0     0 1   sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
58 0     0 1   sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
59 0     0 1   sub CHARGEBACK_REASON {return $_[0]->_get_column('CHARGEBACK_REASON')}
60              
61             1;
62              
63             __END__