Class: Io::Flow::V0::Models::SelectIssuerOptionActionDetails
- Inherits:
-
AuthorizationResultActionDetails
- Object
- AuthorizationResultActionDetails
- Io::Flow::V0::Models::SelectIssuerOptionActionDetails
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#issuer_options ⇒ Object
readonly
Returns the value of attribute issuer_options.
Attributes inherited from AuthorizationResultActionDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ SelectIssuerOptionActionDetails
constructor
A new instance of SelectIssuerOptionActionDetails.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from AuthorizationResultActionDetails
Constructor Details
#initialize(incoming = {}) ⇒ SelectIssuerOptionActionDetails
Returns a new instance of SelectIssuerOptionActionDetails.
65146 65147 65148 65149 65150 65151 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65146 def initialize(incoming={}) super(:discriminator => AuthorizationResultActionDetails::Types::SELECT_ISSUER_OPTION_ACTION_DETAILS) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:issuer_options], 'SelectIssuerOptionActionDetails') @issuer_options = HttpClient::Preconditions.assert_class('issuer_options', opts.delete(:issuer_options), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::IssuerReference) ? x : ::Io::Flow::V0::Models::IssuerReference.new(x)) } end |
Instance Attribute Details
#issuer_options ⇒ Object (readonly)
Returns the value of attribute issuer_options.
65144 65145 65146 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65144 def @issuer_options end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
65157 65158 65159 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65157 def copy(incoming={}) SelectIssuerOptionActionDetails.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
65161 65162 65163 65164 65165 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65161 def subtype_to_hash { :issuer_options => .map { |o| o.to_hash } } end |
#to_json ⇒ Object
65153 65154 65155 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65153 def to_json JSON.dump(to_hash) end |