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