line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::AMEX::Transaction::GRRCN::Submission; |
2
|
|
|
|
|
|
|
$Finance::AMEX::Transaction::GRRCN::Submission::VERSION = '0.003'; |
3
|
7
|
|
|
7
|
|
46
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
188
|
|
4
|
7
|
|
|
7
|
|
38
|
use warnings; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
178
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Submission or summary of charge (SOC) Rows |
7
|
|
|
|
|
|
|
|
8
|
7
|
|
|
7
|
|
39
|
use base 'Finance::AMEX::Transaction::GRRCN::Base'; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
6197
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub field_map { |
11
|
|
|
|
|
|
|
return { |
12
|
4
|
|
|
4
|
0
|
91
|
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
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
SUBMISSION_MERCHANT_ID => [50, 15], |
20
|
|
|
|
|
|
|
BUSINESS_SUBMISSION_DATE => [65, 8], |
21
|
|
|
|
|
|
|
AMERICAN_EXPRESS_PROCESSING_DATE => [73, 18], |
22
|
|
|
|
|
|
|
SUBMISSION_INVOICE_NUMBER => [81, 15], |
23
|
|
|
|
|
|
|
SUBMISSION_CURRENCY => [96, 3], |
24
|
|
|
|
|
|
|
SUBMISSION_EXCHANGE_RATE => [114, 15], |
25
|
|
|
|
|
|
|
SUBMISSION_GROSS_AMOUNT_IN_SUBMISSION_CURRENCY => [129, 15], |
26
|
|
|
|
|
|
|
SUBMISSION_GROSS_AMOUNT_IN_PAYMENT_CURRENCY => [145, 16], |
27
|
|
|
|
|
|
|
SUBMISSION_DISCOUNT_AMOUNT => [161, 16], |
28
|
|
|
|
|
|
|
SUBMISSION_SERVICE_FEE_AMOUNT => [177, 16], |
29
|
|
|
|
|
|
|
SUBMISSION_TAX_AMOUNT => [193, 16], |
30
|
|
|
|
|
|
|
SUBMISSION_NET_AMOUNT => [209, 16], |
31
|
|
|
|
|
|
|
SUBMISSION_DISCOUNT_RATE => [225, 7], |
32
|
|
|
|
|
|
|
SUBMISSION_TAX_RATE => [232, 7], |
33
|
|
|
|
|
|
|
TRANSACTION_COUNT => [239, 7], |
34
|
|
|
|
|
|
|
TRACKING_ID => [246, 11], |
35
|
|
|
|
|
|
|
INSTALLMENT_NUMBER => [257, 5], |
36
|
|
|
|
|
|
|
ACCELERATION_NUMBER => [262, 9], |
37
|
|
|
|
|
|
|
ORIGINAL_SETTLEMENT_DATE => [271, 8], |
38
|
|
|
|
|
|
|
ACCELERATION_DATE => [279, 8], |
39
|
|
|
|
|
|
|
NUMBER_OF_DAYS_IN_ADVANCE => [287, 5], |
40
|
|
|
|
|
|
|
SUBMISSION_ACCELERATION_FEE_AMOUNT => [292, 16], |
41
|
|
|
|
|
|
|
SUBMISSION_ACCELERATION_FEE_NET_AMOUNT => [308, 16], |
42
|
|
|
|
|
|
|
SUBMISSION_DEBIT_GROSS_AMOUNT => [324, 16], |
43
|
|
|
|
|
|
|
SUBMISSION_CREDIT_GROSS_AMOUNT => [340, 16], |
44
|
|
|
|
|
|
|
}; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
4
|
|
|
4
|
1
|
985
|
sub type {return 'SUBMISSION'} |
48
|
|
|
|
|
|
|
|
49
|
2
|
|
|
2
|
1
|
912
|
sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')} |
50
|
2
|
|
|
2
|
1
|
908
|
sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')} |
51
|
2
|
|
|
2
|
1
|
913
|
sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')} |
52
|
2
|
|
|
2
|
1
|
926
|
sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')} |
53
|
2
|
|
|
2
|
1
|
917
|
sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')} |
54
|
|
|
|
|
|
|
|
55
|
2
|
|
|
2
|
1
|
979
|
sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')} |
56
|
2
|
|
|
2
|
1
|
944
|
sub SUBMISSION_MERCHANT_ID {return $_[0]->_get_column('SUBMISSION_MERCHANT_ID')} |
57
|
2
|
|
|
2
|
1
|
929
|
sub BUSINESS_SUBMISSION_DATE {return $_[0]->_get_column('BUSINESS_SUBMISSION_DATE')} |
58
|
2
|
|
|
2
|
1
|
958
|
sub AMERICAN_EXPRESS_PROCESSING_DATE {return $_[0]->_get_column('AMERICAN_EXPRESS_PROCESSING_DATE')} |
59
|
2
|
|
|
2
|
1
|
930
|
sub SUBMISSION_INVOICE_NUMBER {return $_[0]->_get_column('SUBMISSION_INVOICE_NUMBER')} |
60
|
2
|
|
|
2
|
1
|
922
|
sub SUBMISSION_CURRENCY {return $_[0]->_get_column('SUBMISSION_CURRENCY')} |
61
|
2
|
|
|
2
|
1
|
941
|
sub SUBMISSION_EXCHANGE_RATE {return $_[0]->_get_column('SUBMISSION_EXCHANGE_RATE')} |
62
|
2
|
|
|
2
|
1
|
924
|
sub SUBMISSION_GROSS_AMOUNT_IN_SUBMISSION_CURRENCY {return $_[0]->_get_column('SUBMISSION_GROSS_AMOUNT_IN_SUBMISSION_CURRENCY')} |
63
|
2
|
|
|
2
|
1
|
932
|
sub SUBMISSION_GROSS_AMOUNT_IN_PAYMENT_CURRENCY {return $_[0]->_get_column('SUBMISSION_GROSS_AMOUNT_IN_PAYMENT_CURRENCY')} |
64
|
2
|
|
|
2
|
1
|
916
|
sub SUBMISSION_DISCOUNT_AMOUNT {return $_[0]->_get_column('SUBMISSION_DISCOUNT_AMOUNT')} |
65
|
2
|
|
|
2
|
1
|
928
|
sub SUBMISSION_SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SUBMISSION_SERVICE_FEE_AMOUNT')} |
66
|
2
|
|
|
2
|
1
|
935
|
sub SUBMISSION_TAX_AMOUNT {return $_[0]->_get_column('SUBMISSION_TAX_AMOUNT')} |
67
|
2
|
|
|
2
|
1
|
926
|
sub SUBMISSION_NET_AMOUNT {return $_[0]->_get_column('SUBMISSION_NET_AMOUNT')} |
68
|
2
|
|
|
2
|
1
|
933
|
sub SUBMISSION_DISCOUNT_RATE {return $_[0]->_get_column('SUBMISSION_DISCOUNT_RATE')} |
69
|
2
|
|
|
2
|
1
|
469
|
sub SUBMISSION_TAX_RATE {return $_[0]->_get_column('SUBMISSION_TAX_RATE')} |
70
|
2
|
|
|
2
|
1
|
949
|
sub TRANSACTION_COUNT {return $_[0]->_get_column('TRANSACTION_COUNT')} |
71
|
2
|
|
|
2
|
1
|
921
|
sub TRACKING_ID {return $_[0]->_get_column('TRACKING_ID')} |
72
|
2
|
|
|
2
|
1
|
930
|
sub INSTALLMENT_NUMBER {return $_[0]->_get_column('INSTALLMENT_NUMBER')} |
73
|
2
|
|
|
2
|
1
|
957
|
sub ACCELERATION_NUMBER {return $_[0]->_get_column('ACCELERATION_NUMBER')} |
74
|
2
|
|
|
2
|
1
|
465
|
sub ORIGINAL_SETTLEMENT_DATE {return $_[0]->_get_column('ORIGINAL_SETTLEMENT_DATE')} |
75
|
2
|
|
|
2
|
1
|
908
|
sub ACCELERATION_DATE {return $_[0]->_get_column('ACCELERATION_DATE')} |
76
|
2
|
|
|
2
|
1
|
970
|
sub NUMBER_OF_DAYS_IN_ADVANCE {return $_[0]->_get_column('NUMBER_OF_DAYS_IN_ADVANCE')} |
77
|
2
|
|
|
2
|
1
|
931
|
sub SUBMISSION_ACCELERATION_FEE_AMOUNT {return $_[0]->_get_column('SUBMISSION_ACCELERATION_FEE_AMOUNT')} |
78
|
2
|
|
|
2
|
1
|
915
|
sub SUBMISSION_ACCELERATION_FEE_NET_AMOUNT {return $_[0]->_get_column('SUBMISSION_ACCELERATION_FEE_NET_AMOUNT')} |
79
|
2
|
|
|
2
|
1
|
913
|
sub SUBMISSION_DEBIT_GROSS_AMOUNT {return $_[0]->_get_column('SUBMISSION_DEBIT_GROSS_AMOUNT')} |
80
|
2
|
|
|
2
|
1
|
924
|
sub SUBMISSION_CREDIT_GROSS_AMOUNT {return $_[0]->_get_column('SUBMISSION_CREDIT_GROSS_AMOUNT')} |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
1; |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
__END__ |