Class: Io::Flow::V0::Models::ThreedsTwoMethod
- Inherits:
-
ThreedsIdentifyAction
- Object
- ThreedsIdentifyAction
- Io::Flow::V0::Models::ThreedsTwoMethod
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Data that must be rendered by the 3DS Client in order to help the issuer ACS silently identify the user. This format doesn’t decompose the ACS identify method.
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Attributes inherited from ThreedsIdentifyAction
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ThreedsTwoMethod
constructor
A new instance of ThreedsTwoMethod.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ThreedsIdentifyAction
Constructor Details
#initialize(incoming = {}) ⇒ ThreedsTwoMethod
Returns a new instance of ThreedsTwoMethod.
70584 70585 70586 70587 70588 70589 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 70584 def initialize(incoming={}) super(:discriminator => ThreedsIdentifyAction::Types::THREEDS_TWO_METHOD) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:method], 'ThreedsTwoMethod') @method = HttpClient::Preconditions.assert_class('method', opts.delete(:method), String) end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
70582 70583 70584 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 70582 def method @method end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
70595 70596 70597 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 70595 def copy(incoming={}) ThreedsTwoMethod.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
70599 70600 70601 70602 70603 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 70599 def subtype_to_hash { :method => method } end |
#to_json ⇒ Object
70591 70592 70593 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 70591 def to_json JSON.dump(to_hash) end |