class OrderOtherServiceImpl implements OrderOtherService {

    @Override
    public Response addNewOrder(Order order, HttpHeaders headers) {
        OrderOtherServiceImpl.LOGGER.info("[Order Service][Admin Add Order] Ready Add Order.");
        ArrayList<Order> accountOrders = orderOtherRepository.findByAccountId(order.getAccountId());
        if (accountOrders.contains(order)) {
            OrderOtherServiceImpl.LOGGER.info("[Order Service][Admin Add Order] Fail.Order already exists.");
            return new Response<>(0, "Order already exist", null);
        } else {
            order.setId(UUID.randomUUID());
            orderOtherRepository.save(order);
            OrderOtherServiceImpl.LOGGER.info("[Order Service][Admin Add Order] Success.");
            OrderOtherServiceImpl.LOGGER.info("[Order Service][Admin Add Order] Price: {}", order.getPrice());
            return new Response<>(1, success, order);
        }
    }

}