class Io::Flow::V0::Models::AuthorizationActionResultAdyenV3

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.

Attributes

result[R]

Public Class Methods

new(incoming={}) click to toggle source
# 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

Public Instance Methods

copy(incoming={}) click to toggle source
# 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() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 30989
def subtype_to_hash
  {
    :result => result
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 30981
def to_json
  JSON.dump(to_hash)
end