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