Class: Worldline::Acquiring::SDK::V1::Domain::AdditionalResponseData
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::AdditionalResponseData
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/additional_response_data.rb
Instance Attribute Summary collapse
-
#merchant_advice_code ⇒ String
The current value of merchant_advice_code.
-
#merchant_advice_code_description ⇒ String
The current value of merchant_advice_code_description.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#merchant_advice_code ⇒ String
Returns the current value of merchant_advice_code.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/additional_response_data.rb', line 13 def merchant_advice_code @merchant_advice_code end |
#merchant_advice_code_description ⇒ String
Returns the current value of merchant_advice_code_description.
13 14 15 |
# File 'lib/worldline/acquiring/sdk/v1/domain/additional_response_data.rb', line 13 def merchant_advice_code_description @merchant_advice_code_description end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/worldline/acquiring/sdk/v1/domain/additional_response_data.rb', line 27 def from_hash(hash) super if hash.has_key? 'merchantAdviceCode' @merchant_advice_code = hash['merchantAdviceCode'] end if hash.has_key? 'merchantAdviceCodeDescription' @merchant_advice_code_description = hash['merchantAdviceCodeDescription'] end end |
#to_h ⇒ Hash
20 21 22 23 24 25 |
# File 'lib/worldline/acquiring/sdk/v1/domain/additional_response_data.rb', line 20 def to_h hash = super hash['merchantAdviceCode'] = @merchant_advice_code unless @merchant_advice_code.nil? hash['merchantAdviceCodeDescription'] = @merchant_advice_code_description unless @merchant_advice_code_description.nil? hash end |