class Io::Flow::V0::Models::ActionExecuteScript
Render the returned HTML script from the payment provider, which will gather browser data to inform the authorization decision. After several seconds, the payment request will asynchronously update based on the results of the script.
Attributes
expires_at[R]
script[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 29065 def initialize(incoming={}) super(:type => Action::Types::ACTION_EXECUTE_SCRIPT) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:script], 'ActionExecuteScript') @expires_at = (x = opts.delete(:expires_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime)) @script = HttpClient::Preconditions.assert_class('script', opts.delete(:script), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29077 def copy(incoming={}) ActionExecuteScript.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 29081 def subtype_to_hash { :expires_at => expires_at, :script => script } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 29073 def to_json JSON.dump(to_hash) end