Quittio 0.3 API

DefaultInterest
in package

Read onlyYes
FinalYes

Default interest according to section 288 BGB: base rate plus 9 points (business) or 5 points (consumer), split at every change of the base rate.

Points, flat rate and day count basis come from the dunning law, by default CountryDE::germanDunningLaw(); the calculation is that of Quittio\Core\Dunning\DefaultInterest. The base rates are those shipped with Quittio plus the rates registered with BaseRates (configured or fetched from the Bundesbank), unless a table is given.

Table of Contents

Methods

__construct()  : mixed
calculate()  : array<int, InterestCharge>
Interest charges for an open amount from the first day of default until $until.
flatRate()  : Money|null
Flat rate for business debtors (section 288 (5) BGB), once per claim.

Methods

calculate()

Interest charges for an open amount from the first day of default until $until.

public calculate(Money $amount, Date $from, Date $until[, bool $consumer = false ][, string $locale = 'de' ]) : array<int, InterestCharge>
Parameters
$amount : Money
$from : Date
$until : Date
$consumer : bool = false
$locale : string = 'de'
Return values
array<int, InterestCharge>

flatRate()

Flat rate for business debtors (section 288 (5) BGB), once per claim.

public flatRate([string $currency = 'EUR' ]) : Money|null
Parameters
$currency : string = 'EUR'
Return values
Money|null
On this page

Search results