Class: Nacha::Record::AdvEntryDetail

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

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

#ach_operator_dataString

Returns Optional data used by an ACH Operator.

Returns:

  • (String)

    Optional data used by an ACH Operator.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#addenda_record_indicatorNacha::Numeric

Returns A code indicating whether an addenda record follows, ‘1’ for yes and ‘0’ for no.

Returns:

  • (Nacha::Numeric)

    A code indicating whether an addenda record follows, ‘1’ for yes and ‘0’ for no.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#advice_routing_numberNacha::Numeric

Returns The routing number of the financial institution responsible for the advice of entry.

Returns:

  • (Nacha::Numeric)

    The routing number of the financial institution responsible for the advice of entry.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#amountNacha::Numeric

Returns The total dollar amount of the entry.

Returns:



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#dfi_account_numberString

Returns The account number at the receiving financial institution to be credited or debited.

Returns:

  • (String)

    The account number at the receiving financial institution to be credited or debited.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#discretionary_dataString

Returns Optional data field which can be used by the ODFI or Originator for their own purposes.

Returns:

  • (String)

    Optional data field which can be used by the ODFI or Originator for their own purposes.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#file_identificationString

Returns An optional field used by an ACH Operator to uniquely identify the file.

Returns:

  • (String)

    An optional field used by an ACH Operator to uniquely identify the file.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#individual_nameString

Returns The name of the Receiver from the original Entry Detail Record.

Returns:

  • (String)

    The name of the Receiver from the original Entry Detail Record.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#julian_date_createdNacha::Numeric

Returns The Julian date on which the ADV entry was created.

Returns:

  • (Nacha::Numeric)

    The Julian date on which the ADV entry was created.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#receiving_dfi_identificationNacha::AbaNumber

Returns The routing number of the financial institution that is to receive the credit or debit entry.

Returns:

  • (Nacha::AbaNumber)

    The routing number of the financial institution that is to receive the credit or debit entry.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#record_type_codeString

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

Returns:

  • (String)

    Identifies the record as an ADV Entry Detail record with a constant value of ‘6’.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#routing_number_of_ach_operatorString

Returns The routing number of the ACH Operator that created the ADV entry.

Returns:

  • (String)

    The routing number of the ACH Operator that created the ADV entry.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#sequence_numberNacha::Numeric

Returns A number assigned by the ACH Operator to uniquely identify the entry within the file.

Returns:

  • (Nacha::Numeric)

    A number assigned by the ACH Operator to uniquely identify the entry within the file.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end

#transaction_codeNacha::Numeric

Returns Identifies the type of transaction, such as a credit or debit.

Returns:

  • (Nacha::Numeric)

    Identifies the type of transaction, such as a credit or debit.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nacha/record/adv_entry_detail.rb', line 37

class AdvEntryDetail < 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 :amount, inclusion: 'M', contents: '$$$$$$$$¢¢', position: 30..39
  nacha_field :advice_routing_number, inclusion: 'M', contents: 'Numeric', position: 40..48
  nacha_field :file_identification, inclusion: 'O', contents: 'Alphameric', position: 49..53
  nacha_field :ach_operator_data, inclusion: 'O', contents: 'Alphameric', position: 54..54
  nacha_field :individual_name, inclusion: 'R', contents: 'Alphameric', position: 55..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 :routing_number_of_ach_operator, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :julian_date_created, inclusion: 'M', contents: 'Numeric', position: 88..90
  nacha_field :sequence_number, inclusion: 'M', contents: 'Numeric', position: 91..94
end