Class TransactionWebhookMessageFactory
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.messaging.transactionwebhook.TransactionWebhookMessageFactory
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.MessageFactory<TransactionWebhookPayload>
public class TransactionWebhookMessageFactory
extends Object
implements com.broadleafcommerce.common.messaging.notification.MessageFactory<TransactionWebhookPayload>
The factory for creating a
TransactionWebhookPayload
message.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.Message<TransactionWebhookPayload>
createMessage
(@NonNull Object entity) protected TransactionWebhookPayload
getTransactionWebhookPayload
(@NonNull JpaPaymentTransaction paymentTransaction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.MessageFactory
createMessage
-
Constructor Details
-
TransactionWebhookMessageFactory
public TransactionWebhookMessageFactory()
-
-
Method Details
-
createMessage
public org.springframework.messaging.Message<TransactionWebhookPayload> createMessage(@NonNull @NonNull Object entity) - Specified by:
createMessage
in interfacecom.broadleafcommerce.common.messaging.notification.MessageFactory<TransactionWebhookPayload>
-
getTransactionWebhookPayload
protected TransactionWebhookPayload getTransactionWebhookPayload(@NonNull @NonNull JpaPaymentTransaction paymentTransaction)
-