HAALCENTRAAL English translation
BRP API / Personen / Features / fields

Persoon - requesting verblijfplaats binnenland (locatie) fields with fields

# language: en

Feature: Persoon - requesting verblijfplaats binnenland (locatie) 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: 'datum aanvang adreshouding (10.30)' is requested with field path 'verblijfplaats.datumVan'
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | verblijfplaats.datumVan         |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                 | waarde          |
    | type                 | Locatie         |
    | datumVan.type        | Datum           |
    | datumVan.datum       | 2015-08-08      |
    | datumVan.langFormaat | 8 augustus 2015 |

  Scenario: 'datum ingang geldigheid (85.10)' is requested with field path 'verblijfplaats.datumIngangGeldigheid'
    When persons are searched with the following parameters
    | naam                | waarde                               |
    | type                | RaadpleegMetBurgerservicenummer      |
    | burgerservicenummer | 000000152                            |
    | fields              | verblijfplaats.datumIngangGeldigheid |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                              | waarde           |
    | type                              | Locatie          |
    | datumIngangGeldigheid.type        | Datum            |
    | datumIngangGeldigheid.datum       | 2022-02-22       |
    | datumIngangGeldigheid.langFormaat | 22 februari 2022 |

  Scenario Outline: 'functie adres (10.10)' is requested with field path '<fields>'
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                      | waarde    |
    | type                      | Locatie   |
    | functieAdres.code         | W         |
    | functieAdres.omschrijving | woonadres |

    Examples:
    | fields                                   |
    | verblijfplaats.functieAdres              |
    | verblijfplaats.functieAdres.code         |
    | verblijfplaats.functieAdres.omschrijving |

  Scenario: all adres fields are requested with field path 'verblijfplaats'
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | verblijfplaats                  |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                              | waarde                      |
    | type                              | Locatie                     |
    | datumVan.type                     | Datum                       |
    | datumVan.datum                    | 2015-08-08                  |
    | datumVan.langFormaat              | 8 augustus 2015             |
    | datumIngangGeldigheid.type        | Datum                       |
    | datumIngangGeldigheid.datum       | 2022-02-22                  |
    | datumIngangGeldigheid.langFormaat | 22 februari 2022            |
    | functieAdres.code                 | W                           |
    | functieAdres.omschrijving         | woonadres                   |
    | verblijfadres.locatiebeschrijving | Woonboot bij de Grote Sloot |