Class: Nacha::Record::EnrEntryDetail
- Includes:
- DetailRecordType
- Defined in:
- lib/nacha/record/enr_entry_detail.rb
Overview
Represents an Automated Enrollment Entry (ENR) detail record.
Instance Attribute Summary collapse
-
#addenda_record_indicator ⇒ Nacha::Numeric
Indicates that an addenda record is present.
-
#amount ⇒ Nacha::Numeric
The amount of the entry, which is always zero for ENR.
-
#dfi_account_number ⇒ String
The account number for the enrollment.
-
#discretionary_data ⇒ String
Optional data field for use by the receiving DFI.
-
#identification_number ⇒ String
A unique identifier for the enrollee.
-
#number_of_addenda_records ⇒ String
The number of addenda records containing enrollment information.
-
#receiving_company_name ⇒ String
The name of the enrollee.
-
#receiving_dfi_identification ⇒ Nacha::AbaNumber
The routing number of the financial institution where the enrollment is to occur.
-
#record_type_code ⇒ String
Identifies the record as an ENR Entry Detail record with a constant value of ‘6’.
-
#reserved ⇒ String
A reserved field.
-
#trace_number ⇒ Nacha::Numeric
A unique number assigned by the ODFI to trace the enrollment.
-
#transaction_code ⇒ Nacha::Numeric
The transaction code for the enrollment.
Attributes inherited from Base
#children, #fields, #line_number, #name, #original_input_line, #parent, #validations
Method Summary
Methods included from DetailRecordType
#child_record_types, included, #next_record_types
Methods inherited from Base
#add_error, #create_fields_from_definition, #credit?, #debit?, definition, #definition, #errors, #human_name, #initialize, #inspect, matcher, #method_missing, nacha_field, parse, #record_type, record_type, #respond_to_missing?, #to_ach, #to_h, to_h, #to_html, to_json, #to_json, unpack_str, #valid?, #validate, validations
Methods included from Validations::FieldValidations
Constructor Details
This class inherits a constructor from Nacha::Record::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nacha::Record::Base
Instance Attribute Details
#addenda_record_indicator ⇒ Nacha::Numeric
Returns Indicates that an addenda record is present.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#amount ⇒ Nacha::Numeric
Returns The amount of the entry, which is always zero for ENR.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#dfi_account_number ⇒ String
Returns The account number for the enrollment.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#discretionary_data ⇒ String
Returns Optional data field for use by the receiving DFI.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#identification_number ⇒ String
Returns A unique identifier for the enrollee.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#number_of_addenda_records ⇒ String
Returns The number of addenda records containing enrollment information.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#receiving_company_name ⇒ String
Returns The name of the enrollee.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#receiving_dfi_identification ⇒ Nacha::AbaNumber
Returns The routing number of the financial institution where the enrollment is to occur.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#record_type_code ⇒ String
Returns Identifies the record as an ENR Entry Detail record with a constant value of ‘6’.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#reserved ⇒ String
Returns A reserved field.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#trace_number ⇒ Nacha::Numeric
Returns A unique number assigned by the ODFI to trace the enrollment.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#transaction_code ⇒ Nacha::Numeric
Returns The transaction code for the enrollment.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/nacha/record/enr_entry_detail.rb', line 34 class EnrEntryDetail < Nacha::Record::Base include DetailRecordType nacha_field :record_type_code, inclusion: 'M', contents: 'C6', position: 1..1 nacha_field :transaction_code, inclusion: 'M', contents: 'Numeric', position: 2..3 nacha_field :receiving_dfi_identification, inclusion: 'M', contents: 'TTTTAAAAC', position: 4..12 nacha_field :dfi_account_number, inclusion: 'M', contents: 'Alphameric', position: 13..29 nacha_field :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39 nacha_field :identification_number, inclusion: 'O', contents: 'Alphameric', position: 40..54 nacha_field :number_of_addenda_records, inclusion: 'M', contents: 'Alphameric', position: 55..58 nacha_field :receiving_company_name, inclusion: 'R', contents: 'Alphameric', position: 59..74 nacha_field :reserved, inclusion: 'M', contents: 'Alphameric', position: 75..76 nacha_field :discretionary_data, inclusion: 'O', contents: 'Alphameric', position: 77..78 nacha_field :addenda_record_indicator, inclusion: 'M', contents: 'Numeric', position: 79..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |