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.
65414 65415 65416 65417 65418 65419 65420 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65414 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.
65412 65413 65414 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65412 def expires_at @expires_at end |
#threeds_identify_action ⇒ Object (readonly)
Returns the value of attribute threeds_identify_action.
65412 65413 65414 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65412 def threeds_identify_action @threeds_identify_action end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
65426 65427 65428 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65426 def copy(incoming={}) ThreedsIdentifyActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
65430 65431 65432 65433 65434 65435 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65430 def subtype_to_hash { :threeds_identify_action => threeds_identify_action.to_hash, :expires_at => expires_at } end |
#to_json ⇒ Object
65422 65423 65424 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65422 def to_json JSON.dump(to_hash) end |