Skip to content

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#

MethodDescription
->__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)
ParameterTypeDescription
$ratesBaseRateTable|null = nullbase rates; null = the published table
$lawDunningLaw|null = nullnull = 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.

ParameterTypeDescription
$amountBrick\Money\Money
$fromDate
$untilDate
$consumerbool = false
$localestring = 'de'
Returns
list<InterestCharge>

flatRate()#

public function flatRate(string $currency = 'EUR'): ?Money

Flat rate for business debtors (section 458 UGB), once per claim.

ParameterTypeDescription
$currencystring = 'EUR'
Returns
?Brick\Money\Money

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.