Class RelayedAuthorizationWebhooksHandler


  • public class RelayedAuthorizationWebhooksHandler
    extends Object
    Handler for processing RelayedAuthorizationWebhooks.

    This class provides functionality to deserialize the payload of RelayedAuthorizationWebhooks events.

    • 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