Class ManagementWebhooksHandler
- java.lang.Object
-
- com.adyen.model.managementwebhooks.ManagementWebhooksHandler
-
public class ManagementWebhooksHandler extends Object
Handler for processing ManagementWebhooks.This class provides functionality to deserialize the payload of ManagementWebhooks events.
-
-
Constructor Summary
Constructors Constructor Description ManagementWebhooksHandler(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<MerchantCreatedNotificationRequest>getMerchantCreatedNotificationRequest()Attempts to deserialize the webhook payload into a MerchantCreatedNotificationRequestOptional<MerchantUpdatedNotificationRequest>getMerchantUpdatedNotificationRequest()Attempts to deserialize the webhook payload into a MerchantUpdatedNotificationRequestOptional<PaymentMethodCreatedNotificationRequest>getPaymentMethodCreatedNotificationRequest()Attempts to deserialize the webhook payload into a PaymentMethodCreatedNotificationRequestOptional<PaymentMethodRequestRemovedNotificationRequest>getPaymentMethodRequestRemovedNotificationRequest()Attempts to deserialize the webhook payload into a PaymentMethodRequestRemovedNotificationRequestOptional<PaymentMethodScheduledForRemovalNotificationRequest>getPaymentMethodScheduledForRemovalNotificationRequest()Attempts to deserialize the webhook payload into a PaymentMethodScheduledForRemovalNotificationRequestOptional<TerminalBoardingNotificationRequest>getTerminalBoardingNotificationRequest()Attempts to deserialize the webhook payload into a TerminalBoardingNotificationRequestOptional<TerminalSettingsNotificationRequest>getTerminalSettingsNotificationRequest()Attempts to deserialize the webhook payload into a TerminalSettingsNotificationRequest
-
-
-
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
-
-