mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
[PaymentRequest] Remove experimental tag from the classes
This commit is contained in:
parent
827990dfe8
commit
14a1e8cb6c
97 changed files with 10 additions and 101 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@ use Webmozart\Assert\Assert;
|
|||
|
||||
/**
|
||||
* @implements ProviderInterface<PaymentRequestInterface>
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
final readonly class ItemProvider implements ProviderInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/** @experimental */
|
||||
final class OrderPayController
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\CoreBundle\OrderPay\Processor;
|
|||
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface RouteParametersProcessorInterface
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
|
|||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Webmozart\Assert\Assert;
|
||||
|
||||
/** @experimental */
|
||||
final class PaymentRequestPayResponseProvider implements PayResponseProviderInterface
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/** @experimental */
|
||||
final class PaymentMethodNotifyAction
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
/** @experimental */
|
||||
final class PaymentRequestNotifyAction
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Announcer;
|
|||
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface PaymentRequestAnnouncerInterface
|
||||
{
|
||||
public function dispatchPaymentRequestCommand(PaymentRequestInterface $paymentRequest): void;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\PaymentBundle\Attribute;
|
||||
|
||||
/** @experimental */
|
||||
#[\Attribute(\Attribute::TARGET_CLASS)]
|
||||
final class AsNotifyPaymentProvider
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Checker;
|
|||
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface FinalizedPaymentRequestCheckerInterface
|
||||
{
|
||||
public function isFinal(PaymentRequestInterface $paymentRequest): bool;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Checker;
|
|||
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface PaymentRequestDuplicationCheckerInterface
|
||||
{
|
||||
public function hasDuplicates(PaymentRequestInterface $paymentRequest): bool;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\PaymentBundle\Command;
|
||||
|
||||
/** @experimental */
|
||||
interface PaymentRequestHashAwareInterface
|
||||
{
|
||||
public function getHash(): string;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\PaymentBundle\Command;
|
||||
|
||||
/** @experimental */
|
||||
trait PaymentRequestHashAwareTrait
|
||||
{
|
||||
protected ?string $hash;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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> */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\CommandProvider;
|
|||
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface PaymentRequestCommandProviderInterface
|
||||
{
|
||||
public function supports(PaymentRequestInterface $paymentRequest): bool;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\PaymentBundle\CommandProvider;
|
||||
|
||||
/** @experimental */
|
||||
interface ServiceProviderAwareCommandProviderInterface extends PaymentRequestCommandProviderInterface
|
||||
{
|
||||
public function getCommandProvider(string $index): ?PaymentRequestCommandProviderInterface;
|
||||
|
|
|
|||
|
|
@ -25,8 +25,6 @@ use Symfony\Bridge\Doctrine\Types\UuidType;
|
|||
* @template T of PaymentRequestInterface
|
||||
*
|
||||
* @implements PaymentRequestRepositoryInterface<T>
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
class PaymentRequestRepository extends EntityRepository implements PaymentRequestRepositoryInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Normalizer;
|
|||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/** @experimental */
|
||||
interface SymfonyRequestNormalizerInterface
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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> */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PaymentBundle\Provider;
|
|||
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface DefaultPayloadProviderInterface
|
||||
{
|
||||
public function getPayload(PaymentRequestInterface $paymentRequest): mixed;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Bundle\PaymentBundle\Provider;
|
||||
|
||||
/** @experimental */
|
||||
interface ServiceProviderAwareProviderInterface extends HttpResponseProviderInterface
|
||||
{
|
||||
public function getHttpResponseProvider(string $index): ?HttpResponseProviderInterface;
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Context;
|
|||
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface PaymentRequestContextInterface
|
||||
{
|
||||
public function isEnabled(): bool;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ namespace Sylius\Bundle\PayumBundle\PaymentRequest\Processor;
|
|||
|
||||
use Sylius\Component\Payment\Model\PaymentRequestInterface;
|
||||
|
||||
/** @experimental */
|
||||
interface RequestProcessorInterface
|
||||
{
|
||||
public function process(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Payment\Canceller;
|
||||
|
||||
/** @experimental */
|
||||
interface PaymentRequestCancellerInterface
|
||||
{
|
||||
public function cancelPaymentRequests(mixed $paymentId, string $paymentMethodCode): void;
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ use Sylius\Component\Resource\Exception\UnsupportedMethodException;
|
|||
|
||||
/**
|
||||
* @implements PaymentRequestFactoryInterface<PaymentRequestInterface>
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
final class PaymentRequestFactory implements PaymentRequestFactoryInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ use Sylius\Resource\Factory\FactoryInterface;
|
|||
* @template T of PaymentRequestInterface
|
||||
*
|
||||
* @extends FactoryInterface<T>
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
interface PaymentRequestFactoryInterface extends FactoryInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Sylius\Component\Payment;
|
||||
|
||||
/** @experimental */
|
||||
interface PaymentRequestTransitions
|
||||
{
|
||||
public const GRAPH = 'sylius_payment_request';
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@ use Sylius\Resource\Doctrine\Persistence\RepositoryInterface;
|
|||
* @template T of PaymentRequestInterface
|
||||
*
|
||||
* @extends RepositoryInterface<T>
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
interface PaymentRequestRepositoryInterface extends RepositoryInterface
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue