class ACH::Record::Entry
A subclass of ACH::Record::Base
, an Entry
appears in an ACH::Batch
component. It is the main record for representing a particular transaction.
Fields¶ ↑
-
record_type
-
transaction_code
-
routing_number
-
bank_account
-
amount
-
customer_acct
-
customer_name
-
transaction_type
-
addenda
-
bank_15
Constants
- CREDIT_TRANSACTION_CODE_ENDING_DIGITS
List of digits that Credit transaction code should start from.
Public Instance Methods
credit?()
click to toggle source
Return true
if the second digit of a value of the transaction_code
field is one of CREDIT_TRANSACTION_CODE_ENDING_DIGITS
.
@return [Boolean]
# File lib/ach/record/entry.rb, line 52 def credit? CREDIT_TRANSACTION_CODE_ENDING_DIGITS.include? transaction_code.to_s[1..1] end
debit?()
click to toggle source
Return true
if self
is not a credit record.
@return [Boolean]
# File lib/ach/record/entry.rb, line 44 def debit? !credit? end