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

Persoon: requesting adressering fields with fields/fields alias

#language: en

Feature: Persoon: requesting adressering fields with fields/fields alias

  When a consumer of the BRP API is not authorized to query the address line fields for a residence abroad
  Then the consumer must use the adresseringBinnenland fields alias to indicate that it is requesting address line fields for a domestic residence

Rule: the standard address line field paths can be used by a consumer that is authorized to request address lines belonging to a domestic residence (adres, locatie) and to a residence abroad

  Scenario Outline: the consumer is authorized for 'adressering buitenland' and requests <sub titel>
    Given the consumer with indication '000008' is authorized for 'adressering' data
    And the person with citizen service number '000000097' has the following 'verblijfplaats' data
    | naam                             | waarde                      |
    | land adres buitenland (13.10)    | 6014                        |
    | regel 1 adres buitenland (13.30) | 1600 Pennsylvania Avenue NW |
    | regel 2 adres buitenland (13.40) | Washington, DC 20500        |
    | regel 3 adres buitenland (13.50) | Selangor                    |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000097                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'adressering' data
    | naam              | waarde                       |
    | adresregel1       | 1600 Pennsylvania Avenue NW  |
    | adresregel2       | Washington, DC 20500         |
    | adresregel3       | Selangor                     |
    | land.code         | 6014                         |
    | land.omschrijving | Verenigde Staten van Amerika |

    Examples:
    | fields                                                                                   | sub titel                                   |
    | adressering                                                                              | de adressering gegevensgroep veld           |
    | adressering.adresregel1,adressering.adresregel2,adressering.adresregel3,adressering.land | alle adresregel velden met hun volledig pad |

  Scenario: the consumer requests adresseringBinnenland and verblijfplaats, and the person has a foreign verblijfplaats
    Given the person with citizen service number '000000097' has the following 'verblijfplaats' data
    | naam                             | waarde                      |
    | land adres buitenland (13.10)    | 6014                        |
    | regel 1 adres buitenland (13.30) | 1600 Pennsylvania Avenue NW |
    | regel 2 adres buitenland (13.40) | Washington, DC 20500        |
    | regel 3 adres buitenland (13.50) | Selangor                    |
    When persons are searched with the following parameters
    | naam                | waarde                                             |
    | type                | RaadpleegMetBurgerservicenummer                    |
    | burgerservicenummer | 000000097                                          |
    | fields              | adresseringBinnenland,verblijfplaats.verblijfadres |
    Then the response has a person with the following 'verblijfplaats' data
    | naam                            | waarde                       |
    | type                            | VerblijfplaatsBuitenland     |
    | verblijfadres.regel1            | 1600 Pennsylvania Avenue NW  |
    | verblijfadres.regel2            | Washington, DC 20500         |
    | verblijfadres.regel3            | Selangor                     |
    | verblijfadres.land.code         | 6014                         |
    | verblijfadres.land.omschrijving | Verenigde Staten van Amerika |

  Scenario Outline: the consumer is authorized for 'adressering buitenland' and requests the <field> field of the adressering data group
    Given the consumer with indication '000008' is authorized for 'adressering' data
    And the person with citizen service number '000000097' has the following 'verblijfplaats' data
    | naam                             | waarde                      |
    | land adres buitenland (13.10)    | 6014                        |
    | regel 1 adres buitenland (13.30) | 1600 Pennsylvania Avenue NW |
    | regel 2 adres buitenland (13.40) | Washington, DC 20500        |
    | regel 3 adres buitenland (13.50) | Selangor                    |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000097                       |
    | fields              | adressering.<field>             |
    Then the response has a person with the following 'adressering' data
    | naam    | waarde   |
    | <field> | <waarde> |

    Examples:
    | field       | waarde                      |
    | adresregel1 | 1600 Pennsylvania Avenue NW |
    | adresregel2 | Washington, DC 20500        |
    | adresregel3 | Selangor                    |

  Scenario: the consumer is authorized for 'adressering buitenland' and requests the land field of the adressering data group
    Given the consumer with indication '000008' is authorized for 'adressering' data
    And the person with citizen service number '000000097' has the following 'verblijfplaats' data
    | naam                             | waarde                      |
    | land adres buitenland (13.10)    | 6014                        |
    | regel 1 adres buitenland (13.30) | 1600 Pennsylvania Avenue NW |
    | regel 2 adres buitenland (13.40) | Washington, DC 20500        |
    | regel 3 adres buitenland (13.50) | Selangor                    |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000097                       |
    | fields              | adressering.land                |
    Then the response has a person with the following 'adressering' data
    | naam              | waarde                       |
    | land.code         | 6014                         |
    | land.omschrijving | Verenigde Staten van Amerika |

Rule: the 'adresseringBinnenland' fields alias can be used by a consumer that is not authorized to request address lines belonging to a residence abroad

  Scenario: the consumer is not authorized for 'adressering buitenland' and uses the fields alias to request the address line fields of a verblijfplaats buitenland
    Given the consumer with indication '000008' is authorized for 'adressering binnenland' data
    And the person with citizen service number '000000097' has the following 'verblijfplaats' data
    | naam                             | waarde                      |
    | land adres buitenland (13.10)    | 6014                        |
    | regel 1 adres buitenland (13.30) | 1600 Pennsylvania Avenue NW |
    | regel 2 adres buitenland (13.40) | Washington, DC 20500        |
    | regel 3 adres buitenland (13.50) | Selangor                    |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000097                       |
    | fields              | <fields>                        |
    Then the response has a person without 'adressering' data

    Examples:
    | fields                                                              |
    | adresseringBinnenland                                               |
    | adresseringBinnenland.adresregel1,adresseringBinnenland.adresregel2 |

  Scenario: the consumer is not authorized for 'adressering buitenland' and uses the fields alias to request the address line fields of an adres
    Given the consumer with indication '000008' is authorized for 'adressering binnenland' data
    And the person with citizen service number '000000097' has the following 'verblijfplaats' data
    | naam                  | waarde |
    | functie adres (10.10) | W      |
    And the 'verblijfplaats' has the following 'adres' data
    | naam                 | waarde          |
    | gemeentecode (92.10) | 0518            |
    | straatnaam (11.10)   | Borgesiusstraat |
    | huisnummer (11.20)   | 103             |
    | postcode (11.60)     | 2497BV          |
    | woonplaats (11.70)   | Scheveningen    |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000097                       |
    | fields              | <fields>                        |
    Then the response has a person with the following 'adressering' data
    | naam        | waarde                |
    | adresregel1 | Borgesiusstraat 103   |
    | adresregel2 | 2497 BV  SCHEVENINGEN |

    Examples:
    | fields                                                              |
    | adresseringBinnenland                                               |
    | adresseringBinnenland.adresregel1,adresseringBinnenland.adresregel2 |

  Scenario Outline: the consumer is not authorized for 'adressering buitenland' and uses the fields alias to request an address line field of a verblijfplaats buitenland
    Given the consumer with indication '000008' is authorized for 'adressering binnenland' data
    And the person with citizen service number '000000097' has the following 'verblijfplaats' data
    | naam                             | waarde                      |
    | land adres buitenland (13.10)    | 6014                        |
    | regel 1 adres buitenland (13.30) | 1600 Pennsylvania Avenue NW |
    | regel 2 adres buitenland (13.40) | Washington, DC 20500        |
    | regel 3 adres buitenland (13.50) | Selangor                    |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000097                       |
    | fields              | adresseringBinnenland.<field>   |
    Then the response has a person without 'adressering' data

    Examples:
    | field       |
    | adresregel1 |
    | adresregel2 |