Class ConfigurationWebhooksHandler


  • public class ConfigurationWebhooksHandler
    extends Object
    Handler for processing ConfigurationWebhooks.

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

    • Constructor Detail

      • ConfigurationWebhooksHandler

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

      • getAccountHolderNotificationRequest

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

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

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

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

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

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

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

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

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

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

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

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