Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 002cb45

Browse files
committed
Add bitrix24PartnerId/Uuid to ContactPerson entities
Extended the ContactPerson entities and their respective tests to include the bitrix24PartnerId/UUid field. This change ensures that we can store and retrieve Bitrix24 partner UUIDs for contact persons, enhancing our data handling capabilities. Signed-off-by: mesilov <mesilov.maxim@gmail.com>
1 parent 5225c39 commit 002cb45

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tests/Unit/Application/Contracts/ContactPersons/Entity/ContactPersonInterfaceReferenceImplementationTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ protected function createContactPersonImplementation(
3131
?CarbonImmutable $mobilePhoneVerifiedAt,
3232
?string $externalId,
3333
?int $bitrix24UserId,
34+
?Uuid $bitrix24PartnerUuid,
3435
?string $userAgent,
3536
?string $userAgentReferer,
3637
?IP $userAgentIp
@@ -51,6 +52,7 @@ protected function createContactPersonImplementation(
5152
$mobilePhoneVerifiedAt,
5253
$externalId,
5354
$bitrix24UserId,
55+
$bitrix24PartnerUuid,
5456
$userAgent,
5557
$userAgentReferer,
5658
$userAgentIp

tests/Unit/Application/Contracts/ContactPersons/Entity/ContactPersonReferenceEntityImplementation.php

+11
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function __construct(
3333
private ?CarbonImmutable $mobilePhoneVerifiedAt,
3434
private ?string $externalId,
3535
private readonly ?int $bitrix24UserId,
36+
private ?Uuid $bitrix24PartnerUuid,
3637
private readonly ?string $userAgent,
3738
private readonly ?string $userAgentReferer,
3839
private readonly ?IP $userAgentIp
@@ -188,6 +189,16 @@ public function getBitrix24UserId(): ?int
188189
return $this->bitrix24UserId;
189190
}
190191

192+
public function getBitrix24PartnerId(): ?Uuid
193+
{
194+
return $this->bitrix24PartnerUuid;
195+
}
196+
197+
public function setBitrix24PartnerId(?Uuid $uuid): void
198+
{
199+
$this->bitrix24PartnerUuid = $uuid;
200+
}
201+
191202
public function getUserAgent(): ?string
192203
{
193204
return $this->userAgent;

tests/Unit/Application/Contracts/ContactPersons/Repository/InMemoryContactPersonRepositoryImplementationTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ protected function createContactPersonImplementation(
6868
?CarbonImmutable $mobilePhoneVerifiedAt,
6969
?string $externalId,
7070
?int $bitrix24UserId,
71+
?Uuid $bitrix24PartnerId,
7172
?string $userAgent,
7273
?string $userAgentReferer,
7374
?IP $userAgentIp
@@ -88,6 +89,7 @@ protected function createContactPersonImplementation(
8889
$mobilePhoneVerifiedAt,
8990
$externalId,
9091
$bitrix24UserId,
92+
$bitrix24PartnerId,
9193
$userAgent,
9294
$userAgentReferer,
9395
$userAgentIp

0 commit comments

Comments
 (0)