line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::AMEX::Transaction::CBNOT::Header 0.005; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
49
|
use strict; |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
212
|
|
4
|
9
|
|
|
9
|
|
37
|
use warnings; |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
199
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Parse AMEX Chargeback Notification Files (CBNOT) Header Rows |
7
|
|
|
|
|
|
|
|
8
|
9
|
|
|
9
|
|
37
|
use base 'Finance::AMEX::Transaction::CBNOT::Base'; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
3539
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub field_map { |
11
|
|
|
|
|
|
|
return { |
12
|
20
|
|
|
20
|
1
|
159
|
REC_TYPE => [1, 1], |
13
|
|
|
|
|
|
|
AMEX_APPL_AREA => [2, 100], |
14
|
|
|
|
|
|
|
APPLICATION_SYSTEM_CODE => [2, 2], |
15
|
|
|
|
|
|
|
FILE_TYPE_CODE => [4, 3], |
16
|
|
|
|
|
|
|
FILE_CREATION_DATE => [6, 8], |
17
|
|
|
|
|
|
|
SAID => [102, 6], |
18
|
|
|
|
|
|
|
DATATYPE => [108, 5], |
19
|
|
|
|
|
|
|
CCYYDDD => [113, 7], |
20
|
|
|
|
|
|
|
HHMMSS => [120, 7], |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
4
|
|
|
4
|
1
|
945
|
sub type {return 'HEADER'} |
25
|
|
|
|
|
|
|
|
26
|
2
|
|
|
2
|
1
|
1166
|
sub AMEX_APPL_AREA {return $_[0]->_get_column('AMEX_APPL_AREA')} |
27
|
2
|
|
|
2
|
1
|
1028
|
sub APPLICATION_SYSTEM_CODE {return $_[0]->_get_column('APPLICATION_SYSTEM_CODE')} |
28
|
2
|
|
|
2
|
1
|
897
|
sub FILE_TYPE_CODE {return $_[0]->_get_column('FILE_TYPE_CODE')} |
29
|
2
|
|
|
2
|
1
|
1092
|
sub FILE_CREATION_DATE {return $_[0]->_get_column('FILE_CREATION_DATE')} |
30
|
2
|
|
|
2
|
1
|
486
|
sub SAID {return $_[0]->_get_column('SAID')} |
31
|
2
|
|
|
2
|
1
|
920
|
sub DATATYPE {return $_[0]->_get_column('DATATYPE')} |
32
|
2
|
|
|
2
|
1
|
895
|
sub CCYYDDD {return $_[0]->_get_column('CCYYDDD')} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# perl does not allow 0 at the beginning of a sub name, |
35
|
|
|
|
|
|
|
# so we strip of the filler character in both the subname |
36
|
|
|
|
|
|
|
# and the return value |
37
|
2
|
|
|
2
|
1
|
890
|
sub HHMMSS {return substr($_[0]->_get_column('HHMMSS'), 1, 6)} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |