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 32 33 96.9
total 110 111 99.1


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPRAW::Detail::ChargeSummary;
2             $Finance::AMEX::Transaction::EPRAW::Detail::ChargeSummary::VERSION = '0.003';
3 7     7   46 use strict;
  7         15  
  7         186  
4 7     7   34 use warnings;
  7         22  
  7         171  
5              
6             # ABSTRACT: Parse AMEX Reconciliation Files (EPRAW) Summary of Charge (SOC) Detail Rows
7              
8 7     7   35 use base 'Finance::AMEX::Transaction::EPRAW::Base';
  7         14  
  7         6047  
9              
10             sub field_map {
11             return {
12              
13 448     448 0 8557 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             DISCOUNT_AMOUNT => [77, 9],
28             SERVICE_FEE_AMOUNT => [86, 7],
29             NET_SOC_AMOUNT => [100, 11],
30             DISCOUNT_RATE => [111, 5],
31             SERVICE_FEE_RATE => [116, 5],
32              
33             AMEX_GROSS_AMOUNT => [142, 11],
34             AMEX_ROC_COUNT => [153, 5],
35             TRACKING_ID => [158, 9],
36             TRACKING_ID_DATE => [158, 3],
37             TRACKING_ID_PCID => [161, 6],
38             CPC_INDICATOR => [167, 1],
39             AMEX_ROC_COUNT_POA => [183, 7],
40             SERVICE_AGENT_MERCHANT_ID => [281, 15],
41              
42             # DEPRECATED
43             OPTIMA_DIVIDEND_AMOUNT => [93, 7],
44             OPTIMA_DIVIDEND_RATE => [121, 5],
45             OPTIMA_GROSS_AMOUNT => [126, 11],
46             OPTIMA_ROC_COUNT => [137, 5],
47             };
48             }
49              
50 28     28 1 7849 sub type {return 'SOC_DETAIL'}
51              
52 14     14 1 7590 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
53 14     14 1 7046 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
54 14     14 1 7632 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
55 14     14 1 6423 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
56 14     14 1 7152 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
57 14     14 1 7614 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
58 14     14 1 7561 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
59 14     14 1 6862 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
60 14     14 1 7008 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
61 14     14 1 7516 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
62 14     14 1 6582 sub SE_BUSINESS_DATE {return $_[0]->_get_column('SE_BUSINESS_DATE')}
63 14     14 1 6992 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
64 14     14 1 7546 sub SOC_INVOICE_NUMBER {return $_[0]->_get_column('SOC_INVOICE_NUMBER')}
65 14     14 1 7683 sub SOC_AMOUNT {return $_[0]->_get_column('SOC_AMOUNT')}
66 14     14 1 5831 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
67 14     14 1 7616 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
68 14     14 1 7922 sub NET_SOC_AMOUNT {return $_[0]->_get_column('NET_SOC_AMOUNT')}
69 14     14 1 6988 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
70 14     14 1 9789 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
71 14     14 1 7566 sub AMEX_GROSS_AMOUNT {return $_[0]->_get_column('AMEX_GROSS_AMOUNT')}
72 14     14 1 7063 sub AMEX_ROC_COUNT {return $_[0]->_get_column('AMEX_ROC_COUNT')}
73 14     14 1 7665 sub TRACKING_ID {return $_[0]->_get_column('TRACKING_ID')}
74 14     14 1 15349 sub TRACKING_ID_DATE {return $_[0]->_get_column('TRACKING_ID_DATE')}
75 14     14 1 7468 sub TRACKING_ID_PCID {return $_[0]->_get_column('TRACKING_ID_PCID')}
76 14     14 1 8006 sub CPC_INDICATOR {return $_[0]->_get_column('CPC_INDICATOR')}
77 14     14 1 7501 sub AMEX_ROC_COUNT_POA {return $_[0]->_get_column('AMEX_ROC_COUNT_POA')}
78 14     14 1 7582 sub SERVICE_AGENT_MERCHANT_ID {return $_[0]->_get_column('SERVICE_AGENT_MERCHANT_ID')}
79              
80             # DEPRECATED
81 14     14 1 7542 sub OPTIMA_DIVIDEND_AMOUNT {return $_[0]->_get_column('OPTIMA_DIVIDEND_AMOUNT')}
82 14     14 1 7595 sub OPTIMA_DIVIDEND_RATE {return $_[0]->_get_column('OPTIMA_DIVIDEND_RATE')}
83 14     14 1 7472 sub OPTIMA_GROSS_AMOUNT {return $_[0]->_get_column('OPTIMA_GROSS_AMOUNT')}
84 14     14 1 7642 sub OPTIMA_ROC_COUNT {return $_[0]->_get_column('OPTIMA_ROC_COUNT')}
85              
86              
87             1;
88              
89             __END__