<?php

namespace common\modules\orderPayment\WOP\OnlinePayments\Core\BusinessLogic\Order\Services\Capture;

use common\modules\orderPayment\WOP\OnlinePayments\Core\BusinessLogic\Domain\Capture\CaptureRequest;
use common\modules\orderPayment\WOP\OnlinePayments\Core\BusinessLogic\Domain\Capture\CaptureResponse;
use common\modules\orderPayment\WOP\OnlinePayments\Core\BusinessLogic\Order\Proxies\CaptureProxyInterface;
/**
 * Class CaptureService
 *
 * @package OnlinePayments\Core\BusinessLogic\Order\Services\Capture
 */
class CaptureService
{
    private CaptureProxyInterface $captureProxy;
    public function __construct(CaptureProxyInterface $captureProxy)
    {
        $this->captureProxy = $captureProxy;
    }
    public function handle(CaptureRequest $request): CaptureResponse
    {
        return $this->captureProxy->create($request);
    }
}
