Class NegativeBalanceWarningWebhooksHandler


  • public class NegativeBalanceWarningWebhooksHandler
    extends Object
    Handler for processing NegativeBalanceWarningWebhooks.

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

    • Constructor Detail

      • NegativeBalanceWarningWebhooksHandler

        public NegativeBalanceWarningWebhooksHandler​(String payload)
        Constructs a new handler for the given webhook payload
        Parameters:
        payload - the raw JSON payload from the webhook
    • Method Detail

      • getNegativeBalanceCompensationWarningNotificationRequest

        public Optional<NegativeBalanceCompensationWarningNotificationRequest> getNegativeBalanceCompensationWarningNotificationRequest()
        Attempts to deserialize the webhook payload into a NegativeBalanceCompensationWarningNotificationRequest
        Returns:
        an Optional containing the deserialized object, or empty if deserialization fails