mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[ApiBundle] Add normalization group to payment complete endpoint
This commit is contained in:
parent
c33d0957cc
commit
e786fb486a
3 changed files with 11 additions and 5 deletions
|
|
@ -69,6 +69,12 @@
|
|||
<attribute name="openapi_context">
|
||||
<attribute name="summary">Completes Payment.</attribute>
|
||||
</attribute>
|
||||
<attribute name="normalization_context">
|
||||
<attribute name="groups">
|
||||
<attribute>shop:payment:show</attribute>
|
||||
<attribute>sylius:shop:payment:show</attribute>
|
||||
</attribute>
|
||||
</attribute>
|
||||
</itemOperation>
|
||||
</itemOperations>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,10 +27,6 @@
|
|||
<cascade>
|
||||
<cascade-all/>
|
||||
</cascade>
|
||||
|
||||
<order-by>
|
||||
<order-by-field name="id" />
|
||||
</order-by>
|
||||
</one-to-many>
|
||||
|
||||
<field name="currencyCode" column="currency_code" length="3" type="string" />
|
||||
|
|
|
|||
|
|
@ -4,7 +4,11 @@
|
|||
"@type": "Payment",
|
||||
"order": "\/api\/v2\/admin\/orders\/nAWw2jewpA",
|
||||
"id": @integer@,
|
||||
"method": "\/api\/v2\/admin\/payment-methods\/CASH_ON_DELIVERY",
|
||||
"method": {
|
||||
"@id": "\/api\/v2\/admin\/payment-methods\/CASH_ON_DELIVERY",
|
||||
"@type": "PaymentMethod",
|
||||
"name": "Cash on delivery"
|
||||
},
|
||||
"currencyCode": "USD",
|
||||
"amount": 6500,
|
||||
"state": "completed",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue