mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[API] Fix configuration of Payment Request resource
This commit is contained in:
parent
0d27cfe0cd
commit
ff217b07c9
3 changed files with 13 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue