[API] Fix configuration of Payment Request resource

This commit is contained in:
Grzegorz Sadowski 2024-10-14 06:57:52 +02:00
parent 0d27cfe0cd
commit ff217b07c9
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
3 changed files with 13 additions and 7 deletions

View file

@ -11,9 +11,10 @@
-->
<properties xmlns="https://api-platform.com/schema/metadata/properties-3.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://api-platform.com/schema/metadata/properties-3.0 https://api-platform.com/schema/metadata/properties-3.0.xsd"
<properties
xmlns="https://api-platform.com/schema/metadata/properties-3.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://api-platform.com/schema/metadata/properties-3.0 https://api-platform.com/schema/metadata/properties-3.0.xsd"
>
<property resource="%sylius.model.payment_request.class%" name="hash" identifier="true" />
</properties>

View file

@ -25,7 +25,11 @@
>
<normalizationContext>
<values>
<value>sylius:admin:payment_request:show</value>
<value name="groups">
<values>
<value>sylius:admin:payment_request:show</value>
</values>
</value>
</values>
</normalizationContext>
</operation>

View file

@ -11,9 +11,10 @@
-->
<serializer xmlns="http://symfony.com/schema/dic/serializer-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
<serializer
xmlns="http://symfony.com/schema/dic/serializer-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
>
<class name="Sylius\Component\Payment\Model\PaymentRequest">
<attribute name="id" ignore="true" />