File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/TaxRecord.pm
Criterion Covered Total %
statement 9 23 39.1
branch n/a
condition n/a
subroutine 3 17 17.6
pod 14 14 100.0
total 26 54 48.1


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::GRRCN::TaxRecord 0.005;
2              
3 9     9   55 use strict;
  9         20  
  9         226  
4 9     9   36 use warnings;
  9         17  
  9         221  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) TaxRecord Rows
7              
8 9     9   39 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  9         25  
  9         3727  
9              
10             sub field_map {
11             return [
12 0     0 1   {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             {TAX_TYPE_CODE => [50, 2]},
19             {TAX_DESCRIPTION => [52, 64]},
20             {TAX_BASE_AMOUNT => [116, 24]},
21             {TAX_PRESENT_DATE => [140, 8]},
22             {TAX_RATE => [148, 20]},
23             {TAX_AMOUNT => [168, 24]},
24             {FILLER1 => [192, 609]},
25             ];
26             }
27              
28 0     0 1   sub type {return 'TAXRECORD'}
29              
30 0     0 1   sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
31 0     0 1   sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
32 0     0 1   sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')}
33 0     0 1   sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
34 0     0 1   sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
35 0     0 1   sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
36 0     0 1   sub TAX_TYPE_CODE {return $_[0]->_get_column('TAX_TYPE_CODE')}
37 0     0 1   sub TAX_DESCRIPTION {return $_[0]->_get_column('TAX_DESCRIPTION')}
38 0     0 1   sub TAX_BASE_AMOUNT {return $_[0]->_get_column('TAX_BASE_AMOUNT')}
39 0     0 1   sub TAX_PRESENT_DATE {return $_[0]->_get_column('TAX_PRESENT_DATE')}
40 0     0 1   sub TAX_RATE {return $_[0]->_get_column('TAX_RATE')}
41 0     0 1   sub TAX_AMOUNT {return $_[0]->_get_column('TAX_AMOUNT')}
42              
43             1;
44              
45             __END__