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 Details

    • processWebhook

      WebhookResponse processWebhook(WebhookRequest request)
      Processes the webhook data provided in the WebhookRequest.

      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 - the WebhookRequest object containing the webhook data to be processed. This parameter must not be null.
      Returns:
      WebhookResponse a WebhookResponse object