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