Class: OnlinePayments::SDK::Domain::AcquirerSelectionInformation

Inherits:
OnlinePayments::SDK::DataObject show all
Defined in:
lib/onlinepayments/sdk/domain/acquirer_selection_information.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#fallback_levelInteger

Returns the current value of fallback_level.

Returns:

  • (Integer)

    the current value of fallback_level



12
13
14
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 12

def fallback_level
  @fallback_level
end

#resultString

Returns the current value of result.

Returns:

  • (String)

    the current value of result



12
13
14
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 12

def result
  @result
end

#rule_nameString

Returns the current value of rule_name.

Returns:

  • (String)

    the current value of rule_name



12
13
14
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 12

def rule_name
  @rule_name
end

Instance Method Details

#from_hash(hash) ⇒ Object



26
27
28
29
30
31
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 26

def from_hash(hash)
  super
  @fallback_level = hash['fallbackLevel'] if hash.key? 'fallbackLevel'
  @result = hash['result'] if hash.key? 'result'
  @rule_name = hash['ruleName'] if hash.key? 'ruleName'
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
24
# File 'lib/onlinepayments/sdk/domain/acquirer_selection_information.rb', line 18

def to_h
  hash = super
  hash['fallbackLevel'] = @fallback_level unless @fallback_level.nil?
  hash['result'] = @result unless @result.nil?
  hash['ruleName'] = @rule_name unless @rule_name.nil?
  hash
end