API reference / Quittio \ Country \ DE \ Tax
CustomVatPreset
final readonly class in quittio/country-de · implements TaxPreset
Quittio\Country\DE\Tax\CustomVatPreset · Source
Ad-hoc preset of the German pack, e.g. from VatPreset::exempt(). Like the VatPreset cases, its text defaults to German when the invoice has no locale; other locales without a text fall back to English.
Methods#
| Method | Description |
|---|---|
->__construct() | |
->category() | |
->exemptionReason() | |
->exemptionReasonCode() | |
->key() | |
->rate() |
__construct()#
public function __construct(CustomTaxPreset $preset)| Parameter | Type | Description |
|---|---|---|
$preset | CustomTaxPreset |
category()#
public function category(): VatCategory- Returns
VatCategory
exemptionReason()#
public function exemptionReason(?string $locale = null): ?string| Parameter | Type | Description |
|---|---|---|
$locale | ?string = null |
- Returns
?string
exemptionReasonCode()#
public function exemptionReasonCode(): VatExemptionReasonCode|RawCode|null- Returns
VatExemptionReasonCode|RawCode|null
key()#
public function key(): string- Returns
string
rate()#
public function rate(): ?BigDecimal- Returns
?Brick\Math\BigDecimal