diff --git a/src/Model/Entity/References/LegalEntity.php b/src/Model/Entity/References/LegalEntity.php index 14d7dbe..21faf95 100644 --- a/src/Model/Entity/References/LegalEntity.php +++ b/src/Model/Entity/References/LegalEntity.php @@ -97,7 +97,7 @@ class LegalEntity /** * @var DateTime * - * @JMS\Type("DateTime<'Y-m-d H:i:s'>") + * @JMS\Type("DateTime<'Y-m-d'>") * @JMS\SerializedName("certificateDate") */ public $certificateDate; diff --git a/tests/src/ResourceGroup/ReferencesTest.php b/tests/src/ResourceGroup/ReferencesTest.php index b2e5e69..eb96d07 100644 --- a/tests/src/ResourceGroup/ReferencesTest.php +++ b/tests/src/ResourceGroup/ReferencesTest.php @@ -2671,7 +2671,8 @@ EOF; "legalName": "ИП Бороздина Татьяна Александровна", "INN": "773719480254", "code": "test", - "countryIso": "RU" + "countryIso": "RU", + "certificateDate": "2020-01-01" }, "countryIso": "RU", "currency": "RUB", @@ -2702,7 +2703,8 @@ EOF; "legalName": "ИП Бороздина Татьяна Александровна", "INN": "773719480154", "code": "Vog_Gallery", - "countryIso": "RU" + "countryIso": "RU", + "certificateDate": "2020-01-01" }, "countryIso": "RU", "currency": "RUB"