Class: Nacha::Record::TrxEntryDetail

Inherits:
Base
  • Object
show all
Includes:
DetailRecordType
Defined in:
lib/nacha/record/trx_entry_detail.rb

Overview

Represents a Truncated Entry with Remittance Data (TRX) detail record.

Instance Attribute Summary collapse

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

included

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_indicatorNacha::Numeric

Returns Indicates that one or more addenda records are present.

Returns:

  • (Nacha::Numeric)

    Indicates that one or more addenda records are present.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_numberString

Returns The account number being credited or debited.

Returns:

  • (String)

    The account number being credited or debited.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_numberString

Returns An identifier for the receiver.

Returns:

  • (String)

    An identifier for the receiver.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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

#item_type_indicatorString

Returns An optional indicator for the item type.

Returns:

  • (String)

    An optional indicator for the item type.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_recordsNacha::Numeric

Returns The number of addenda records that follow.

Returns:



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_id_numberString

Returns The name or identifier of the receiving company.

Returns:

  • (String)

    The name or identifier of the receiving company.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_identificationNacha::AbaNumber

Returns The routing number of the financial institution receiving the entry.

Returns:

  • (Nacha::AbaNumber)

    The routing number of the financial institution receiving the entry.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_codeString

Returns Identifies the record as a TRX Entry Detail record with a constant value of ‘6’.

Returns:

  • (String)

    Identifies the record as a TRX 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
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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

#reservedString

Returns A reserved field.

Returns:

  • (String)

    A reserved field.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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

#total_amountNacha::Numeric

Returns The total amount of the entry.

Returns:



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_numberNacha::Numeric

Returns A unique number assigned by the ODFI to trace the entry.

Returns:

  • (Nacha::Numeric)

    A unique number assigned by the ODFI to trace the entry.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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_codeNacha::Numeric

Returns Defines the type of account and transaction.

Returns:



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/nacha/record/trx_entry_detail.rb', line 34

class TrxEntryDetail < 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: 'R', contents: 'Alphameric', position: 13..29
  nacha_field :total_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: 'Numeric', position: 55..58
  nacha_field :receiving_company_name_id_number, inclusion: 'R', contents: 'Alphameric',
    position: 59..74
  nacha_field :reserved, inclusion: 'M', contents: 'C  ', position: 75..76
  nacha_field :item_type_indicator, 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