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