Class: Io::Flow::V0::Models::ActionUseSdkAdyenV4
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
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
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#client_key ⇒ Object
readonly
Returns the value of attribute client_key.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
Attributes inherited from Action
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ActionUseSdkAdyenV4
constructor
A new instance of ActionUseSdkAdyenV4.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Action
Constructor Details
#initialize(incoming = {}) ⇒ ActionUseSdkAdyenV4
Returns a new instance of ActionUseSdkAdyenV4.
25479 25480 25481 25482 25483 25484 25485 25486 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25479 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 |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
25477 25478 25479 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25477 def action @action end |
#client_key ⇒ Object (readonly)
Returns the value of attribute client_key.
25477 25478 25479 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25477 def client_key @client_key end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
25477 25478 25479 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25477 def expires_at @expires_at end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
25492 25493 25494 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25492 def copy(incoming={}) ActionUseSdkAdyenV4.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
25496 25497 25498 25499 25500 25501 25502 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25496 def subtype_to_hash { :expires_at => expires_at, :client_key => client_key, :action => action } end |
#to_json ⇒ Object
25488 25489 25490 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25488 def to_json JSON.dump(to_hash) end |