[PaymentRequest] Remove experimental tag from the classes

This commit is contained in:
Grzegorz Sadowski 2026-06-22 13:25:35 +02:00
parent 827990dfe8
commit 14a1e8cb6c
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
97 changed files with 10 additions and 101 deletions

View file

@ -139,6 +139,16 @@
| `ShippingBundle\...\ShippingMethodCalculatorExists` | `invalidShippingCalculator` | `invalidShippingCalculatorMessage` |
| `ShippingBundle\...\ShippingMethodRule` | `invalidType` | `invalidTypeMessage` |
## Payment
1. The **Payment Request** feature is no longer **experimental**.
The `@experimental` annotation has now been removed from all classes, interfaces, traits and attributes belonging
to this feature across `Sylius\Component\Payment`, `Sylius\Bundle\PaymentBundle`, `Sylius\Bundle\PayumBundle`,
the order pay flow in `Sylius\Bundle\CoreBundle\OrderPay` and `Sylius\Bundle\PayumBundle\OrderPay`, and the
Payment Request layer in `Sylius\Bundle\ApiBundle`. These classes are now covered by the Sylius Backward
Compatibility policy.
## Deprecations
1. Passing a `Sylius\Component\Core\Calculator\ProductVariantPricesCalculatorInterface` directly to the following catalog-facing classes is deprecated since Sylius 2.3.

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\ApiBundle\Attribute\OrderTokenValueAware;
use Sylius\Bundle\ApiBundle\Attribute\PaymentRequestActionAware;
use Sylius\Bundle\ApiBundle\Command\IriToIdentifierConversionAwareInterface;
/** @experimental */
#[OrderTokenValueAware]
#[PaymentRequestActionAware]
class AddPaymentRequest implements IriToIdentifierConversionAwareInterface

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\ApiBundle\Command\Payment;
use Sylius\Bundle\ApiBundle\Attribute\PaymentRequestHashAware;
use Sylius\Bundle\ApiBundle\Command\IriToIdentifierConversionAwareInterface;
/** @experimental */
#[PaymentRequestHashAware]
class UpdatePaymentRequest implements IriToIdentifierConversionAwareInterface
{

View file

@ -32,7 +32,6 @@ use Sylius\Component\Payment\Repository\PaymentRequestRepositoryInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
use Symfony\Component\Security\Core\User\UserInterface;
/** @experimental */
#[AsMessageHandler]
final class AddPaymentRequestHandler
{

View file

@ -19,7 +19,6 @@ use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\Repository\PaymentRequestRepositoryInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
/** @experimental */
#[AsMessageHandler]
final class UpdatePaymentRequestHandler
{

View file

@ -21,7 +21,6 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\ViewEvent;
use Symfony\Component\HttpKernel\KernelEvents;
/** @experimental */
final class PaymentRequestEventSubscriber implements EventSubscriberInterface
{
public function __construct(private PaymentRequestAnnouncerInterface $paymentRequestAnnouncer)

View file

@ -30,8 +30,6 @@ use Webmozart\Assert\Assert;
/**
* @implements ProviderInterface<PaymentRequestInterface>
*
* @experimental
*/
final readonly class ItemProvider implements ProviderInterface
{

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\ApiBundle\Validator\Constraints;
use Symfony\Component\Validator\Attribute\HasNamedArguments;
use Symfony\Component\Validator\Constraint;
/** @experimental */
#[\Attribute]
final class ChosenPaymentRequestActionEligibility extends Constraint
{

View file

@ -24,7 +24,6 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/** @experimental */
final class OrderPayController
{
/**

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
use Sylius\Component\Payment\Model\PaymentInterface;
use Symfony\Component\HttpFoundation\Session\FlashBagAwareSessionInterface;
/** @experimental */
final class PaymentStateFlashHandler implements PaymentStateFlashHandlerInterface
{
public function __construct(private string $format = 'sylius.payment.%s')

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\CoreBundle\OrderPay\Handler;
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
/** @experimental */
interface PaymentStateFlashHandlerInterface
{
public function handle(RequestConfiguration $requestConfiguration, string $state): void;

View file

@ -17,7 +17,6 @@ use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
/** @experimental */
final class RouteParametersProcessor implements RouteParametersProcessorInterface
{
public function __construct(

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\CoreBundle\OrderPay\Processor;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
/** @experimental */
interface RouteParametersProcessorInterface
{
/**

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\CoreBundle\OrderPay\Provider;
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
use Symfony\Component\HttpFoundation\Response;
/** @experimental */
interface AfterPayResponseProviderInterface
{
public function getResponse(RequestConfiguration $requestConfiguration): Response;

View file

@ -18,7 +18,6 @@ use Sylius\Component\Core\Model\PaymentInterface;
use Sylius\Component\Payment\Model\PaymentInterface as BasePaymentInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
/** @experimental */
final class FinalUrlProvider implements FinalUrlProviderInterface
{
/**

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\CoreBundle\OrderPay\Provider;
use Sylius\Component\Core\Model\PaymentInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
/** @experimental */
interface FinalUrlProviderInterface
{
public function getUrl(

View file

@ -19,7 +19,6 @@ use Sylius\Component\Core\Model\OrderInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
/** @experimental */
final class NoPaymentPayResponseProvider implements PayResponseProviderInterface
{
public function __construct(

View file

@ -20,7 +20,6 @@ use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
/** @experimental */
final class StatusHttpResponseProvider implements HttpResponseProviderInterface
{
public function __construct(private FinalUrlProviderInterface $finalUrlProvider)

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
use Sylius\Component\Core\Model\OrderInterface;
use Symfony\Component\HttpFoundation\Response;
/** @experimental */
interface PayResponseProviderInterface
{
public function getResponse(RequestConfiguration $requestConfiguration, OrderInterface $order): Response;

View file

@ -25,7 +25,6 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Webmozart\Assert\Assert;
/** @experimental */
final class PaymentRequestAfterPayResponseProvider implements AfterPayResponseProviderInterface
{
/**

View file

@ -28,7 +28,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Webmozart\Assert\Assert;
/** @experimental */
final class PaymentRequestPayResponseProvider implements PayResponseProviderInterface
{
/**

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\CoreBundle\OrderPay\Resolver;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\PaymentInterface;
/** @experimental */
final class PaymentToPayResolver implements PaymentToPayResolverInterface
{
public function __construct(private string $state)

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\CoreBundle\OrderPay\Resolver;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\PaymentInterface;
/** @experimental */
interface PaymentToPayResolverInterface
{
public function getPayment(OrderInterface $order): ?PaymentInterface;

View file

@ -26,7 +26,6 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/** @experimental */
final class PaymentMethodNotifyAction
{
/**

View file

@ -24,7 +24,6 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/** @experimental */
final class PaymentRequestNotifyAction
{
/**

View file

@ -18,7 +18,6 @@ use Sylius\Bundle\PaymentBundle\CommandProvider\PaymentRequestCommandProviderInt
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\Messenger\MessageBusInterface;
/** @experimental */
final readonly class PaymentRequestAnnouncer implements PaymentRequestAnnouncerInterface
{
public function __construct(

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Announcer;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface PaymentRequestAnnouncerInterface
{
public function dispatchPaymentRequestCommand(PaymentRequestInterface $paymentRequest): void;

View file

@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Bundle\PaymentBundle\Attribute;
/** @experimental */
#[\Attribute(\Attribute::TARGET_CLASS)]
final class AsNotifyPaymentProvider
{

View file

@ -20,7 +20,6 @@ use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\PaymentRequestTransitions;
use Sylius\Component\Payment\Repository\PaymentRequestRepositoryInterface;
/** @experimental */
final class PaymentRequestCanceller implements PaymentRequestCancellerInterface
{
/**

View file

@ -17,7 +17,6 @@ use Sylius\Abstraction\StateMachine\StateMachineInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\PaymentRequestTransitions;
/** @experimental */
final class FinalizedPaymentRequestChecker implements FinalizedPaymentRequestCheckerInterface
{
public function __construct(private StateMachineInterface $stateMachine)

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Checker;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface FinalizedPaymentRequestCheckerInterface
{
public function isFinal(PaymentRequestInterface $paymentRequest): bool;

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Checker;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\Repository\PaymentRequestRepositoryInterface;
/** @experimental */
final class PaymentRequestDuplicationChecker implements PaymentRequestDuplicationCheckerInterface
{
/** @param PaymentRequestRepositoryInterface<PaymentRequestInterface> $paymentRequestRepository */

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Checker;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface PaymentRequestDuplicationCheckerInterface
{
public function hasDuplicates(PaymentRequestInterface $paymentRequest): bool;

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Command\Offline;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareInterface;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareTrait;
/** @experimental */
class CapturePaymentRequest implements PaymentRequestHashAwareInterface
{
use PaymentRequestHashAwareTrait;

View file

@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Bundle\PaymentBundle\Command;
/** @experimental */
interface PaymentRequestHashAwareInterface
{
public function getHash(): string;

View file

@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Bundle\PaymentBundle\Command;
/** @experimental */
trait PaymentRequestHashAwareTrait
{
protected ?string $hash;

View file

@ -19,7 +19,6 @@ use Sylius\Bundle\PaymentBundle\Provider\PaymentRequestProviderInterface;
use Sylius\Component\Payment\PaymentRequestTransitions;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
/** @experimental */
#[AsMessageHandler]
final readonly class CapturePaymentRequestHandler
{

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\PaymentBundle\Exception\PaymentRequestNotSupportedException;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Contracts\Service\ServiceProviderInterface;
/** @experimental */
abstract class AbstractServiceCommandProvider implements ServiceProviderAwareCommandProviderInterface
{
/** @var ServiceProviderInterface<PaymentRequestCommandProviderInterface> */

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\CommandProvider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Contracts\Service\ServiceProviderInterface;
/** @experimental */
final class ActionsCommandProvider extends AbstractServiceCommandProvider
{
/** @param ServiceProviderInterface<PaymentRequestCommandProviderInterface> $locator */

View file

@ -18,7 +18,6 @@ use Sylius\Bundle\PaymentBundle\Provider\GatewayFactoryNameProviderInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Contracts\Service\ServiceProviderInterface;
/** @experimental */
final class GatewayFactoryCommandProvider extends AbstractServiceCommandProvider
{
/** @param ServiceProviderInterface<PaymentRequestCommandProviderInterface> $locator */

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\PaymentBundle\Command\Offline\CapturePaymentRequest;
use Sylius\Bundle\PaymentBundle\CommandProvider\PaymentRequestCommandProviderInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class CapturePaymentRequestCommandProvider implements PaymentRequestCommandProviderInterface
{
public function supports(PaymentRequestInterface $paymentRequest): bool

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\CommandProvider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface PaymentRequestCommandProviderInterface
{
public function supports(PaymentRequestInterface $paymentRequest): bool;

View file

@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Bundle\PaymentBundle\CommandProvider;
/** @experimental */
interface ServiceProviderAwareCommandProviderInterface extends PaymentRequestCommandProviderInterface
{
public function getCommandProvider(string $index): ?PaymentRequestCommandProviderInterface;

View file

@ -25,8 +25,6 @@ use Symfony\Bridge\Doctrine\Types\UuidType;
* @template T of PaymentRequestInterface
*
* @implements PaymentRequestRepositoryInterface<T>
*
* @experimental
*/
class PaymentRequestRepository extends EntityRepository implements PaymentRequestRepositoryInterface
{

View file

@ -17,7 +17,6 @@ use Doctrine\ORM\Event\PostUpdateEventArgs;
use Sylius\Component\Payment\Canceller\PaymentRequestCancellerInterface;
use Sylius\Component\Payment\Model\PaymentInterface;
/** @experimental */
final class PaymentMethodChangeEventListener
{
public function __construct(private PaymentRequestCancellerInterface $paymentRequestCanceller)

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Normalizer;
use Symfony\Component\HttpFoundation\Request;
/** @experimental */
final class SymfonyRequestNormalizer implements SymfonyRequestNormalizerInterface
{
public function normalize(Request $request): array

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Normalizer;
use Symfony\Component\HttpFoundation\Request;
/** @experimental */
interface SymfonyRequestNormalizerInterface
{
/**

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\PaymentBundle\Normalizer\SymfonyRequestNormalizerInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\HttpFoundation\Request;
/** @experimental */
final class NotifyPayloadProcessor implements NotifyPayloadProcessorInterface
{
public function __construct(

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Processor;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\HttpFoundation\Request;
/** @experimental */
interface NotifyPayloadProcessorInterface
{
public function process(PaymentRequestInterface $paymentRequest, Request $request): void;

View file

@ -19,7 +19,6 @@ use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\Service\ServiceProviderInterface;
/** @experimental */
abstract class AbstractServiceProvider implements ServiceProviderAwareProviderInterface
{
/** @var ServiceProviderInterface<HttpResponseProviderInterface> */

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Contracts\Service\ServiceProviderInterface;
/** @experimental */
final class ActionsHttpResponseProvider extends AbstractServiceProvider
{
/** @param ServiceProviderInterface<HttpResponseProviderInterface> $locator */

View file

@ -18,7 +18,6 @@ use Sylius\Component\Payment\Model\PaymentMethodInterface;
use Symfony\Component\HttpFoundation\Request;
use Webmozart\Assert\Assert;
/** @experimental */
final class CompositeNotifyPaymentProvider implements NotifyPaymentProviderInterface
{
/**

View file

@ -18,7 +18,6 @@ use Sylius\Component\Payment\Model\PaymentMethodInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\Repository\PaymentMethodRepositoryInterface;
/** @experimental */
final readonly class DefaultActionProvider implements DefaultActionProviderInterface
{
/**

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentMethodInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface DefaultActionProviderInterface
{
public function getAction(PaymentRequestInterface $paymentRequest): string;

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class DefaultPayloadProvider implements DefaultPayloadProviderInterface
{
public function getPayload(PaymentRequestInterface $paymentRequest): mixed

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface DefaultPayloadProviderInterface
{
public function getPayload(PaymentRequestInterface $paymentRequest): mixed;

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Contracts\Service\ServiceProviderInterface;
/** @experimental */
final class GatewayFactoryHttpResponseProvider extends AbstractServiceProvider
{
/** @param ServiceProviderInterface<HttpResponseProviderInterface> $locator */

View file

@ -17,7 +17,6 @@ use Sylius\Component\Payment\Model\GatewayConfigInterface;
use Sylius\Component\Payment\Model\PaymentMethodInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class GatewayFactoryNameProvider implements GatewayFactoryNameProviderInterface
{
public function provide(PaymentMethodInterface $paymentMethod): string

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentMethodInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface GatewayFactoryNameProviderInterface
{
public function provide(PaymentMethodInterface $paymentMethod): string;

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\HttpFoundation\Response;
/** @experimental */
interface HttpResponseProviderInterface
{
public function supports(

View file

@ -17,7 +17,6 @@ use Sylius\Component\Payment\Model\PaymentInterface;
use Sylius\Component\Payment\Model\PaymentMethodInterface;
use Symfony\Component\HttpFoundation\Request;
/** @experimental */
interface NotifyPaymentProviderInterface
{
public function getPayment(Request $request, PaymentMethodInterface $paymentMethod): PaymentInterface;

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\HttpFoundation\Response;
/** @experimental */
final class NotifyResponseProvider implements NotifyResponseProviderInterface
{
public function provide(PaymentRequestInterface $paymentRequest): Response

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Symfony\Component\HttpFoundation\Response;
/** @experimental */
interface NotifyResponseProviderInterface
{
public function provide(PaymentRequestInterface $paymentRequest): Response;

View file

@ -18,7 +18,6 @@ use Sylius\Component\Payment\Exception\PaymentRequestNotFoundException;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\Repository\PaymentRequestRepositoryInterface;
/** @experimental */
final class PaymentRequestProvider implements PaymentRequestProviderInterface
{
/** @param PaymentRequestRepositoryInterface<PaymentRequestInterface> $paymentRequestRepository */

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface PaymentRequestProviderInterface
{
public function provide(PaymentRequestHashAwareInterface $command): PaymentRequestInterface;

View file

@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Bundle\PaymentBundle\Provider;
/** @experimental */
interface ServiceProviderAwareProviderInterface extends HttpResponseProviderInterface
{
public function getHttpResponseProvider(string $index): ?HttpResponseProviderInterface;

View file

@ -26,7 +26,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\RouterInterface;
/** @experimental */
final class PayumAfterPayResponseProvider implements AfterPayResponseProviderInterface
{
public function __construct(

View file

@ -26,7 +26,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Webmozart\Assert\Assert;
/** @experimental */
final class PayumPayResponseProvider implements PayResponseProviderInterface
{
public function __construct(

View file

@ -18,7 +18,6 @@ use Payum\Core\Exception\RequestNotSupportedException;
use Payum\Core\Request\GetHttpRequest;
use Sylius\Bundle\PayumBundle\PaymentRequest\Context\PaymentRequestContextInterface;
/** @experimental */
final class SyliusGetHttpRequestAction implements ActionInterface
{
public function __construct(private PaymentRequestContextInterface $payumApiContext)

View file

@ -18,7 +18,6 @@ use Payum\Core\Exception\RequestNotSupportedException;
use Payum\Core\Request\RenderTemplate;
use Sylius\Bundle\PayumBundle\PaymentRequest\Context\PaymentRequestContextInterface;
/** @experimental */
final class SyliusRenderTemplateAction implements ActionInterface
{
public function __construct(private PaymentRequestContextInterface $payumApiContext)

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Command;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareInterface;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareTrait;
/** @experimental */
class AuthorizePaymentRequest implements PaymentRequestHashAwareInterface
{
use PaymentRequestHashAwareTrait;

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Command;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareInterface;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareTrait;
/** @experimental */
class CapturePaymentRequest implements PaymentRequestHashAwareInterface
{
use PaymentRequestHashAwareTrait;

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Command;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareInterface;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareTrait;
/** @experimental */
class NotifyPaymentRequest implements PaymentRequestHashAwareInterface
{
use PaymentRequestHashAwareTrait;

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Command;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareInterface;
use Sylius\Bundle\PaymentBundle\Command\PaymentRequestHashAwareTrait;
/** @experimental */
class StatusPaymentRequest implements PaymentRequestHashAwareInterface
{
use PaymentRequestHashAwareTrait;

View file

@ -22,7 +22,6 @@ use Sylius\Bundle\PayumBundle\PaymentRequest\Resolver\DoctrineProxyObjectResolve
use Sylius\Component\Payment\Model\PaymentMethodInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
/** @experimental */
#[AsMessageHandler]
final class ModelPaymentRequestHandler
{

View file

@ -23,7 +23,6 @@ use Sylius\Bundle\PayumBundle\PaymentRequest\Processor\RequestProcessorInterface
use Sylius\Bundle\PayumBundle\PaymentRequest\Resolver\DoctrineProxyObjectResolverInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
/** @experimental */
#[AsMessageHandler]
final class TokenPaymentRequestHandler
{

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\PaymentBundle\CommandProvider\PaymentRequestCommandProviderInt
use Sylius\Bundle\PayumBundle\PaymentRequest\Command\AuthorizePaymentRequest;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class AuthorizeCommandProvider implements PaymentRequestCommandProviderInterface
{
public function supports(PaymentRequestInterface $paymentRequest): bool

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\PaymentBundle\CommandProvider\PaymentRequestCommandProviderInt
use Sylius\Bundle\PayumBundle\PaymentRequest\Command\CapturePaymentRequest;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class CaptureCommandProvider implements PaymentRequestCommandProviderInterface
{
public function supports(PaymentRequestInterface $paymentRequest): bool

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\PaymentBundle\CommandProvider\PaymentRequestCommandProviderInt
use Sylius\Bundle\PayumBundle\PaymentRequest\Command\NotifyPaymentRequest;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class NotifyCommandProvider implements PaymentRequestCommandProviderInterface
{
public function supports(PaymentRequestInterface $paymentRequest): bool

View file

@ -17,7 +17,6 @@ use Sylius\Bundle\PaymentBundle\CommandProvider\PaymentRequestCommandProviderInt
use Sylius\Bundle\PayumBundle\PaymentRequest\Command\StatusPaymentRequest;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class StatusCommandProvider implements PaymentRequestCommandProviderInterface
{
public function supports(PaymentRequestInterface $paymentRequest): bool

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Context;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class PaymentRequestContext implements PaymentRequestContextInterface
{
private ?PaymentRequestInterface $paymentRequest = null;

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Context;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface PaymentRequestContextInterface
{
public function isEnabled(): bool;

View file

@ -20,7 +20,6 @@ use Sylius\Component\Payment\Exception\InvalidPaymentRequestPayloadException;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Webmozart\Assert\Assert;
/** @experimental */
final class PayumTokenFactory implements PayumTokenFactoryInterface
{
public function __construct(private Payum $payum)

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Factory;
use Payum\Core\Security\TokenInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface PayumTokenFactoryInterface
{
public function createNew(PaymentRequestInterface $paymentRequest): TokenInterface;

View file

@ -19,7 +19,6 @@ use Sylius\Component\Payment\Factory\PaymentRequestFactoryInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\Repository\PaymentRequestRepositoryInterface;
/** @experimental */
final class AfterTokenRequestProcessor implements AfterTokenRequestProcessorInterface
{
/**

View file

@ -16,7 +16,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Processor;
use Payum\Core\Security\TokenInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface AfterTokenRequestProcessorInterface
{
public function process(

View file

@ -20,7 +20,6 @@ use Sylius\Bundle\PayumBundle\PaymentRequest\Context\PaymentRequestContextInterf
use Sylius\Component\Payment\Model\PaymentRequestInterface;
use Sylius\Component\Payment\PaymentRequestTransitions;
/** @experimental */
final readonly class RequestProcessor implements RequestProcessorInterface
{
public function __construct(

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Processor;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface RequestProcessorInterface
{
public function process(

View file

@ -18,7 +18,6 @@ use Doctrine\Persistence\Proxy;
use Sylius\Component\Core\Model\PaymentInterface;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
final class DoctrineProxyObjectResolver implements DoctrineProxyObjectResolverInterface
{
public function __construct(

View file

@ -15,7 +15,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Resolver;
use Sylius\Component\Payment\Model\PaymentRequestInterface;
/** @experimental */
interface DoctrineProxyObjectResolverInterface
{
public function resolve(PaymentRequestInterface $paymentRequest): void;

View file

@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Component\Payment\Canceller;
/** @experimental */
interface PaymentRequestCancellerInterface
{
public function cancelPaymentRequests(mixed $paymentId, string $paymentMethodCode): void;

View file

@ -20,8 +20,6 @@ use Sylius\Component\Resource\Exception\UnsupportedMethodException;
/**
* @implements PaymentRequestFactoryInterface<PaymentRequestInterface>
*
* @experimental
*/
final class PaymentRequestFactory implements PaymentRequestFactoryInterface
{

View file

@ -22,8 +22,6 @@ use Sylius\Resource\Factory\FactoryInterface;
* @template T of PaymentRequestInterface
*
* @extends FactoryInterface<T>
*
* @experimental
*/
interface PaymentRequestFactoryInterface extends FactoryInterface
{

View file

@ -16,7 +16,6 @@ namespace Sylius\Component\Payment\Model;
use Sylius\Component\Resource\Model\TimestampableTrait;
use Symfony\Component\Uid\Uuid;
/** @experimental */
class PaymentRequest implements PaymentRequestInterface
{
use TimestampableTrait;

View file

@ -18,7 +18,6 @@ use Sylius\Component\Resource\Model\ResourceInterface;
use Sylius\Component\Resource\Model\TimestampableInterface;
use Symfony\Component\Uid\Uuid;
/** @experimental */
interface PaymentRequestInterface extends TimestampableInterface, ResourceInterface, EncryptionAwareInterface
{
public const STATE_CANCELLED = 'cancelled';

View file

@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Component\Payment;
/** @experimental */
interface PaymentRequestTransitions
{
public const GRAPH = 'sylius_payment_request';

View file

@ -23,8 +23,6 @@ use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
* @template T of PaymentRequestInterface
*
* @extends RepositoryInterface<T>
*
* @experimental
*/
interface PaymentRequestRepositoryInterface extends RepositoryInterface
{