~sircmpwn/names.sr.ht

1a4fb0fb55a00b173382b70ee8774ff6625be640 — Drew DeVault 1 year, 10 months ago d8b5afa
A few more TLD-specific tables
1 files changed, 447 insertions(+), 78 deletions(-)

M names/types/gtld_specific.py
M names/types/gtld_specific.py => names/types/gtld_specific.py +447 -78
@@ 25,6 25,23 @@ class RegistrantType(enum.Enum):
    organization = "organization"
    """Organization"""

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

class IdCardNumberMixin:
    id_card_number = sa.Column(sa.Unicode)
    """The number of the individual's identity card."""

class RegistrationNumberMixin:
    registration_number = sa.Column(sa.Unicode)
    """The business number of the organization."""

class VatNumberMixin:
    registrant_vat_id = sa.Column(sa.Unicode)
    """Value Added Tax registration number."""

### .aero
class AeroExtraData(Base, ExtraDataMixin):
    """


@@ 49,7 66,7 @@ class AuEligibilityType(enum.Enum):
    charity = "Charity"
    club = "Club"
    incorporated_association = "Incorporated Association"
    nonprofit_organization = "Non-profit Organiaztion"
    nonprofit_organization = "Non-profit Organization"
    trade_union = "Trade Union"
    company = "Company"
    partnership = "Partnership"


@@ 183,32 200,22 @@ class AuExtraData(Base, ExtraDataMixin):
    """

### .cl
class ClExtraData(Base, ExtraDataMixin):
class ClExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        IdCardNumberMixin,
        VatNumberMixin):
    __tablename__ = "extra_data_cl"

    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 organization
    """Value Added Tax registration number."""

### .pt
### .com.ar
### .com.pt
class PtExtraData(Base, ExtraDataMixin):
class PtExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        IdCardNumberMixin):
    __tablename__ = "extra_data_pt"

    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."""

    tax_number = sa.Column(sa.Unicode, nullable=False)
    """The number used for tax purposes."""



@@ 300,42 307,31 @@ class EuExtraData(Base, ExtraDataMixin):
    """Country of citizenship"""

### .de
class DeExtraData(Base, ExtraDataMixin):
class DeExtraData(Base, ExtraDataMixin, RegistrantTypeMixin):
    __tablename__ = "extra_data_de"

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

### .dk
class DkExtraData(Base, ExtraDataMixin):
class DkExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        VatNumberMixin):
    __tablename__ = "extra_data_dk"

    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 for organizations
    """Value Added Tax registration number."""

### .fi
### .my
### .sg
class FiMySgExtraData(Base, ExtraDataMixin):
class FiMySgExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        IdCardNumberMixin,
        RegistrationNumberMixin):
    __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):
class FrExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        VatNumberMixin):
    """
    .FR domains are available to any individuals and organizations located in
    the European Union, Switzerland, Norway, Iceland, or Liechtenstein.


@@ 346,16 342,6 @@ class FrExtraData(Base, ExtraDataMixin):
    """
    __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


@@ 370,37 356,25 @@ class FrExtraData(Base, ExtraDataMixin):
    """

### .hk
class HkExtraData(Base, ExtraDataMixin):
class HkExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        IdCardNumberMixin,
        RegistrationNumberMixin):
    __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
    date_of_birth = sa.Column(sa.DateTime) # required 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):
class HuExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        IdCardNumberMixin,
        VatNumberMixin):
    __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


@@ 448,3 422,398 @@ class ItExtraData(Base, ExtraDataMixin):

    \* Non Italians not living in Italy can enter n.a.
    """

### .jobs
class JobsExtraData(Base, ExtraDataMixin):
    """
    Registration of .JOBS domains is restricted to those who are involved in
    Human Resource management. To be eligible, registrants must be a member of
    the Society for Human Resource Management (SHRM) or involved in HR
    practices that meet any of the following criteria:

    - Possess salaried-level human resource management experience.
    - Are certified by the Human Resource Certification Institute.
    - Are supportive of the SHRM Code of Ethical and Professional Standards in
      Human Resource Management, as amended from time to time.

    Consequently, when registering a .JOBS domain, registrants must complete
    some additional information. For more information on the restrictions and
    policies regarding .JOBS registrations, see
    [policy.jobs](http://www.policy.jobs/).
    """
    __tablename__ = "extra_data_jobs"

    jobs_admin_type = sa.Column(sa.Boolean, nullable=False)
    """Is the registrant and the admin contact the same person?"""

    jobs_association_member = sa.Column(sa.Boolean, nullable=False)
    """Is the registrant a member of SHRM?"""

    jobs_industry_type = sa.Column(sa.Unicode)
    """The type of industry your business is in."""

    jobs_title = sa.Column(sa.Unicode)
    """The registrant's job title."""

    jobs_website = sa.Column(sa.Unicode, nullable=False)
    """The URL for the registrant's company website."""

### .law
### .abogado
class LawJurisdictionCountry(enum.Enum):
    AD = "AD"
    AE = "AE"
    AF = "AF"
    AG = "AG"
    AI = "AI"
    AL = "AL"
    AM = "AM"
    AN = "AN"
    AO = "AO"
    AQ = "AQ"
    AR = "AR"
    AS = "AS"
    AT = "AT"
    AU = "AU"
    AW = "AW"
    AX = "AX"
    AZ = "AZ"
    BA = "BA"
    BB = "BB"
    BD = "BD"
    BE = "BE"
    BF = "BF"
    BG = "BG"
    BH = "BH"
    BI = "BI"
    BJ = "BJ"
    BL = "BL"
    BM = "BM"
    BN = "BN"
    BO = "BO"
    BQ = "BQ"
    BR = "BR"
    BS = "BS"
    BT = "BT"
    BV = "BV"
    BW = "BW"
    BX = "BX"
    BY = "BY"
    BZ = "BZ"
    CA = "CA"
    CC = "CC"
    CD = "CD"
    CF = "CF"
    CG = "CG"
    CH = "CH"
    CI = "CI"
    CK = "CK"
    CL = "CL"
    CM = "CM"
    CN = "CN"
    CO = "CO"
    CR = "CR"
    CU = "CU"
    CV = "CV"
    CW = "CW"
    CX = "CX"
    CY = "CY"
    CZ = "CZ"
    DE = "DE"
    DJ = "DJ"
    DK = "DK"
    DM = "DM"
    DO = "DO"
    DZ = "DZ"
    EC = "EC"
    EE = "EE"
    EG = "EG"
    EH = "EH"
    ER = "ER"
    ES = "ES"
    ET = "ET"
    EU = "EU"
    FI = "FI"
    FJ = "FJ"
    FK = "FK"
    FM = "FM"
    FO = "FO"
    FR = "FR"
    GA = "GA"
    GB = "GB"
    GD = "GD"
    GE = "GE"
    GF = "GF"
    GG = "GG"
    GH = "GH"
    GI = "GI"
    GL = "GL"
    GM = "GM"
    GN = "GN"
    GP = "GP"
    GQ = "GQ"
    GR = "GR"
    GS = "GS"
    GT = "GT"
    GU = "GU"
    GW = "GW"
    GY = "GY"
    HK = "HK"
    HM = "HM"
    HN = "HN"
    HR = "HR"
    HT = "HT"
    HU = "HU"
    ID = "ID"
    IE = "IE"
    IL = "IL"
    IM = "IM"
    IN = "IN"
    IO = "IO"
    IQ = "IQ"
    IR = "IR"
    IS = "IS"
    IT = "IT"
    JE = "JE"
    JM = "JM"
    JO = "JO"
    JP = "JP"
    KE = "KE"
    KG = "KG"
    KH = "KH"
    KI = "KI"
    KM = "KM"
    KN = "KN"
    KP = "KP"
    KR = "KR"
    KW = "KW"
    KY = "KY"
    KZ = "KZ"
    LA = "LA"
    LB = "LB"
    LC = "LC"
    LI = "LI"
    LK = "LK"
    LR = "LR"
    LS = "LS"
    LT = "LT"
    LU = "LU"
    LV = "LV"
    LY = "LY"
    MA = "MA"
    MC = "MC"
    MD = "MD"
    ME = "ME"
    MG = "MG"
    MH = "MH"
    MK = "MK"
    ML = "ML"
    MM = "MM"
    MN = "MN"
    MO = "MO"
    MP = "MP"
    MQ = "MQ"
    MR = "MR"
    MS = "MS"
    MT = "MT"
    MU = "MU"
    MV = "MV"
    MW = "MW"
    MX = "MX"
    MY = "MY"
    MZ = "MZ"
    NA = "NA"
    NC = "NC"
    NE = "NE"
    NF = "NF"
    NG = "NG"
    NI = "NI"
    NL = "NL"
    NO = "NO"
    NP = "NP"
    NR = "NR"
    NU = "NU"
    NZ = "NZ"
    OM = "OM"
    OT = "OT"
    PA = "PA"
    PE = "PE"
    PF = "PF"
    PG = "PG"
    PH = "PH"
    PK = "PK"
    PL = "PL"
    PM = "PM"
    PN = "PN"
    PR = "PR"
    PS = "PS"
    PT = "PT"
    PW = "PW"
    PY = "PY"
    QA = "QA"
    RE = "RE"
    RO = "RO"
    RS = "RS"
    RU = "RU"
    RW = "RW"
    SA = "SA"
    SB = "SB"
    SC = "SC"
    SD = "SD"
    SE = "SE"
    SG = "SG"
    SH = "SH"
    SI = "SI"
    SJ = "SJ"
    SK = "SK"
    SL = "SL"
    SM = "SM"
    SN = "SN"
    SO = "SO"
    SR = "SR"
    SS = "SS"
    ST = "ST"
    SV = "SV"
    SX = "SX"
    SY = "SY"
    SZ = "SZ"
    TC = "TC"
    TD = "TD"
    TF = "TF"
    TG = "TG"
    TH = "TH"
    TJ = "TJ"
    TK = "TK"
    TL = "TL"
    TM = "TM"
    TN = "TN"
    TO = "TO"
    TR = "TR"
    TT = "TT"
    TV = "TV"
    TW = "TW"
    TZ = "TZ"
    UA = "UA"
    UG = "UG"
    UK = "UK"
    UM = "UM"
    US = "US"
    UY = "UY"
    UZ = "UZ"
    VA = "VA"
    VC = "VC"
    VE = "VE"
    VG = "VG"
    VI = "VI"
    VN = "VN"
    VU = "VU"
    WF = "WF"
    WS = "WS"
    YE = "YE"
    YT = "YT"
    ZA = "ZA"
    ZM = "ZM"
    ZR = "ZR"
    ZW = "ZW"

class LawExtraData(Base, ExtraDataMixin):
    """
    Registration of .law and .abogado domains is limited to registrants who are
    accredited lawyers.
    """
    __tablename__ = "extra_data_law"

    qli_accreditation_id = sa.Column(sa.Unicode, nullable=False)
    """Qualified Lawyer's Accreditation ID"""

    qli_accreditation_body = sa.Column(sa.Unicode, nullable=False)
    """Qualified Lawyer's Accreditation Body"""

    qli_jurisdiction_country = sa.Column(
            sau.ChoiceType(LawJurisdictionCountry, impl=sa.Unicode),
            nullable=False)
    """Accreditation Jurisdiction Country"""

    qli_jurisdiction_state = sa.Column(sa.Unicode)
    """Accreditation Jurisdiction State/Province"""

    qli_accreditation_year = sa.Column(sa.Integer, nullable=False) # 4 digits
    """Qualified Lawyer's Accreditation Year"""

### .lv
### .com.lv
class LvExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        IdCardNumberMixin,
        RegistrationNumberMixin,
        VatNumberMixin):
    __tablename__ = "extra_data_lv"

### .mx
### .com.mx
### .co.za
class MxExtraData(Base, ExtraDataMixin, RegistrantTypeMixin):
    __tablename__ = "extra_data_mx"

### .no
class NoExtraData(Base, ExtraDataMixin, RegistrationNumberMixin):
    __tablename__ = "extra_data_no"

### .nyc
class NycExtraData(Base, ExtraDataMixin, RegistrantTypeMixin):
    __tablename__ = "extra_data_nyc"

### .pm
### .re
### .tf
### .wf
### .yt
class PmExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        RegistrationNumberMixin,
        VatNumberMixin):
    __tablename__ = "extra_data_pm"

    trademark_number = sa.Column(sa.Unicode)
    """
    The number assigned to the organization’s pending or registered trademark.
    Optional, but recommended for organizations.
    """

### .pro
class ProExtraData(Base, ExtraDataMixin):
    """
    In order to register a .PRO domain name, the registrant must belong to an
    accredited profession.
    """
    __tablename__ = "extra_data_pro"

    authority = sa.Column(sa.Unicode)
    """
    The name of the authority from which the registrant receives their
    professional credentials.
    """

    authority_website = sa.Column(sa.Unicode)
    """
    The URL to an online resource for the authority, preferably, a member
    search directory.
    """

    license_number = sa.Column(sa.Unicode)
    """The license number of the registrant's credentials, if applicable."""

    profession = sa.Column(sa.Unicode, nullable=False)
    """The stated profession of the registrant."""

### .ro
### .com.ro
class RoExtraData(Base,
        ExtraDataMixin,
        RegistrantTypeMixin,
        IdCardNumberMixin,
        RegistrationNumberMixin,
        VatNumberMixin):
    __tablename__ = "extra_data_ro"