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.
31001 31002 31003 31004 31005 31006 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31001 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.
30999 31000 31001 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30999 def result @result end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
31012 31013 31014 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31012 def copy(incoming={}) AuthorizationActionResultAdyenV4.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
31016 31017 31018 31019 31020 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31016 def subtype_to_hash { :result => result } end |
#to_json ⇒ Object
31008 31009 31010 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31008 def to_json JSON.dump(to_hash) end |