Class: Io::Flow::V0::Models::CardBrowserActionConfiguration
- Inherits:
-
BrowserActionConfiguration
- Object
- BrowserActionConfiguration
- Io::Flow::V0::Models::CardBrowserActionConfiguration
- 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 BrowserActionConfiguration
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ CardBrowserActionConfiguration
constructor
A new instance of CardBrowserActionConfiguration.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from BrowserActionConfiguration
Constructor Details
#initialize(incoming = {}) ⇒ CardBrowserActionConfiguration
Returns a new instance of CardBrowserActionConfiguration.
33241 33242 33243 33244 33245 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33241 def initialize(incoming={}) super(:discriminator => BrowserActionConfiguration::Types::CARD_BROWSER_ACTION_CONFIGURATION) opts = HttpClient::Helper.symbolize_keys(incoming) @viewport = (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.
33239 33240 33241 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33239 def @viewport end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
33251 33252 33253 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33251 def copy(incoming={}) CardBrowserActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
33255 33256 33257 33258 33259 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33255 def subtype_to_hash { :viewport => .value } end |
#to_json ⇒ Object
33247 33248 33249 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33247 def to_json JSON.dump(to_hash) end |