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
-
#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.
20765 20766 20767 20768 20769 20770 20771 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20765 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)) end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
20763 20764 20765 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20763 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
20763 20764 20765 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20763 def url @url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
20777 20778 20779 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20777 def copy(incoming={}) AuthorizationResultActionGet.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
20781 20782 20783 20784 20785 20786 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20781 def subtype_to_hash { :type => type.value, :url => url } end |
#to_json ⇒ Object
20773 20774 20775 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20773 def to_json JSON.dump(to_hash) end |