Class ConfigurationWebhooksHandler
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.ConfigurationWebhooksHandler
-
public class ConfigurationWebhooksHandler extends Object
Handler for processing ConfigurationWebhooks.This class provides functionality to deserialize the payload of ConfigurationWebhooks events.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationWebhooksHandler(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<AccountHolderNotificationRequest>getAccountHolderNotificationRequest()Attempts to deserialize the webhook payload into a AccountHolderNotificationRequestOptional<BalanceAccountNotificationRequest>getBalanceAccountNotificationRequest()Attempts to deserialize the webhook payload into a BalanceAccountNotificationRequestOptional<CardOrderNotificationRequest>getCardOrderNotificationRequest()Attempts to deserialize the webhook payload into a CardOrderNotificationRequestOptional<NetworkTokenNotificationRequest>getNetworkTokenNotificationRequest()Attempts to deserialize the webhook payload into a NetworkTokenNotificationRequestOptional<PaymentNotificationRequest>getPaymentNotificationRequest()Attempts to deserialize the webhook payload into a PaymentNotificationRequestOptional<ScoreNotificationRequest>getScoreNotificationRequest()Attempts to deserialize the webhook payload into a ScoreNotificationRequestOptional<SweepConfigurationNotificationRequest>getSweepConfigurationNotificationRequest()Attempts to deserialize the webhook payload into a SweepConfigurationNotificationRequest
-
-
-
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
-
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
-
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
-
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
-
-