HAALCENTRAAL English translation
BRP API / Personen / Features / fields

Persoon - verblijfplaats binnenland (locatie): requesting verblijfadres fields with fields

# language: en

Feature: Persoon - verblijfplaats binnenland (locatie): requesting verblijfadres fields with fields

  Background:
    Given the person with citizen service number '000000152' has the following 'verblijfplaats' data
    | naam                               | waarde   |
    | datum aanvang adreshouding (10.30) | 20150808 |
    | datum ingang geldigheid (85.10)    | 20220222 |
    | functie adres (10.10)              | W        |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                        | waarde                      |
    | gemeentecode (92.10)        | 0518                        |
    | locatiebeschrijving (12.10) | Woonboot bij de Grote Sloot |

  Scenario: 'locatiebeschrijving (12.10)' is requested with field path 'verblijfplaats.verblijfadres.locatiebeschrijving'
    When persons are searched with the following parameters
    | naam                | waarde                                           |
    | type                | RaadpleegMetBurgerservicenummer                  |
    | burgerservicenummer | 000000152                                        |
    | fields              | verblijfplaats.verblijfadres.locatiebeschrijving |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                              | waarde                      |
    | type                              | Locatie                     |
    | verblijfadres.locatiebeschrijving | Woonboot bij de Grote Sloot |

  Scenario: all adres fields are requested with field path 'verblijfplaats.verblijfadres'
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | verblijfplaats.verblijfadres    |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                              | waarde                      |
    | type                              | Locatie                     |
    | verblijfadres.locatiebeschrijving | Woonboot bij de Grote Sloot |