line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::AMEX::Transaction::GRRCN::Adjustment; |
2
|
|
|
|
|
|
|
$Finance::AMEX::Transaction::GRRCN::Adjustment::VERSION = '0.004'; |
3
|
8
|
|
|
8
|
|
60
|
use strict; |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
239
|
|
4
|
8
|
|
|
8
|
|
43
|
use warnings; |
|
8
|
|
|
|
|
21
|
|
|
8
|
|
|
|
|
216
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Adjustment Rows |
7
|
|
|
|
|
|
|
|
8
|
8
|
|
|
8
|
|
55
|
use base 'Finance::AMEX::Transaction::GRRCN::Base'; |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
7230
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub field_map { |
11
|
|
|
|
|
|
|
return { |
12
|
12
|
|
|
12
|
0
|
326
|
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
|
|
|
|
|
|
|
SUBMISSION_MERCHANT_ID => [50, 15], |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
BUSINESS_SUBMISSION_DATE => [65, 8], |
21
|
|
|
|
|
|
|
MERCHANT_LOCATION_ID => [73, 15], |
22
|
|
|
|
|
|
|
INVOICE_REFERENCE_NUMBER => [88, 30], |
23
|
|
|
|
|
|
|
SELLER_ID => [118, 20], |
24
|
|
|
|
|
|
|
CARDMEMBER_ACCOUNT_NUMBER => [138, 19], |
25
|
|
|
|
|
|
|
INDUSTRY_SPECIFIC_REFERENCE_NUMBER => [157, 30], |
26
|
|
|
|
|
|
|
AMEX_PROCESSING_DATE => [187, 8], |
27
|
|
|
|
|
|
|
SUBMISSION_INVOICE_NUMBER => [195, 15], |
28
|
|
|
|
|
|
|
SUBMISSION_CURRENCY => [210, 3], |
29
|
|
|
|
|
|
|
ADJUSTMENT_NUMBER => [213, 30], |
30
|
|
|
|
|
|
|
ADJUSTMENT_REASON_CODE => [243, 10], |
31
|
|
|
|
|
|
|
ADJUSTMENT_REASON_DESCRIPTION => [253, 280], |
32
|
|
|
|
|
|
|
GROSS_AMOUNT => [533, 16], |
33
|
|
|
|
|
|
|
DISCOUNT_AMOUNT => [549, 16], |
34
|
|
|
|
|
|
|
SERVICE_FEE_AMOUNT => [565, 16], |
35
|
|
|
|
|
|
|
TAX_AMOUNT => [581, 16], |
36
|
|
|
|
|
|
|
NET_AMOUNT => [597, 16], |
37
|
|
|
|
|
|
|
DISCOUNT_RATE => [613, 7], |
38
|
|
|
|
|
|
|
SERVICE_FEE_RATE => [620, 7], |
39
|
|
|
|
|
|
|
BATCH_CODE => [627, 3], |
40
|
|
|
|
|
|
|
BILL_CODE => [630, 3], |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
}; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
12
|
|
|
12
|
1
|
3746
|
sub type {return 'ADJUSTMENT'} |
46
|
|
|
|
|
|
|
|
47
|
6
|
|
|
6
|
1
|
3620
|
sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')} |
48
|
6
|
|
|
6
|
1
|
3565
|
sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')} |
49
|
6
|
|
|
6
|
1
|
3513
|
sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')} |
50
|
6
|
|
|
6
|
1
|
3717
|
sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')} |
51
|
6
|
|
|
6
|
1
|
3643
|
sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')} |
52
|
6
|
|
|
6
|
1
|
3607
|
sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')} |
53
|
6
|
|
|
6
|
1
|
3632
|
sub SUBMISSION_MERCHANT_ID {return $_[0]->_get_column('SUBMISSION_MERCHANT_ID')} |
54
|
|
|
|
|
|
|
|
55
|
6
|
|
|
6
|
1
|
3670
|
sub BUSINESS_SUBMISSION_DATE {return $_[0]->_get_column('BUSINESS_SUBMISSION_DATE')} |
56
|
6
|
|
|
6
|
1
|
3564
|
sub MERCHANT_LOCATION_ID {return $_[0]->_get_column('MERCHANT_LOCATION_ID')} |
57
|
6
|
|
|
6
|
1
|
3692
|
sub INVOICE_REFERENCE_NUMBER {return $_[0]->_get_column('INVOICE_REFERENCE_NUMBER')} |
58
|
6
|
|
|
6
|
1
|
3570
|
sub SELLER_ID {return $_[0]->_get_column('SELLER_ID')} |
59
|
6
|
|
|
6
|
1
|
3552
|
sub CARDMEMBER_ACCOUNT_NUMBER {return $_[0]->_get_column('CARDMEMBER_ACCOUNT_NUMBER')} |
60
|
6
|
|
|
6
|
1
|
3042
|
sub INDUSTRY_SPECIFIC_REFERENCE_NUMBER {return $_[0]->_get_column('INDUSTRY_SPECIFIC_REFERENCE_NUMBER')} |
61
|
6
|
|
|
6
|
1
|
3552
|
sub AMEX_PROCESSING_DATE {return $_[0]->_get_column('AMEX_PROCESSING_DATE')} |
62
|
6
|
|
|
6
|
1
|
3034
|
sub SUBMISSION_INVOICE_NUMBER {return $_[0]->_get_column('SUBMISSION_INVOICE_NUMBER')} |
63
|
6
|
|
|
6
|
1
|
4067
|
sub SUBMISSION_CURRENCY {return $_[0]->_get_column('SUBMISSION_CURRENCY')} |
64
|
6
|
|
|
6
|
1
|
3111
|
sub ADJUSTMENT_NUMBER {return $_[0]->_get_column('ADJUSTMENT_NUMBER')} |
65
|
6
|
|
|
6
|
1
|
3063
|
sub ADJUSTMENT_REASON_CODE {return $_[0]->_get_column('ADJUSTMENT_REASON_CODE')} |
66
|
6
|
|
|
6
|
1
|
3039
|
sub ADJUSTMENT_REASON_DESCRIPTION {return $_[0]->_get_column('ADJUSTMENT_REASON_DESCRIPTION')} |
67
|
6
|
|
|
6
|
1
|
3607
|
sub GROSS_AMOUNT {return $_[0]->_get_column('GROSS_AMOUNT')} |
68
|
6
|
|
|
6
|
1
|
3558
|
sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')} |
69
|
6
|
|
|
6
|
1
|
3569
|
sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')} |
70
|
6
|
|
|
6
|
1
|
2967
|
sub TAX_AMOUNT {return $_[0]->_get_column('TAX_AMOUNT')} |
71
|
6
|
|
|
6
|
1
|
3566
|
sub NET_AMOUNT {return $_[0]->_get_column('NET_AMOUNT')} |
72
|
6
|
|
|
6
|
1
|
3551
|
sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')} |
73
|
6
|
|
|
6
|
1
|
3608
|
sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')} |
74
|
6
|
|
|
6
|
1
|
3548
|
sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')} |
75
|
6
|
|
|
6
|
1
|
3646
|
sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
__END__ |