class TotalRecord
Public Instance Methods
ordering_party_bank_clearing_number()
click to toggle source
# File lib/payment_dta/payments/total_record.rb, line 17 def ordering_party_bank_clearing_number ''.ljust(7) end
payment_type()
click to toggle source
# File lib/payment_dta/payments/total_record.rb, line 25 def payment_type '0' end
record()
click to toggle source
# File lib/payment_dta/payments/total_record.rb, line 8 def record segment1 end
requested_processing_date()
click to toggle source
# File lib/payment_dta/payments/total_record.rb, line 29 def requested_processing_date '000000' end
segment1()
click to toggle source
Calls superclass method
DTA::Payments::Base#segment1
# File lib/payment_dta/payments/total_record.rb, line 4 def segment1 super + total_amount + reserve_field(59) end
total_amount()
click to toggle source
# File lib/payment_dta/payments/total_record.rb, line 12 def total_amount number = BigDecimal.new(@data[:total_amount].to_s, 16).round(3) number.to_s('F').gsub(/\./,',').ljust(16) end
transaction_type()
click to toggle source
# File lib/payment_dta/payments/total_record.rb, line 21 def transaction_type '890' end