Temporary_VAT_Rates implements Service, Registerable
Temporary VAT rate adjustments.
Tags
Interfaces, Classes and Traits
- Service
- Registerable
Table of Contents
- adjust_rates() : array<string|int, mixed>
- Adjusts the EU VAT rates based on temporary vat rates set in 'get_temporary_rates'.
- register() : mixed
- {@inheritdoc}
- get_temporary_rates() : array<string|int, mixed>
- Retrieves the temporary VAT rates
Methods
adjust_rates()
Adjusts the EU VAT rates based on temporary vat rates set in 'get_temporary_rates'.
public
adjust_rates(array<string|int, mixed> $vat_rates) : array<string|int, mixed>
Parameters
- $vat_rates : array<string|int, mixed>
Return values
array<string|int, mixed> —$vat_rates
register()
{@inheritdoc}
public
register() : mixed
Return values
mixed —get_temporary_rates()
Retrieves the temporary VAT rates
private
static get_temporary_rates() : array<string|int, mixed>