added bic and priv

This commit is contained in:
Priit Tark 2015-01-23 22:16:23 +02:00
parent 0dba34f3f6
commit 6681dca02c
2 changed files with 7 additions and 5 deletions

View file

@ -49,8 +49,10 @@ class Contact < ActiveRecord::Base
IDENT_TYPE_ICO = 'ico'
IDENT_TYPES = [
IDENT_TYPE_ICO, # Company registry code (or similar)
'op', # Estonian ID
'passport', # Passport number
'bic', # Business registry code
'priv', # National idendtification number
'op', # Estonian ID, depricated
'passport', # Passport number, depricated
'birthday' # Birthday date
]

View file

@ -24,10 +24,10 @@ Contact Mapping protocol short version:
<contact:cc> 1 Country code, 2 letters uppercase
<contact:voice> 1 Phone number in format \+ddd.d+
<contact:email> 1 E-mail
<contact:Ident> 1 Contact identificator. Attribute: type="op"
<contact:Ident> 1 Contact identificator. Attribute: type="bic"
Type values:
'op', # Estonian ID
'passport', # Passport number
'bic', # Business registry code
'priv', # National idendtification number
'birthday' # Birthday date