Class: DZero::Segments::ResponseStatus

Inherits:
Base
  • Object
show all
Defined in:
lib/dzero/segments/21_response_status.rb

Instance Attribute Summary

Attributes inherited from Base

#hash

Class Method Summary collapse

Methods inherited from Base

#[], #[]=, build, get_field_by_symbol, get_klass_by_identifier, get_klass_by_symbol, get_symbol_by_field, inherited, #initialize, #merge, register_segment

Methods included from Concerns::Serializer

#to_json, #to_s

Methods included from Concerns::Parser

included

Constructor Details

This class inherits a constructor from DZero::Segments::Base

Class Method Details

.field_id_to_symbolObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/dzero/segments/21_response_status.rb', line 5

def self.field_id_to_symbol
  super.merge({
    'AN' => :response_status,
    'F3' => :authorization_number,
    'FA' => :reject_count,
    'FB' => :reject_code,
    '4F' => :reject_field_occurrence_indicator,
    '5F' => :approved_message_code_count,
    '6F' => :approved_message_code,
    'UF' => :additional_message_information_count,
    'UH' => :additional_message_information_qualifier,
    'FQ' => :additional_message_information,
    'UG' => :additional_message_information_continuity,
    '7F' => :help_desk_phone_number_qualifier,
    '8F' => :help_desk_phone_number,
    'K5' => :transaction_reference_number,
    'A7' => :internal_control_number,
    'MA' => :url,
  })
end