From ef7d5cba2586c19436109c89db78598072a9834d Mon Sep 17 00:00:00 2001 From: curse89 <58438482+curse89@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:57:34 +0300 Subject: [PATCH] Fix bonus details response data --- src/Model/Entity/Loyalty/BonusDetail.php | 2 +- tests/src/ResourceGroup/LoyaltyTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Entity/Loyalty/BonusDetail.php b/src/Model/Entity/Loyalty/BonusDetail.php index 16e3e84..3e8b42f 100644 --- a/src/Model/Entity/Loyalty/BonusDetail.php +++ b/src/Model/Entity/Loyalty/BonusDetail.php @@ -22,7 +22,7 @@ class BonusDetail /** * @var \DateTime * - * @JMS\Type("DateTime<'Y-m-d H:i:s'>") + * @JMS\Type("DateTime<'Y-m-d'>") * @JMS\SerializedName("date") */ public $date; diff --git a/tests/src/ResourceGroup/LoyaltyTest.php b/tests/src/ResourceGroup/LoyaltyTest.php index 51c5e99..4f6b85f 100644 --- a/tests/src/ResourceGroup/LoyaltyTest.php +++ b/tests/src/ResourceGroup/LoyaltyTest.php @@ -1190,7 +1190,7 @@ EOF; }, "bonuses": [ { - "date": "2021-03-17 18:08:02", + "date": "2021-03-17", "amount": 1.2 } ],