module Spree::API::Client::StockItems
Public Instance Methods
batch_update_stock_items(location=1, options={})
click to toggle source
# File lib/spree-api-client/stock_items.rb, line 25 def batch_update_stock_items(location=1, options={}) put("stock_locations/#{location}/stock_items/batch_update", options) end
create_stock_item(location, options={})
click to toggle source
# File lib/spree-api-client/stock_items.rb, line 17 def create_stock_item(location, options={}) post("stock_locations/#{location}/stock_items", options) end
delete_stock_item(stock_item, location=1, options={})
click to toggle source
# File lib/spree-api-client/stock_items.rb, line 29 def delete_stock_item(stock_item, location=1, options={}) delete("stock_locations/#{location}/stock_items/#{stock_item}", options) end
new_stock_item(options={})
click to toggle source
# File lib/spree-api-client/stock_items.rb, line 13 def new_stock_item(options={}) get("stock_items/#{permalink_or_id}/new", options) end
stock_item(stock_item, location=1, options={})
click to toggle source
# File lib/spree-api-client/stock_items.rb, line 9 def stock_item(stock_item, location=1, options={}) get("stock_locations/#{location}/stock_items/#{stock_item}", options) end
stock_items(location=1, options={})
click to toggle source
# File lib/spree-api-client/stock_items.rb, line 5 def stock_items(location=1, options={}) get("stock_locations/#{location}/stock_items/", options) end
update_stock_item(stock_item, location=1, options={})
click to toggle source
# File lib/spree-api-client/stock_items.rb, line 21 def update_stock_item(stock_item, location=1, options={}) put("stock_locations/#{location}/stock_items/#{stock_item}", options) end