~sircmpwn/names.sr.ht

d8b5afa3ad405d6cd07612e1cf3c657d1c6f9a35 — Drew DeVault 1 year, 9 months ago e9f1e45
Add a few more TLD-specific tables
1 files changed, 86 insertions(+), 3 deletions(-)

M names/types/gtld_specific.py
M names/types/gtld_specific.py => names/types/gtld_specific.py +86 -3
@@ 186,14 186,14 @@ class AuExtraData(Base, ExtraDataMixin):
class ClExtraData(Base, ExtraDataMixin):
    __tablename__ = "extra_data_cl"

    id_card_number = sa.Column(sa.Unicode) # required if type = individual
    id_card_number = sa.Column(sa.Unicode) # required if individual
    """The number of the individual's identity card."""

    registrant_type = sa.Column(
            sau.ChoiceType(RegistrantType, impl=sa.Unicode), nullable=False)
    """The entity type of registrant."""

    registrant_vat_id = sa.Column(sa.Unicode) # required if type = organization
    registrant_vat_id = sa.Column(sa.Unicode) # required if organization
    """Value Added Tax registration number."""

### .pt


@@ 202,7 202,7 @@ class ClExtraData(Base, ExtraDataMixin):
class PtExtraData(Base, ExtraDataMixin):
    __tablename__ = "extra_data_pt"

    id_card_number = sa.Column(sa.Unicode) # required if type = individual
    id_card_number = sa.Column(sa.Unicode) # required if individual
    """The number of the individual's identity card."""

    registrant_type = sa.Column(


@@ 318,6 318,89 @@ class DkExtraData(Base, ExtraDataMixin):
    registrant_vat_id = sa.Column(sa.Unicode) # required for organizations
    """Value Added Tax registration number."""

### .fi
### .my
### .sg
class FiMySgExtraData(Base, ExtraDataMixin):
    __tablename__ = "extra_data_fimysg"

    id_card_number = sa.Column(sa.Unicode) # required if individual
    """The number of the individual's identity card."""

    registrant_type = sa.Column(sau.ChoiceType(
        RegistrantType, impl=sa.Unicode), nullable=False)
    """The entity type of registrant."""

    registration_number = sa.Column(sa.Unicode) # required if organization
    """The business number of the organization."""

### .fr
class FrExtraData(Base, ExtraDataMixin):
    """
    .FR domains are available to any individuals and organizations located in
    the European Union, Switzerland, Norway, Iceland, or Liechtenstein.
    Individuals must reside within one of the qualifying countries;
    organizations must have their registered or main office located in a
    qualifying country; therefore, when registering or transferring .FR
    domains, you must provide additional residency information.
    """
    __tablename__ = "extra_data_fr"

    registrant_type = sa.Column(sau.ChoiceType(
        RegistrantType, impl=sa.Unicode), nullable=False)
    """The entity type of registrant."""

    registrant_vat_id = sa.Column(sa.Unicode)
    """
    The Value Added Tax (VAT) number of the organization. Optional, but
    recommended for organizations located in France.
    """

    siren_siret = sa.Column(sa.Unicode)
    """
    The 9 digit SIREN code or the 14 digit SIRET code that is used to identify
    the business for tax reasons. Optional, but recommended for organizations
    located in France.
    """

    trademark_number = sa.Column(sa.Unicode)
    """
    The organization's trademark registration number,if applicable. Optional,
    but recommended for organizations located in France.
    """

### .hk
class HkExtraData(Base, ExtraDataMixin):
    __tablename__ = "extra_data_hk"

    registrant_type = sa.Column(sau.ChoiceType(
        RegistrantType, impl=sa.Unicode), nullable=False)
    """The entity type of registrant."""

    date_of_birth = sa.Column(sa.DateTime) # requried if individual
    """The registrant's date of birth."""

    id_card_number = sa.Column(sa.Unicode) # requried if individual
    """The number of the individual's identity card."""

    registration_number = sa.Column(sa.Unicode) # required if organization
    """The business number of the organization."""

### .hu
### .co.hu
class HuExtraData(Base, ExtraDataMixin):
    __tablename__ = "extra_data_hu"

    registrant_type = sa.Column(sau.ChoiceType(
        RegistrantType, impl=sa.Unicode), nullable=False)
    """The entity type of registrant."""

    id_card_number = sa.Column(sa.Unicode) # required if individual
    """The number of the individual's identity card."""

    registrant_vat_id = sa.Column(sa.Unicode) # required if organization
    """Value Added Tax registration number."""

### .it
class ItEntityType(enum.Enum):
    italian_and_foreign_national_persons = 1