diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a7a91c..329d554 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## [Unreleased] +Features: +- Add `TinValid::COUNTRY_CODES` to get available country codes. + Fixes: - Fix Bulgaria to accept TINs starting with `10` instead of `00` 🇧🇬 - Fix Finland checks for tins ending in `P` 🇫🇮 @@ -16,7 +19,7 @@ Fixes: Features: - Add generic `TinValid::Tin.new(country_code: "…", tin: "…").valid?` -- Add `#siren?` and `#siret?` on `TinValid::FranceTin` +- Add `#siren?` and `#siret?` on `TinValid::FranceTin` 🇫🇷 Fixes: - Accept SIRET for France 🇫🇷 diff --git a/lib/tin_valid.rb b/lib/tin_valid.rb index abd6861..6d10ae1 100644 --- a/lib/tin_valid.rb +++ b/lib/tin_valid.rb @@ -33,4 +33,35 @@ require_relative "tin_valid/sweden_tin" require_relative "tin_valid/united_kingdom_tin" -module TinValid; end +module TinValid + COUNTRY_CODES = %w[ + at + be + bg + cy + cz + de + dk + ee + es + fi + fr + gb + gr + hr + hu + ie + it + lt + lu + lv + mt + nl + pl + pt + ro + se + si + sk + ].freeze +end