Class: Io::Flow::V0::Models::ThreedsTwoChallengeRequest
- Inherits:
-
ThreedsChallengeAction
- Object
- ThreedsChallengeAction
- Io::Flow::V0::Models::ThreedsTwoChallengeRequest
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Data that must be passed to the 3DS Client to help the issuer ACS render a challenge for the user.
Instance Attribute Summary collapse
-
#acs_url ⇒ Object
readonly
Returns the value of attribute acs_url.
-
#challenge_request ⇒ Object
readonly
Returns the value of attribute challenge_request.
-
#session_data ⇒ Object
readonly
Returns the value of attribute session_data.
Attributes inherited from ThreedsChallengeAction
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ThreedsTwoChallengeRequest
constructor
A new instance of ThreedsTwoChallengeRequest.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ThreedsChallengeAction
Constructor Details
#initialize(incoming = {}) ⇒ ThreedsTwoChallengeRequest
Returns a new instance of ThreedsTwoChallengeRequest.
52992 52993 52994 52995 52996 52997 52998 52999 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52992 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 |
Instance Attribute Details
#acs_url ⇒ Object (readonly)
Returns the value of attribute acs_url.
52990 52991 52992 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52990 def acs_url @acs_url end |
#challenge_request ⇒ Object (readonly)
Returns the value of attribute challenge_request.
52990 52991 52992 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52990 def challenge_request @challenge_request end |
#session_data ⇒ Object (readonly)
Returns the value of attribute session_data.
52990 52991 52992 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52990 def session_data @session_data end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53005 53006 53007 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53005 def copy(incoming={}) ThreedsTwoChallengeRequest.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
53009 53010 53011 53012 53013 53014 53015 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53009 def subtype_to_hash { :acs_url => acs_url, :challenge_request => challenge_request, :session_data => session_data } end |
#to_json ⇒ Object
53001 53002 53003 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53001 def to_json JSON.dump(to_hash) end |