Class: Io::Flow::V0::Models::ThreedsIdentifyActionDetails
- Inherits:
-
AuthorizationResultActionDetails
- Object
- AuthorizationResultActionDetails
- Io::Flow::V0::Models::ThreedsIdentifyActionDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Information necessary to perform a 3ds Identify action inline to the user experience.
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#threeds_identify_action ⇒ Object
readonly
Returns the value of attribute threeds_identify_action.
Attributes inherited from AuthorizationResultActionDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ThreedsIdentifyActionDetails
constructor
A new instance of ThreedsIdentifyActionDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultActionDetails
Constructor Details
#initialize(incoming = {}) ⇒ ThreedsIdentifyActionDetails
Returns a new instance of ThreedsIdentifyActionDetails.
53722 53723 53724 53725 53726 53727 53728 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53722 def initialize(incoming={}) super(:discriminator => AuthorizationResultActionDetails::Types::THREEDS_IDENTIFY_ACTION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:threeds_identify_action, :expires_at], 'ThreedsIdentifyActionDetails') @threeds_identify_action = (x = opts.delete(:threeds_identify_action); x.is_a?(::Io::Flow::V0::Models::ThreedsIdentifyAction) ? x : ::Io::Flow::V0::Models::ThreedsIdentifyAction.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.
53720 53721 53722 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53720 def expires_at @expires_at end |
#threeds_identify_action ⇒ Object (readonly)
Returns the value of attribute threeds_identify_action.
53720 53721 53722 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53720 def threeds_identify_action @threeds_identify_action end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53734 53735 53736 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53734 def copy(incoming={}) ThreedsIdentifyActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
53738 53739 53740 53741 53742 53743 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53738 def subtype_to_hash { :threeds_identify_action => threeds_identify_action.to_hash, :expires_at => expires_at } end |
#to_json ⇒ Object
53730 53731 53732 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53730 def to_json JSON.dump(to_hash) end |