<?php
namespace Ebizmarts\SagePaySuite\Model\ServerRequestManagement;

/**
 * Interceptor class for @see \Ebizmarts\SagePaySuite\Model\ServerRequestManagement
 */
class Interceptor extends \Ebizmarts\SagePaySuite\Model\ServerRequestManagement implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct(\Ebizmarts\SagePaySuite\Model\Config $config, \Ebizmarts\SagePaySuite\Helper\Data $suiteHelper, \Ebizmarts\SagePaySuite\Model\Api\Post $postApi, \Ebizmarts\SagePaySuiteLogger\Model\Logger\Logger $suiteLogger, \Ebizmarts\SagePaySuite\Helper\Checkout $checkoutHelper, \Ebizmarts\SagePaySuite\Helper\Request $requestHelper, \Ebizmarts\SagePaySuite\Model\Token $tokenModel, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Customer\Model\Session $customerSession, \Ebizmarts\SagePaySuite\Api\Data\ResultInterface $result, \Magento\Quote\Api\CartRepositoryInterface $quoteRepository, \Magento\Framework\UrlInterface $coreUrl, \Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory, \Magento\Framework\Encryption\EncryptorInterface $encryptor, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\Locale\Resolver $resolver)
    {
        $this->___init();
        parent::__construct($config, $suiteHelper, $postApi, $suiteLogger, $checkoutHelper, $requestHelper, $tokenModel, $checkoutSession, $customerSession, $result, $quoteRepository, $coreUrl, $quoteIdMaskFactory, $encryptor, $eventManager, $resolver);
    }

    /**
     * {@inheritdoc}
     */
    public function savePaymentInformationAndPlaceOrder($cartId, $save_token, $token)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'savePaymentInformationAndPlaceOrder');
        return $pluginInfo ? $this->___callPlugins('savePaymentInformationAndPlaceOrder', func_get_args(), $pluginInfo) : parent::savePaymentInformationAndPlaceOrder($cartId, $save_token, $token);
    }
}
