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.NotificationManager
protected com.broadleafcommerce.common.messaging.notification.NotificationStateService
protected PaymentTransactionRepository<com.broadleafcommerce.data.tracking.core.Trackable>
protected TransactionWebhookNotificationRepository
void
sendTransactionWebhookMessage
(String paymentTransactionContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Initializes the newNotificationState
state and sends the message with thePaymentTransactionWebhookProducer.TYPE
type.
-
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 newNotificationState
state and sends the message with thePaymentTransactionWebhookProducer.TYPE
type.- Specified by:
sendTransactionWebhookMessage
in 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
-