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
| Name | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | Identifier of the current transaction. |
offerId | int | Yes | Identifier of the selected offer variant. |
company | Company | Yes | Company data including addresses, contacts and statements. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
builder() | static | CustomerDataBuilder | Returns a fluent builder for constructing CustomerData instances. |
toRequestPayload() | instance | array<string,mixed> | Serialises the customer data into the structure expected by the API. |
toRequestPayload() returns an array with the following shape:
transactionId– maps to thetransactionIdproperty,offerId– maps to theofferIdproperty,company– nested structure fromCompany::toRequestPayload().
Usage in the SDK
- Used by
EflClient::submitCustomerData. - Passed to
CustomerApiClient::postCustomerDataForLon()as the request payload.