File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/Adjustment.pm
Criterion Covered Total %
statement 39 39 100.0
branch n/a
condition n/a
subroutine 33 33 100.0
pod 30 30 100.0
total 102 102 100.0


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::GRRCN::Adjustment 0.005;
2              
3 9     9   54 use strict;
  9         16  
  9         224  
4 9     9   51 use warnings;
  9         36  
  9         240  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Adjustment Rows
7              
8 9     9   45 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  9         20  
  9         6667  
9              
10             sub field_map {
11             return [
12 12     12 1 368 {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             {BUSINESS_SUBMISSION_DATE => [65, 8]},
20             {MERCHANT_LOCATION_ID => [73, 15]},
21             {INVOICE_REFERENCE_NUMBER => [88, 30]},
22             {SELLER_ID => [118, 20]},
23             {CARDMEMBER_ACCOUNT_NUMBER => [138, 19]},
24             {INDUSTRY_SPECIFIC_REFERENCE_NUMBER => [157, 30]},
25             {AMEX_PROCESSING_DATE => [187, 8]},
26             {SUBMISSION_INVOICE_NUMBER => [195, 15]},
27             {SUBMISSION_CURRENCY => [210, 3]},
28             {ADJUSTMENT_NUMBER => [213, 30]},
29             {ADJUSTMENT_REASON_CODE => [243, 10]},
30             {ADJUSTMENT_REASON_DESCRIPTION => [253, 280]},
31             {GROSS_AMOUNT => [533, 16]},
32             {DISCOUNT_AMOUNT => [549, 16]},
33             {SERVICE_FEE_AMOUNT => [565, 16]},
34             {TAX_AMOUNT => [581, 16]},
35             {NET_AMOUNT => [597, 16]},
36             {DISCOUNT_RATE => [613, 7]},
37             {SERVICE_FEE_RATE => [620, 7]},
38             {BATCH_CODE => [627, 3]},
39             {BILL_CODE => [630, 3]},
40             {FILLER1 => [633, 168]},
41             ];
42             }
43              
44 12     12 1 3239 sub type {return 'ADJUSTMENT'}
45              
46 6     6 1 132 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
47 6     6 1 3033 sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
48 6     6 1 3131 sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')}
49 6     6 1 2951 sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
50 6     6 1 2851 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
51 6     6 1 2986 sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
52 6     6 1 3193 sub SUBMISSION_MERCHANT_ID {return $_[0]->_get_column('SUBMISSION_MERCHANT_ID')}
53 6     6 1 2891 sub BUSINESS_SUBMISSION_DATE {return $_[0]->_get_column('BUSINESS_SUBMISSION_DATE')}
54 6     6 1 2968 sub MERCHANT_LOCATION_ID {return $_[0]->_get_column('MERCHANT_LOCATION_ID')}
55 6     6 1 2910 sub INVOICE_REFERENCE_NUMBER {return $_[0]->_get_column('INVOICE_REFERENCE_NUMBER')}
56 6     6 1 2840 sub SELLER_ID {return $_[0]->_get_column('SELLER_ID')}
57 6     6 1 3064 sub CARDMEMBER_ACCOUNT_NUMBER {return $_[0]->_get_column('CARDMEMBER_ACCOUNT_NUMBER')}
58 6     6 1 3151 sub INDUSTRY_SPECIFIC_REFERENCE_NUMBER {return $_[0]->_get_column('INDUSTRY_SPECIFIC_REFERENCE_NUMBER')}
59 6     6 1 2973 sub AMEX_PROCESSING_DATE {return $_[0]->_get_column('AMEX_PROCESSING_DATE')}
60 6     6 1 3011 sub SUBMISSION_INVOICE_NUMBER {return $_[0]->_get_column('SUBMISSION_INVOICE_NUMBER')}
61 6     6 1 2906 sub SUBMISSION_CURRENCY {return $_[0]->_get_column('SUBMISSION_CURRENCY')}
62 6     6 1 2845 sub ADJUSTMENT_NUMBER {return $_[0]->_get_column('ADJUSTMENT_NUMBER')}
63 6     6 1 3158 sub ADJUSTMENT_REASON_CODE {return $_[0]->_get_column('ADJUSTMENT_REASON_CODE')}
64 6     6 1 2931 sub ADJUSTMENT_REASON_DESCRIPTION {return $_[0]->_get_column('ADJUSTMENT_REASON_DESCRIPTION')}
65 6     6 1 2884 sub GROSS_AMOUNT {return $_[0]->_get_column('GROSS_AMOUNT')}
66 6     6 1 3390 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
67 6     6 1 2926 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
68 6     6 1 2877 sub TAX_AMOUNT {return $_[0]->_get_column('TAX_AMOUNT')}
69 6     6 1 3173 sub NET_AMOUNT {return $_[0]->_get_column('NET_AMOUNT')}
70 6     6 1 2934 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
71 6     6 1 2949 sub SERVICE_FEE_RATE {return $_[0]->_get_column('SERVICE_FEE_RATE')}
72 6     6 1 2896 sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')}
73 6     6 1 2920 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
74              
75             1;
76              
77             __END__