File Coverage

blib/lib/Finance/AMEX/Transaction/EPPRC/Detail/RecordSummaryPricing.pm
Criterion Covered Total %
statement 28 28 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 18 19 94.7
total 68 69 98.5


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPPRC::Detail::RecordSummaryPricing;
2             $Finance::AMEX::Transaction::EPPRC::Detail::RecordSummaryPricing::VERSION = '0.003';
3 7     7   47 use strict;
  7         18  
  7         196  
4 7     7   37 use warnings;
  7         17  
  7         300  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Record of Charge (ROC) Level Pricing Record Rows
7              
8 7     7   46 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  7         15  
  7         3754  
9              
10             sub field_map {
11             return {
12              
13 5994     5994 0 79487 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              
24             FEE_CODE => [46, 2],
25             FEE_DESCRIPTION => [48, 25],
26             DISCOUNT_RATE => [73, 9],
27             DISCOUNT_AMOUNT => [82, 15],
28             FEE_RATE => [97, 9],
29             FEE_AMOUNT => [106, 15],
30             MERCHANT_ID => [121, 15],
31             };
32             }
33              
34 666     666 1 183206 sub type {return 'ROC_PRICING'}
35              
36 333     333 1 175211 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
37 333     333 1 169075 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
38 333     333 1 173178 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
39 333     333 1 157377 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
40 333     333 1 169235 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
41 333     333 1 171343 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
42 333     333 1 176256 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
43 333     333 1 174878 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
44 333     333 1 173131 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
45 333     333 1 169278 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
46              
47 333     333 1 173737 sub FEE_CODE {return $_[0]->_get_column('FEE_CODE')}
48 333     333 1 161406 sub FEE_DESCRIPTION {return $_[0]->_get_column('FEE_DESCRIPTION')}
49 333     333 1 152537 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
50 333     333 1 170226 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
51 333     333 1 172256 sub FEE_RATE {return $_[0]->_get_column('FEE_RATE')}
52 333     333 1 165553 sub FEE_AMOUNT {return $_[0]->_get_column('FEE_AMOUNT')}
53 333     333 1 173193 sub MERCHANT_ID {return $_[0]->_get_column('MERCHANT_ID')}
54              
55             1;
56              
57             __END__