lib/ach/file/control.rb in ach_builder-0.0.2 vs lib/ach/file/control.rb in ach_builder-0.2.1
- old
+ new
@@ -1,15 +1,27 @@
module ACH
- class File::Control < Record
+ # Every ACH::File ends with an ACH::File::Control record.
+ #
+ # == Fields:
+ #
+ # * record_type
+ # * batch_count
+ # * block_count
+ # * file_entry_addenda_count
+ # * entry_hash
+ # * total_debit_amount
+ # * total_credit_amount
+ # * bank_39
+ class File::Control < Record::Base
fields :record_type,
:batch_count,
:block_count,
- :file_entry_count,
+ :file_entry_addenda_count,
:entry_hash,
:total_debit_amount,
:total_credit_amount,
:bank_39
- defaults :record_type => 9,
+ defaults :record_type => FILE_CONTROL_RECORD_TYPE,
:bank_39 => ''
end
end