Class: Nacha::Record::PosAddenda
- Includes:
- AddendaRecordType
- Defined in:
- lib/nacha/record/pos_addenda.rb
Overview
Represents a Point-of-Sale (POS) addenda record.
Instance Attribute Summary collapse
-
#addenda_type_code ⇒ String
Specifies the type of addenda, ‘02’ for POS terminal information.
-
#authorization_code_or_card_expiration_date ⇒ String
The authorization code for the transaction or the card’s expiration date.
-
#record_type_code ⇒ String
Identifies the record as an Addenda record with a constant value of ‘7’.
-
#reference_information_1 ⇒ String
First reference field for additional transaction information.
-
#reference_information_2 ⇒ String
Second reference field for additional transaction information.
-
#terminal_city ⇒ String
The city where the terminal is located.
-
#terminal_identification_code ⇒ String
A unique code identifying the POS terminal.
-
#terminal_location ⇒ String
The physical location of the POS terminal.
-
#terminal_state ⇒ Nacha::Numeric
The state where the terminal is located.
-
#trace_number ⇒ Nacha::Numeric
The trace number of the associated POS Entry Detail record.
-
#transaction_date ⇒ String
The date of the POS transaction.
-
#transaction_serial_number ⇒ String
The serial number of the transaction from the terminal.
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 POS terminal information.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#authorization_code_or_card_expiration_date ⇒ String
Returns The authorization code for the transaction or the card’s expiration date.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', 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 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#reference_information_1 ⇒ String
Returns First reference field for additional transaction information.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#reference_information_2 ⇒ String
Returns Second reference field for additional transaction information.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', 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 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', 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 POS terminal.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#terminal_location ⇒ String
Returns The physical location of the POS terminal.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#terminal_state ⇒ Nacha::Numeric
Returns The state where the terminal is located.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', 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 POS Entry Detail record.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#transaction_date ⇒ String
Returns The date of the POS transaction.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |
#transaction_serial_number ⇒ String
Returns The serial number of the transaction from the terminal.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nacha/record/pos_addenda.rb', line 34 class PosAddenda < 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 :reference_information_1, inclusion: 'O', contents: 'Alphameric', position: 4..10 nacha_field :reference_information_2, 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: 'O', contents: 'Alphameric', position: 26..29 nacha_field :authorization_code_or_card_expiration_date, inclusion: 'O', contents: 'Alphameric', 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: 'M', contents: 'Numeric', position: 78..79 nacha_field :trace_number, inclusion: 'M', contents: 'Numeric', position: 80..94 end |