fix payments and add new functions

This commit is contained in:
Patryk
2025-06-08 19:54:15 +02:00
parent 00b9f99af5
commit 1ec6e62c04
7 changed files with 194 additions and 6 deletions

View File

@@ -15,6 +15,8 @@ import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;
import java.util.List;
@Service
public class PaymentService {
private final WebClient webClient;
@@ -80,4 +82,10 @@ public class PaymentService {
return null;
}
public List<Payment> getPaymentsByOrderId(Long id) {
return paymentRepository.findAllByOrderId(id);
}
}