HAALCENTRAAL English translation
BRP API / Verblijfplaatshistorie / Features / Supplying datumVan and datumTot

supplying datumVan and datumTot for the verblijfplaatsen supplied

#language: en

@proxy @geen-protocollering @valideer-volgorde
Feature: supplying datumVan and datumTot for the verblijfplaatsen supplied

    Background:
      Given address 'A1' has the following data
      | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | straatnaam (11.10) | huisnummer (11.20) |
      | 0800                 | 0800010000000001                         | Teststraat         | 1                  |
      And address 'A2' has the following data
      | gemeentecode (92.10) | identificatiecode verblijfplaats (11.80) | straatnaam (11.10) | huisnummer (11.20) |
      | 0800                 | 0800010000000002                         | Andere Teststraat  | 2                  |


    Scenario: current and historical verblijfplaatsen
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20210526                           |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20231014                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2023-01-01          |
      | datumTot            | 2024-01-01          |
      Then the response has residences with the following data
      | type  | datumVan.type | datumVan.datum | datumVan.langFormaat | datumTot.type | datumTot.datum | datumTot.langFormaat | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | verblijfadres.korteStraatnaam | verblijfadres.huisnummer | functieAdres.code | functieAdres.omschrijving | adressering.adresregel1 |
      | Adres | Datum         | 2023-10-14     | 14 oktober 2023      |               |                |                      | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 | Andere Teststraat             | 2                        | W                 | woonadres                 | Andere Teststraat 2     |
      | Adres | Datum         | 2021-05-26     | 26 mei 2021          | Datum         | 2023-10-14     | 14 oktober 2023      | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 | Teststraat                    | 1                        | W                 | woonadres                 | Teststraat 1            |

    Scenario: verblijfplaatsen in the Netherlands and abroad
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20210526                           |
      And the person was subsequently registered at a foreign address with the following data
      | datum aanvang adres buitenland (13.20) | land adres buitenland (13.10) |
      | 20220730                               | 6014                          |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20231014                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2022-01-01          |
      | datumTot            | 2024-01-01          |
      Then the response has a residence occurrence with the following data
      | type  | datumVan.type | datumVan.datum | datumVan.langFormaat | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | functieAdres.code | functieAdres.omschrijving |
      | Adres | Datum         | 2023-10-14     | 14 oktober 2023      | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 | W                 | woonadres                 |
      And the residence occurrence has the following 'verblijfadres' data
      | korteStraatnaam   | huisnummer |
      | Andere Teststraat | 2          |
      And the residence occurrence has the following 'adressering' data
      | adresregel1         |
      | Andere Teststraat 2 |
      And the response has a verblijfplaats occurrence with the following data
      | type                     | datumVan.type | datumVan.datum | datumVan.langFormaat | datumTot.type | datumTot.datum | datumTot.langFormaat |
      | VerblijfplaatsBuitenland | Datum         | 2022-07-30     | 30 juli 2022         | Datum         | 2023-10-14     | 14 oktober 2023      |
      And the residence occurrence has the following 'verblijfadres' data
      | land.code | land.omschrijving            |
      | 6014      | Verenigde Staten van Amerika |
      And the response has a verblijfplaats occurrence with the following data
      | type  | datumVan.type | datumVan.datum | datumVan.langFormaat | datumTot.type | datumTot.datum | datumTot.langFormaat | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | functieAdres.code | functieAdres.omschrijving |
      | Adres | Datum         | 2021-05-26     | 26 mei 2021          | Datum         | 2022-07-30     | 30 juli 2022         | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 | W                 | woonadres                 |
      And the residence occurrence has the following 'verblijfadres' data
      | korteStraatnaam | huisnummer |
      | Teststraat      | 1          |
      And the residence occurrence has the following 'adressering' data
      | adresregel1  |
      | Teststraat 1 |

    Scenario: a verblijfplaats in the Netherlands has a start date of which only the year and month are known
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20210526                           |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20231000                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2022-01-01          |
      | datumTot            | 2024-01-01          |
      Then the response has residences with the following data
      | type  | datumVan.type  | datumVan.datum | datumVan.jaar | datumVan.maand | datumVan.langFormaat | datumTot.type  | datumTot.jaar | datumTot.maand | datumTot.langFormaat | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | functieAdres.code | functieAdres.omschrijving | adressering.adresregel1 | verblijfadres.korteStraatnaam | verblijfadres.huisnummer |
      | Adres | JaarMaandDatum |                | 2023          | 10             | oktober 2023         |                |               |                |                      | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 | W                 | woonadres                 | Andere Teststraat 2     | Andere Teststraat             | 2                        |
      | Adres | Datum          | 2021-05-26     |               |                | 26 mei 2021          | JaarMaandDatum | 2023          | 10             | oktober 2023         | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 | W                 | woonadres                 | Teststraat 1            | Teststraat                    | 1                        |

    Scenario: a verblijfplaats in the Netherlands has a start date of which only the year is known
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20210526                           |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20230000                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2022-01-01          |
      | datumTot            | 2024-01-01          |
      Then the response has residences with the following data
      | type  | datumVan.type | datumVan.datum | datumVan.jaar | datumVan.langFormaat | datumTot.type | datumTot.jaar | datumTot.langFormaat | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | functieAdres.code | functieAdres.omschrijving | adressering.adresregel1 | verblijfadres.korteStraatnaam | verblijfadres.huisnummer |
      | Adres | JaarDatum     |                | 2023          | 2023                 |               |               |                      | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 | W                 | woonadres                 | Andere Teststraat 2     | Andere Teststraat             | 2                        |
      | Adres | Datum         | 2021-05-26     |               | 26 mei 2021          | JaarDatum     | 2023          | 2023                 | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 | W                 | woonadres                 | Teststraat 1            | Teststraat                    | 1                        |

    Scenario: a verblijfplaats in the Netherlands has a start date that is unknown
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20220526                           |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 00000000                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2022-01-01          |
      | datumTot            | 2024-01-01          |
      Then the response has residences with the following data
      | type  | datumVan.type | datumVan.datum | datumVan.langFormaat | datumVan.onbekend | datumTot.type | datumTot.langFormaat | datumTot.onbekend | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | functieAdres.code | functieAdres.omschrijving | adressering.adresregel1 | verblijfadres.korteStraatnaam | verblijfadres.huisnummer |
      | Adres | DatumOnbekend |                | onbekend             | true              |               |                      |                   | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 | W                 | woonadres                 | Andere Teststraat 2     | Andere Teststraat             | 2                        |
      | Adres | Datum         | 2022-05-26     | 26 mei 2022          |                   | DatumOnbekend | onbekend             | true              | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 | W                 | woonadres                 | Teststraat 1            | Teststraat                    | 1                        |

    Scenario: a verblijfplaats buitenland has a start date of which only the year and month are known
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20210526                           |
      And the person was subsequently registered at a foreign address with the following data
      | datum aanvang adres buitenland (13.20) | land adres buitenland (13.10) |
      | 20220700                               | 6014                          |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20231014                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2022-01-01          |
      | datumTot            | 2024-01-01          |
      Then the response has residences with the following data
      | type                     | datumVan.type  | datumVan.datum | datumVan.jaar | datumVan.maand | datumVan.langFormaat | datumTot.type  | datumTot.datum | datumTot.jaar | datumTot.maand | datumTot.langFormaat | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | verblijfadres.land.code | verblijfadres.land.omschrijving | functieAdres.code | functieAdres.omschrijving | adressering.adresregel1 | verblijfadres.korteStraatnaam | verblijfadres.huisnummer |
      | Adres                    | Datum          | 2023-10-14     |               |                | 14 oktober 2023      |                |                |               |                |                      | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 |                         |                                 | W                 | woonadres                 | Andere Teststraat 2     | Andere Teststraat             | 2                        |
      | VerblijfplaatsBuitenland | JaarMaandDatum |                | 2022          | 7              | juli 2022            | Datum          | 2023-10-14     |               |                | 14 oktober 2023      |                              |                                      |                                  | 6014                    | Verenigde Staten van Amerika    |                   |                           |                         |                               |                          |
      | Adres                    | Datum          | 2021-05-26     |               |                | 26 mei 2021          | JaarMaandDatum |                | 2022          | 7              | juli 2022            | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 |                         |                                 | W                 | woonadres                 | Teststraat 1            | Teststraat                    | 1                        |

    Scenario: a verblijfplaats buitenland has a start date of which only the year is known
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20210526                           |
      And the person was subsequently registered at a foreign address with the following data
      | datum aanvang adres buitenland (13.20) | land adres buitenland (13.10) |
      | 20220000                               | 6014                          |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20231014                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2021-12-31          |
      | datumTot            | 2024-01-01          |
      Then the response has residences with the following data
      | type                     | datumVan.type | datumVan.datum | datumVan.jaar | datumVan.langFormaat | datumTot.type | datumTot.datum | datumTot.jaar | datumTot.langFormaat | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | verblijfadres.land.code | verblijfadres.land.omschrijving | functieAdres.code | functieAdres.omschrijving | adressering.adresregel1 | verblijfadres.korteStraatnaam | verblijfadres.huisnummer |
      | Adres                    | Datum         | 2023-10-14     |               | 14 oktober 2023      |               |                |               |                      | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 |                         |                                 | W                 | woonadres                 | Andere Teststraat 2     | Andere Teststraat             | 2                        |
      | VerblijfplaatsBuitenland | JaarDatum     |                | 2022          | 2022                 | Datum         | 2023-10-14     |               | 14 oktober 2023      |                              |                                      |                                  | 6014                    | Verenigde Staten van Amerika    |                   |                           |                         |                               |                          |
      | Adres                    | Datum         | 2021-05-26     |               | 26 mei 2021          | JaarDatum     |                | 2022          | 2022                 | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 |                         |                                 | W                 | woonadres                 | Teststraat 1            | Teststraat                    | 1                        |

    Scenario: a verblijfplaats buitenland has a start date that is unknown
      Given the person with citizen service number '000000012' is registered at address 'A1' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20210526                           |
      And the person was subsequently registered at a foreign address with the following data
      | datum aanvang adres buitenland (13.20) | land adres buitenland (13.10) |
      | 00000000                               | 6014                          |
      And the person was subsequently registered at address 'A2' with the following data
      | gemeente van inschrijving (09.10) | datum aanvang adreshouding (10.30) |
      | 0800                              | 20231014                           |
      When verblijfplaatshistorie is searched with the following parameters
      | naam                | waarde              |
      | type                | RaadpleegMetPeriode |
      | burgerservicenummer | 000000012           |
      | datumVan            | 2021-01-01          |
      | datumTot            | 2024-01-01          |
      Then the response has residences with the following data
      | type                     | datumVan.type | datumVan.datum | datumVan.langFormaat | datumVan.onbekend | datumTot.type | datumTot.datum | datumTot.langFormaat | datumTot.onbekend | gemeenteVanInschrijving.code | gemeenteVanInschrijving.omschrijving | adresseerbaarObjectIdentificatie | verblijfadres.land.code | verblijfadres.land.omschrijving | functieAdres.code | functieAdres.omschrijving | adressering.adresregel1 | verblijfadres.korteStraatnaam | verblijfadres.huisnummer |
      | Adres                    | Datum         | 2023-10-14     | 14 oktober 2023      |                   |               |                |                      |                   | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000002                 |                         |                                 | W                 | woonadres                 | Andere Teststraat 2     | Andere Teststraat             | 2                        |
      | VerblijfplaatsBuitenland | DatumOnbekend |                | onbekend             | true              | Datum         | 2023-10-14     | 14 oktober 2023      |                   |                              |                                      |                                  | 6014                    | Verenigde Staten van Amerika    |                   |                           |                         |                               |                          |
      | Adres                    | Datum         | 2021-05-26     | 26 mei 2021          |                   | DatumOnbekend |                | onbekend             | true              | 0800                         | Hoogeloon, Hapert en Casteren        | 0800010000000001                 |                         |                                 | W                 | woonadres                 | Teststraat 1            | Teststraat                    | 1                        |