diff --git a/CHANGELOG.md b/CHANGELOG.md index ec043e1..ade077d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi ## Unreleased - Nothing. +### Added +- Add changedById to Contact. + ## [1.4.1] - 2024-04-05 ### Fixed diff --git a/src/Models/Contact.php b/src/Models/Contact.php index 5470502..887a7c7 100644 --- a/src/Models/Contact.php +++ b/src/Models/Contact.php @@ -18,7 +18,8 @@ public function __construct( public string $function, public string $publicPhone, public bool $active, - public int $createdById + public int $createdById, + public int $changedById ) { } } diff --git a/src/Parsers/ContactParser.php b/src/Parsers/ContactParser.php index 993e458..edad00c 100644 --- a/src/Parsers/ContactParser.php +++ b/src/Parsers/ContactParser.php @@ -22,7 +22,8 @@ public function parse(\stdClass $object): Contact $object->function, $object->publicPhone, $object->active, - $object->createdById + $object->createdById, + $object->changedById ); } } diff --git a/tests/_files/situations-schema.json b/tests/_files/situations-schema.json index 562c2d8..6017d0d 100644 --- a/tests/_files/situations-schema.json +++ b/tests/_files/situations-schema.json @@ -448,10 +448,14 @@ }, "createdById": { "type": "integer" + }, + "changedById": { + "type": "integer" } }, "required": [ "active", + "changedById", "contactId", "createdById", "email",