Class: Nacha::Record::MteAddenda
- Includes:
- AddendaRecordType
- Defined in:
- lib/nacha/record/mte_addenda.rb
Overview
Represents a Machine Transfer Entry (MTE) addenda record.
Instance Attribute Summary collapse
-
#addenda_type_code ⇒ String
Specifies the type of addenda, ‘02’ for MTE terminal information.
-
#network_identification_code ⇒ String
Identifies the ATM network through which the transaction was processed.
-
#record_type_code ⇒ String
Identifies the record as an Addenda record with a constant value of ‘7’.
-
#terminal_city ⇒ String
The city where the terminal is located.
-
#terminal_identification_code ⇒ String
A unique code identifying the ATM terminal.
-
#terminal_location ⇒ String
The physical location of the terminal.
-
#terminal_state ⇒ String
The state where the terminal is located.
-
#trace_number ⇒ Nacha::Numeric
The trace number of the associated MTE Entry Detail record.
-
#transaction_date ⇒ String
The date of the transaction in MMDD format.
-
#transaction_description ⇒ String
A description of the transaction.
-
#transaction_serial_number ⇒ String
The serial number assigned to the transaction by the terminal.
-
#transaction_time ⇒ String
The time of the transaction in HHMMSS format.
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
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_code ⇒ String
Returns 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_code ⇒ String
Returns 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_code ⇒ String
Returns 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_city ⇒ String
Returns 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_code ⇒ String
Returns 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_location ⇒ String
Returns 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_state ⇒ String
Returns 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_number ⇒ Nacha::Numeric
Returns 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_date ⇒ String
Returns 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_description ⇒ String
Returns 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_number ⇒ String
Returns 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_time ⇒ String
Returns 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 |