Package org.bhn.promotion.core.service
Interface PromotionWebhookService
- All Known Implementing Classes:
BHNPromotionWebhookService
public interface PromotionWebhookService
The
PromotionWebhookService interface provides a contract for processing webhooks received from
external sources. Implementations of this interface should define the logic for handling and
processing webhook events.-
Method Summary
Modifier and TypeMethodDescriptionprocessWebhook(WebhookRequest request) Processes the webhook data provided in theWebhookRequest.
-
Method Details
-
processWebhook
Processes the webhook data provided in theWebhookRequest.This method is responsible for handling the webhook event encapsulated in the
WebhookRequest. The processing logic can include validating the data, updating the system based on the event, or triggering further actions.- Parameters:
request- theWebhookRequestobject containing the webhook data to be processed. This parameter must not benull.- Returns:
- WebhookResponse a
WebhookResponseobject
-