EFL
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

NameTypeRequiredDescription
guidstringYesIdentifier of the person entry.
firstNamestringYesFirst name.
lastNamestringYesLast name.
middleNamestring|nullNoOptional middle name.
nipstringYesTax identifier (NIP).
peselstringYesNational identifier (PESEL).
birthDatestringYesBirth date.
birthPlacestringYesBirth place.
pepboolYesWhether the person is a politically exposed person.
addressAddressYesResidential or business address.
countryOfOriginIdstringYesCountry of origin identifier.
identityDocumentsIdentityDocument[]YesList of identity documents.
statementsCustomerDataStatement[]|nullNoOptional person-level statements/consents.

Methods

MethodKindReturn typeDescription
builder()staticPersonBuilderReturns a fluent builder for constructing Person instances.
toRequestPayload()instancearray<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