PersoonBeperkt: requesting adressering fields with fields/fields alias
#language: en Feature: PersoonBeperkt: 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: the consumer is authorized for both 'adressering binnen- en buitenland' and requests all address line fields by their full path Given the consumer with indication '000008' is authorized for 'adressering' data And the person with citizen service number '000000097' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19830526 | And the person 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 | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1983-05-26 | | fields | adressering.adresregel1,adressering.adresregel2,adressering.adresregel3,adressering.land | 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 | Scenario Outline: the consumer is authorized for both 'adressering binnen- & 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 data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19830526 | And the person 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 | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1983-05-26 | | 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 both 'adressering binnen- & 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 data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19830526 | And the person 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 | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1983-05-26 | | 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 must 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 all address line fields of a verblijfplaats buitenland by their full path Given the consumer with indication '000008' is authorized for 'adressering binnenland' data And the person with citizen service number '000000097' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19830526 | And the person 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 | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1983-05-26 | | fields | adresseringBinnenland.adresregel1,adresseringBinnenland.adresregel2 | Then the response has a person without data Scenario: the consumer is not authorized for 'adressering buitenland' and uses the fields alias to request all address line fields of an address by their full path Given the consumer with indication '000008' is authorized for 'adressering binnenland' data And the person with citizen service number '000000097' has the following data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19830526 | And the person 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 | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1983-05-26 | | fields | adresseringBinnenland.adresregel1,adresseringBinnenland.adresregel2 | Then the response has a person with the following 'adressering' data | naam | waarde | | adresregel1 | Borgesiusstraat 103 | | adresregel2 | 2497 BV SCHEVENINGEN | Scenario Outline: the consumer is not authorized for 'adressering buitenland' and uses the fields alias to request the <field> field of the adressering data group 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 data | naam | waarde | | geslachtsnaam (02.40) | Maassen | | geboortedatum (03.10) | 19830526 | And the person 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 | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 1983-05-26 | | fields | adresseringBinnenland.<field> | Then the response has a person without data Examples: | field | | adresregel1 | | adresregel2 |