File Coverage

blib/lib/Finance/AMEX/Transaction/EPPRC/Detail/ChargeSummaryPricing.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::ChargeSummaryPricing;
2             $Finance::AMEX::Transaction::EPPRC::Detail::ChargeSummaryPricing::VERSION = '0.003';
3 7     7   46 use strict;
  7         14  
  7         188  
4 7     7   33 use warnings;
  7         14  
  7         175  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPPRC) Summary of Charge (SOC) Level Pricing Rows
7              
8 7     7   34 use base 'Finance::AMEX::Transaction::EPPRC::Base';
  7         14  
  7         3851  
9              
10             sub field_map {
11             return {
12              
13 324     324 0 4445 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 => [45, 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 36     36 1 10071 sub type {return 'SOC_PRICING'}
35              
36 18     18 1 9723 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
37 18     18 1 8237 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
38 18     18 1 9118 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
39 18     18 1 8158 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
40 18     18 1 9351 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
41 18     18 1 9328 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
42 18     18 1 9759 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
43 18     18 1 9923 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
44 18     18 1 9205 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
45 18     18 1 9109 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
46 18     18 1 9355 sub FEE_CODE {return $_[0]->_get_column('FEE_CODE')}
47 18     18 1 8179 sub FEE_DESCRIPTION {return $_[0]->_get_column('FEE_DESCRIPTION')}
48 18     18 1 8807 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
49 18     18 1 9333 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
50 18     18 1 9760 sub FEE_RATE {return $_[0]->_get_column('FEE_RATE')}
51 18     18 1 9809 sub FEE_AMOUNT {return $_[0]->_get_column('FEE_AMOUNT')}
52 18     18 1 9708 sub MERCHANT_ID {return $_[0]->_get_column('MERCHANT_ID')}
53              
54             1;
55              
56             __END__