Class: Io::Flow::V0::Models::AuthorizationActionResultAdyenV4
- Inherits:
-
CardAuthorizationActionResult
- Object
- CardAuthorizationActionResult
- Io::Flow::V0::Models::AuthorizationActionResultAdyenV4
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
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 = {}) ⇒ AuthorizationActionResultAdyenV4
constructor
A new instance of AuthorizationActionResultAdyenV4.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from CardAuthorizationActionResult
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationActionResultAdyenV4
Returns a new instance of AuthorizationActionResultAdyenV4.
28739 28740 28741 28742 28743 28744 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28739 def initialize(incoming={}) super(:type => CardAuthorizationActionResult::Types::AUTHORIZATION_ACTION_RESULT_ADYEN_V4) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:result], 'AuthorizationActionResultAdyenV4') @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.
28737 28738 28739 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28737 def result @result end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
28750 28751 28752 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28750 def copy(incoming={}) AuthorizationActionResultAdyenV4.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
28754 28755 28756 28757 28758 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28754 def subtype_to_hash { :result => result } end |
#to_json ⇒ Object
28746 28747 28748 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 28746 def to_json JSON.dump(to_hash) end |