class Io::Flow::V0::Models::ThreedsChallengeActionDetails
Information necessary to perform a 3ds Challenge action inline to the user experience.
Attributes
expires_at[R]
threeds_challenge_action[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::AuthorizationResultActionDetails::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 70488 def initialize(incoming={}) super(:discriminator => AuthorizationResultActionDetails::Types::THREEDS_CHALLENGE_ACTION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:threeds_challenge_action, :expires_at], 'ThreedsChallengeActionDetails') @threeds_challenge_action = (x = opts.delete(:threeds_challenge_action); x.is_a?(::Io::Flow::V0::Models::ThreedsChallengeAction) ? x : ::Io::Flow::V0::Models::ThreedsChallengeAction.from_json(x)) @expires_at = HttpClient::Preconditions.assert_class('expires_at', HttpClient::Helper.to_date_time_iso8601(opts.delete(:expires_at)), DateTime) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 70500 def copy(incoming={}) ThreedsChallengeActionDetails.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 70504 def subtype_to_hash { :threeds_challenge_action => threeds_challenge_action.to_hash, :expires_at => expires_at } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 70496 def to_json JSON.dump(to_hash) end