EFL
Models

AuthenticateResponse

Response from GET /Process/GetRestoreProcess with partner and token data for restoring a process.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Process\AuthenticateResponse represents the response from /Process/GetRestoreProcess. It contains the partner identifier and token required to restore an existing process session.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Process
  • Class: final AuthenticateResponse
final class AuthenticateResponse
{
    public ?string $partnerId;

    public ?string $token;

    public function __construct(?string $partnerId, ?string $token);

    public static function fromArray(array $data): self;
}

Properties

NameTypeRequiredDescription
partnerIdstring|nullNoPartner identifier returned by the EFL API.
tokenstring|nullNoToken that can be used to authenticate subsequent requests.

Methods

MethodKindReturn typeDescription
fromArray()staticAuthenticateResponseCreates a response from raw API data (partner id and token).

fromArray() reads partnerId and token as strings when present, otherwise sets them to null.

Usage in the SDK

  • Returned by EflClient::getRestoreProcess.
  • Can be used to reconstruct Config/authentication context in your application when restoring a process.