Sha256: 530b6a2ca82585125efec82890a2908a2aa19d83df8dd2073b6f3829249e2deb
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
#ACH-Builder Ruby helper for creating ACH files. It's API is designed to be as flexible as possible. Inspired by [ach](http://github.com/jm81/ach) - Ruby helper [ACH::Builder](http://github.com/camerb/ACH-Builder) - Perl module with similar functionality ##Example # attributes for records may be passed as parameters, as well as modified in block # these attributes will be passed to all inner entities in a cascade way, if required file = File.new(:company_id => '11-11111', :company_name => 'MY COMPANY') do immediate_dest_name 'COMMERCE BANK' immediate_origin '123123123' immediate_oreigin_name 'MYCOMPANY' ['WEB', 'TEL'].each do |code| batch(:entry_class_code => code, :company_entry_descr => 'TV-TELCOM') do effective_date Time.now.strftime('%y%m%d') origin_dfi_id "00000000" entry :customer_name => 'JOHN SMITH', :customer_acct => '61242882282', :amount => '2501', :routing_number => '010010101', :bank_account => '103030030' end end end file.valid? # => false file.errors # => {"ACH::File::Header#1"=>{:immediate_dest=>"is required"}} file.header.immediate_dest = '123123123' file.write('ach_01.txt') ##Copyright Copyright (c) 2011 Artem Kuzko, released under the MIT license
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ach_builder-0.0.1.1 | README.md |