HAALCENTRAAL English translation
BRP API / Personen / Features / gezag-meerdere-personen

authority relationships of the occupants of an addressable object

#language: en

@gba
Feature: authority relationships of the occupants of an addressable object


  Rule: gezag is supplied for all persons of full age and minors registered at the addressable object requested

    Scenario:
      Given an address has the following data
      | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
      | 0599                 | 0599010051001502                         |
      And the person with citizen service number '000000012' is registered at the address with the following data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the person with citizen service number '000000024' is registered at the address with the following data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the person with citizen service number '000000048' is registered at the address with the following data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the person has a 'partner' with the following data
      | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) |
      | 000000061                   | 20120428                                                           |
      And an address has the following data
      | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) |
      | 0518                 | 0518010067845216                         |
      And the person with citizen service number '000000036' is registered at the address with the following data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the person has a parent '1' with the following data
      | burgerservicenummer (01.20) |
      | 000000061                   |
      And the person with citizen service number '000000061' is registered at the address with the following data
      | gemeente van inschrijving (09.10) |
      | 0599                              |
      And the person has a 'partner' with the following data
      | burgerservicenummer (01.20) | datum huwelijkssluiting/aangaan geregistreerd partnerschap (06.10) |
      | 000000048                   | 20120428                                                           |
      And the person has a 'kind' with the following data
      | burgerservicenummer (01.20) |
      | 000000036                   |
      And the following authority relationships apply to the person with citizen service number '000000012'
      | bsnMinderjarige | soortGezag | bsnMeerderjarige |
      | 000000012       | OG2        | 000000048        |
      | 000000012       | OG2        | 000000061        |
      And the following authority relationships apply to the person with citizen service number '000000024'
      | bsnMinderjarige | soortGezag | bsnMeerderjarige |
      | 000000024       | OG1        | 000000048        |
      And the following authority relationships apply to the person with citizen service number '000000036'
      | bsnMinderjarige | soortGezag | bsnMeerderjarige |
      | 000000036       | GG         | 000000061        |
      | 000000036       | GG         | 000000048        |
      And the following authority relationships apply to the person with citizen service number '000000048'
      | bsnMinderjarige | soortGezag | bsnMeerderjarige |
      | 000000012       | OG2        | 000000048        |
      | 000000024       | OG1        | 000000048        |
      And the following authority relationships apply to the person with citizen service number '000000061'
      | bsnMinderjarige | soortGezag | bsnMeerderjarige |
      | 000000012       | OG2        | 000000061        |
      | 000000036       | GG         | 000000061        |
      When gba persons are searched with the following parameters
      | naam                             | waarde                                  |
      | type                             | ZoekMetAdresseerbaarObjectIdentificatie |
      | adresseerbaarObjectIdentificatie | 0599010051001502                        |
      | fields                           | burgerservicenummer,gezag               |
      Then the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000012 |
      And the person has a 'gezag' with the following data
      | naam                             | waarde                    |
      | type                             | TweehoofdigOuderlijkGezag |
      | minderjarige.burgerservicenummer | 000000012                 |
      And 'gezag' has a 'ouder' with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000048 |
      And 'gezag' has a 'ouder' with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000061 |
      And the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000024 |
      And the person has a 'gezag' with the following data
      | naam                             | waarde                   |
      | type                             | EenhoofdigOuderlijkGezag |
      | minderjarige.burgerservicenummer | 000000024                |
      | ouder.burgerservicenummer        | 000000048                |
      And the response has a person with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000048 |
      And the person has a 'gezag' with the following data
      | naam                             | waarde                    |
      | type                             | TweehoofdigOuderlijkGezag |
      | minderjarige.burgerservicenummer | 000000012                 |
      And 'gezag' has a 'ouder' with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000048 |
      And 'gezag' has a 'ouder' with the following data
      | naam                | waarde    |
      | burgerservicenummer | 000000061 |
      And the person has a 'gezag' with the following data
      | naam                             | waarde                   |
      | type                             | EenhoofdigOuderlijkGezag |
      | minderjarige.burgerservicenummer | 000000024                |
      | ouder.burgerservicenummer        | 000000048                |
      And the person has a 'gezag' with the following data
      | naam                             | waarde           |
      | type                             | GezamenlijkGezag |
      | minderjarige.burgerservicenummer | 000000036        |
      | ouder.burgerservicenummer        | 000000061        |
      | derde.burgerservicenummer        | 000000048        |