EFL
Models

Company

Company data required by EFL for customer onboarding.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Customer\Company models company-level customer data: identifiers, contact details, addresses and statements. It is embedded inside CustomerData and ultimately sent to /Customer/PostCustomerDataForLon.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Customer
  • Class: final Company
final class Company
{
    public static function builder(string $guid, string $nip): CompanyBuilder;

    public function __construct(
        string $guid,
        string $nip,
        array $emails,
        array $phones,
        array $persons,
        array $addresses,
        array $statements
    );

    public function toRequestPayload(): array;
}

Properties

NameTypeRequiredDescription
guidstringYesUnique identifier for the company entry in your system.
nipstringYesCompany tax identifier (NIP) required by EFL.
emailsEmailAddress[]YesList of company e-mail addresses.
phonesPhone[]YesList of company phone numbers.
personsPerson[]YesContact persons associated with the company.
addressesAddress[]YesCompany addresses (e.g. registered office, correspondence).
statementsCustomerDataStatement[]YesConsents/statements given by the company.

Methods

MethodKindReturn typeDescription
builder()staticCompanyBuilderReturns a fluent builder for constructing Company instances.
toRequestPayload()instancearray<string,mixed>Serialises the company data into the structure expected by EFL.

toRequestPayload() returns an array with the following shape:

  • guid, nip – maps to the respective properties,
  • emails, phones, persons, addresses, statements – each element converted via its own toRequestPayload() method.

Usage in the SDK