Class DefaultTransactionWebhookMessageService

java.lang.Object
com.broadleafcommerce.paymenttransaction.service.messaging.transactionwebhook.DefaultTransactionWebhookMessageService
All Implemented Interfaces:
TransactionWebhookMessageService

public class DefaultTransactionWebhookMessageService extends Object implements TransactionWebhookMessageService
Default implementation for TransactionWebhookMessageService.
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • DefaultTransactionWebhookMessageService

      public DefaultTransactionWebhookMessageService(PaymentTransactionRepository<com.broadleafcommerce.data.tracking.core.Trackable> paymentTransactionRepository, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, TransactionWebhookNotificationRepository transactionWebhookNotificationRepository)
  • Method Details

    • sendTransactionWebhookMessage

      public void sendTransactionWebhookMessage(String paymentTransactionContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: TransactionWebhookMessageService
      Initializes the new NotificationState state and sends the message with the PaymentTransactionWebhookProducer.TYPE type.
      Specified by:
      sendTransactionWebhookMessage in interface TransactionWebhookMessageService
      Parameters:
      paymentTransactionContextId - the ID of the payment transaction
      contextInfo - Request context information around sandbox and multitenant state
    • getPaymentTransactionRepository

      protected PaymentTransactionRepository<com.broadleafcommerce.data.tracking.core.Trackable> getPaymentTransactionRepository()
    • getNotificationStateService

      protected com.broadleafcommerce.common.messaging.notification.NotificationStateService getNotificationStateService()
    • getNotificationManager

      protected com.broadleafcommerce.common.messaging.notification.NotificationManager getNotificationManager()
    • getTransactionWebhookNotificationRepository

      protected TransactionWebhookNotificationRepository getTransactionWebhookNotificationRepository()