File Coverage

blib/lib/Finance/AMEX/Transaction/EPRAW/Detail/ChargeSummary.pm
Criterion Covered Total %
statement 42 42 100.0
branch n/a
condition n/a
subroutine 36 36 100.0
pod 33 33 100.0
total 111 111 100.0


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPRAW::Detail::ChargeSummary 0.005;
2              
3 9     9   50 use strict;
  9         17  
  9         219  
4 9     9   38 use warnings;
  9         15  
  9         190  
5              
6             # ABSTRACT: Parse AMEX Reconciliation Files (EPRAW) Summary of Charge (SOC) Detail Rows
7              
8 9     9   36 use base 'Finance::AMEX::Transaction::EPRAW::Base';
  9         16  
  9         7229  
9              
10             sub field_map {
11             return {
12 448     448 1 6928 AMEX_PAYEE_NUMBER => [1, 10],
13             AMEX_SE_NUMBER => [11, 10],
14             SE_UNIT_NUMBER => [21, 10],
15             PAYMENT_YEAR => [31, 4],
16             PAYMENT_NUMBER => [35, 8],
17             PAYMENT_NUMBER_DATE => [35, 3],
18             PAYMENT_NUMBER_TYPE => [38, 1],
19             PAYMENT_NUMBER_NUMBER => [39, 4],
20             RECORD_TYPE => [43, 1],
21             DETAIL_RECORD_TYPE => [44, 2],
22             SE_BUSINESS_DATE => [46, 7],
23             AMEX_PROCESS_DATE => [53, 7],
24             SOC_INVOICE_NUMBER => [60, 6],
25             SOC_AMOUNT => [66, 11],
26             DISCOUNT_AMOUNT => [77, 9],
27             SERVICE_FEE_AMOUNT => [86, 7],
28             NET_SOC_AMOUNT => [100, 11],
29             DISCOUNT_RATE => [111, 5],
30             SERVICE_FEE_RATE => [116, 5],
31             AMEX_GROSS_AMOUNT => [142, 11],
32             AMEX_ROC_COUNT => [153, 5],
33             TRACKING_ID => [158, 9],
34             TRACKING_ID_DATE => [158, 3],
35             TRACKING_ID_PCID => [161, 6],
36             CPC_INDICATOR => [167, 1],
37             AMEX_ROC_COUNT_POA => [183, 7],
38             SERVICE_AGENT_MERCHANT_ID => [281, 15],
39              
40             # DEPRECATED
41             OPTIMA_DIVIDEND_AMOUNT => [93, 7],
42             OPTIMA_DIVIDEND_RATE => [121, 5],
43             OPTIMA_GROSS_AMOUNT => [126, 11],
44             OPTIMA_ROC_COUNT => [137, 5],
45             };
46             }
47              
48 28     28 1 6590 sub type {return 'SOC_DETAIL'}
49              
50 14     14 1 5652 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
51 14     14 1 5661 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
52 14     14 1 6147 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
53 14     14 1 5839 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
54 14     14 1 6108 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
55 14     14 1 6055 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
56 14     14 1 6080 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
57 14     14 1 5714 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
58 14     14 1 6093 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
59 14     14 1 6125 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
60 14     14 1 6084 sub SE_BUSINESS_DATE {return $_[0]->_get_column('SE_BUSINESS_DATE')}
61 14     14 1 6167 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
62 14     14 1 6105 sub SOC_INVOICE_NUMBER {return $_[0]->_get_column('SOC_INVOICE_NUMBER')}
63 14     14 1 6161 sub SOC_AMOUNT {return $_[0]->_get_column('SOC_AMOUNT')}
64 14     14 1 6090 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
65 14     14 1 6085 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
66 14     14 1 5908 sub NET_SOC_AMOUNT {return $_[0]->_get_column('NET_SOC_AMOUNT')}
67 14     14 1 6069 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
68 14     14 1 5782 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
69 14     14 1 6133 sub AMEX_GROSS_AMOUNT {return $_[0]->_get_column('AMEX_GROSS_AMOUNT')}
70 14     14 1 6014 sub AMEX_ROC_COUNT {return $_[0]->_get_column('AMEX_ROC_COUNT')}
71 14     14 1 5619 sub TRACKING_ID {return $_[0]->_get_column('TRACKING_ID')}
72 14     14 1 5738 sub TRACKING_ID_DATE {return $_[0]->_get_column('TRACKING_ID_DATE')}
73 14     14 1 5772 sub TRACKING_ID_PCID {return $_[0]->_get_column('TRACKING_ID_PCID')}
74 14     14 1 6092 sub CPC_INDICATOR {return $_[0]->_get_column('CPC_INDICATOR')}
75 14     14 1 5205 sub AMEX_ROC_COUNT_POA {return $_[0]->_get_column('AMEX_ROC_COUNT_POA')}
76 14     14 1 6094 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
77              
78             # DEPRECATED
79 14     14 1 5356 sub OPTIMA_DIVIDEND_AMOUNT {return $_[0]->_get_column('OPTIMA_DIVIDEND_AMOUNT')}
80 14     14 1 6111 sub OPTIMA_DIVIDEND_RATE {return $_[0]->_get_column('OPTIMA_DIVIDEND_RATE')}
81 14     14 1 6062 sub OPTIMA_GROSS_AMOUNT {return $_[0]->_get_column('OPTIMA_GROSS_AMOUNT')}
82 14     14 1 5733 sub OPTIMA_ROC_COUNT {return $_[0]->_get_column('OPTIMA_ROC_COUNT')}
83              
84             1;
85              
86             __END__