DefaultInterest
in package
Read onlyYes
FinalYes
Default interest of a late payment law: the reference rate plus the points of the DunningLaw (business or consumer debtors), split at every change of the reference rate, with the day count basis of the law. The result goes into DocumentBuilder::interestCharge().
Table of Contents
Methods
- __construct() : mixed
- calculate() : array<int, InterestCharge>
- Interest charges for an open amount from the first day of default until $until (exclusive).
- flatRate() : Money|null
- Flat rate for business debtors (e.g. 40 EUR, EU late payment directive), once per claim.
- forCountry() : self
- Default interest with the reference rates and the dunning law of a country pack.
Methods
__construct()
public
__construct(ReferenceRates $rates, DunningLaw $law[, callable(BigDecimal $rate, BigDecimal $referenceRate, string $points, Date $from, Date $lastDay, string $locale): Array|null $describe = null ]) : mixed
Parameters
- $rates : ReferenceRates
- $law : DunningLaw
- $describe : callable(BigDecimal $rate, BigDecimal $referenceRate, string $points, Date $from, Date $lastDay, string $locale): Array|null = null
-
text of a charge, e.g. "Verzugszinsen 9 Prozentpunkte über dem Basiszinssatz …"; null = no text
calculate()
Interest charges for an open amount from the first day of default until $until (exclusive).
public
calculate(Money $amount, Date $from, Date $until[, bool $consumer = false ][, string $locale = 'en' ]) : array<int, InterestCharge>
Parameters
Return values
array<int, InterestCharge>flatRate()
Flat rate for business debtors (e.g. 40 EUR, EU late payment directive), once per claim.
public
flatRate([string $currency = 'EUR' ]) : Money|null
Parameters
- $currency : string = 'EUR'
Return values
Money|nullforCountry()
Default interest with the reference rates and the dunning law of a country pack.
public
static forCountry(CountryPack $pack) : self
Parameters
- $pack : CountryPack