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.004';
3 8     8   55 use strict;
  8         21  
  8         240  
4 8     8   42 use warnings;
  8         20  
  8         214  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Fees and Revenues Record Rows
7              
8 8     8   40 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  8         18  
  8         4363  
9              
10             sub field_map {
11             return {
12 2     2 0 42 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 641 sub type {return 'FEEREVENUE'}
33              
34 1     1 1 590 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
35 1     1 1 594 sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
36 1     1 1 589 sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
37 1     1 1 591 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
38 1     1 1 604 sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
39              
40 1     1 1 629 sub SUBMISSION_MERCHANT_ID {return $_[0]->_get_column('SUBMISSION_MERCHANT_ID')}
41 1     1 1 612 sub MERCHANT_LOCATION_ID {return $_[0]->_get_column('MERCHANT_LOCATION_ID')}
42              
43 1     1 1 629 sub FEE_OR_REVENUE_AMOUNT {return $_[0]->_get_column('FEE_OR_REVENUE_AMOUNT')}
44 1     1 1 583 sub FEE_OR_REVENUE_DESCRIPTION {return $_[0]->_get_column('FEE_OR_REVENUE_DESCRIPTION')}
45 1     1 1 646 sub ASSET_BILLING_AMOUNT {return $_[0]->_get_column('ASSET_BILLING_AMOUNT')}
46 1     1 1 585 sub ASSET_BILLING_DESCRIPTION {return $_[0]->_get_column('ASSET_BILLING_DESCRIPTION')}
47 1     1 1 14 sub ASSET_BILLING_TAX {return $_[0]->_get_column('ASSET_BILLING_TAX')}
48 1     1 1 588 sub PAY_IN_GROSS_INDICATOR {return $_[0]->_get_column('PAY_IN_GROSS_INDICATOR')}
49 1     1 1 630 sub BATCH_CODE {return $_[0]->_get_column('BATCH_CODE')}
50 1     1 1 582 sub BILL_CODE {return $_[0]->_get_column('BILL_CODE')}
51              
52             1;
53              
54             __END__