HAALCENTRAAL English translation
BRP API / Personen / Features / fields-gba

requesting uitsluitingKiesrecht fields with fields (Persoon)

# language: en

@gba
Feature: requesting uitsluitingKiesrecht fields with fields (Persoon)

	Scenario: the person has no uitsluitingKiesrecht data
		Given the person with citizen service number '000000164' has the following data
    | geslachtsnaam (02.40) |
    | Janssen               |
		When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | uitsluitingKiesrecht            |
    Then the response has a person without data

	Scenario: 'aanduiding uitgesloten kiesrecht (38.10)' has no value
		Given the person with citizen service number '000000164' has the following 'kiesrecht' data
    | einddatum uitsluiting Europees kiesrecht (31.30) |
    | morgen                                           |
		When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000164                       |
    | fields              | uitsluitingKiesrecht            |
    Then the response has a person without data

  Scenario: the end date of exclusion from the right to vote (38.20) has no value
    Given the person with citizen service number '000000115' has the following 'kiesrecht' data
    | aanduiding uitgesloten kiesrecht (38.10) |
    | A                                        |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000115                       |
    | fields              | uitsluitingKiesrecht            |
    Then the response has a person with the following 'uitsluitingKiesrecht' data
    | naam                    | waarde |
    | uitgeslotenVanKiesrecht | true   |

  Scenario Outline: 'einddatum uitsluiting kiesrecht (38.20)' is requested with field path '<fields>'
    Given the person with citizen service number '000000152' has the following 'kiesrecht' data
    | naam                                     | waarde   |
    | aanduiding uitgesloten kiesrecht (38.10) | A        |
    | einddatum uitsluiting kiesrecht (38.20)  | 20270101 |
    When gba 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 'uitsluitingKiesrecht' data
    | naam      | waarde   |
    | einddatum | 20270101 |

    Examples:
    | fields                                     |
    | uitsluitingKiesrecht.einddatum             |
    | uitsluitingKiesrecht.einddatum.type        |
    | uitsluitingKiesrecht.einddatum.datum       |
    | uitsluitingKiesrecht.einddatum.langFormaat |
    | uitsluitingKiesrecht.einddatum.jaar        |
    | uitsluitingKiesrecht.einddatum.maand       |
    | uitsluitingKiesrecht.einddatum.onbekend    |

  Scenario Outline: the end date of exclusion from the right to vote (38.20) is today or lies in the past
    Given the person with citizen service number '000000127' has the following 'kiesrecht' data
    | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) |
    | A                                        | <einddatum uitsluiting>                 |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000127                       |
    | fields              | uitsluitingKiesrecht            |
    Then the response has a person without data

    Examples:
    | einddatum uitsluiting |
    | vandaag               |
    | gisteren              |
    | vorige maand          |
    | vorig jaar            |

  Scenario Outline: the end date of exclusion from the right to vote (38.20) lies in the future
    Given the person with citizen service number '000000127' has the following 'kiesrecht' data
    | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) |
    | A                                        | <einddatum uitsluiting>                 |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000127                       |
    | fields              | uitsluitingKiesrecht            |
    Then the response has a person with the following data
    | naam                                         | waarde                  |
    | uitsluitingKiesrecht.uitgeslotenVanKiesrecht | true                    |
    | uitsluitingKiesrecht.einddatum               | <einddatum uitsluiting> |

    Examples:
    | einddatum uitsluiting |
    | morgen                |
    | deze maand            |
    | dit jaar              |
    | volgende maand        |
    | volgend jaar          |

  Scenario: the end date of exclusion from the right to vote (38.20) is unknown
    Given the person with citizen service number '000000127' has the following 'kiesrecht' data
    | aanduiding uitgesloten kiesrecht (38.10) | einddatum uitsluiting kiesrecht (38.20) |
    | A                                        | 00000000                                |
    When gba persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000127                       |
    | fields              | uitsluitingKiesrecht            |
    Then the response has a person with the following data
    | naam                                         | waarde   |
    | uitsluitingKiesrecht.uitgeslotenVanKiesrecht | true     |
    | uitsluitingKiesrecht.einddatum               | 00000000 |