Class TransferRequestService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.transfer.request.TransferRequestService
@RestController
@RequestMapping("inventory/r2/warehouses/transfers/requests")
@Resource(logging=true)
public class TransferRequestService
extends PrivateService
Services to manage transfer requests.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Cancels the given transfer request by calling theTransferRequestCancelEvent.org.springframework.http.ResponseEntity<Void> Receives the given transfer request by calling theTransferRequestReceiveEvent.org.springframework.http.ResponseEntity<Void> Refuses the given transfer request by calling theTransferRequestRefuseEvent.org.springframework.http.ResponseEntity<Void> Sends the given transfer request by calling theTransferRequestSendEvent.org.springframework.http.ResponseEntity<Void> Submits the given transfer request by calling theTransferRequestSubmitEvent.
-
Constructor Details
-
TransferRequestService
public TransferRequestService()
-
-
Method Details
-
submit
@PostMapping(value="{id:[0-9]+}/actions/submit", produces="application/json") public org.springframework.http.ResponseEntity<Void> submit(@PathVariable("id") Long id) throws DAValidateException, DAException Submits the given transfer request by calling theTransferRequestSubmitEvent.- Parameters:
id- the transfer request id- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
send
@PostMapping(value="{id:[0-9]+}/actions/send", produces="application/json") public org.springframework.http.ResponseEntity<Void> send(@PathVariable("id") Long id) throws DAValidateException, DAException Sends the given transfer request by calling theTransferRequestSendEvent.- Parameters:
id- the transfer request id- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
cancel
@PostMapping(value="{id:[0-9]+}/actions/cancel", produces="application/json") public org.springframework.http.ResponseEntity<Void> cancel(@PathVariable("id") Long id) throws DAValidateException, DAException Cancels the given transfer request by calling theTransferRequestCancelEvent.- Parameters:
id- the transfer request id- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
receive
@PostMapping(value="{id:[0-9]+}/actions/receive", produces="application/json") public org.springframework.http.ResponseEntity<Void> receive(@PathVariable("id") Long id) throws DAValidateException, DAException Receives the given transfer request by calling theTransferRequestReceiveEvent.- Parameters:
id- the transfer request id- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
refuse
@PostMapping(value="{id:[0-9]+}/actions/refuse", produces="application/json") public org.springframework.http.ResponseEntity<Void> refuse(@PathVariable("id") Long id) throws DAValidateException, DAException Refuses the given transfer request by calling theTransferRequestRefuseEvent.- Parameters:
id- the transfer request id- Returns:
- the DTOResponse
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-