File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/Chargeback.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::Chargeback 0.005;
2              
3 9     9   54 use strict;
  9         19  
  9         229  
4 9     9   40 use warnings;
  9         17  
  9         204  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Chargeback Rows
7              
8 9     9   38 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  9         21  
  9         6731  
9              
10             sub field_map {
11             return [
12 12     12 1 447 {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             {CHARGEBACK_NUMBER => [213, 30]},
29             {CHARGEBACK_REASON_CODE => [243, 10]},
30             {CHARGEBACK_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 3256 sub type {return 'CHARGEBACK'}
45              
46 6     6 1 124 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
47 6     6 1 3057 sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
48 6     6 1 2955 sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')}
49 6     6 1 2988 sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
50 6     6 1 2897 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
51 6     6 1 2954 sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
52 6     6 1 3251 sub SUBMISSION_MERCHANT_ID {return $_[0]->_get_column('SUBMISSION_MERCHANT_ID')}
53 6     6 1 2956 sub BUSINESS_SUBMISSION_DATE {return $_[0]->_get_column('BUSINESS_SUBMISSION_DATE')}
54 6     6 1 2934 sub MERCHANT_LOCATION_ID {return $_[0]->_get_column('MERCHANT_LOCATION_ID')}
55 6     6 1 2996 sub INVOICE_REFERENCE_NUMBER {return $_[0]->_get_column('INVOICE_REFERENCE_NUMBER')}
56 6     6 1 2968 sub SELLER_ID {return $_[0]->_get_column('SELLER_ID')}
57 6     6 1 3079 sub CARDMEMBER_ACCOUNT_NUMBER {return $_[0]->_get_column('CARDMEMBER_ACCOUNT_NUMBER')}
58 6     6 1 3000 sub INDUSTRY_SPECIFIC_REFERENCE_NUMBER {return $_[0]->_get_column('INDUSTRY_SPECIFIC_REFERENCE_NUMBER')}
59 6     6 1 3277 sub AMEX_PROCESSING_DATE {return $_[0]->_get_column('AMEX_PROCESSING_DATE')}
60 6     6 1 2910 sub SUBMISSION_INVOICE_NUMBER {return $_[0]->_get_column('SUBMISSION_INVOICE_NUMBER')}
61 6     6 1 2978 sub SUBMISSION_CURRENCY {return $_[0]->_get_column('SUBMISSION_CURRENCY')}
62 6     6 1 2961 sub CHARGEBACK_NUMBER {return $_[0]->_get_column('CHARGEBACK_NUMBER')}
63 6     6 1 3245 sub CHARGEBACK_REASON_CODE {return $_[0]->_get_column('CHARGEBACK_REASON_CODE')}
64 6     6 1 2985 sub CHARGEBACK_REASON_DESCRIPTION {return $_[0]->_get_column('CHARGEBACK_REASON_DESCRIPTION')}
65 6     6 1 2987 sub GROSS_AMOUNT {return $_[0]->_get_column('GROSS_AMOUNT')}
66 6     6 1 2910 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
67 6     6 1 2966 sub SERVICE_FEE_AMOUNT {return $_[0]->_get_column('SERVICE_FEE_AMOUNT')}
68 6     6 1 2908 sub TAX_AMOUNT {return $_[0]->_get_column('TAX_AMOUNT')}
69 6     6 1 3143 sub NET_AMOUNT {return $_[0]->_get_column('NET_AMOUNT')}
70 6     6 1 2916 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
71 6     6 1 3079 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 2871 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
74              
75             1;
76              
77             __END__