File Coverage

blib/lib/Finance/AMEX/Transaction/EPPRC/Detail/Other.pm
Criterion Covered Total %
statement 33 33 100.0
branch n/a
condition n/a
subroutine 27 27 100.0
pod 23 24 95.8
total 83 84 98.8


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPPRC::Detail::Other;
2             $Finance::AMEX::Transaction::EPPRC::Detail::Other::VERSION = '0.004';
3 8     8   58 use strict;
  8         21  
  8         255  
4 8     8   64 use warnings;
  8         17  
  8         285  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Other Fees and Revenues Detail Rows
7              
8 8     8   46 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  8         17  
  8         5991  
9              
10             sub field_map {
11             return {
12              
13 345     345 0 5585 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             ASSET_BILLING_AMOUNT => [53, 9],
25             ASSET_BILLING_DESCRIPTION => [62, 65],
26             TAKE_ONE_COMMISSION_AMOUNT => [127, 9],
27             TAKE_ONE_DESCRIPTION => [136, 80],
28             OTHER_FEE_AMOUNT => [216, 9],
29             OTHER_FEE_DESCRIPTION => [225, 80],
30             ASSET_BILLING_TAX => [305, 9],
31             PAY_IN_GROSS_INDICATOR => [314, 1],
32              
33             BATCH_CODE => [315, 3],
34             BILL_CODE => [318, 3],
35              
36             SERVICE_AGENT_MERCHANT_ID => [321, 15],
37             };
38             }
39              
40 30     30 1 8588 sub type {return 'OTHER_DETAIL'}
41              
42 15     15 1 8323 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
43 15     15 1 8296 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
44 15     15 1 8203 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
45 15     15 1 7665 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
46 15     15 1 6736 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
47 15     15 1 8203 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
48 15     15 1 7850 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
49 15     15 1 8214 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
50 15     15 1 8285 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
51 15     15 1 7870 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
52 15     15 1 8303 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
53 15     15 1 7764 sub ASSET_BILLING_AMOUNT {return $_[0]->_get_column('ASSET_BILLING_AMOUNT')}
54 15     15 1 6630 sub ASSET_BILLING_DESCRIPTION {return $_[0]->_get_column('ASSET_BILLING_DESCRIPTION')}
55 15     15 1 8243 sub TAKE_ONE_COMMISSION_AMOUNT {return $_[0]->_get_column('TAKE_ONE_COMMISSION_AMOUNT')}
56 15     15 1 8728 sub TAKE_ONE_DESCRIPTION {return $_[0]->_get_column('TAKE_ONE_DESCRIPTION')}
57 15     15 1 6625 sub OTHER_FEE_AMOUNT {return $_[0]->_get_column('OTHER_FEE_AMOUNT')}
58 15     15 1 8286 sub OTHER_FEE_DESCRIPTION {return $_[0]->_get_column('OTHER_FEE_DESCRIPTION')}
59 15     15 1 8246 sub ASSET_BILLING_TAX {return $_[0]->_get_column('ASSET_BILLING_TAX')}
60 15     15 1 8476 sub PAY_IN_GROSS_INDICATOR {return $_[0]->_get_column('PAY_IN_GROSS_INDICATOR')}
61              
62 15     15 1 8165 sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')}
63 15     15 1 7094 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
64              
65 15     15 1 8335 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
66              
67             1;
68              
69             __END__