EFL
Models

CustomerData

Top-level customer data payload for /Customer/PostCustomerDataForLon.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Customer\CustomerData represents the main customer data payload sent to /Customer/PostCustomerDataForLon. It binds a transaction identifier, selected offer identifier and company information required by EFL.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Customer
  • Class: final CustomerData
final class CustomerData
{
    public static function builder(string $transactionId, int $offerId): CustomerDataBuilder;

    public function __construct(
        string $transactionId,
        int $offerId,
        Company $company
    );

    public function toRequestPayload(): array;
}

Properties

NameTypeRequiredDescription
transactionIdstringYesIdentifier of the current transaction.
offerIdintYesIdentifier of the selected offer variant.
companyCompanyYesCompany data including addresses, contacts and statements.

Methods

MethodKindReturn typeDescription
builder()staticCustomerDataBuilderReturns a fluent builder for constructing CustomerData instances.
toRequestPayload()instancearray<string,mixed>Serialises the customer data into the structure expected by the API.

toRequestPayload() returns an array with the following shape:

  • transactionId – maps to the transactionId property,
  • offerId – maps to the offerId property,
  • company – nested structure from Company::toRequestPayload().

Usage in the SDK