EFL
Models

AuthenticationRestorationResult

Result of restoration endpoints containing token, transaction id and next action.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Restoration\AuthenticationRestorationResult represents the response of restoration endpoints such as /Restoration/RestoreCustomerSession and /Restoration/RestoreSessionAfterSigning. It carries the token, transaction identifier and a ReauthenticationAction enum describing what should happen next.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Restoration
  • Class: final AuthenticationRestorationResult
final class AuthenticationRestorationResult
{
    public ?string $token;

    public ?string $transactionId;

    public ReauthenticationAction $action;

    public function __construct(
        ?string $token,
        ?string $transactionId,
        ReauthenticationAction $action
    );

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

Properties

NameTypeRequiredDescription
tokenstring|nullNoToken that can be used to restore the session.
transactionIdstring|nullNoIdentifier of the transaction.
actionReauthenticationActionYesEnum describing the next action.

Methods

MethodKindReturn typeDescription
fromArray()staticAuthenticationRestorationResultCreates a result from raw API data, mapping action to ReauthenticationAction enum.

fromArray() reads token and transactionId as strings when present, and maps action to a ReauthenticationAction value (defaulting to None).

Usage in the SDK