Budget data for a year + account, optionally scoped by quota/unit/id. The
params are checked before any request (a HaushaltValidationError, as a rejected
promise): year an integer from MIN_YEAR to maxYear(), next year
(yearProblem), account/quota/unit from their value sets, id a token
(idProblem: not blank, no invisible, control or half character, no "/", not a bare
G-/F- prefix), sent trimmed and in composed Unicode (normalizeToken).
An id's prefix fixes its grouping (unitOfId): without unit, a G-/F- id
sends unit=group/unit=function; a unit that contradicts the id is a
HaushaltValidationError (idUnitProblem), since the API answers a mismatched
pair with a bare 404 for an id that exists. See validateBudgetParams.
An id the API answers with an empty element (HTTP 200, detail: {}: an income group on the
expenses side, G-1, or a zero-padded group, G-05) is a HaushaltNotFoundError, as an
unknown id answered with a 404 is a HaushaltApiError: never a result without data.
Budget data for a year + account, optionally scoped by quota/unit/id. The params are checked before any request (a HaushaltValidationError, as a rejected promise):
yearan integer fromMIN_YEARtomaxYear(), next year (yearProblem),account/quota/unitfrom their value sets,ida token (idProblem: not blank, no invisible, control or half character, no "/", not a bareG-/F-prefix), sent trimmed and in composed Unicode (normalizeToken).An id's prefix fixes its grouping (
unitOfId): withoutunit, aG-/F-id sendsunit=group/unit=function; aunitthat contradicts the id is a HaushaltValidationError (idUnitProblem), since the API answers a mismatched pair with a bare 404 for an id that exists. SeevalidateBudgetParams.An id the API answers with an empty element (HTTP 200,
detail: {}: an income group on the expenses side,G-1, or a zero-padded group,G-05) is a HaushaltNotFoundError, as an unknown id answered with a 404 is a HaushaltApiError: never a result without data.