Class: Io::Flow::V0::Models::AuthorizationResultAction
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::AuthorizationResultAction
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Provides details for how to acquire additional information from the customer when needed (e.g. redirecting to the issuer for online payment method or 3D Secure).
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AuthorizationResultAction
constructor
A new instance of AuthorizationResultAction.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationResultAction
Returns a new instance of AuthorizationResultAction.
17375 17376 17377 17378 17379 17380 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17375 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:type], 'AuthorizationResultAction') @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::AuthorizationResultActionType) ? x : ::Io::Flow::V0::Models::AuthorizationResultActionType.apply(x)) @url = (x = opts.delete(:url); x.nil? ? nil : HttpClient::Preconditions.assert_class('url', x, String)) end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
17373 17374 17375 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17373 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
17373 17374 17375 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17373 def url @url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
17386 17387 17388 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17386 def copy(incoming={}) AuthorizationResultAction.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
17390 17391 17392 17393 17394 17395 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17390 def to_hash { :type => type.value, :url => url } end |
#to_json ⇒ Object
17382 17383 17384 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17382 def to_json JSON.dump(to_hash) end |