Class: Io::Flow::V0::Models::ExperienceLogisticsSettingsPutForm

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

Overview

Assigns logistics related settings to an experience

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(incoming = {}) ⇒ ExperienceLogisticsSettingsPutForm

Returns a new instance of ExperienceLogisticsSettingsPutForm.



41961
41962
41963
41964
41965
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41961

def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:shipping_configuration_key], 'ExperienceLogisticsSettingsPutForm')
  @shipping_configuration_key = HttpClient::Preconditions.assert_class('shipping_configuration_key', opts.delete(:shipping_configuration_key), String)
end

Instance Attribute Details

#shipping_configuration_keyObject (readonly)

Returns the value of attribute shipping_configuration_key.



41959
41960
41961
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41959

def shipping_configuration_key
  @shipping_configuration_key
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



41971
41972
41973
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41971

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

#to_hashObject



41975
41976
41977
41978
41979
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41975

def to_hash
  {
    :shipping_configuration_key => shipping_configuration_key
  }
end

#to_jsonObject



41967
41968
41969
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 41967

def to_json
  JSON.dump(to_hash)
end