Class: PlentyClient::Item::Variation::Warehouse
- Inherits:
-
Object
- Object
- PlentyClient::Item::Variation::Warehouse
show all
- Extended by:
- Endpoint, Request
- Defined in:
- lib/plenty_client/item/variation/warehouse.rb
Constant Summary
collapse
- ITEM_VARIATION_WAREHOUSE_PATH =
'/items/{itemId}/variations/{variationId}'.freeze
- LIST_ITEM_VARIATIONS_WAREHOUSE =
'/variation_warehouses'.freeze
- GET_ITEM_VARIATIONS_WAREHOUSE =
'/variation_warehouses/{warehouseId}'.freeze
- CREATE_ITEM_VARIATIONS_WAREHOUSE =
'/variation_warehouses'.freeze
- UPDATE_ITEM_VARIATIONS_WAREHOUSE =
'/variation_warehouses/{warehouseId}'.freeze
- DELETE_ITEM_VARIATIONS_WAREHOUSE =
'/variation_warehouses/{warehouseId}'.freeze
Class Method Summary
collapse
-
.create(item_id, variation_id, body = {}) ⇒ Object
-
.delete(item_id, variation_id, warehouse_id) ⇒ Object
-
.find(item_id, variation_id, warehouse_id, headers = {}, &block) ⇒ Object
-
.list(item_id, variation_id, headers = {}, &block) ⇒ Object
-
.update(item_id, variation_id, warehouse_id, body = {}) ⇒ Object
Methods included from Endpoint
build_endpoint, routes
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.create(item_id, variation_id, body = {}) ⇒ Object
.delete(item_id, variation_id, warehouse_id) ⇒ Object
.find(item_id, variation_id, warehouse_id, headers = {}, &block) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/plenty_client/item/variation/warehouse.rb', line 23
def find(item_id, variation_id, warehouse_id, = {}, &block)
get(build_endpoint("#{ITEM_VARIATION_WAREHOUSE_PATH}#{GET_ITEM_VARIATIONS_WAREHOUSE}",
item: item_id,
variation: variation_id,
warehouse: warehouse_id), , &block)
end
|
.list(item_id, variation_id, headers = {}, &block) ⇒ Object
.update(item_id, variation_id, warehouse_id, body = {}) ⇒ Object