Module: PlentyClient::Stock
Constant Summary collapse
- LIST_STOCK =
'/stockmanagement/stock'
- LIST_STOCK_BY_TYPE =
'/stockmanagement/stock/types/{type}'
- REDISTRIBUTE_STOCK =
'/stockmanagement/stock/redistribute'
Class Method Summary collapse
- .list(headers = {}, &block) ⇒ Object
- .list_by_type(type_string, headers = {}, &block) ⇒ Object
- .redistribute(body = {}) ⇒ Object
Methods included from Request
Methods included from Endpoint
Class Method Details
.list(headers = {}, &block) ⇒ Object
13 14 15 |
# 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) ⇒ Object
17 18 19 |
# 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 = {}) ⇒ Object
21 22 23 |
# File 'lib/plenty_client/stock.rb', line 21 def redistribute(body = {}) put(build_endpoint(REDISTRIBUTE_STOCK), body) end |