eu_vat_rates_data 2026.4.24 → 2026.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/data/eu-vat-rates-data.json +1 -1
- data/lib/eu_vat_rates_data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee9b568dd9ec30a42cb3265f6a5faec706ddfe271b3e3c1c2ffdf68656510f3e
|
|
4
|
+
data.tar.gz: 1b01c0819679d35aabaa5a64213d2fc15e0f45fb7a27c2e34fd3935d5acbf7ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ddb62b02fa0247be71533f5b95d805634cc91cd3cf9451cdf35258bd239eab629aff9f0086e31f1ef58572d394f4f185e9d1a0ac9979a1c834799dc39257744
|
|
7
|
+
data.tar.gz: a9351f4848fd679374a67f316409d7543a7430d87181f73960001e33753fded227ea67bc563ab786230398fecaa9ea4cfb34f49a6779aca40de8cb8c19342343
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://github.com/vatnode/eu-vat-rates-data-ruby/commits/main)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
|
|
7
|
-
VAT rates for **
|
|
7
|
+
VAT rates for **45 European countries** — EU-27 plus Norway, Switzerland, UK, and more. EU rates sourced from the European Commission TEDB and checked daily. Non-EU rates maintained manually.
|
|
8
8
|
|
|
9
9
|
- Standard, reduced, super-reduced, and parking rates
|
|
10
10
|
- `eu_member` flag on every country — `true` for EU-27, `false` for non-EU
|
|
@@ -57,12 +57,12 @@ if EuVatRatesData.eu_member?(user_input)
|
|
|
57
57
|
rate = EuVatRatesData.get_rate(user_input)
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
# Dataset membership check (all
|
|
60
|
+
# Dataset membership check (all 45 countries)
|
|
61
61
|
if EuVatRatesData.has_rate?(user_input)
|
|
62
62
|
rate = EuVatRatesData.get_rate(user_input)
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
# All
|
|
65
|
+
# All 45 countries at once
|
|
66
66
|
EuVatRatesData.all_rates.each do |code, rate|
|
|
67
67
|
puts "#{code}: #{rate['standard']}%"
|
|
68
68
|
end
|
|
@@ -137,6 +137,13 @@ curl https://api.vatnode.dev/v1/vat/FI17156132 \
|
|
|
137
137
|
|
|
138
138
|
---
|
|
139
139
|
|
|
140
|
+
## Changelog
|
|
141
|
+
|
|
142
|
+
### 2026-04-25
|
|
143
|
+
- **fix:** Corrected Sweden (SE) VAT number regex — was `^SE\d{12}$`, now correctly requires the mandatory `01` suffix: `^SE\d{10}01$`.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
140
147
|
## License
|
|
141
148
|
|
|
142
149
|
MIT
|
data/data/eu-vat-rates-data.json
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eu_vat_rates_data
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2026.4.
|
|
4
|
+
version: 2026.4.26
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Iurii Rogulia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: VAT rates (standard, reduced, super-reduced, parking) for 44 European
|
|
14
14
|
countries — EU-27 plus Norway, Switzerland, UK, and more. Includes eu_member flag,
|