class OrderOtherServiceImpl implements OrderOtherService {

    @Override
    public Response cancelOrder(UUID accountId, UUID orderId, HttpHeaders headers) {

        Order oldOrder = orderOtherRepository.findById(orderId);
        if (oldOrder == null) {
            OrderOtherServiceImpl.LOGGER.info("[Order Other Service][Cancel Order] Fail.Order not found.");
            return new Response<>(0, orderNotFound, null);
        } else {
            oldOrder.setStatus(OrderStatus.CANCEL.getCode());
            orderOtherRepository.save(oldOrder);
            OrderOtherServiceImpl.LOGGER.info("[Order Other Service][Cancel Order] Success.");
            return new Response<>(1, success, oldOrder);
        }
    }

}