HAALCENTRAAL English translation
BRP API / Personen / Features / fields

Persoon: requesting europeesKiesrecht fields with fields

# language: en

Feature: Persoon: requesting europeesKiesrecht fields with fields

  Scenario Outline: 'Europees kiesrecht (31.10)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following 'kiesrecht' data
    | naam                       | waarde |
    | Europees kiesrecht (31.10) | 1      |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with only the following 'europeesKiesrecht' data
    | naam                    | waarde                 |
    | aanduiding.code         | 1                      |
    | aanduiding.omschrijving | persoon is uitgesloten |

    Examples:
    | fields                                    |
    | europeesKiesrecht.aanduiding              |
    | europeesKiesrecht.aanduiding.code         |
    | europeesKiesrecht.aanduiding.omschrijving |

  Scenario Outline: 'einddatum uitsluiting Europees kiesrecht (31.30)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following 'inschrijving' data
    | naam                                             | waarde   |
    | Europees kiesrecht (31.10)                       | 1        |
    | einddatum uitsluiting Europees kiesrecht (31.30) | 20270101 |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | <fields>                        |
    Then the response has a person with only the following 'europeesKiesrecht' data
    | naam                             | waarde         |
    | einddatumUitsluiting.type        | Datum          |
    | einddatumUitsluiting.datum       | 2027-01-01     |
    | einddatumUitsluiting.langFormaat | 1 januari 2027 |

    Examples:
    | fields                                             |
    | europeesKiesrecht.einddatumUitsluiting             |
    | europeesKiesrecht.einddatumUitsluiting.type        |
    | europeesKiesrecht.einddatumUitsluiting.datum       |
    | europeesKiesrecht.einddatumUitsluiting.langFormaat |
    | europeesKiesrecht.einddatumUitsluiting.jaar        |
    | europeesKiesrecht.einddatumUitsluiting.maand       |
    | europeesKiesrecht.einddatumUitsluiting.onbekend    |

  Scenario Outline: 'einddatum uitsluiting Europees kiesrecht (31.30)' of type '<type>' is requested with field path 'europeesKiesrecht.einddatumUitsluiting'
    Given the person with citizen service number '000000152' has the following 'inschrijving' data
    | naam                                             | waarde     |
    | Europees kiesrecht (31.10)                       | 1          |
    | einddatum uitsluiting Europees kiesrecht (31.30) | <GbaDatum> |
    When persons are searched with the following parameters
    | naam                | waarde                                 |
    | type                | RaadpleegMetBurgerservicenummer        |
    | burgerservicenummer | 000000152                              |
    | fields              | europeesKiesrecht.einddatumUitsluiting |
    Then the response has a person with only the following 'europeesKiesrecht' data
    | naam                             | waarde        |
    | einddatumUitsluiting.type        | <type>        |
    | einddatumUitsluiting.datum       | <datum>       |
    | einddatumUitsluiting.jaar        | <jaar>        |
    | einddatumUitsluiting.maand       | <maand>       |
    | einddatumUitsluiting.onbekend    | <onbekend>    |
    | einddatumUitsluiting.langFormaat | <langFormaat> |

    Examples:
    | type           | GbaDatum | datum      | jaar | maand | onbekend | langFormaat |
    | Datum          | 20300701 | 2030-07-01 |      |       |          | 1 juli 2030 |
    | DatumOnbekend  | 00000000 |            |      |       | true     | onbekend    |
    | JaarDatum      | 20300000 |            | 2030 |       |          | 2030        |
    | JaarMaandDatum | 20300700 |            | 2030 | 7     |          | juli 2030   |

  Scenario: the person has no 'Europees kiesrecht' data
    Given the person with citizen service number '000000152' has the following 'inschrijving' data
    | naam                     | waarde |
    | indicatie geheim (70.10) | 0      |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000152                       |
    | fields              | europeesKiesrecht               |
    Then the response has a person without data