EFL
Models

CustomerDataStatement

Represents a single customer statement or consent associated with company or person data.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Customer\CustomerDataStatement models a statement/consent entry attached to customer data. It can be associated with a company (Company::toRequestPayload()) or person (Person::toRequestPayload()).

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Customer
  • Class: final CustomerDataStatement
final class CustomerDataStatement
{
    public static function builder(): CustomerDataStatementBuilder;

    public function __construct(
        string $guid,
        bool $agreement,
        string $statementTypeId,
        ?string $validFrom = null
    );

    public function toRequestPayload(): array;
}

Properties

NameTypeRequiredDescription
guidstringYesUnique identifier of the statement.
agreementboolYesFlag indicating whether the statement is accepted.
statementTypeIdstringYesType identifier used by EFL.
validFromstring|nullNoOptional start date for the statement.

Methods

MethodKindReturn typeDescription
builder()staticCustomerDataStatementBuilderReturns a fluent builder for constructing CustomerDataStatement instances.
toRequestPayload()instancearray<string,mixed>Serialises the statement into the structure expected by the API.

toRequestPayload() returns an array with the following shape:

  • guid, agreement – maps to the respective properties,
  • statementType – nested object with ['id' => statementTypeId],
  • validFrom – included only if not null.

Usage in the SDK