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 Summary
ConstructorsConstructorDescriptionDefaultTransactionWebhookMessageService(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 Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.messaging.notification.NotificationManagerprotected com.broadleafcommerce.common.messaging.notification.NotificationStateServiceprotected PaymentTransactionRepository<com.broadleafcommerce.data.tracking.core.Trackable>protected TransactionWebhookNotificationRepositoryvoidsendTransactionWebhookMessage(String paymentTransactionContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Initializes the newNotificationStatestate and sends the message with thePaymentTransactionWebhookProducer.TYPEtype.
-
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:TransactionWebhookMessageServiceInitializes the newNotificationStatestate and sends the message with thePaymentTransactionWebhookProducer.TYPEtype.- Specified by:
sendTransactionWebhookMessagein interfaceTransactionWebhookMessageService- Parameters:
paymentTransactionContextId- the ID of the payment transactioncontextInfo- 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
-