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 } ],