<?php

namespace common\modules\orderPayment\WOP\OnlinePayments\Core\BusinessLogic\Domain\Webhook\Transformers;

use common\modules\orderPayment\WOP\OnlinePayments\Core\BusinessLogic\Domain\Webhook\WebhookData;
/**
 * Interface WebhookTransformerInterface
 *
 * @package OnlinePayments\Core\BusinessLogic\Domain\Webhook\Transformers
 */
interface WebhookTransformerInterface
{
    /**
     * @param string $webhookBody
     * @param array $requestHeaders
     *
     * @return WebhookData
     */
    public function transform(string $webhookBody, array $requestHeaders): WebhookData;
}
