EFL
Models

FoicProcessStateResponse

Response from GET /Process/GetChanges with process status and loosely-typed payloads.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Process\FoicProcessStateResponse represents the response of /Process/GetChanges. It exposes the current and processed statuses as EsbProcessStatus enums and carries raw response, warning and processedResponse payloads whose shapes depend on the status.

Class definition

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

    public EsbProcessStatus $status;

    /** @var mixed */
    public $response;

    /** @var mixed */
    public $warning;

    public bool $statusWasProcessed;

    /** @var mixed */
    public $processedResponse;

    public EsbProcessStatus $processedStatus;

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

Properties

NameTypeRequiredDescription
transactionIdstring|nullNoIdentifier of the transaction.
statusEsbProcessStatusYesCurrent process status.
responsemixedYesAPI-defined structure for the current status.
warningmixedYesAPI-defined warning structure, if any.
statusWasProcessedboolYesWhether the status has already been processed.
processedResponsemixedYesAPI-defined structure for the processed status.
processedStatusEsbProcessStatusYesLast processed status.

Because the Swagger schema does not define strict types for response, warning and processedResponse, they are kept as mixed and should be inspected according to the EFL API documentation.

Methods

MethodKindReturn typeDescription
fromArray()staticFoicProcessStateResponseCreates a response from raw API data, mapping statuses to EsbProcessStatus enums.

fromArray() reads transactionId as string, maps status and processedStatus to EsbProcessStatus values (falling back to Error), and assigns response, warning, processedResponse and statusWasProcessed without further typing.

Usage in the SDK

  • Returned by EflClient::getProcessChanges.
  • Your application can use status / processedStatus to branch logic and rely on the raw response payload for advanced scenarios.