import org.springframework.hateoas.Resource;
import org.springframework.http.MediaType;
import org.springframework.http.RequestEntity;</BUG>
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
<BUG>import org.springframework.web.client.RestTemplate;
import java.net.URI;
import java.util.function.Consumer;
</BUG>
@Service

import demo.order.domain.OrderService;
import demo.order.domain.OrderStatus;
import demo.order.event.OrderEvent;
import demo.order.event.OrderEventType;
import demo.payment.domain.Payment;
import demo.payment.domain.PaymentMethod;
import demo.payment.domain.PaymentService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import java.util.function.Function;
@Service
