API reference / Quittio \ Country \ AT \ Dunning
DefaultInterest
final readonly class in quittio/country-at
Quittio\Country\AT\Dunning\DefaultInterest · Source
Austrian default interest: the base rate of the OeNB plus 9.2 points between businesses (section 456 UGB), split at every change of the base rate, and 4 % for consumers (section 1000 (1) ABGB). The calculation is that of Quittio\Core\Dunning\DefaultInterest.
Methods#
| Method | Description |
|---|---|
->__construct() | |
->calculate() | Interest charges for an open amount from the first day of default until $until. |
->flatRate() | Flat rate for business debtors (section 458 UGB), once per claim. |
__construct()#
public function __construct(BaseRateTable|null $rates = null, DunningLaw|null $law = null)| Parameter | Type | Description |
|---|---|---|
$rates | BaseRateTable|null = null | base rates; null = the published table |
$law | DunningLaw|null = null | null = CountryAT::austrianDunningLaw() |
calculate()#
public function calculate(
Money $amount,
Date $from,
Date $until,
bool $consumer = false,
string $locale = 'de',
): list<InterestCharge>Interest charges for an open amount from the first day of default until $until.
| Parameter | Type | Description |
|---|---|---|
$amount | Brick\Money\Money | |
$from | Date | |
$until | Date | |
$consumer | bool = false | |
$locale | string = 'de' |
- Returns
list<InterestCharge>
flatRate()#
public function flatRate(string $currency = 'EUR'): ?MoneyFlat rate for business debtors (section 458 UGB), once per claim.
| Parameter | Type | Description |
|---|---|---|
$currency | string = 'EUR' |
- Returns
?Brick\Money\Money