HAALCENTRAAL English translation
BRP API / Personen / Features / fields

PersoonBeperkt: requesting naam fields with fields

#language: en

Feature: PersoonBeperkt: requesting naam fields with fields

  Scenario Outline: 'voornamen (02.10)' is requested with field path 'naam.voornamen'
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde   |
    | geslachtsnaam (02.40) | Maassen  |
    | geboortedatum (03.10) | 19830526 |
    | voornamen (02.10)     | Peter    |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | naam.voornamen                      |
    Then the response has a person with the following 'naam' data
    | naam      | waarde |
    | voornamen | Peter  |

  Scenario Outline: 'voorvoegsel (02.30)' is requested with field path 'naam.voorvoegsel'
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde   |
    | geslachtsnaam (02.40) | Maassen  |
    | geboortedatum (03.10) | 19830526 |
    | voorvoegsel (02.30)   | van      |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | naam.voorvoegsel                    |
    Then the response has a person with the following 'naam' data
    | naam        | waarde |
    | voorvoegsel | van    |

  Scenario Outline: 'geslachtsnaam (02.40)' is requested with field path 'naam.geslachtsnaam'
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde   |
    | geslachtsnaam (02.40) | Maassen  |
    | geboortedatum (03.10) | 19830526 |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | naam.geslachtsnaam                  |
    Then the response has a person with the following 'naam' data
    | naam          | waarde  |
    | geslachtsnaam | Maassen |

  Scenario Outline: 'adellijke titel of predicaat (02.20)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following data
    | naam                                 | waarde   |
    | geslachtsnaam (02.40)                | Maassen  |
    | geboortedatum (03.10)                | 19830526 |
    | adellijke titel of predicaat (02.20) | JH       |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | <fields>                            |
    Then the response has a person with the following 'naam' data
    | naam                                 | waarde    |
    | adellijkeTitelPredicaat.code         | JH        |
    | adellijkeTitelPredicaat.omschrijving | jonkheer  |
    | adellijkeTitelPredicaat.soort        | predicaat |

    Examples:
    | fields                                    |
    | naam.adellijkeTitelPredicaat              |
    | naam.adellijkeTitelPredicaat.code         |
    | naam.adellijkeTitelPredicaat.omschrijving |
    | naam.adellijkeTitelPredicaat.soort        |

  Scenario: 'voorletters' is requested with field path 'naam.voorletters'
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde     |
    | geslachtsnaam (02.40) | Maassen    |
    | geboortedatum (03.10) | 19830526   |
    | voornamen (02.10)     | Jan Pieter |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | naam.voorletters                    |
    Then the response has a person with the following 'naam' data
    | naam        | waarde |
    | voorletters | J.P.   |

  Scenario: 'volledige naam' is requested with field path 'naam.volledigeNaam'
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde     |
    | geslachtsnaam (02.40) | Maassen    |
    | geboortedatum (03.10) | 19830526   |
    | voorvoegsel (02.30)   | van den    |
    | voornamen (02.10)     | Jan Pieter |
    When persons are searched with the following parameters
    | naam          | waarde                              |
    | type          | ZoekMetGeslachtsnaamEnGeboortedatum |
    | geslachtsnaam | Maassen                             |
    | geboortedatum | 1983-05-26                          |
    | fields        | naam.volledigeNaam                  |
    Then the response has a person with the following 'naam' data
    | naam          | waarde                     |
    | volledigeNaam | Jan Pieter van den Maassen |

  Scenario Outline: the field requested has no value
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde  |
    | geslachtsnaam (02.40) | Maassen |
    And the person has the following 'verblijfplaats' data
    | naam                               | waarde   |
    | datum aanvang adreshouding (10.30) | 20150808 |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                 | waarde |
    | gemeentecode (92.10) | 0518   |
    | postcode (11.60)     | 2628HJ |
    | huisnummer (11.20)   | 2      |
    When persons are searched with the following parameters
    | naam       | waarde                      |
    | type       | ZoekMetPostcodeEnHuisnummer |
    | postcode   | 2628HJ                      |
    | huisnummer | 2                           |
    | fields     | <fields>                    |
    Then the response has a person without 'naam' data

    Examples:
    | fields           |
    | naam.voornamen   |
    | naam.voorvoegsel |

  Scenario: the field requested has the default value
    Given the person with citizen service number '000000152' has the following data
    | naam                  | waarde |
    | geslachtsnaam (02.40) | .      |
    And the person has the following 'verblijfplaats' data
    | naam                               | waarde   |
    | datum aanvang adreshouding (10.30) | 20150808 |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                 | waarde |
    | gemeentecode (92.10) | 0518   |
    | postcode (11.60)     | 2628HJ |
    | huisnummer (11.20)   | 2      |
    When persons are searched with the following parameters
    | naam       | waarde                      |
    | type       | ZoekMetPostcodeEnHuisnummer |
    | postcode   | 2628HJ                      |
    | huisnummer | 2                           |
    | fields     | naam.geslachtsnaam          |
    Then the response has a person without 'naam' data