Class: Io::Flow::V0::Models::SelectIssuerOptionActionDetails

Inherits:
AuthorizationResultActionDetails show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Attributes inherited from AuthorizationResultActionDetails

#discriminator

Instance Method Summary collapse

Methods inherited from AuthorizationResultActionDetails

from_json, #to_hash

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_optionsObject (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
  @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_hashObject



65161
65162
65163
65164
65165
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65161

def subtype_to_hash
  {
    :issuer_options => issuer_options.map { |o| o.to_hash }
  }
end

#to_jsonObject



65153
65154
65155
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 65153

def to_json
  JSON.dump(to_hash)
end