HAALCENTRAAL English translation
BRP API / Personen / Features / volledige-naam

supplying the full name of the minor, the parent or parents and the third party or parties in an authority relationship

# language: en
Feature: supplying the full name of the minor, the parent or parents and the third party or parties in an authority relationship

  Background:
    Given the person 'Saskia' with citizen service number '000000012'
    * is of full age
    And the person 'Maarten' with citizen service number '000000024'
    * is of full age
    And 'Saskia' and 'Maarten' are married to each other with the following data
      | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) |
      |                                                           20100401 |
    And the person 'Rachel' with citizen service number '000000036'
    * has 'Saskia' as parent 1
    * was born on 1-12-2022
    * was born in the Netherlands
    * is registered in the BRP

  @info-api
  Rule: the full name is composed by placing voornamen, voorvoegsels and geslachtsnaam one after the other

    Scenario Outline: the authority over the person requested is joint authority and the minor in the authority relationship has <naam omschrijving>
      Given the person 'Rachel' has the following data
        | geslachtsaanduiding (04.10) | voornamen (02.10) | geslachtsnaam (02.40) | voorvoegsel (02.30) | adellijke titel of predicaat (02.20) |
        | <geslacht>                  | <voornamen>       | <geslachtsnaam>       | <voorvoegsel>       | <adellijke titel of predicaat>       |
      When 'gezag' is requested for persons searched by citizen service number of 'Rachel'
      Then the authority over 'Rachel' is joint authority with parent 'Saskia' and third party 'Maarten'
      And the minor has the following data
        | naam.volledigeNaam |
        | <volledige naam>   |

      Examples:
        | geslacht | voornamen | geslachtsnaam | voorvoegsel | adellijke titel of predicaat | volledige naam            | naam omschrijving |
        | M        |           | Braber        |             |                              | Braber                    | een naamketen     |
        | V        | Rachel    | Braber        |             |                              | Rachel Braber             | geen voorvoegsel  |
        | O        | Rachel    | Braber        | den         |                              | Rachel den Braber         | voorvoegsel       |
        | V        | Rachel    | Braber        |             | JV                           | jonkvrouw Rachel Braber   | predicaat         |
        | V        | Rachel    | Braber        | den         | BS                           | Rachel barones den Braber | adellijke titel   |

  @gezag-api
  Rule: geslachtsaanduiding, voornamen, title of nobility/predicate, voorvoegsel and geslachtsnaam are supplied for the minor, the parent or parents and the third party or parties in an authority relationship
    geslacht.omschrijving, adellijkeTitelPredicaat.soort and omschrijving are not supplied because they are not needed for composing the full name

    @gezag-api
    Scenario Outline: the authority over the person requested is joint authority and the <houder> in the authority relationship has <naam omschrijving>
      Given the person '<persoon>' has the following data
        | geslachtsaanduiding (04.10) | voornamen (02.10) | geslachtsnaam (02.40) | voorvoegsel (02.30) | adellijke titel of predicaat (02.20) |
        | <geslacht>                  | <voornamen>       | <geslachtsnaam>       | <voorvoegsel>       | <adellijke titel of predicaat>       |
      When 'gezag' is requested for persons searched by citizen service number of 'Rachel'
      Then the authority over 'Rachel' is joint authority with parent 'Saskia' and third party 'Maarten'
      And the <houder> has the following data
        | geslacht.code | naam.voornamen | naam.geslachtsnaam | naam.voorvoegsel | naam.adellijkeTitelPredicaat.code |
        | <geslacht>    | <voornamen>    | <geslachtsnaam>    | <voorvoegsel>    | <adellijke titel of predicaat>    |

      Examples:
        | persoon | houder       | geslacht | voornamen       | geslachtsnaam | voorvoegsel | adellijke titel of predicaat | naam omschrijving |
        | Rachel  | minderjarige | M        |                 | Braber        |             |                              | een naamketen     |
        | Saskia  | ouder        | V        | Saskia          | Maassen       |             |                              | geen voorvoegsel  |
        | Maarten | derde        | O        | Maarten         | Jager         | den         |                              | voorvoegsel       |
        | Rachel  | minderjarige | V        | Rachel          | Braber        |             | JV                           | predicaat         |
        | Saskia  | ouder        | V        | Christina Maria | Hoogh         | van         | BS                           | adellijke titel   |

  @gezag-api
  Rule: where the minor, the parent or parents and the third party or parties in an authority relationship also have voornamen and/or geslachtsnaam with diacritics, these are supplied
    in this case both the diacritic and the non-diacritic fields are filled

    @gezag-api
    Scenario: the authority over the person requested is joint authority and the parent and the third party in the authority relationship have diacritics in their voornamen or geslachtsnaam
      Given the person 'Saskia' has the following data
        | geslachtsaanduiding (04.10) | voornamen (02.10) | geslachtsnaam (02.40) | geslachtsnaam (diakrieten) |
        | V                           | Saskia            | del nino Jesus Virgen | del niño Jesús Virgen      |
      And the person 'Maarten' has the following data
        | geslachtsaanduiding (04.10) | voornamen (02.10) | voornamen (diakrieten) | geslachtsnaam (02.40) | geslachtsnaam (diakrieten) |
        | M                           | Ateec Delta       | Åłéèç Đëļŧå            | Zaileneur             | Żáïŀëñøŕ                   |
      When 'gezag' is requested for persons searched by citizen service number of 'Rachel'
      Then the authority over 'Rachel' is joint authority with parent 'Saskia' and third party 'Maarten'
      And the parent has the following data
        | geslacht.code | naam.voornamen | naam.geslachtsnaam    |
        | V             | Saskia         | del niño Jesús Virgen |
      And the third party has the following data
        | geslacht.code | naam.voornamen | naam.geslachtsnaam |
        | M             | Åłéèç Đëļŧå    | Żáïŀëñøŕ           |