Skip to content

Commit e4e0814

Browse files
committed
docs: add vat_name to usage examples and type definitions
1 parent 263ac09 commit e4e0814

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ VAT rates for **44 European countries** — EU-27 plus Norway, Switzerland, UK,
99

1010
- Standard, reduced, super-reduced, and parking rates
1111
- `eu_member` flag on every country — `True` for EU-27, `False` for non-EU
12+
- `vat_name` — official name of the VAT tax in the country's primary official language
1213
- Full type hints — works with mypy and pyright out of the box
1314
- Data embedded in the package — works offline, no network calls
1415
- EU rates checked daily via GitHub Actions, new version published only when rates change
@@ -40,6 +41,7 @@ fi = get_rate("FI")
4041
# "country": "Finland",
4142
# "currency": "EUR",
4243
# "eu_member": True,
44+
# "vat_name": "Arvonlisävero",
4345
# "standard": 25.5,
4446
# "reduced": [10.0, 13.5],
4547
# "super_reduced": None,
@@ -77,6 +79,7 @@ class VatRate(TypedDict):
7779
country: str
7880
currency: str
7981
eu_member: bool
82+
vat_name: str
8083
standard: float
8184
reduced: list[float]
8285
super_reduced: float | None
@@ -99,6 +102,7 @@ get_rate("NO")
99102
# "country": "Norway",
100103
# "currency": "NOK",
101104
# "eu_member": False,
105+
# "vat_name": "Merverdiavgift",
102106
# "standard": 25.0,
103107
# "reduced": [12.0, 15.0],
104108
# "super_reduced": None,

0 commit comments

Comments
 (0)