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
| Name | Type | Required | Description |
|---|---|---|---|
netResidualValuePercent | float|null | No | Net residual value as a percentage. |
recommendedPrice | float|null | No | Recommended asset price. |
netResidualValue | float|null | No | Net residual value amount. |
netInitialPayment | float|null | No | Initial net payment. |
grossOfferValue | float|null | No | Gross offer value. |
partnerGrossOfferValue | float|null | No | Gross offer value from partner perspective. |
grossResidualValue | float|null | No | Gross residual value. |
netInitialResidualValue | float|null | No | Net initial residual value. |
netOfferValue | float | Yes | Net value of the offer. |
netLastRentResidualValue | float | Yes | Residual value of the last rent. |
grossResidualValuePercent | float|null | No | Gross residual value as a percentage. |
grossInitialPayment | float|null | No | Initial gross payment. |
pure | FinancialPure|null | No | Pure financing breakdown. |
insurance | FinancialInsurance|null | No | Insurance-related financials. |
calculatedNetInstallmentValue | float|null | No | Net installment value calculated by the API. |
calculatedGrossInstallmentValue | float|null | No | Gross installment value calculated by the API. |
Methods
| Method | Kind | Return type | Description |
|---|---|---|---|
fromArray() | static | OfferFinancial | Creates 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
totalinOfferVariant. - Provides detailed amounts that can be presented in UI or used for reconciliation.