Package org.openwms.wms.inventory.api
Interface PackagingUnitApi
@FeignClient(name="wms-inventory",
qualifiers="packagingUnitApi",
decode404=true)
public interface PackagingUnitApi
A PackagingUnitApi.
- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(String transportUnitBK, String luPos, String loadUnitType, CreatePURequestVO request) Create aPackagingUnit
in the existingLoadUnit
with the givenluPos
within theTransportUnit
identified by thetransportUnitBK
.void
Create a newPackagingUnit
on theLocation
given asactualLocation
of thepu
.findOfProductinLG
(String productPKey, String locationGroupName) Find and return allPackagingUnits
that contain aProduct
identified by the givenproductPKey
that is located within a particularLocationGroup
identified by the givenlocationGroupName
.Find and return allPackagingUnits
that are booked on aTransportUnit
identified by the giventransportUnitBK
.
-
Field Details
-
ACCEPT_HEADER_PU
- See Also:
-
-
Method Details
-
create
@PostMapping(value="/v1/transport-units/{transportUnitBK}/load-units/{luPos}/packaging-units", params="loadUnitType") void create(@PathVariable("transportUnitBK") String transportUnitBK, @PathVariable("luPos") String luPos, @RequestParam("loadUnitType") String loadUnitType, @RequestBody CreatePURequestVO request) Create aPackagingUnit
in the existingLoadUnit
with the givenluPos
within theTransportUnit
identified by thetransportUnitBK
. If theLoadUnit
is not defined, a newLoadUnit
of the givenloadUnitType
is created.- Parameters:
transportUnitBK
- The business key of the TransportUnitluPos
- The LoadUnit positionloadUnitType
- The LoadUnit type in case the LoadUnit is createdrequest
- Contains additional information about the PackagingUnit to create
-
createOnLocation
Create a newPackagingUnit
on theLocation
given asactualLocation
of thepu
.- Parameters:
pu
- The PackagingUnit representation, contains the Location where to create it
-
findOnTU
@GetMapping("/v1/transport-units/{transportUnitBK}/load-units/packaging-units") List<PackagingUnitVO> findOnTU(@PathVariable("transportUnitBK") String transportUnitBK) Find and return allPackagingUnits
that are booked on aTransportUnit
identified by the giventransportUnitBK
.- Parameters:
transportUnitBK
- The business key of the TransportUnit- Returns:
- A list of PackagingUnits
-
findOfProductinLG
@GetMapping(value="/v1/packaging-units", params={"productPKey","locationGroupName"}) List<PackagingUnitVO> findOfProductinLG(@RequestParam("productPKey") String productPKey, @RequestParam("locationGroupName") String locationGroupName) Find and return allPackagingUnits
that contain aProduct
identified by the givenproductPKey
that is located within a particularLocationGroup
identified by the givenlocationGroupName
.- Parameters:
productPKey
- The Product persistent keylocationGroupName
- The identifying name of the LocationGroup- Returns:
- A list of PackagingUnits
-