Class: Io::Flow::V0::Models::AuthorizationResultActionPost
- Inherits:
-
AuthorizationResultAction
- Object
- AuthorizationResultAction
- Io::Flow::V0::Models::AuthorizationResultActionPost
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Provides details for how to acquire additional information from the customer using POST (e.g. redirecting to the issuer for online payment method or 3D Secure).
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#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 = {}) ⇒ AuthorizationResultActionPost
constructor
A new instance of AuthorizationResultActionPost.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultAction
Constructor Details
#initialize(incoming = {}) ⇒ AuthorizationResultActionPost
Returns a new instance of AuthorizationResultActionPost.
31357 31358 31359 31360 31361 31362 31363 31364 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31357 def initialize(incoming={}) super(:discriminator => AuthorizationResultAction::Types::AUTHORIZATION_RESULT_ACTION_POST) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:type, :url, :parameters], 'AuthorizationResultActionPost') @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::AuthorizationResultActionType) ? x : ::Io::Flow::V0::Models::AuthorizationResultActionType.apply(x)) @url = HttpClient::Preconditions.assert_class('url', opts.delete(:url), String) @parameters = HttpClient::Preconditions.assert_class('parameters', HttpClient::Helper.to_object(opts.delete(:parameters)), Hash) end |
Instance Attribute Details
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
31355 31356 31357 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31355 def parameters @parameters end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
31355 31356 31357 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31355 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
31355 31356 31357 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31355 def url @url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
31370 31371 31372 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31370 def copy(incoming={}) AuthorizationResultActionPost.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
31374 31375 31376 31377 31378 31379 31380 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31374 def subtype_to_hash { :type => type.value, :url => url, :parameters => parameters } end |
#to_json ⇒ Object
31366 31367 31368 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31366 def to_json JSON.dump(to_hash) end |