Models
Person
Represents a natural person related to the company (e.g. owner or representative).
Namespace and purpose
Imoli\EflLeasingSdk\Model\Customer\Person models a natural person associated with the company, including personal details, address, documents and statements.
It is embedded inside Company as part of customer data.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Model\Customer - Class: final
Person
final class Person
{
public static function builder(): PersonBuilder;
public function __construct(
string $guid,
string $firstName,
string $lastName,
string $nip,
string $pesel,
string $birthDate,
string $birthPlace,
bool $pep,
Address $address,
string $countryOfOriginId,
array $identityDocuments,
?string $middleName = null,
?array $statements = null
);
public function toRequestPayload(): array;
}
Properties
| Name | Type | Required | Description |
|---|---|---|---|
guid | string | Yes | Identifier of the person entry. |
firstName | string | Yes | First name. |
lastName | string | Yes | Last name. |
middleName | string|null | No | Optional middle name. |
nip | string | Yes | Tax identifier (NIP). |
pesel | string | Yes | National identifier (PESEL). |
birthDate | string | Yes | Birth date. |
birthPlace | string | Yes | Birth place. |
pep | bool | Yes | Whether the person is a politically exposed person. |
address | Address | Yes | Residential or business address. |
countryOfOriginId | string | Yes | Country of origin identifier. |
identityDocuments | IdentityDocument[] | Yes | List of identity documents. |
statements | CustomerDataStatement[]|null | No | Optional person-level statements/consents. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
builder() | static | PersonBuilder | Returns a fluent builder for constructing Person instances. |
toRequestPayload() | instance | array<string,mixed> | Serialises the person data into the structure expected by EFL. |
toRequestPayload() produces an array with all fields, including nested structures for address, countryOfOrigin (as ['id' => countryOfOriginId]), identityDocuments (each converted via toRequestPayload()) and optional statements.
Usage in the SDK
- Included in the
personsarray ofCompany. - Used indirectly when building
CustomerDataforEflClient::submitCustomerData.