File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/Summary.pm
Criterion Covered Total %
statement 29 29 100.0
branch n/a
condition n/a
subroutine 23 23 100.0
pod 19 20 95.0
total 71 72 98.6


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::GRRCN::Summary;
2             $Finance::AMEX::Transaction::GRRCN::Summary::VERSION = '0.003';
3 7     7   48 use strict;
  7         16  
  7         191  
4 7     7   35 use warnings;
  7         16  
  7         177  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Summary Rows
7              
8 7     7   41 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  7         17  
  7         4211  
9              
10             sub field_map {
11             return {
12 2     2 0 31 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             UNIQUE_PAYMENT_REFERENCE_NUMBER => [50, 18],
19             PAYMENT_NET_AMOUNT => [68, 16],
20             PAYMENT_GROSS_AMOUNT => [84, 16],
21             PAYMENT_DISCOUNT_AMOUNT => [100, 16],
22             PAYMENT_SERVICE_FEE_AMOUNT => [116, 16],
23             PAYMENT_ADJUSTMENT_AMOUNT => [132, 16],
24             PAYMENT_TAX_AMOUNT => [148, 16],
25             OPENING_DEBIT_BALANCE_AMOUNT => [164, 16],
26             PAYEE_DIRECT_DEPOSIT_NUMBER => [180, 17],
27             BANK_ACCOUNT_NUMBER => [197, 34],
28             INTERNATIONAL_BANK_ACCOUNT_NUMBER => [231, 34],
29             BANK_IDENTIFIER_CODE => [265, 15],
30             };
31             }
32              
33 2     2 1 511 sub type {return 'SUMMARY'}
34              
35 1     1 1 467 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
36 1     1 1 461 sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
37 1     1 1 452 sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')}
38 1     1 1 452 sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
39 1     1 1 463 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
40 1     1 1 452 sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
41 1     1 1 454 sub UNIQUE_PAYMENT_REFERENCE_NUMBER {return $_[0]->_get_column('UNIQUE_PAYMENT_REFERENCE_NUMBER')}
42 1     1 1 478 sub PAYMENT_NET_AMOUNT {return $_[0]->_get_column('PAYMENT_NET_AMOUNT')}
43 1     1 1 456 sub PAYMENT_GROSS_AMOUNT {return $_[0]->_get_column('PAYMENT_GROSS_AMOUNT')}
44 1     1 1 8 sub PAYMENT_DISCOUNT_AMOUNT {return $_[0]->_get_column('PAYMENT_DISCOUNT_AMOUNT')}
45 1     1 1 498 sub PAYMENT_SERVICE_FEE_AMOUNT {return $_[0]->_get_column('PAYMENT_SERVICE_FEE_AMOUNT')}
46 1     1 1 452 sub PAYMENT_ADJUSTMENT_AMOUNT {return $_[0]->_get_column('PAYMENT_ADJUSTMENT_AMOUNT')}
47 1     1 1 453 sub PAYMENT_TAX_AMOUNT {return $_[0]->_get_column('PAYMENT_TAX_AMOUNT')}
48 1     1 1 449 sub OPENING_DEBIT_BALANCE_AMOUNT {return $_[0]->_get_column('OPENING_DEBIT_BALANCE_AMOUNT')}
49 1     1 1 455 sub PAYEE_DIRECT_DEPOSIT_NUMBER {return $_[0]->_get_column('PAYEE_DIRECT_DEPOSIT_NUMBER')}
50 1     1 1 488 sub BANK_ACCOUNT_NUMBER {return $_[0]->_get_column('BANK_ACCOUNT_NUMBER')}
51 1     1 1 470 sub INTERNATIONAL_BANK_ACCOUNT_NUMBER {return $_[0]->_get_column('INTERNATIONAL_BANK_ACCOUNT_NUMBER')}
52 1     1 1 469 sub BANK_IDENTIFIER_CODE {return $_[0]->_get_column('BANK_IDENTIFIER_CODE')}
53              
54             1;
55              
56             __END__