.. include:: /Includes.rst.txt .. _feature-1791771035: =================================================== Feature: Public holidays come from country packages =================================================== Description =========== The public holidays HR adds to the company calendar come from the installed country packages: the German federal states from the package for Germany, which names the law each state's holidays come from. HR chooses a region instead of a federal state, and the customary days offered are those of the region's country package. A country without a package offers no regions. Impact ====== ``POST /api/v1/holiday-rules/seed`` takes ``region`` instead of ``federalState``; an unknown region, or one of a country without an installed package, is a bad request as before. ``GET /api/v1/holiday-regions`` lists the regions and ``GET /api/v1/holiday-regions/{region}/extras`` their customary days. Packages that checked ``FederalStates`` use the injected ``HolidayRegions``; a country package contributes its holidays by implementing ``HolidaySource``. Rules added before keep their names and keys. The Horilla import requires the package for Germany. .. index:: API, Frontend, package:adsum-working-time, package:adsum-country-de, package:adsum-migration