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.
28712 28713 28714 28715 28716 28717 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28712 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.
28710 28711 28712 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28710 def result @result end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
28723 28724 28725 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28723 def copy(incoming={}) AuthorizationActionResultAdyenV3.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
28727 28728 28729 28730 28731 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28727 def subtype_to_hash { :result => result } end |
#to_json ⇒ Object
28719 28720 28721 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28719 def to_json JSON.dump(to_hash) end |