[Unit] Adjust archive and restore promotion responses

This commit is contained in:
Rafikooo 2024-07-22 13:28:13 +02:00 committed by Kamil Grygierzec
parent 30b62ca104
commit 1846011931
No known key found for this signature in database
GPG key ID: 7F54EE42DAD4B9E9
2 changed files with 4 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{
"@context": "\/api\/v2\/contexts\/Promotion",
"@id": "\/api\/v2\/admin\/promotions\/50_off",
"@id": "\/api\/v2\/admin\/promotions\/50_off/archive",
"@type": "Promotion",
"channels": [
"\/api\/v2\/admin\/channels\/MOBILE"
@ -23,9 +23,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!"
}
}

View file

@ -1,6 +1,6 @@
{
"@context": "\/api\/v2\/contexts\/Promotion",
"@id": "\/api\/v2\/admin\/promotions\/back_to_school",
"@id": "\/api\/v2\/admin\/promotions\/back_to_school\/restore",
"@type": "Promotion",
"channels": [
"\/api\/v2\/admin\/channels\/WEB",
@ -22,9 +22,8 @@
"updatedAt": "@date@",
"translations": {
"en_US": {
"@id": "\/api\/v2\/admin\/promotion-translations\/@integer@",
"@id": "\/api\/v2\/admin\/promotions\/back_to_school\/translations\/en_US",
"@type": "PromotionTranslation",
"id": "@integer@",
"label": "Back to school sale!"
}
}