Class PaymentGenerateCodePublisher

java.lang.Object
com.bank.payment.publishers.PaymentGenerateCodePublisher

@Component public class PaymentGenerateCodePublisher extends Object
Publisher for sending email to generate a new confirmation code for payments.
Since:
1.0.0
Version:
1.0.0, 06/26/2025
Author:
Fernando Cruz Cavina
  • Constructor Details

    • PaymentGenerateCodePublisher

      public PaymentGenerateCodePublisher()
  • Method Details

    • publishEventNewCodeConfirmation

      public void publishEventNewCodeConfirmation(String email)
      Publishes an event to request a new confirmation code for the given email.
      Parameters:
      email - the email address to send the confirmation code to