Class: Io::Flow::V0::Models::ThreedsTwoMethod

Inherits:
ThreedsIdentifyAction show all
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

Attributes inherited from ThreedsIdentifyAction

#discriminator

Instance Method Summary collapse

Methods inherited from ThreedsIdentifyAction

from_json, #to_hash

Constructor Details

#initialize(incoming = {}) ⇒ ThreedsTwoMethod

Returns a new instance of ThreedsTwoMethod.



53787
53788
53789
53790
53791
53792
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53787

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

#methodObject (readonly)

Returns the value of attribute method.



53785
53786
53787
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53785

def method
  @method
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



53798
53799
53800
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53798

def copy(incoming={})
  ThreedsTwoMethod.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#subtype_to_hashObject



53802
53803
53804
53805
53806
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53802

def subtype_to_hash
  {
    :method => method
  }
end

#to_jsonObject



53794
53795
53796
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53794

def to_json
  JSON.dump(to_hash)
end