Class: Io::Flow::V0::Models::ExperienceCheckoutConfigurationSettings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(incoming = {}) ⇒ ExperienceCheckoutConfigurationSettings

Returns a new instance of ExperienceCheckoutConfigurationSettings.



41450
41451
41452
41453
41454
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41450

def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:configuration], 'ExperienceCheckoutConfigurationSettings')
  @configuration = (x = opts.delete(:configuration); x.is_a?(::Io::Flow::V0::Models::ExperienceConfigurationReference) ? x : ::Io::Flow::V0::Models::ExperienceConfigurationReference.new(x))
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



41448
41449
41450
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41448

def configuration
  @configuration
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



41460
41461
41462
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41460

def copy(incoming={})
  ExperienceCheckoutConfigurationSettings.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#to_hashObject



41464
41465
41466
41467
41468
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41464

def to_hash
  {
    :configuration => configuration.to_hash
  }
end

#to_jsonObject



41456
41457
41458
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41456

def to_json
  JSON.dump(to_hash)
end