Package com.bank.payment.consumers
Class PaymentConsumer
java.lang.Object
com.bank.payment.consumers.PaymentConsumer
Consumer for payment-related events received from auth microservice via RabbitMQ.
Listens to the payment queue and processes payment conclusion events,
delegating the processing to the PaymentService
.
- Queue: ${broker.queue.sendPayment}
- Since:
- 1.0.0
- Version:
- 1.0.0, 06/26/2025
- Author:
- Fernando Cruz Cavina
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendPix
(ConclusionPaymentDto paymentDto) Listens for confirmation of payment and sends the Pix payment.
-
Constructor Details
-
PaymentConsumer
public PaymentConsumer()
-
-
Method Details
-
sendPix
@RabbitListener(queues="${broker.queue.sendPayment}") public void sendPix(@Payload ConclusionPaymentDto paymentDto) Listens for confirmation of payment and sends the Pix payment.- Parameters:
paymentDto
- the payment conclusion data received from the queue
-