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
| Name | Type | Required | Description |
|---|---|---|---|
count | int|null | No | Quantity of the asset in this variant. |
assetTypeId | int|null | No | Type identifier of the asset. |
id | string|null | No | Asset identifier. |
financing | AssetOfferFinancial|null | No | Financial breakdown for this asset. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | OfferItemsOut | Creates 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
- Appears in the
assetsarray ofOfferVariant. - Ultimately used by consumers of
EflClient::calculateBasicOfferto inspect asset-level details.