File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/FeeRevenue.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 20 20 100.0
pod 16 17 94.1
total 62 63 98.4


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::GRRCN::FeeRevenue;
2             $Finance::AMEX::Transaction::GRRCN::FeeRevenue::VERSION = '0.003';
3 7     7   54 use strict;
  7         14  
  7         191  
4 7     7   35 use warnings;
  7         14  
  7         174  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Fees and Revenues Record Rows
7              
8 7     7   34 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  7         17  
  7         3390  
9              
10             sub field_map {
11             return {
12 2     2 0 29 RECORD_TYPE => [1, 10],
13             PAYEE_MERCHANT_ID => [11, 15],
14             AMERICAN_EXPRESS_PAYMENT_NUMBER => [26, 10],
15             PAYMENT_DATE => [36, 8],
16             PAYMENT_CURRENCY => [44, 3],
17              
18             SUBMISSION_MERCHANT_ID => [47, 15],
19             MERCHANT_LOCATION_ID => [62, 15],
20              
21             FEE_OR_REVENUE_AMOUNT => [77, 16],
22             FEE_OR_REVENUE_DESCRIPTION => [93, 80],
23             ASSET_BILLING_AMOUNT => [173, 16],
24             ASSET_BILLING_DESCRIPTION => [189, 65],
25             ASSET_BILLING_TAX => [254, 16],
26             PAY_IN_GROSS_INDICATOR => [270, 1],
27             BATCH_CODE => [271, 3],
28             BILL_CODE => [274, 3],
29             };
30             }
31              
32 2     2 1 503 sub type {return 'FEEREVENUE'}
33              
34 1     1 1 7 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
35 1     1 1 466 sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
36 1     1 1 467 sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
37 1     1 1 456 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
38 1     1 1 465 sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
39              
40 1     1 1 458 sub SUBMISSION_MERCHANT_ID {return $_[0]->_get_column('SUBMISSION_MERCHANT_ID')}
41 1     1 1 460 sub MERCHANT_LOCATION_ID {return $_[0]->_get_column('MERCHANT_LOCATION_ID')}
42              
43 1     1 1 457 sub FEE_OR_REVENUE_AMOUNT {return $_[0]->_get_column('FEE_OR_REVENUE_AMOUNT')}
44 1     1 1 464 sub FEE_OR_REVENUE_DESCRIPTION {return $_[0]->_get_column('FEE_OR_REVENUE_DESCRIPTION')}
45 1     1 1 456 sub ASSET_BILLING_AMOUNT {return $_[0]->_get_column('ASSET_BILLING_AMOUNT')}
46 1     1 1 472 sub ASSET_BILLING_DESCRIPTION {return $_[0]->_get_column('ASSET_BILLING_DESCRIPTION')}
47 1     1 1 456 sub ASSET_BILLING_TAX {return $_[0]->_get_column('ASSET_BILLING_TAX')}
48 1     1 1 480 sub PAY_IN_GROSS_INDICATOR {return $_[0]->_get_column('PAY_IN_GROSS_INDICATOR')}
49 1     1 1 499 sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')}
50 1     1 1 456 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
51              
52             1;
53              
54             __END__