line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::AMEX::Transaction::CBNOT::Trailer 0.005; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
52
|
use strict; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
244
|
|
4
|
9
|
|
|
9
|
|
40
|
use warnings; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
201
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Parse AMEX Chargeback Notification Files (CBNOT) Trailer Rows |
7
|
|
|
|
|
|
|
|
8
|
9
|
|
|
9
|
|
36
|
use base 'Finance::AMEX::Transaction::CBNOT::Base'; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
3853
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub field_map { |
11
|
|
|
|
|
|
|
return { |
12
|
32
|
|
|
32
|
1
|
306
|
REC_TYPE => [1, 1], |
13
|
|
|
|
|
|
|
AMEX_APPL_AREA => [2, 100], |
14
|
|
|
|
|
|
|
APPLICATION_SYSTEM_CODE => [2, 2], |
15
|
|
|
|
|
|
|
FILE_TYPE_CODE => [4, 2], |
16
|
|
|
|
|
|
|
FILE_CREATION_DATE => [6, 8], |
17
|
|
|
|
|
|
|
FILE_SEQUENCE_NUMBER => [20, 6], |
18
|
|
|
|
|
|
|
JULIAN_DATE => [22, 2], |
19
|
|
|
|
|
|
|
AMEX_TOTAL_RECORDS => [27, 5], |
20
|
|
|
|
|
|
|
CONFIRM_RECORD_COUNT => [36, 9], |
21
|
|
|
|
|
|
|
AMEX_JOB_NUMBER => [45, 9], |
22
|
|
|
|
|
|
|
SAID => [102, 6], |
23
|
|
|
|
|
|
|
DATATYPE => [108, 5], |
24
|
|
|
|
|
|
|
CCYYDDD => [113, 7], |
25
|
|
|
|
|
|
|
HHMMSS => [120, 7], |
26
|
|
|
|
|
|
|
STARS_FILESEQ_NB => [127, 3], |
27
|
|
|
|
|
|
|
}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
4
|
|
|
4
|
1
|
993
|
sub type {return 'TRAILER'} |
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
2
|
1
|
876
|
sub AMEX_APPL_AREA {return $_[0]->_get_column('AMEX_APPL_AREA')} |
33
|
2
|
|
|
2
|
1
|
894
|
sub APPLICATION_SYSTEM_CODE {return $_[0]->_get_column('APPLICATION_SYSTEM_CODE')} |
34
|
2
|
|
|
2
|
1
|
1256
|
sub FILE_TYPE_CODE {return $_[0]->_get_column('FILE_TYPE_CODE')} |
35
|
2
|
|
|
2
|
1
|
873
|
sub FILE_CREATION_DATE {return $_[0]->_get_column('FILE_CREATION_DATE')} |
36
|
2
|
|
|
2
|
1
|
462
|
sub FILE_SEQUENCE_NUMBER {return $_[0]->_get_column('FILE_SEQUENCE_NUMBER')} |
37
|
2
|
|
|
2
|
1
|
871
|
sub JULIAN_DATE {return $_[0]->_get_column('JULIAN_DATE')} |
38
|
2
|
|
|
2
|
1
|
958
|
sub AMEX_TOTAL_RECORDS {return $_[0]->_get_column('AMEX_TOTAL_RECORDS')} |
39
|
2
|
|
|
2
|
1
|
898
|
sub CONFIRM_RECORD_COUNT {return $_[0]->_get_column('CONFIRM_RECORD_COUNT')} |
40
|
2
|
|
|
2
|
1
|
871
|
sub AMEX_JOB_NUMBER {return $_[0]->_get_column('AMEX_JOB_NUMBER')} |
41
|
2
|
|
|
2
|
1
|
874
|
sub SAID {return $_[0]->_get_column('SAID')} |
42
|
2
|
|
|
2
|
1
|
960
|
sub DATATYPE {return $_[0]->_get_column('DATATYPE')} |
43
|
2
|
|
|
2
|
1
|
890
|
sub CCYYDDD {return $_[0]->_get_column('CCYYDDD')} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
# perl does not allow 0 at the beginning of a sub name, |
46
|
|
|
|
|
|
|
# so we strip off the filler character in both the subname |
47
|
|
|
|
|
|
|
# and the return value |
48
|
2
|
|
|
2
|
1
|
882
|
sub HHMMSS {return substr($_[0]->_get_column('HHMMSS'), 1, 6)} |
49
|
2
|
|
|
2
|
1
|
456
|
sub STARS_FILESEQ_NB {return $_[0]->_get_column('STARS_FILESEQ_NB')} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |