Class: Io::Flow::V0::Models::ThreedsChallengeActionDetails
- Inherits:
-
AuthorizationResultActionDetails
- Object
- AuthorizationResultActionDetails
- Io::Flow::V0::Models::ThreedsChallengeActionDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Information necessary to perform a 3ds Challenge action inline to the user experience.
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#threeds_challenge_action ⇒ Object
readonly
Returns the value of attribute threeds_challenge_action.
Attributes inherited from AuthorizationResultActionDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ThreedsChallengeActionDetails
constructor
A new instance of ThreedsChallengeActionDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultActionDetails
Constructor Details
#initialize(incoming = {}) ⇒ ThreedsChallengeActionDetails
Returns a new instance of ThreedsChallengeActionDetails.
53691 53692 53693 53694 53695 53696 53697 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53691 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 |
Instance Attribute Details
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
53689 53690 53691 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53689 def expires_at @expires_at end |
#threeds_challenge_action ⇒ Object (readonly)
Returns the value of attribute threeds_challenge_action.
53689 53690 53691 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53689 def threeds_challenge_action @threeds_challenge_action end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53703 53704 53705 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53703 def copy(incoming={}) ThreedsChallengeActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
53707 53708 53709 53710 53711 53712 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53707 def subtype_to_hash { :threeds_challenge_action => threeds_challenge_action.to_hash, :expires_at => expires_at } end |
#to_json ⇒ Object
53699 53700 53701 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53699 def to_json JSON.dump(to_hash) end |