Created
November 17, 2016 16:01
-
-
Save philmadden83/c47a7de2db6b1e122d2be97fb25d17da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@POST | |
@Authenticate | |
@Path("/{trackingId}") | |
public Response updateAirbillOrderToShipped(@PathParam("trackingId") String trackingId) { | |
List<Integer> orderIdList = shippingNotificationService.getOrderIdListByTrackingId(trackingId); | |
if (CollectionUtils.isEmptry(orderIdList)) { | |
return Response.status(Response.Status.NOT_FOUND).entity(new ErrorResponseEntity("No orders found with the provided tracking ID.")).build(); | |
} | |
shippingNotificationService.setAirbillOrdersToShippedAndSendEmail(ordeorderIdListrId); | |
return Response.ok(new SuccessResponseEntity("Order status updated and shipping notification sent.")).build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment