Class TransferRequestItemSerializedMaterialService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.transfer.request.item.serializedmaterial.TransferRequestItemSerializedMaterialService
@RestController
@RequestMapping("inventory/r2/warehouses/transfers/requests/{id:[0-9]+}/items/{itemId:[0-9]+}/serializedMaterials")
@Resource(logging=true)
public class TransferRequestItemSerializedMaterialService
extends PrivateService
Services to manage transfer request item serialized materials.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> patch(Long id, Long itemId, Long serializedMaterialId, @Valid DTOTransferRequestItemSerializedMaterialUpdate dto) Updates the required transfer request item serialized material by calling from theTransferRequestItemSerializedMaterialUpdateEvent.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long id, Long itemId, @Valid DTOTransferRequestItemSerializedMaterialInsert dto) Creates a new transfer request item serialized material by calling from theTransferRequestItemSerializedMaterialInsertEvent.
-
Constructor Details
-
TransferRequestItemSerializedMaterialService
public TransferRequestItemSerializedMaterialService()
-
-
Method Details
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@PathVariable("id") Long id, @PathVariable("itemId") Long itemId, @Valid @RequestBody @Valid DTOTransferRequestItemSerializedMaterialInsert dto) throws DAValidateException, DAException Creates a new transfer request item serialized material by calling from theTransferRequestItemSerializedMaterialInsertEvent.- Parameters:
id- the transfer request iditemId- the item iddto- theDTOTransferRequestItemSerializedMaterialInsertcontaining the insert data- Returns:
- the
ResponseEntitycontaining the id of the just inserted item - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{serializedMaterialId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("id") Long id, @PathVariable("itemId") Long itemId, @PathVariable("serializedMaterialId") Long serializedMaterialId, @Valid @RequestBody @Valid DTOTransferRequestItemSerializedMaterialUpdate dto) throws DAValidateException, DAException Updates the required transfer request item serialized material by calling from theTransferRequestItemSerializedMaterialUpdateEvent.- Parameters:
id- the transfer request iditemId- the item idserializedMaterialId- the id of the transfer request item to updatedto- theDTOTransferRequestItemSerializedMaterialUpdatecontaining the update data- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-