EFL
Models

AssetOfferFinancial

Financial data for a single asset in a calculated offer.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Calculation\AssetOfferFinancial represents the financial breakdown for a single asset within an offer. It mirrors the AssetOfferFinancial schema in the EFL API and is used inside OfferItemsOut.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Calculation
  • Class: final AssetOfferFinancial
final class AssetOfferFinancial
{
    public ?float $netResidualValuePercent;
    public ?float $recommendedPrice;
    public ?float $netResidualValue;
    public ?float $netInitialPayment;
    public ?float $grossOfferValue;
    public ?float $partnerGrossOfferValue;
    public ?float $grossResidualValue;
    public ?float $netInitialResidualValue;
    public float $netOfferValue;
    public float $netLastRentResidualValue;
    public ?FinancialPure $pure;
    public float $grossResidualValuePercent;
    public ?float $grossInitialPayment;
    public ?FinancialInsurance $insurance;

    public function __construct(
        ?float $netResidualValuePercent,
        ?float $recommendedPrice,
        ?float $netResidualValue,
        ?float $netInitialPayment,
        ?float $grossOfferValue,
        ?float $partnerGrossOfferValue,
        ?float $grossResidualValue,
        ?float $netInitialResidualValue,
        float $netOfferValue,
        float $netLastRentResidualValue,
        ?FinancialPure $pure,
        float $grossResidualValuePercent,
        ?float $grossInitialPayment,
        ?FinancialInsurance $insurance
    );

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

Properties

NameTypeRequiredDescription
netResidualValuePercentfloat|nullNoNet residual value as a percentage.
recommendedPricefloat|nullNoRecommended asset price.
netResidualValuefloat|nullNoNet residual value amount.
netInitialPaymentfloat|nullNoInitial net payment.
grossOfferValuefloat|nullNoGross offer value.
partnerGrossOfferValuefloat|nullNoPartner-specific gross offer value.
grossResidualValuefloat|nullNoGross residual value.
netInitialResidualValuefloat|nullNoNet initial residual value.
netOfferValuefloatYesNet value of the offer for this asset.
netLastRentResidualValuefloatYesResidual value of the last rent.
grossResidualValuePercentfloatYesGross residual value as a percentage.
grossInitialPaymentfloat|nullNoInitial gross payment.
pureFinancialPure|nullNoPure financing breakdown.
insuranceFinancialInsurance|nullNoInsurance-related financials.

Methods

MethodKindReturn typeDescription
fromArray()staticAssetOfferFinancialCreates asset financial data from raw API response, casting numeric fields and mapping nested structures.

fromArray() casts numeric fields and optionally maps the pure and insurance sections to FinancialPure and FinancialInsurance.

Usage in the SDK

  • Used as the financing property of OfferItemsOut.
  • Provides detailed asset-level amounts within calculated offers.