line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::AMEX::Transaction::CBNOT::Header; |
2
|
|
|
|
|
|
|
$Finance::AMEX::Transaction::CBNOT::Header::VERSION = '0.004'; |
3
|
8
|
|
|
8
|
|
54
|
use strict; |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
235
|
|
4
|
8
|
|
|
8
|
|
40
|
use warnings; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
317
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Parse AMEX Chargeback Notification Files (CBNOT) Header Rows |
7
|
|
|
|
|
|
|
|
8
|
8
|
|
|
8
|
|
50
|
use base 'Finance::AMEX::Transaction::CBNOT::Base'; |
|
8
|
|
|
|
|
17
|
|
|
8
|
|
|
|
|
4243
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub field_map { |
11
|
|
|
|
|
|
|
return { |
12
|
20
|
|
|
20
|
0
|
188
|
REC_TYPE => [1, 1], |
13
|
|
|
|
|
|
|
AMEX_APPL_AREA => [2, 100], |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
APPLICATION_SYSTEM_CODE => [2, 2], |
16
|
|
|
|
|
|
|
FILE_TYPE_CODE => [4, 3], |
17
|
|
|
|
|
|
|
FILE_CREATION_DATE => [6, 8], |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
SAID => [102, 6], |
20
|
|
|
|
|
|
|
DATATYPE => [108, 5], |
21
|
|
|
|
|
|
|
CCYYDDD => [113, 7], |
22
|
|
|
|
|
|
|
HHMMSS => [120, 7], |
23
|
|
|
|
|
|
|
}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
4
|
|
|
4
|
1
|
1121
|
sub type {return 'HEADER'} |
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
2
|
1
|
1124
|
sub AMEX_APPL_AREA {return $_[0]->_get_column('AMEX_APPL_AREA')} |
29
|
2
|
|
|
2
|
1
|
1124
|
sub APPLICATION_SYSTEM_CODE {return $_[0]->_get_column('APPLICATION_SYSTEM_CODE')} |
30
|
2
|
|
|
2
|
1
|
1102
|
sub FILE_TYPE_CODE {return $_[0]->_get_column('FILE_TYPE_CODE')} |
31
|
2
|
|
|
2
|
1
|
1119
|
sub FILE_CREATION_DATE {return $_[0]->_get_column('FILE_CREATION_DATE')} |
32
|
2
|
|
|
2
|
1
|
1082
|
sub SAID {return $_[0]->_get_column('SAID')} |
33
|
2
|
|
|
2
|
1
|
1114
|
sub DATATYPE {return $_[0]->_get_column('DATATYPE')} |
34
|
2
|
|
|
2
|
1
|
1159
|
sub CCYYDDD {return $_[0]->_get_column('CCYYDDD')} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# perl does not allow 0 at the beginning of a sub name, |
37
|
|
|
|
|
|
|
# so we strip of the filler character in both the subname |
38
|
|
|
|
|
|
|
# and the return value |
39
|
2
|
|
|
2
|
0
|
1727
|
sub HHMMSS {return substr($_[0]->_get_column('HHMMSS'), 1, 6)} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |