lib/ach/batch/control.rb in ach_builder-0.0.2 vs lib/ach/batch/control.rb in ach_builder-0.2.1

- old
+ new

@@ -1,19 +1,34 @@ module ACH - class Batch::Control < Record + # Every ACH::Batch component ends with a batch control record. + # + # == Fields + # + # * record_type + # * service_class_code + # * entry_addenda_count + # * entry_hash + # * total_debit_amount + # * total_credit_amount + # * company_id + # * authen_code + # * bank_6 + # * origin_dfi_id + # * batch_number + class Batch::Control < Record::Base fields :record_type, :service_class_code, - :entry_count, + :entry_addenda_count, :entry_hash, :total_debit_amount, :total_credit_amount, :company_id, :authen_code, :bank_6, :origin_dfi_id, :batch_number - defaults :record_type => 8, + defaults :record_type => BATCH_CONTROL_RECORD_TYPE, :authen_code => '', :bank_6 => '' end end