Class: Io::Flow::V0::Models::ThreedsTwoBrowserActionConfiguration
- Inherits:
-
ActionConfiguration
- Object
- ActionConfiguration
- Io::Flow::V0::Models::ThreedsTwoBrowserActionConfiguration
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Instructions to the card issuer to render challenges to the user
Instance Attribute Summary collapse
-
#viewport ⇒ Object
readonly
Returns the value of attribute viewport.
Attributes inherited from ActionConfiguration
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ThreedsTwoBrowserActionConfiguration
constructor
A new instance of ThreedsTwoBrowserActionConfiguration.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from ActionConfiguration
Constructor Details
#initialize(incoming = {}) ⇒ ThreedsTwoBrowserActionConfiguration
Returns a new instance of ThreedsTwoBrowserActionConfiguration.
53023 53024 53025 53026 53027 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53023 def initialize(incoming={}) super(:discriminator => ActionConfiguration::Types::THREEDS_TWO_BROWSER_ACTION_CONFIGURATION) opts = HttpClient::Helper.symbolize_keys(incoming) = (x = (x = opts.delete(:viewport); x.nil? ? "xxx_small" : x); x.is_a?(::Io::Flow::V0::Models::ThreedsTwoChallengeViewport) ? x : ::Io::Flow::V0::Models::ThreedsTwoChallengeViewport.apply(x)) end |
Instance Attribute Details
#viewport ⇒ Object (readonly)
Returns the value of attribute viewport.
53021 53022 53023 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53021 def end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
53033 53034 53035 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53033 def copy(incoming={}) ThreedsTwoBrowserActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
53037 53038 53039 53040 53041 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53037 def subtype_to_hash { :viewport => .value } end |
#to_json ⇒ Object
53029 53030 53031 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 53029 def to_json JSON.dump(to_hash) end |