EFL
Models

OfferFinancial

Aggregated financial amounts for a calculated offer variant.

Namespace and purpose

Imoli\EflLeasingSdk\Model\Calculation\OfferFinancial represents the overall financial breakdown of a leasing offer variant. It includes net/gross offer values, residual values and optional components for pure financing and insurance.

Class definition

  • Namespace: Imoli\EflLeasingSdk\Model\Calculation
  • Class: final OfferFinancial
final class OfferFinancial
{
    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 ?float $grossResidualValuePercent;
    public ?float $grossInitialPayment;
    public ?FinancialPure $pure;
    public ?FinancialInsurance $insurance;
    public ?float $calculatedNetInstallmentValue;
    public ?float $calculatedGrossInstallmentValue;

    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|nullNoGross offer value from partner perspective.
grossResidualValuefloat|nullNoGross residual value.
netInitialResidualValuefloat|nullNoNet initial residual value.
netOfferValuefloatYesNet value of the offer.
netLastRentResidualValuefloatYesResidual value of the last rent.
grossResidualValuePercentfloat|nullNoGross residual value as a percentage.
grossInitialPaymentfloat|nullNoInitial gross payment.
pureFinancialPure|nullNoPure financing breakdown.
insuranceFinancialInsurance|nullNoInsurance-related financials.
calculatedNetInstallmentValuefloat|nullNoNet installment value calculated by the API.
calculatedGrossInstallmentValuefloat|nullNoGross installment value calculated by the API.

Methods

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

fromArray() casts numerous scalar fields into floats and optionally constructs FinancialPure and FinancialInsurance from nested arrays.

Usage in the SDK

  • Attached as total in OfferVariant.
  • Provides detailed amounts that can be presented in UI or used for reconciliation.