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