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