class Io::Flow::V0::Models::ThreedsTwoChallengeRequest
Data that must be passed to the 3DS Client
to help the issuer ACS render a challenge for the user.
Attributes
acs_url[R]
challenge_request[R]
session_data[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::ThreedsChallengeAction::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 70550 def initialize(incoming={}) super(:discriminator => ThreedsChallengeAction::Types::THREEDS_TWO_CHALLENGE_REQUEST) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:acs_url, :challenge_request], 'ThreedsTwoChallengeRequest') @acs_url = HttpClient::Preconditions.assert_class('acs_url', opts.delete(:acs_url), String) @challenge_request = HttpClient::Preconditions.assert_class('challenge_request', opts.delete(:challenge_request), String) @session_data = (x = opts.delete(:session_data); x.nil? ? nil : HttpClient::Preconditions.assert_class('session_data', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 70563 def copy(incoming={}) ThreedsTwoChallengeRequest.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 70567 def subtype_to_hash { :acs_url => acs_url, :challenge_request => challenge_request, :session_data => session_data } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 70559 def to_json JSON.dump(to_hash) end