1
0
mirror of synced 2024-11-22 11:56:03 +03:00

Add responsible external_id field

This commit is contained in:
Alex Komarichev 2024-08-14 17:02:07 +03:00
parent 6e4dd6af44
commit d34270121c
4 changed files with 30 additions and 2 deletions

View File

@ -49,6 +49,15 @@ class Responsible implements ModelInterface
*/ */
private $type; private $type;
/**
* @var string $externalId
*
* @Type("string")
* @Accessor(getter="getExternalId",setter="setExternalId")
* @SkipWhenEmpty()
*/
private $externalId;
/** /**
* @return string|null * @return string|null
*/ */
@ -96,4 +105,20 @@ class Responsible implements ModelInterface
{ {
$this->type = $type; $this->type = $type;
} }
/**
* @return string|null
*/
public function getExternalId(): ?string
{
return $this->externalId;
}
/**
* @param string $externalId
*/
public function setExternalId(string $externalId): void
{
$this->externalId = $externalId;
}
} }

View File

@ -1 +1 @@
{"responsible":{"type":"user","id":4,"assigned_at":"2019-06-21T08:01:09Z"},"is_reassign":true,"previous_responsible":{"type":"user","id":12,"assigned_at":"2019-06-11T12:49:34Z"},"left_user_id":12} {"responsible":{"type":"user","id":4,"external_id": "4","assigned_at":"2019-06-21T08:01:09Z"},"is_reassign":true,"previous_responsible":{"type":"user","id":12,"external_id": "12","assigned_at":"2019-06-11T12:49:34Z"},"left_user_id":12}

View File

@ -1 +1 @@
{"previous_responsible":{"type":"user","id":12,"assigned_at":"2019-06-11T12:49:34Z"}} {"previous_responsible":{"type":"user","id":12,"external_id": "12","assigned_at":"2019-06-11T12:49:34Z"}}

View File

@ -11,6 +11,7 @@
"responsible": { "responsible": {
"type": "user", "type": "user",
"id": 12, "id": 12,
"external_id": "12",
"assigned_at": "2019-06-11T12:49:34.716716Z" "assigned_at": "2019-06-11T12:49:34.716716Z"
}, },
"is_active": true "is_active": true
@ -27,6 +28,7 @@
"responsible": { "responsible": {
"type": "user", "type": "user",
"id": 12, "id": 12,
"external_id": "12",
"assigned_at": "2019-06-11T08:40:14.136916Z" "assigned_at": "2019-06-11T08:40:14.136916Z"
}, },
"is_active": true "is_active": true
@ -43,6 +45,7 @@
"responsible": { "responsible": {
"type": "user", "type": "user",
"id": 12, "id": 12,
"external_id": "12",
"assigned_at": "2019-06-11T08:40:14Z" "assigned_at": "2019-06-11T08:40:14Z"
}, },
"is_active": true "is_active": true