company_number 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +6 -6
- data/config/dictionary.json +245 -0
- data/lib/company_number/dictionary.rb +2 -2
- data/lib/company_number/validation.rb +2 -1
- data/lib/company_number/version.rb +1 -1
- data/lib/company_number.rb +1 -1
- metadata +3 -3
- data/config/dictionary.yml +0 -214
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c42bc8c9b12a33cd82492b9c9390a14a69be90333d9b37e39c39bbe68fb1bf2
|
4
|
+
data.tar.gz: f3b71fa4c422c0babd6d153dc2dd81816f11cd5c58fe8d7e9d0e3427c90375d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9cf18f66d4de4f9420f8fe9af73167084f803f53db94c68b5748089e00ac8debbf0fb1649577750e1db3fcf3971f9a54b872f41f220272201bfe10bad4f2857
|
7
|
+
data.tar.gz: 857392a5437580f68e7101a00256dc4935e2048d2b149b43c5a23001a1efed307086437a12d32d9df3bd8610ec0286d8a2d52b620e2003cf3f439716b4525fd0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## Changelog
|
2
2
|
|
3
|
+
### 0.1.4 - 2022-12-11
|
4
|
+
* Enhancements:
|
5
|
+
* Change dictionary to JSON - 2ced0f8
|
6
|
+
* Aggregating Failures - 54c5655
|
7
|
+
|
8
|
+
* Deprecations:
|
9
|
+
* Change `variations` class from *String* to *Array* - 0eb4074
|
10
|
+
|
3
11
|
### 0.1.3 - 2022-11-04
|
4
12
|
* Enhancements:
|
5
13
|
* Update CI - f67a9e3
|
data/README.md
CHANGED
@@ -80,7 +80,7 @@ CompanyNumber.parse("123") == CompanyNumber.parse("123")
|
|
80
80
|
Finally you can get the whole dictionary
|
81
81
|
```ruby
|
82
82
|
CompanyNumber.dictionary
|
83
|
-
# => {:at=>{:country=>"Austria", :name=>"Firmenbuchnummer", :regexp=>"^([a-zA-Z]{2}\\d{1,6}|\\d{1,6})[A-Z]$", :pattern=>"2 letters + 6 numbers + 1 letter (LLXXXXXXL)", :variations=>"1-6 numbers + 1 letter (XXXXXXL)"}, ...}
|
83
|
+
# => {:at=>{:country=>"Austria", :name=>"Firmenbuchnummer", :regexp=>"^([a-zA-Z]{2}\\d{1,6}|\\d{1,6})[A-Z]$", :pattern=>"2 letters + 6 numbers + 1 letter (LLXXXXXXL)", :variations=>["1-6 numbers + 1 letter (XXXXXXL)"]}, ...}
|
84
84
|
```
|
85
85
|
|
86
86
|
## Configuration
|
@@ -88,11 +88,11 @@ You can configure your own dictionary using **custom_dictionary**.
|
|
88
88
|
It should be a hash with the country codes as keys and the associated metadata as values.
|
89
89
|
|
90
90
|
Available metadata keys:
|
91
|
-
- country
|
92
|
-
- name
|
93
|
-
- regexp
|
94
|
-
- pattern
|
95
|
-
- variations
|
91
|
+
- country - *String*
|
92
|
+
- name - *String*
|
93
|
+
- regexp - *String*
|
94
|
+
- pattern - *String*
|
95
|
+
- variations - *Array*
|
96
96
|
|
97
97
|
**Example:**
|
98
98
|
```ruby
|
@@ -0,0 +1,245 @@
|
|
1
|
+
{
|
2
|
+
"at": {
|
3
|
+
"country": "Austria",
|
4
|
+
"name": "Firmenbuchnummer",
|
5
|
+
"regexp": "^([a-zA-Z]{2}\\d{1,6}|\\d{1,6})[A-Z]$",
|
6
|
+
"pattern": "2 letters + 6 numbers + 1 letter (LLXXXXXXL)",
|
7
|
+
"variations": [
|
8
|
+
"1-6 numbers + 1 letter (XXXXXXL)"
|
9
|
+
]
|
10
|
+
},
|
11
|
+
"be": {
|
12
|
+
"country": "Belgium",
|
13
|
+
"name": "Numéro d\"entreprise Vestigingseenheidsnummer",
|
14
|
+
"regexp": "^\\d{10}$",
|
15
|
+
"pattern": "10 numbers (XXXXXXXXXX)"
|
16
|
+
},
|
17
|
+
"bg": {
|
18
|
+
"country": "Bulgaria",
|
19
|
+
"name": "ЕИК (EIK)/ПИК (PIK) (UIC/PIC)",
|
20
|
+
"regexp": "^(\\d{9}|\\d{13})$",
|
21
|
+
"pattern": "9 numbers (XXXXXXXXX)",
|
22
|
+
"variations": [
|
23
|
+
"13 numbers (XXXXXXXXXXXXX)"
|
24
|
+
]
|
25
|
+
},
|
26
|
+
"hr": {
|
27
|
+
"country": "Croatia",
|
28
|
+
"name": "Matični broj poslovnog subjekta (MBS)",
|
29
|
+
"regexp": "^(\\d{8}|\\d{11})$",
|
30
|
+
"pattern": "11 numbers (XXXXXXXXXXX)",
|
31
|
+
"variations": [
|
32
|
+
"8 numbers (XXXXXXXX)"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
"cy": {
|
36
|
+
"country": "Cyprus",
|
37
|
+
"regexp": "^[a-zA-Z]{2}\\d{6}$",
|
38
|
+
"name": "Αριθμός Μητρώου Εταιρίας Şirket kayıt numarası",
|
39
|
+
"pattern": "2 letters + 6 numbers (HEXXXXXX)"
|
40
|
+
},
|
41
|
+
"cz": {
|
42
|
+
"country": "Czech Republic",
|
43
|
+
"name": "Identifikační číslo",
|
44
|
+
"regexp": "^\\d{8}$",
|
45
|
+
"pattern": "8 numbers (XXXXXXXX)"
|
46
|
+
},
|
47
|
+
"dk": {
|
48
|
+
"country": "Denmark",
|
49
|
+
"name": "CVR-nummer",
|
50
|
+
"regexp": "^\\d{8}$",
|
51
|
+
"pattern": "8 numbers (XXXXXXXX)"
|
52
|
+
},
|
53
|
+
"ee": {
|
54
|
+
"country": "Estonia",
|
55
|
+
"name": "Kood",
|
56
|
+
"regexp": "^\\d{8}$",
|
57
|
+
"pattern": "8 numbers (XXXXXXXX)"
|
58
|
+
},
|
59
|
+
"fi": {
|
60
|
+
"country": "Finland",
|
61
|
+
"name": "Y-tunnus FO-nummer",
|
62
|
+
"regexp": "^\\d{8}$",
|
63
|
+
"pattern": "8 numbers (XXXXXXXX)"
|
64
|
+
},
|
65
|
+
"fr": {
|
66
|
+
"country": "France",
|
67
|
+
"name": "Numéro SIREN ou SIRET",
|
68
|
+
"regexp": "^(\\d{9}|\\d{14})$",
|
69
|
+
"pattern": "9 numbers (XXXXXXXXX) or 14 numbers (XXXXXXXXXXXXXX)"
|
70
|
+
},
|
71
|
+
"de": {
|
72
|
+
"country": "Germany",
|
73
|
+
"name": "Nummer der Firma Registernummer",
|
74
|
+
"regexp": "^[a-zA-Z]{1,3}\\d{1,6}[a-zA-Z]{0,3}$",
|
75
|
+
"pattern": "2-3 letters + 6 numbers (LLXXXXXX)",
|
76
|
+
"variations": [
|
77
|
+
"2-3 letters + 1-6 numbers (LLLXXXX)",
|
78
|
+
"2-3 letters + 1-6 numbers + 1 letter (LLLXXXXXXL)",
|
79
|
+
"2-3 letters + 1-6 numbers + 1-2 letter (LLLXXXXXXLL)"
|
80
|
+
]
|
81
|
+
},
|
82
|
+
"gr": {
|
83
|
+
"country": "Greece",
|
84
|
+
"name": "Αριθμό Φορολογικού Μητρώου (Α.Φ.Μ.)",
|
85
|
+
"regexp": "^(\\d{9}|\\d{12})$",
|
86
|
+
"pattern": "9 numbers (XXXXXXXXX)",
|
87
|
+
"variations": [
|
88
|
+
"12 numbers (XXXXXXXXXXXX)"
|
89
|
+
]
|
90
|
+
},
|
91
|
+
"hu": {
|
92
|
+
"country": "Hungary",
|
93
|
+
"name": "Cégjegyzékszáma",
|
94
|
+
"regexp": "^[a-zA-Z]{2}\\d{10}$",
|
95
|
+
"pattern": "2 letters + 10 numbers (LLXXXXXXXXXX)"
|
96
|
+
},
|
97
|
+
"ie": {
|
98
|
+
"country": "Ireland",
|
99
|
+
"name": "Company Number",
|
100
|
+
"regexp": "^(\\d{5}|\\d{6})$",
|
101
|
+
"pattern": "6 numbers (XXXXXX)",
|
102
|
+
"variations": [
|
103
|
+
"5 numbers (XXXXX)"
|
104
|
+
]
|
105
|
+
},
|
106
|
+
"is": {
|
107
|
+
"country": "Island",
|
108
|
+
"name": "TIN",
|
109
|
+
"regexp": "^\\d{10}$",
|
110
|
+
"pattern": "10 numbers (XXXXXXXXXX)"
|
111
|
+
},
|
112
|
+
"it": {
|
113
|
+
"country": "Italy",
|
114
|
+
"name": "Codice fiscale",
|
115
|
+
"regexp": "^[a-zA-Z]{2}\\d{7}|\\d{11}$",
|
116
|
+
"pattern": "11 numbers (XXXXXXXXXXX)",
|
117
|
+
"variations": [
|
118
|
+
"2 letters + 7 numbers (LLXXXXXXX)"
|
119
|
+
]
|
120
|
+
},
|
121
|
+
"lv": {
|
122
|
+
"country": "Latvia",
|
123
|
+
"name": "Reģistrācijas numurs",
|
124
|
+
"regexp": "^\\d{11}$",
|
125
|
+
"pattern": "11 numbers (XXXXXXXXXXX)"
|
126
|
+
},
|
127
|
+
"li": {
|
128
|
+
"country": "Liechtenstein",
|
129
|
+
"name": "UID",
|
130
|
+
"regexp": "^[a-zA-Z]{3}\\d{3}\\s\\d{3}\\s\\d{3}$",
|
131
|
+
"pattern": "3 letters + 9 numbers (LLLXXX XXX XXX)"
|
132
|
+
},
|
133
|
+
"lt": {
|
134
|
+
"country": "Lithuania",
|
135
|
+
"name": "Juridinio asmens kodas",
|
136
|
+
"regexp": "^\\d{9}$",
|
137
|
+
"pattern": "9 numbers (XXXXXXXXX)"
|
138
|
+
},
|
139
|
+
"lu": {
|
140
|
+
"country": "Luxembourg",
|
141
|
+
"name": "Numéro d\"immatriculation",
|
142
|
+
"regexp": "^[a-zA-Z]{1}\\d{6}|[a-jA-J]\\d{3}$",
|
143
|
+
"pattern": "1 letter + 6 numbers (LXXXXXX)",
|
144
|
+
"variations": [
|
145
|
+
"1 letter (from A to J) + 3 numbers (AXXX)"
|
146
|
+
]
|
147
|
+
},
|
148
|
+
"mt": {
|
149
|
+
"country": "Malta",
|
150
|
+
"name": "Registration Number",
|
151
|
+
"regexp": "^[a-zA-Z]{1}\\d{5}$",
|
152
|
+
"pattern": "1 letter + 5 numbers (LXXXXX)"
|
153
|
+
},
|
154
|
+
"nl": {
|
155
|
+
"country": "Netherlands",
|
156
|
+
"name": "KvK-nummer",
|
157
|
+
"regexp": "^\\d{8}$",
|
158
|
+
"pattern": "8 numbers (XXXXXXXX)"
|
159
|
+
},
|
160
|
+
"no": {
|
161
|
+
"country": "Norway",
|
162
|
+
"name": "TIN",
|
163
|
+
"regexp": "^(\\d{9}|\\d{11})$",
|
164
|
+
"pattern": "11 numbers (XXXXXXXXXXX)",
|
165
|
+
"variations": [
|
166
|
+
"9 numbers (XXXXXXXXX)"
|
167
|
+
]
|
168
|
+
},
|
169
|
+
"pl": {
|
170
|
+
"country": "Poland",
|
171
|
+
"name": "Numer w Krajowym Rejestrze Sądowym (numer KRS)",
|
172
|
+
"regexp": "^(\\d{6}|\\d{8})$",
|
173
|
+
"pattern": "8 numbers (XXXXXXXX)",
|
174
|
+
"variations": [
|
175
|
+
"6 numbers (XXXXXX)"
|
176
|
+
]
|
177
|
+
},
|
178
|
+
"pt": {
|
179
|
+
"country": "Portugal",
|
180
|
+
"name": "Número de Identificação Pessoa Coletiva (NIPC)",
|
181
|
+
"regexp": "^(\\d{9}|\\d{3,6})$",
|
182
|
+
"pattern": "9 numbers (XXXXXXXXX)",
|
183
|
+
"variations": [
|
184
|
+
"3-6 numbers (XXXXXX)"
|
185
|
+
]
|
186
|
+
},
|
187
|
+
"ro": {
|
188
|
+
"country": "Romania",
|
189
|
+
"name": "Număr de ordine în Registrul Comerţului",
|
190
|
+
"regexp": "^\\d{3}\\s\\d{2}\\s\\d{3}$",
|
191
|
+
"pattern": "8 numbers (XXX XX XXX)"
|
192
|
+
},
|
193
|
+
"sk": {
|
194
|
+
"country": "Slovakia",
|
195
|
+
"name": "Identifikačného čísla Identification number",
|
196
|
+
"regexp": "^\\d{3}\\s\\d{2}\\s\\d{3}$",
|
197
|
+
"pattern": "8 numbers (XXX XX XXX)"
|
198
|
+
},
|
199
|
+
"si": {
|
200
|
+
"country": "Slovenia",
|
201
|
+
"name": "Matična številka",
|
202
|
+
"regexp": "^\\d{10}|\\d{7,10}$",
|
203
|
+
"pattern": "10 numbers (XXXXXXXXXX)",
|
204
|
+
"variations": [
|
205
|
+
"7 - 10 numbers (XXXXXXXXXX)"
|
206
|
+
]
|
207
|
+
},
|
208
|
+
"es": {
|
209
|
+
"country": "Spain",
|
210
|
+
"name": "Número de identificación fiscal (NIF)",
|
211
|
+
"regexp": "^[a-zA-Z]{1}(\\d{8}|\\d{7}[a-zA-Z]{1})$",
|
212
|
+
"pattern": "1 letter + 8 numbers (LXXXXXXXX)",
|
213
|
+
"variations": [
|
214
|
+
"1 letter + 7 numbers + 1 letter (LXXXXXXXL)"
|
215
|
+
]
|
216
|
+
},
|
217
|
+
"se": {
|
218
|
+
"country": "Sweden",
|
219
|
+
"name": "Registreringsnummer",
|
220
|
+
"regexp": "^\\d{10}$",
|
221
|
+
"pattern": "10 numbers (XXXXXXXXXX)"
|
222
|
+
},
|
223
|
+
"ch": {
|
224
|
+
"country": "Switzerland",
|
225
|
+
"name": "UID",
|
226
|
+
"regexp": "^CHE\\d{9}|\\d{9}$",
|
227
|
+
"pattern": "9 numbers (XXXXXXXXX)",
|
228
|
+
"variations": [
|
229
|
+
"CHE + 9 numbers"
|
230
|
+
]
|
231
|
+
},
|
232
|
+
"gb": {
|
233
|
+
"country": "United Kingdom",
|
234
|
+
"name": "Company Number Registration Number",
|
235
|
+
"regexp": "^\\d{8}|(OC|SC|NI)\\d{6}|R\\d{7}|IP\\d{5}R$",
|
236
|
+
"pattern": "8 numbers (XXXXXXX)",
|
237
|
+
"variations": [
|
238
|
+
"OC + 6 numbers (OCXXXXXX)",
|
239
|
+
"SC + 6 numbers (SCXXXXXX)",
|
240
|
+
"NI + 6 numbers (NIXXXXXX)",
|
241
|
+
"R + 7 numbers (RXXXXXXX)",
|
242
|
+
"IP + 5 numbers + R (IPXXXXXR)"
|
243
|
+
]
|
244
|
+
}
|
245
|
+
}
|
@@ -5,7 +5,7 @@ module CompanyNumber
|
|
5
5
|
attr_reader :country_codes_metadata, :default_hash
|
6
6
|
|
7
7
|
def self.default_dictionary_path
|
8
|
-
File.join(File.dirname(__FILE__), "../../config/dictionary.
|
8
|
+
File.join(File.dirname(__FILE__), "../../config/dictionary.json")
|
9
9
|
end
|
10
10
|
|
11
11
|
def initialize(country_codes_metadata = {})
|
@@ -33,7 +33,7 @@ module CompanyNumber
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def load_default_hash
|
36
|
-
|
36
|
+
JSON.parse(
|
37
37
|
File.read(self.class.default_dictionary_path),
|
38
38
|
symbolize_names: true
|
39
39
|
)
|
@@ -43,7 +43,8 @@ module CompanyNumber
|
|
43
43
|
def check_country_code_metadata(metadata)
|
44
44
|
metadata.each do |key, value|
|
45
45
|
check_object_inclusion(key, AVAILABLE_METADATA_KEYS)
|
46
|
-
|
46
|
+
object_class = key == :variations ? Array : String
|
47
|
+
check_object_class(value, [object_class])
|
47
48
|
end
|
48
49
|
end
|
49
50
|
|
data/lib/company_number.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: company_number
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- victorauthiat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11
|
11
|
+
date: 2022-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -88,7 +88,7 @@ files:
|
|
88
88
|
- bin/console
|
89
89
|
- bin/setup
|
90
90
|
- company_number.gemspec
|
91
|
-
- config/dictionary.
|
91
|
+
- config/dictionary.json
|
92
92
|
- lib/company_number.rb
|
93
93
|
- lib/company_number/configuration.rb
|
94
94
|
- lib/company_number/dictionary.rb
|
data/config/dictionary.yml
DELETED
@@ -1,214 +0,0 @@
|
|
1
|
-
at:
|
2
|
-
country: Austria
|
3
|
-
name: Firmenbuchnummer
|
4
|
-
regexp: ^([a-zA-Z]{2}\d{1,6}|\d{1,6})[A-Z]$
|
5
|
-
pattern: 2 letters + 6 numbers + 1 letter (LLXXXXXXL)
|
6
|
-
variations: 1-6 numbers + 1 letter (XXXXXXL)
|
7
|
-
|
8
|
-
be:
|
9
|
-
country: Belgium
|
10
|
-
name: Numéro d"entreprise Vestigingseenheidsnummer
|
11
|
-
regexp: ^\d{10}$
|
12
|
-
pattern: 10 numbers (XXXXXXXXXX)
|
13
|
-
|
14
|
-
bg:
|
15
|
-
country: Bulgaria
|
16
|
-
name: ЕИК (EIK)/ПИК (PIK) (UIC/PIC)
|
17
|
-
regexp: ^(\d{9}|\d{13})$
|
18
|
-
pattern: 9 numbers (XXXXXXXXX)
|
19
|
-
variations: 13 numbers (XXXXXXXXXXXXX)
|
20
|
-
|
21
|
-
hr:
|
22
|
-
country: Croatia
|
23
|
-
name: Matični broj poslovnog subjekta (MBS)
|
24
|
-
regexp: ^(\d{8}|\d{11})$
|
25
|
-
pattern: 11 numbers (XXXXXXXXXXX)
|
26
|
-
variations: 8 numbers (XXXXXXXX)
|
27
|
-
|
28
|
-
cy:
|
29
|
-
country: Cyprus
|
30
|
-
regexp: ^[a-zA-Z]{2}\d{6}$
|
31
|
-
name: Αριθμός Μητρώου Εταιρίας Şirket kayıt numarası
|
32
|
-
pattern: 2 letters + 6 numbers (HEXXXXXX)
|
33
|
-
|
34
|
-
cz:
|
35
|
-
country: Czech Republic
|
36
|
-
name: Identifikační číslo
|
37
|
-
regexp: ^\d{8}$
|
38
|
-
pattern: 8 numbers (XXXXXXXX)
|
39
|
-
|
40
|
-
dk:
|
41
|
-
country: Denmark
|
42
|
-
name: CVR-nummer
|
43
|
-
regexp: ^\d{8}$
|
44
|
-
pattern: 8 numbers (XXXXXXXX)
|
45
|
-
|
46
|
-
ee:
|
47
|
-
country: Estonia
|
48
|
-
name: Kood
|
49
|
-
regexp: ^\d{8}$
|
50
|
-
pattern: 8 numbers (XXXXXXXX)
|
51
|
-
|
52
|
-
fi:
|
53
|
-
country: Finland
|
54
|
-
name: Y-tunnus FO-nummer
|
55
|
-
regexp: ^\d{8}$
|
56
|
-
pattern: 8 numbers (XXXXXXXX)
|
57
|
-
|
58
|
-
fr:
|
59
|
-
country: France
|
60
|
-
name: Numéro SIREN ou SIRET
|
61
|
-
regexp: ^(\d{9}|\d{14})$
|
62
|
-
pattern: 9 numbers (XXXXXXXXX) or 14 numbers (XXXXXXXXXXXXXX)
|
63
|
-
|
64
|
-
de:
|
65
|
-
country: Germany
|
66
|
-
name: Nummer der Firma Registernummer
|
67
|
-
regexp: ^[a-zA-Z]{1,3}\d{1,6}[a-zA-Z]{0,3}$
|
68
|
-
pattern: 2-3 letters + 6 numbers (LLXXXXXX)
|
69
|
-
variations: |
|
70
|
-
2-3 letters + 1-6 numbers (LLLXXXX)
|
71
|
-
or 2-3 letters + 1-6 numbers + 1 letter (LLLXXXXXXL)
|
72
|
-
or 2-3 letters + 1-6 numbers + 1-2 letter (LLLXXXXXXLL)
|
73
|
-
|
74
|
-
gr:
|
75
|
-
country: Greece
|
76
|
-
name: Αριθμό Φορολογικού Μητρώου (Α.Φ.Μ.)
|
77
|
-
regexp: ^(\d{9}|\d{12})$
|
78
|
-
pattern: 12 numbers (XXXXXXXXXXXX)
|
79
|
-
variations: 9 numbers (XXXXXXXXX)
|
80
|
-
|
81
|
-
hu:
|
82
|
-
country: Hungary
|
83
|
-
name: Cégjegyzékszáma
|
84
|
-
regexp: ^[a-zA-Z]{2}\d{10}$
|
85
|
-
pattern: 2 letters + 10 numbers (LLXXXXXXXXXX)
|
86
|
-
|
87
|
-
ie:
|
88
|
-
country: Ireland
|
89
|
-
name: Company Number
|
90
|
-
regexp: ^(\d{5}|\d{6})$
|
91
|
-
pattern: 6 numbers (XXXXXX)
|
92
|
-
variations: 5 numbers (XXXXX)
|
93
|
-
|
94
|
-
is:
|
95
|
-
country: Island
|
96
|
-
name: TIN
|
97
|
-
regexp: ^\d{10}$
|
98
|
-
pattern: 10 numbers (XXXXXXXXXX)
|
99
|
-
|
100
|
-
it:
|
101
|
-
country: Italy
|
102
|
-
name: Codice fiscale
|
103
|
-
regexp: ^[a-zA-Z]{2}\d{7}|\d{11}$
|
104
|
-
pattern: 11 numbers (XXXXXXXXXXX)
|
105
|
-
variations: 2 letters + 7 numbers (LLXXXXXXX)
|
106
|
-
|
107
|
-
lv:
|
108
|
-
country: Latvia
|
109
|
-
name: Reģistrācijas numurs
|
110
|
-
regexp: ^\d{11}$
|
111
|
-
pattern: 11 numbers (XXXXXXXXXXX)
|
112
|
-
|
113
|
-
li:
|
114
|
-
country: Liechtenstein
|
115
|
-
name: UID
|
116
|
-
regexp: ^[a-zA-Z]{3}\d{3}\s\d{3}\s\d{3}$
|
117
|
-
pattern: 3 letters + 9 numbers (LLLXXX XXX XXX)
|
118
|
-
|
119
|
-
lt:
|
120
|
-
country: Lithuania
|
121
|
-
name: Juridinio asmens kodas
|
122
|
-
regexp: ^\d{9}$
|
123
|
-
pattern: 9 numbers (XXXXXXXXX)
|
124
|
-
|
125
|
-
lu:
|
126
|
-
country: Luxembourg
|
127
|
-
name: Numéro d"immatriculation
|
128
|
-
regexp: ^[a-zA-Z]{1}\d{6}|[a-jA-J]\d{3}$
|
129
|
-
pattern: 1 letter + 6 numbers (LXXXXXX)"
|
130
|
-
variations: 1 letter (from A to J) + 3 numbers (AXXX)
|
131
|
-
|
132
|
-
mt:
|
133
|
-
country: Malta
|
134
|
-
name: Registration Number
|
135
|
-
regexp: ^[a-zA-Z]{1}\d{5}$
|
136
|
-
pattern: 1 letter + 5 numbers (LXXXXX)
|
137
|
-
|
138
|
-
nl:
|
139
|
-
country: Netherlands
|
140
|
-
name: KvK-nummer
|
141
|
-
regexp: ^\d{8}$
|
142
|
-
pattern: 8 numbers (XXXXXXXX)
|
143
|
-
|
144
|
-
"no":
|
145
|
-
country: Norway
|
146
|
-
name: TIN
|
147
|
-
regexp: ^(\d{9}|\d{11})$
|
148
|
-
pattern: 11 numbers (XXXXXXXXXXX)
|
149
|
-
variations: 9 numbers (XXXXXXXXX)
|
150
|
-
|
151
|
-
pl:
|
152
|
-
country: Poland
|
153
|
-
name: Numer w Krajowym Rejestrze Sądowym (numer KRS)
|
154
|
-
regexp: ^(\d{6}|\d{8})$
|
155
|
-
pattern: 8 numbers (XXXXXXXX)
|
156
|
-
variations: 6 numbers (XXXXXX)
|
157
|
-
|
158
|
-
pt:
|
159
|
-
country: Portugal
|
160
|
-
name: Número de Identificação Pessoa Coletiva (NIPC)
|
161
|
-
regexp: ^(\d{9}|\d{3,6})$
|
162
|
-
pattern: 9 numbers (XXXXXXXXX)
|
163
|
-
variations: 3-6 numbers (XXXXXX)
|
164
|
-
|
165
|
-
ro:
|
166
|
-
country: Romania
|
167
|
-
name: Număr de ordine în Registrul Comerţului
|
168
|
-
regexp: ^\d{3}\s\d{2}\s\d{3}$
|
169
|
-
pattern: 8 numbers (XXX XX XXX)
|
170
|
-
|
171
|
-
sk:
|
172
|
-
country: Slovakia
|
173
|
-
name: Identifikačného čísla Identification number
|
174
|
-
regexp: ^\d{3}\s\d{2}\s\d{3}$
|
175
|
-
pattern: 8 numbers (XXX XX XXX)
|
176
|
-
|
177
|
-
si:
|
178
|
-
country: Slovenia
|
179
|
-
name: Matična številka
|
180
|
-
regexp: ^\d{10}|\d{7,10}$
|
181
|
-
pattern: 10 numbers (XXXXXXXXXX)
|
182
|
-
variations: 7 - 10 numbers (XXXXXXXXXX)
|
183
|
-
|
184
|
-
es:
|
185
|
-
country: Spain
|
186
|
-
name: Número de identificación fiscal (NIF)
|
187
|
-
regexp: ^[a-zA-Z]{1}(\d{8}|\d{7}[a-zA-Z]{1})$
|
188
|
-
pattern: 1 letter + 8 numbers (LXXXXXXXX)
|
189
|
-
variations: 1 letter + 7 numbers + 1 letter (LXXXXXXXL)
|
190
|
-
|
191
|
-
se:
|
192
|
-
country: Sweden
|
193
|
-
name: Registreringsnummer
|
194
|
-
regexp: ^\d{10}$
|
195
|
-
pattern: 10 numbers (XXXXXXXXXX)
|
196
|
-
|
197
|
-
ch:
|
198
|
-
country: Switzerland
|
199
|
-
name: UID
|
200
|
-
regexp: ^CHE\d{9}|\d{9}$
|
201
|
-
pattern: 9 numbers (XXXXXXXXX)
|
202
|
-
variations: CHE + 9 numbers
|
203
|
-
|
204
|
-
gb:
|
205
|
-
country: United Kingdom
|
206
|
-
name: Company Number Registration Number
|
207
|
-
regexp: ^\d{8}|(OC|SC|NI)\d{6}|R\d{7}|IP\d{5}R$
|
208
|
-
pattern: 8 numbers (XXXXXXX)
|
209
|
-
variations: |
|
210
|
-
OC + 6 numbers (OCXXXXXX)
|
211
|
-
or SC + 6 numbers (SCXXXXXX)
|
212
|
-
or NI + 6 numbers (NIXXXXXX)
|
213
|
-
or R + 7 numbers (RXXXXXXX)
|
214
|
-
or IP + 5 numbers + R (IPXXXXXR)
|