public function NorwegianVat::buildZones in Commerce Core 8.2
Builds the tax zones.
Return value
\Drupal\commerce_tax\TaxZone[] The tax zones, keyed by ID.
Overrides LocalTaxTypeBase::buildZones
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ NorwegianVat.php, line 33
Class
- NorwegianVat
- Provides the Norwegian VAT tax type.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
public function buildZones() {
$zones = [];
$zones['no'] = new TaxZone([
'id' => 'no',
'label' => $this
->t('Norway'),
'display_label' => $this
->t('VAT'),
'territories' => [
[
'country_code' => 'NO',
],
],
'rates' => [
[
'id' => 'standard',
'label' => $this
->t('Standard'),
'percentages' => [
[
'number' => '0.25',
'start_date' => '2012-01-01',
],
],
'default' => TRUE,
],
[
'id' => 'intermediate',
'label' => $this
->t('Intermediate'),
'percentages' => [
[
'number' => '0.15',
'start_date' => '2012-01-01',
],
],
],
[
'id' => 'reduced',
'label' => $this
->t('Reduced'),
'percentages' => [
[
'number' => '0.08',
'start_date' => '2012-01-01',
],
],
],
[
'id' => 'zero',
'label' => $this
->t('Zero'),
'percentages' => [
[
'number' => '0',
'start_date' => '2012-01-01',
],
],
],
],
]);
return $zones;
}