Module: PlentyClient::Warehouse::Management

Includes:
Endpoint, Request
Defined in:
lib/plenty_client/warehouse/management.rb

Constant Summary collapse

WM_STORAGE_LOCATION_BASE_PATH =
'/stockmanagement/warehouses/{warehouseId}/management'
WM_LIST_STORAGE_LOCATIONS =
'/storageLocations'
WM_FIND_STORAGE_LOCATIONS =
'/storageLocations/{storageLocationId}'
WM_LIST_RACKS =
'/racks'
WM_FIND_RACKS =
'/racks/{rackId}'

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.find_location(warehouse_id, storage_location_id, headers = {}, &block) ⇒ Object



22
23
24
25
26
27
# File 'lib/plenty_client/warehouse/management.rb', line 22

def find_location(warehouse_id, storage_location_id, headers = {}, &block)
  get(build_endpoint("#{WM_STORAGE_LOCATION_BASE_PATH}#{WM_FIND_STORAGE_LOCATIONS}",
                     warehouse: warehouse_id,
                     storage_location: storage_location_id),
      headers, &block)
end

.find_racks(warehouse_id, headers = {}, &block) ⇒ Object



35
36
37
38
39
# File 'lib/plenty_client/warehouse/management.rb', line 35

def find_racks(warehouse_id, headers = {}, &block)
  get(build_endpoint("#{WM_STORAGE_LOCATION_BASE_PATH}#{WM_FIND_RACKS}",
                     warehouse: warehouse_id),
      headers, &block)
end

.list_locations(warehouse_id, headers = {}, &block) ⇒ Object



16
17
18
19
20
# File 'lib/plenty_client/warehouse/management.rb', line 16

def list_locations(warehouse_id, headers = {}, &block)
  get(build_endpoint("#{WM_STORAGE_LOCATION_BASE_PATH}#{WM_LIST_STORAGE_LOCATIONS}",
                     warehouse: warehouse_id),
      headers, &block)
end

.list_racks(warehouse_id, headers = {}, &block) ⇒ Object



29
30
31
32
33
# File 'lib/plenty_client/warehouse/management.rb', line 29

def list_racks(warehouse_id, headers = {}, &block)
  get(build_endpoint("#{WM_STORAGE_LOCATION_BASE_PATH}#{WM_LIST_RACKS}",
                     warehouse: warehouse_id),
      headers, &block)
end