Class: Nacha::Record::MteAddenda

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

Overview

Represents a Machine Transfer Entry (MTE) addenda record.

Instance Attribute Summary collapse

Attributes inherited from Base

#children, #fields, #line_number, #name, #original_input_line, #parent, #validations

Method Summary

Methods included from AddendaRecordType

#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_type_codeString

Returns Specifies the type of addenda, ‘02’ for MTE terminal information.

Returns:

  • (String)

    Specifies the type of addenda, ‘02’ for MTE terminal information.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#network_identification_codeString

Returns Identifies the ATM network through which the transaction was processed.

Returns:

  • (String)

    Identifies the ATM network through which the transaction was processed.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#record_type_codeString

Returns Identifies the record as an Addenda record with a constant value of ‘7’.

Returns:

  • (String)

    Identifies the record as an Addenda record with a constant value of ‘7’.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#terminal_cityString

Returns The city where the terminal is located.

Returns:

  • (String)

    The city where the terminal is located.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#terminal_identification_codeString

Returns A unique code identifying the ATM terminal.

Returns:

  • (String)

    A unique code identifying the ATM terminal.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#terminal_locationString

Returns The physical location of the terminal.

Returns:

  • (String)

    The physical location of the terminal.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#terminal_stateString

Returns The state where the terminal is located.

Returns:

  • (String)

    The state where the terminal is located.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#trace_numberNacha::Numeric

Returns The trace number of the associated MTE Entry Detail record.

Returns:

  • (Nacha::Numeric)

    The trace number of the associated MTE Entry Detail record.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#transaction_dateString

Returns The date of the transaction in MMDD format.

Returns:

  • (String)

    The date of the transaction in MMDD format.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#transaction_descriptionString

Returns A description of the transaction.

Returns:

  • (String)

    A description of the transaction.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#transaction_serial_numberString

Returns The serial number assigned to the transaction by the terminal.

Returns:

  • (String)

    The serial number assigned to the transaction by the terminal.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end

#transaction_timeString

Returns The time of the transaction in HHMMSS format.

Returns:

  • (String)

    The time of the transaction in HHMMSS format.



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

class MteAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C02', position: 2..3
  nacha_field :transaction_description, inclusion: 'R', contents: 'Alphameric', position: 4..10
  nacha_field :network_identification_code, inclusion: 'O', contents: 'Alphameric', position: 11..13
  nacha_field :terminal_identification_code, inclusion: 'R', contents: 'Alphameric', position: 14..19
  nacha_field :transaction_serial_number, inclusion: 'R', contents: 'Alphameric', position: 20..25
  nacha_field :transaction_date, inclusion: 'R', contents: 'MMDD', position: 26..29
  nacha_field :transaction_time, inclusion: 'R', contents: 'HHMMSS', position: 30..35
  nacha_field :terminal_location, inclusion: 'R', contents: 'Alphameric', position: 36..62
  nacha_field :terminal_city, inclusion: 'R', contents: 'Alphameric', position: 63..77
  nacha_field :terminal_state, inclusion: 'R', contents: 'Alphameric', position: 78..79
  nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94
end