class Io::Flow::V0::Models::ActionUseSdkAdyenV4

Use the Adyen Web Component v4.7 and Checkout.createFromAction. The results of this operation will be used to update the payment request with a ‘payment_method_data` of type `complete_authorization_card` and a `card_authorization_action_result` type of `adyen_v4`. docs.adyen.com/online-payments/3d-secure/native-3ds2/web-component?tab=v67-payment-response_1#3ds2-component

Attributes

action[R]
client_key[R]
expires_at[R]

Public Class Methods

new(incoming={}) click to toggle source
Calls superclass method Io::Flow::V0::Models::Action::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 29203
def initialize(incoming={})
  super(:type => Action::Types::ACTION_USE_SDK_ADYEN_V4)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:client_key, :action], 'ActionUseSdkAdyenV4')
  @expires_at = (x = opts.delete(:expires_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
  @client_key = HttpClient::Preconditions.assert_class('client_key', opts.delete(:client_key), String)
  @action = HttpClient::Preconditions.assert_class('action', HttpClient::Helper.to_object(opts.delete(:action)), Hash)
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29216
def copy(incoming={})
  ActionUseSdkAdyenV4.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 29220
def subtype_to_hash
  {
    :expires_at => expires_at,
    :client_key => client_key,
    :action => action
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29212
def to_json
  JSON.dump(to_hash)
end