Class: Io::Flow::V0::Models::ActionUseSdkAdyenV3
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Use the Adyen Web Component v3.1 and Checkout.create. 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_v3`. docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration#get-the-3d-secure-2-device-fingerprint
Instance Attribute Summary collapse
-
#authentication_token ⇒ Object
readonly
Returns the value of attribute authentication_token.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#origin_key ⇒ Object
readonly
Returns the value of attribute origin_key.
Attributes inherited from Action
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ActionUseSdkAdyenV3
constructor
A new instance of ActionUseSdkAdyenV3.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Action
Constructor Details
#initialize(incoming = {}) ⇒ ActionUseSdkAdyenV3
Returns a new instance of ActionUseSdkAdyenV3.
25443 25444 25445 25446 25447 25448 25449 25450 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25443 def initialize(incoming={}) super(:type => Action::Types::ACTION_USE_SDK_ADYEN_V3) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:origin_key, :authentication_token], 'ActionUseSdkAdyenV3') @expires_at = (x = opts.delete(:expires_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @origin_key = HttpClient::Preconditions.assert_class('origin_key', opts.delete(:origin_key), String) @authentication_token = (x = opts.delete(:authentication_token); x.is_a?(::Io::Flow::V0::Models::SdkAdyenV3AuthenticationToken) ? x : ::Io::Flow::V0::Models::SdkAdyenV3AuthenticationToken.from_json(x)) end |
Instance Attribute Details
#authentication_token ⇒ Object (readonly)
Returns the value of attribute authentication_token.
25441 25442 25443 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25441 def authentication_token @authentication_token end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
25441 25442 25443 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25441 def expires_at @expires_at end |
#origin_key ⇒ Object (readonly)
Returns the value of attribute origin_key.
25441 25442 25443 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25441 def origin_key @origin_key end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
25456 25457 25458 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25456 def copy(incoming={}) ActionUseSdkAdyenV3.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
25460 25461 25462 25463 25464 25465 25466 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25460 def subtype_to_hash { :expires_at => expires_at, :origin_key => origin_key, :authentication_token => authentication_token.to_hash } end |
#to_json ⇒ Object
25452 25453 25454 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25452 def to_json JSON.dump(to_hash) end |