Resolve "Import des usagers depuis une source externe"

This commit is contained in:
Boris Waaub
2026-03-13 14:40:43 +00:00
committed by Julien Fastré
parent 6a39811fe8
commit 3d008b6f71
7 changed files with 1290 additions and 6 deletions

View File

@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\PersonBundle\Actions\Upsert;
class UpsertMessage
{
public string $externalId;
public int $personIdentifierDefinitionId;
public ?string $firstName = null;
public ?string $lastName = null;
public ?string $gender = null;
public ?string $birthdate = null;
public ?string $mobileNumber = null;
public ?string $phoneNumber = null;
public ?string $addressStreet = null;
/**
* The extra field of the address.
*/
public ?string $addressExtra = null;
public ?string $addressStreetNumber = null;
public ?string $addressPostcode = null;
public ?string $addressCity = null;
public ?string $center = null;
public function hasAddressInfo(): bool
{
return null !== $this->addressStreet || null !== $this->addressPostcode || null !== $this->addressStreetNumber;
}
}