Sha256: 8a8b049c1c0614a3d05f87208589a7247b94138cd11bd3fd57f7f12f6d9aac22

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

module ACH
  class Batch::Header < Record
    fields :record_type,
      :service_class_code,
      :company_name,
      :company_note_data,
      :company_id,
      :entry_class_code,
      :company_entry_descr,
      :date,
      :effective_date,
      :settlement_date,
      :origin_status_code,
      :origin_dfi_id,
      :batch_number
    
    defaults :record_type => 5,
      :service_class_code => 200,
      :company_note_data  => '',
      :date               => lambda{ Time.now.strftime("%y%m%d") },
      :settlement_date    => '',
      :origin_status_code => ''
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ach_builder-0.0.2 lib/ach/batch/header.rb
ach_builder-0.0.1.1 lib/ach/batch/header.rb