File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/TxnPricing.pm
Criterion Covered Total %
statement 28 28 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 18 19 94.7
total 68 69 98.5


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::GRRCN::TxnPricing;
2             $Finance::AMEX::Transaction::GRRCN::TxnPricing::VERSION = '0.003';
3 7     7   57 use strict;
  7         15  
  7         192  
4 7     7   33 use warnings;
  7         18  
  7         173  
5              
6             # ABSTRACT: Parse AMEX Global Reconciliation (GRRCN) Transaction or ROC pricing Rows
7              
8 7     7   34 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  7         15  
  7         3726  
9              
10             sub field_map {
11             return {
12 80     80 0 1398 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              
20             MERCHANT_LOCATION_ID => [65, 15],
21             INVOICE_REFERENCE_NUMBER => [95, 30],
22             SELLER_ID => [125, 20],
23             CARDMEMBER_ACCOUNT_NUMBER => [145, 19],
24             TRANSACTION_AMOUNT => [164, 16],
25             TRANSACTION_DATE => [180, 8],
26             FEE_CODE => [188, 2],
27             FEE_AMOUNT => [197, 22],
28             DISCOUNT_RATE => [216, 7],
29             DISCOUNT_AMOUNT => [226, 22],
30             };
31             }
32              
33 80     80 1 19061 sub type {return 'TXNPRICING'}
34              
35 40     40 1 16198 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
36 40     40 1 17966 sub PAYEE_MERCHANT_ID {return $_[0]->_get_column('PAYEE_MERCHANT_ID')}
37 40     40 1 18088 sub SETTLEMENT_ACCOUNT_TYPE_CODE {return $_[0]->_get_column('SETTLEMENT_ACCOUNT_TYPE_CODE')}
38 40     40 1 18538 sub AMERICAN_EXPRESS_PAYMENT_NUMBER {return $_[0]->_get_column('AMERICAN_EXPRESS_PAYMENT_NUMBER')}
39 40     40 1 18369 sub PAYMENT_DATE {return $_[0]->_get_column('PAYMENT_DATE')}
40 40     40 1 17605 sub PAYMENT_CURRENCY {return $_[0]->_get_column('PAYMENT_CURRENCY')}
41 40     40 1 18087 sub SUBMISSION_MERCHANT_ID {return $_[0]->_get_column('SUBMISSION_MERCHANT_ID')}
42              
43 40     40 1 14044 sub MERCHANT_LOCATION_ID {return $_[0]->_get_column('MERCHANT_LOCATION_ID')}
44 40     40 1 18512 sub INVOICE_REFERENCE_NUMBER {return $_[0]->_get_column('INVOICE_REFERENCE_NUMBER')}
45 40     40 1 17452 sub SELLER_ID {return $_[0]->_get_column('SELLER_ID')}
46 40     40 1 18418 sub CARDMEMBER_ACCOUNT_NUMBER {return $_[0]->_get_column('CARDMEMBER_ACCOUNT_NUMBER')}
47 40     40 1 17566 sub TRANSACTION_AMOUNT {return $_[0]->_get_column('TRANSACTION_AMOUNT')}
48 40     40 1 18549 sub TRANSACTION_DATE {return $_[0]->_get_column('TRANSACTION_DATE')}
49 40     40 1 14884 sub FEE_CODE {return $_[0]->_get_column('FEE_CODE')}
50 40     40 1 17654 sub FEE_AMOUNT {return $_[0]->_get_column('FEE_AMOUNT')}
51 40     40 1 18384 sub DISCOUNT_RATE {return $_[0]->_get_column('DISCOUNT_RATE')}
52 40     40 1 18129 sub DISCOUNT_AMOUNT {return $_[0]->_get_column('DISCOUNT_AMOUNT')}
53              
54             1;
55              
56             __END__