Class ManagementWebhooksHandler


  • public class ManagementWebhooksHandler
    extends Object
    Handler for processing ManagementWebhooks.

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

    • Constructor Detail

      • ManagementWebhooksHandler

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

      • getMerchantCreatedNotificationRequest

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

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

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

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

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

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

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