module PlentyClient::Stock

Constants

LIST_STOCK
LIST_STOCK_BY_TYPE
REDISTRIBUTE_STOCK

Public Class Methods

list(headers = {}, &block) click to toggle source
# File lib/plenty_client/stock.rb, line 13
def list(headers = {}, &block)
  get(build_endpoint(LIST_STOCK), headers, &block)
end
list_by_type(type_string, headers = {}, &block) click to toggle source
# File lib/plenty_client/stock.rb, line 17
def list_by_type(type_string, headers = {}, &block)
  get(build_endpoint(LIST_STOCK_BY_TYPE, type_string: type_string), headers, &block)
end
redistribute(body = {}) click to toggle source
# File lib/plenty_client/stock.rb, line 21
def redistribute(body = {})
  put(build_endpoint(REDISTRIBUTE_STOCK), body)
end