Class TransactionWebhooksHandler
- java.lang.Object
-
- com.adyen.model.transactionwebhooks.TransactionWebhooksHandler
-
public class TransactionWebhooksHandler extends Object
Handler for processing TransactionWebhooks.This class provides functionality to deserialize the payload of TransactionWebhooks events.
-
-
Constructor Summary
Constructors Constructor Description TransactionWebhooksHandler(String payload)Constructs a new handler for the given webhook payload
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<TransactionNotificationRequestV4>getTransactionNotificationRequestV4()Attempts to deserialize the webhook payload into a TransactionNotificationRequestV4
-
-
-
Constructor Detail
-
TransactionWebhooksHandler
public TransactionWebhooksHandler(String payload)
Constructs a new handler for the given webhook payload- Parameters:
payload- the raw JSON payload from the webhook
-
-
Method Detail
-
getTransactionNotificationRequestV4
public Optional<TransactionNotificationRequestV4> getTransactionNotificationRequestV4()
Attempts to deserialize the webhook payload into a TransactionNotificationRequestV4- Returns:
- an Optional containing the deserialized object, or empty if deserialization fails
-
-