File Coverage

blib/lib/Finance/AMEX/Transaction/EPTRN/Detail/ChargeSummary.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 32 32 100.0
pod 29 29 100.0
total 99 99 100.0


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::EPTRN::Detail::ChargeSummary 0.005;
2              
3 9     9   53 use strict;
  9         18  
  9         216  
4 9     9   40 use warnings;
  9         17  
  9         187  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (EPTRN) Summary of Charge (SOC) Detail Rows
7              
8 9     9   39 use base 'Finance::AMEX::Transaction::EPTRN::Base';
  9         14  
  9         6102  
9              
10             sub field_map {
11             return {
12 28     28 1 388 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             BASE_DISCOUNT_AMOUNT => [190, 16],
39             };
40             }
41              
42 2     2 1 454 sub type {return 'SOC_DETAIL'}
43              
44 1     1 1 460 sub AMEX_PAYEE_NUMBER {return $_[0]->_get_column('AMEX_PAYEE_NUMBER')}
45 1     1 1 433 sub AMEX_SE_NUMBER {return $_[0]->_get_column('AMEX_SE_NUMBER')}
46 1     1 1 429 sub SE_UNIT_NUMBER {return $_[0]->_get_column('SE_UNIT_NUMBER')}
47 1     1 1 461 sub PAYMENT_YEAR {return $_[0]->_get_column('PAYMENT_YEAR')}
48 1     1 1 450 sub PAYMENT_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER')}
49 1     1 1 431 sub PAYMENT_NUMBER_DATE {return $_[0]->_get_column('PAYMENT_NUMBER_DATE')}
50 1     1 1 430 sub PAYMENT_NUMBER_TYPE {return $_[0]->_get_column('PAYMENT_NUMBER_TYPE')}
51 1     1 1 452 sub PAYMENT_NUMBER_NUMBER {return $_[0]->_get_column('PAYMENT_NUMBER_NUMBER')}
52 1     1 1 436 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
53 1     1 1 431 sub DETAIL_RECORD_TYPE {return $_[0]->_get_column('DETAIL_RECORD_TYPE')}
54 1     1 1 495 sub SE_BUSINESS_DATE {return $_[0]->_get_column('SE_BUSINESS_DATE')}
55 1     1 1 430 sub AMEX_PROCESS_DATE {return $_[0]->_get_column('AMEX_PROCESS_DATE')}
56 1     1 1 457 sub SOC_INVOICE_NUMBER {return $_[0]->_get_column('SOC_INVOICE_NUMBER')}
57 1     1 1 437 sub SOC_AMOUNT {return $_[0]->_get_column('SOC_AMOUNT')}
58 1     1 1 429 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
59 1     1 1 432 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
60 1     1 1 14 sub NET_SOC_AMOUNT {return $_[0]->_get_column('NET_SOC_AMOUNT')}
61 1     1 1 453 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
62 1     1 1 432 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
63 1     1 1 429 sub AMEX_GROSS_AMOUNT {return $_[0]->_get_column('AMEX_GROSS_AMOUNT')}
64 1     1 1 428 sub AMEX_ROC_COUNT {return $_[0]->_get_column('AMEX_ROC_COUNT')}
65 1     1 1 429 sub TRACKING_ID {return $_[0]->_get_column('TRACKING_ID')}
66 1     1 1 433 sub TRACKING_ID_DATE {return $_[0]->_get_column('TRACKING_ID_DATE')}
67 1     1 1 434 sub TRACKING_ID_PCID {return $_[0]->_get_column('TRACKING_ID_PCID')}
68 1     1 1 429 sub CPC_INDICATOR {return $_[0]->_get_column('CPC_INDICATOR')}
69 1     1 1 431 sub AMEX_ROC_COUNT_POA {return $_[0]->_get_column('AMEX_ROC_COUNT_POA')}
70 1     1 1 433 sub BASE_DISCOUNT_AMOUNT {return $_[0]->_get_column('BASE_DISCOUNT_AMOUNT')}
71              
72             1;
73              
74             __END__