added bic and priv

This commit is contained in:
Priit Tark 2015-01-23 22:16:23 +02:00
parent 81159efca8
commit 4e7b0e6104
2 changed files with 7 additions and 5 deletions

View file

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

View file

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