mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Unit] Adjust promotion updating response
This commit is contained in:
parent
bf7ff2c20c
commit
abcac1a672
2 changed files with 4 additions and 6 deletions
|
|
@ -20,7 +20,7 @@
|
|||
"coupons": [],
|
||||
"rules": [
|
||||
{
|
||||
"@id": "\/api\/v2\/admin\/promotion-rules\/@integer@",
|
||||
"@id": "\/api\/v2\/admin\/promotions\/50_off\/rules\/@integer@",
|
||||
"@type": "PromotionRule",
|
||||
"id": "@integer@",
|
||||
"type": "cart_quantity",
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
],
|
||||
"actions": [
|
||||
{
|
||||
"@id": "\/api\/v2\/admin\/promotion-actions\/@integer@",
|
||||
"@id": "\/api\/v2\/admin\/promotions\/50_off\/actions\/@integer@",
|
||||
"@type": "PromotionAction",
|
||||
"id": "@integer@",
|
||||
"type": "order_fixed_discount",
|
||||
|
|
@ -50,9 +50,8 @@
|
|||
"updatedAt": "@date@",
|
||||
"translations": {
|
||||
"en_US": {
|
||||
"@id": "\/api\/v2\/admin\/promotion-translations\/@integer@",
|
||||
"@id": "\/api\/v2\/admin\/promotions\/50_off\/translations\/en_US",
|
||||
"@type": "PromotionTranslation",
|
||||
"id": "@integer@",
|
||||
"label": "Christmas"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,9 +25,8 @@
|
|||
"updatedAt": "@date@",
|
||||
"translations": {
|
||||
"en_US": {
|
||||
"@id": "\/api\/v2\/admin\/promotion-translations\/@integer@",
|
||||
"@id": "\/api\/v2\/admin\/promotions\/50_off\/translations\/en_US",
|
||||
"@type": "PromotionTranslation",
|
||||
"id": "@integer@",
|
||||
"label": "-50% on first order!"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue