Class: PlentyClient::Warehouse::Management::StorageLocation
- Inherits:
-
Object
- Object
- PlentyClient::Warehouse::Management::StorageLocation
- Defined in:
- lib/plenty_client/warehouse/management/storage_location.rb
Constant Summary collapse
- WM_STORAGE_LOCATION_BASE_PATH =
'/stockmanagement/warehouses/{warehouseId}/management'.freeze
- WM_SL_LIST_STORAGE_LOCATIONS =
'/racks/{rackId}/shelves/{shelfId}/storageLocations'.freeze
- WM_SL_FIND_STORAGE_LOCATIONS =
'/racks/{rackId}/shelves/{shelfId}/storageLocations/{storageLocationId}'.freeze
- WM_SL_CREATE_STORAGE_LOCATION =
'/racks/{rackId}/shelves/{shelfId}/storageLocations'.freeze
Class Method Summary collapse
- .create(warehouse_id, rack_id, shelf_id, body = {}) ⇒ Object
- .find(warehouse_id, rack_id, shelf_id, storage_location_id, headers = {}, &block) ⇒ Object
- .list(warehouse_id, rack_id, shelf_id, headers = {}, &block) ⇒ Object
Methods included from Request
Methods included from Endpoint
Class Method Details
.create(warehouse_id, rack_id, shelf_id, body = {}) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/plenty_client/warehouse/management/storage_location.rb', line 31 def create(warehouse_id, rack_id, shelf_id, body = {}) post(build_endpoint("#{WM_STORAGE_LOCATION_BASE_PATH}#{WM_SL_CREATE_STORAGE_LOCATION}", warehouse: warehouse_id, rack: rack_id, shelf: shelf_id), body) end |
.find(warehouse_id, rack_id, shelf_id, storage_location_id, headers = {}, &block) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/plenty_client/warehouse/management/storage_location.rb', line 22 def find(warehouse_id, rack_id, shelf_id, storage_location_id, headers = {}, &block) get(build_endpoint("#{WM_STORAGE_LOCATION_BASE_PATH}#{WM_SL_FIND_STORAGE_LOCATIONS}", warehouse: warehouse_id, rack: rack_id, shelf: shelf_id, storage_location: storage_location_id), headers, &block) end |
.list(warehouse_id, rack_id, shelf_id, headers = {}, &block) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/plenty_client/warehouse/management/storage_location.rb', line 14 def list(warehouse_id, rack_id, shelf_id, headers = {}, &block) get(build_endpoint("#{WM_STORAGE_LOCATION_BASE_PATH}#{WM_SL_LIST_STORAGE_LOCATIONS}", warehouse: warehouse_id, rack: rack_id, shelf: shelf_id), headers, &block) end |