line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::AMEX::Transaction::GRRCN::Summary; |
2
|
|
|
|
|
|
|
$Finance::AMEX::Transaction::GRRCN::Summary::VERSION = '0.004'; |
3
|
8
|
|
|
8
|
|
58
|
use strict; |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
251
|
|
4
|
8
|
|
|
8
|
|
45
|
use warnings; |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
231
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Summary Rows |
7
|
|
|
|
|
|
|
|
8
|
8
|
|
|
8
|
|
41
|
use base 'Finance::AMEX::Transaction::GRRCN::Base'; |
|
8
|
|
|
|
|
17
|
|
|
8
|
|
|
|
|
5145
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub field_map { |
11
|
|
|
|
|
|
|
return { |
12
|
4
|
|
|
4
|
0
|
84
|
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
|
|
|
|
|
|
|
}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
4
|
|
|
4
|
1
|
1224
|
sub type {return 'SUMMARY'} |
34
|
|
|
|
|
|
|
|
35
|
2
|
|
|
2
|
1
|
1193
|
sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')} |
36
|
2
|
|
|
2
|
1
|
1195
|
sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')} |
37
|
2
|
|
|
2
|
1
|
1299
|
sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')} |
38
|
2
|
|
|
2
|
1
|
491
|
sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')} |
39
|
2
|
|
|
2
|
1
|
1199
|
sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')} |
40
|
2
|
|
|
2
|
1
|
1260
|
sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')} |
41
|
2
|
|
|
2
|
1
|
770
|
sub UNIQUE_PAYMENT_REFERENCE_NUMBER {return $_[0]->_get_column('UNIQUE_PAYMENT_REFERENCE_NUMBER')} |
42
|
2
|
|
|
2
|
1
|
1194
|
sub PAYMENT_NET_AMOUNT {return $_[0]->_get_column('PAYMENT_NET_AMOUNT')} |
43
|
2
|
|
|
2
|
1
|
1206
|
sub PAYMENT_GROSS_AMOUNT {return $_[0]->_get_column('PAYMENT_GROSS_AMOUNT')} |
44
|
2
|
|
|
2
|
1
|
1176
|
sub PAYMENT_DISCOUNT_AMOUNT {return $_[0]->_get_column('PAYMENT_DISCOUNT_AMOUNT')} |
45
|
2
|
|
|
2
|
1
|
1170
|
sub PAYMENT_SERVICE_FEE_AMOUNT {return $_[0]->_get_column('PAYMENT_SERVICE_FEE_AMOUNT')} |
46
|
2
|
|
|
2
|
1
|
1213
|
sub PAYMENT_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('PAYMENT_ADJUSTMENT_AMOUNT')} |
47
|
2
|
|
|
2
|
1
|
1274
|
sub PAYMENT_TAX_AMOUNT {return $_[0]->_get_column('PAYMENT_TAX_AMOUNT')} |
48
|
2
|
|
|
2
|
1
|
1189
|
sub OPENING_DEBIT_BALANCE_AMOUNT {return $_[0]->_get_column('OPENING_DEBIT_BALANCE_AMOUNT')} |
49
|
2
|
|
|
2
|
1
|
1248
|
sub PAYEE_DIRECT_DEPOSIT_NUMBER {return $_[0]->_get_column('PAYEE_DIRECT_DEPOSIT_NUMBER')} |
50
|
2
|
|
|
2
|
1
|
1168
|
sub BANK_ACCOUNT_NUMBER {return $_[0]->_get_column('BANK_ACCOUNT_NUMBER')} |
51
|
2
|
|
|
2
|
1
|
1239
|
sub INTERNATIONAL_BANK_ACCOUNT_NUMBER {return $_[0]->_get_column('INTERNATIONAL_BANK_ACCOUNT_NUMBER')} |
52
|
2
|
|
|
2
|
1
|
1224
|
sub BANK_IDENTIFIER_CODE {return $_[0]->_get_column('BANK_IDENTIFIER_CODE')} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
__END__ |