EFL
Models

OfferItemsOut

Represents calculated financial data for a single asset within an offer variant.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Calculation\OfferItemsOut models the per-asset section of a calculated offer. It is used inside OfferVariant to describe how a particular asset is financed in a given variant.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Calculation
  • Class: final OfferItemsOut
final class OfferItemsOut
{
    public ?int $count;

    public ?int $assetTypeId;

    public ?string $id;

    public ?AssetOfferFinancial $financing;

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

Properties

NameTypeRequiredDescription
countint|nullNoQuantity of the asset in this variant.
assetTypeIdint|nullNoType identifier of the asset.
idstring|nullNoAsset identifier.
financingAssetOfferFinancial|nullNoFinancial breakdown for this asset.

Methods

MethodKindReturn typeDescription
fromArray()staticOfferItemsOutCreates an asset entry from raw API data, casting scalar fields and mapping financing.

fromArray() casts scalar fields such as count and assetTypeId, and optionally maps financing to an AssetOfferFinancial instance.

Usage in the SDK