Package com.adyen.model.transferwebhooks
Class TransferWebhooksHandler
- java.lang.Object
-
- com.adyen.model.transferwebhooks.TransferWebhooksHandler
-
public class TransferWebhooksHandler extends Object
Handler for processing TransferWebhooks.This class provides functionality to deserialize the payload of TransferWebhooks events.
-
-
Constructor Summary
Constructors Constructor Description TransferWebhooksHandler(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<TransferNotificationRequest>getTransferNotificationRequest()Attempts to deserialize the webhook payload into a TransferNotificationRequest
-
-
-
Constructor Detail
-
TransferWebhooksHandler
public TransferWebhooksHandler(String payload)
Constructs a new handler for the given webhook payload- Parameters:
payload- the raw JSON payload from the webhook
-
-
Method Detail
-
getTransferNotificationRequest
public Optional<TransferNotificationRequest> getTransferNotificationRequest()
Attempts to deserialize the webhook payload into a TransferNotificationRequest- Returns:
- an Optional containing the deserialized object, or empty if deserialization fails
-
-