File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/Summary.pm
Criterion Covered Total %
statement 29 29 100.0
branch n/a
condition n/a
subroutine 23 23 100.0
pod 20 20 100.0
total 72 72 100.0


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::GRRCN::Summary 0.005;
2              
3 9     9   58 use strict;
  9         18  
  9         224  
4 9     9   42 use warnings;
  9         14  
  9         201  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Summary Rows
7              
8 9     9   124 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  9         17  
  9         4739  
9              
10             sub field_map {
11             return [
12 4     4 1 72 {RECORD_TYPE => [1, 10]},
13             {PAYEE_MERCHANT_ID => [11, 15]},
14             {SETTLEMENT_ACCOUNT_TYPE_CODE => [26, 3]},
15             {AMERICAN_EXPRESS_PAYMENT_NUMBER => [29, 10]},
16             {PAYMENT_DATE => [39, 8]},
17             {PAYMENT_CURRENCY => [47, 3]},
18             {UNIQUE_PAYMENT_REFERENCE_NUMBER => [50, 18]},
19             {PAYMENT_NET_AMOUNT => [68, 16]},
20             {PAYMENT_GROSS_AMOUNT => [84, 16]},
21             {PAYMENT_DISCOUNT_AMOUNT => [100, 16]},
22             {PAYMENT_SERVICE_FEE_AMOUNT => [116, 16]},
23             {PAYMENT_ADJUSTMENT_AMOUNT => [132, 16]},
24             {PAYMENT_TAX_AMOUNT => [148, 16]},
25             {OPENING_DEBIT_BALANCE_AMOUNT => [164, 16]},
26             {PAYEE_DIRECT_DEPOSIT_NUMBER => [180, 17]},
27             {BANK_ACCOUNT_NUMBER => [197, 34]},
28             {INTERNATIONAL_BANK_ACCOUNT_NUMBER => [231, 34]},
29             {BANK_IDENTIFIER_CODE => [265, 15]},
30             {FILLER1 => [280, 521]},
31             ];
32             }
33              
34 4     4 1 971 sub type {return 'SUMMARY'}
35              
36 2     2 1 58 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
37 2     2 1 980 sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
38 2     2 1 977 sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')}
39 2     2 1 934 sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
40 2     2 1 942 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
41 2     2 1 1038 sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
42 2     2 1 929 sub UNIQUE_PAYMENT_REFERENCE_NUMBER {return $_[0]->_get_column('UNIQUE_PAYMENT_REFERENCE_NUMBER')}
43 2     2 1 943 sub PAYMENT_NET_AMOUNT {return $_[0]->_get_column('PAYMENT_NET_AMOUNT')}
44 2     2 1 927 sub PAYMENT_GROSS_AMOUNT {return $_[0]->_get_column('PAYMENT_GROSS_AMOUNT')}
45 2     2 1 939 sub PAYMENT_DISCOUNT_AMOUNT {return $_[0]->_get_column('PAYMENT_DISCOUNT_AMOUNT')}
46 2     2 1 925 sub PAYMENT_SERVICE_FEE_AMOUNT {return $_[0]->_get_column('PAYMENT_SERVICE_FEE_AMOUNT')}
47 2     2 1 1000 sub PAYMENT_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('PAYMENT_ADJUSTMENT_AMOUNT')}
48 2     2 1 924 sub PAYMENT_TAX_AMOUNT {return $_[0]->_get_column('PAYMENT_TAX_AMOUNT')}
49 2     2 1 936 sub OPENING_DEBIT_BALANCE_AMOUNT {return $_[0]->_get_column('OPENING_DEBIT_BALANCE_AMOUNT')}
50 2     2 1 923 sub PAYEE_DIRECT_DEPOSIT_NUMBER {return $_[0]->_get_column('PAYEE_DIRECT_DEPOSIT_NUMBER')}
51 2     2 1 926 sub BANK_ACCOUNT_NUMBER {return $_[0]->_get_column('BANK_ACCOUNT_NUMBER')}
52 2     2 1 957 sub INTERNATIONAL_BANK_ACCOUNT_NUMBER {return $_[0]->_get_column('INTERNATIONAL_BANK_ACCOUNT_NUMBER')}
53 2     2 1 1011 sub BANK_IDENTIFIER_CODE {return $_[0]->_get_column('BANK_IDENTIFIER_CODE')}
54              
55             1;
56              
57             __END__