Skip to content

Commit

Permalink
Add bitrix24PartnerId/Uuid to ContactPerson entities
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mesilov committed Jul 26, 2024
1 parent 5225c39 commit 002cb45
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected function createContactPersonImplementation(
?CarbonImmutable $mobilePhoneVerifiedAt,
?string $externalId,
?int $bitrix24UserId,
?Uuid $bitrix24PartnerUuid,
?string $userAgent,
?string $userAgentReferer,
?IP $userAgentIp
Expand All @@ -51,6 +52,7 @@ protected function createContactPersonImplementation(
$mobilePhoneVerifiedAt,
$externalId,
$bitrix24UserId,
$bitrix24PartnerUuid,
$userAgent,
$userAgentReferer,
$userAgentIp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(
private ?CarbonImmutable $mobilePhoneVerifiedAt,
private ?string $externalId,
private readonly ?int $bitrix24UserId,
private ?Uuid $bitrix24PartnerUuid,
private readonly ?string $userAgent,
private readonly ?string $userAgentReferer,
private readonly ?IP $userAgentIp
Expand Down Expand Up @@ -188,6 +189,16 @@ public function getBitrix24UserId(): ?int
return $this->bitrix24UserId;
}

public function getBitrix24PartnerId(): ?Uuid
{
return $this->bitrix24PartnerUuid;
}

public function setBitrix24PartnerId(?Uuid $uuid): void
{
$this->bitrix24PartnerUuid = $uuid;
}

public function getUserAgent(): ?string
{
return $this->userAgent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ protected function createContactPersonImplementation(
?CarbonImmutable $mobilePhoneVerifiedAt,
?string $externalId,
?int $bitrix24UserId,
?Uuid $bitrix24PartnerId,
?string $userAgent,
?string $userAgentReferer,
?IP $userAgentIp
Expand All @@ -88,6 +89,7 @@ protected function createContactPersonImplementation(
$mobilePhoneVerifiedAt,
$externalId,
$bitrix24UserId,
$bitrix24PartnerId,
$userAgent,
$userAgentReferer,
$userAgentIp
Expand Down

0 comments on commit 002cb45

Please sign in to comment.