Class: Io::Flow::V0::Models::AuthorizationActionResultAdyenV4

Inherits:
CardAuthorizationActionResult show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from CardAuthorizationActionResult

#type

Instance Method Summary collapse

Methods inherited from CardAuthorizationActionResult

from_json, #to_hash

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

#resultObject (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_hashObject



31016
31017
31018
31019
31020
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31016

def subtype_to_hash
  {
    :result => result
  }
end

#to_jsonObject



31008
31009
31010
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31008

def to_json
  JSON.dump(to_hash)
end