Class: Io::Flow::V0::Models::AuthorizationActionResultAdyenV3
- Inherits:
-
CardAuthorizationActionResult
- Object
- CardAuthorizationActionResult
- Io::Flow::V0::Models::AuthorizationActionResultAdyenV3
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Used to complete a ‘use_sdk_adyen_v3` action after the `onComplete()` function passed to Adyen SDK’s is invoked with a parameter containing the result data.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes inherited from CardAuthorizationActionResult
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AuthorizationActionResultAdyenV3
constructor
A new instance of AuthorizationActionResultAdyenV3.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from CardAuthorizationActionResult
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationActionResultAdyenV3
Returns a new instance of AuthorizationActionResultAdyenV3.
30974 30975 30976 30977 30978 30979 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30974 def initialize(incoming={}) super(:type => CardAuthorizationActionResult::Types::AUTHORIZATION_ACTION_RESULT_ADYEN_V3) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:result], 'AuthorizationActionResultAdyenV3') @result = HttpClient::Preconditions.assert_class('result', HttpClient::Helper.to_object(opts.delete(:result)), Hash) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
30972 30973 30974 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30972 def result @result end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
30985 30986 30987 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30985 def copy(incoming={}) AuthorizationActionResultAdyenV3.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
30989 30990 30991 30992 30993 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30989 def subtype_to_hash { :result => result } end |
#to_json ⇒ Object
30981 30982 30983 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30981 def to_json JSON.dump(to_hash) end |