Class: Io::Flow::V0::Models::AuthorizationResultActionGet
- Inherits:
-
AuthorizationResultAction
- Object
- AuthorizationResultAction
- Io::Flow::V0::Models::AuthorizationResultActionGet
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Provides details for how to acquire additional information from the customer using GET (e.g. redirecting to the issuer for online payment method or 3D Secure).
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from AuthorizationResultAction
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ AuthorizationResultActionGet
constructor
A new instance of AuthorizationResultActionGet.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultAction
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationResultActionGet
Returns a new instance of AuthorizationResultActionGet.
31290 31291 31292 31293 31294 31295 31296 31297 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31290 def initialize(incoming={}) super(:discriminator => AuthorizationResultAction::Types::AUTHORIZATION_RESULT_ACTION_GET) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:type], 'AuthorizationResultActionGet') @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)) @details = (x = opts.delete(:details); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::AuthorizationResultActionDetails) ? x : ::Io::Flow::V0::Models::AuthorizationResultActionDetails.from_json(x))) end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
31288 31289 31290 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31288 def details @details end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
31288 31289 31290 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31288 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
31288 31289 31290 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31288 def url @url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
31303 31304 31305 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31303 def copy(incoming={}) AuthorizationResultActionGet.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
31307 31308 31309 31310 31311 31312 31313 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31307 def subtype_to_hash { :type => type.value, :url => url, :details => details.nil? ? nil : details.to_hash } end |
#to_json ⇒ Object
31299 31300 31301 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31299 def to_json JSON.dump(to_hash) end |