aeat.domain.portals._categories module¶
Closed taxonomies used by the portal registry.
These enums are the keying dimensions the registry exposes on
aeat.domain.portals.PortalMetadata: the functional category a portal
belongs to, the authentication method(s) it accepts, the URL-stability
tier it sits in, and the AEAT-family subdomain it is hosted on. Every
enum is a enum.StrEnum so members compare equal to their
canonical string representation across JSON / CLI boundaries.
- class PortalCategory(*values)[source]¶
Bases:
StrEnumFunctional category of an AEAT portal.
FILINGandCENSOcover per-modelo procedure pages (the/Sede/procedimientoini/G<code>.shtmlnamespace).BORRADORcovers pre-filled draft entry points (Renta Web, Pre303).CONSULTATIONcovers “Mi área personal” family surfaces.PAYMENTcovers NRC / payment flows.AUTHcovers the Cl@ve / certificate / DNIe gateways.CALENDAR_REFERENCEcovers informational reference pages (tax calendar, index).- AUTH¶
- FILING¶
- CENSO¶
- CONSULTATION¶
- BORRADOR¶
- PAYMENT¶
- CALENDAR_REFERENCE¶
- class AuthMethod(*values)[source]¶
Bases:
StrEnumAccepted authentication method on a gated portal.
ANONYMOUSmarks portals that require no authentication; it is mutually exclusive with every other method.REFERENCE_NUMBERis IRPF-only (Renta Web borrador accepts the previous year’s box 505 as the credential).- ANONYMOUS¶
- CLAVE_PIN¶
- CLAVE_PERMANENTE¶
- CLAVE_MOVIL¶
- CERTIFICATE¶
- DNIE¶
- REFERENCE_NUMBER¶
- class UrlStability(*values)[source]¶
Bases:
StrEnumStability tier of a portal URL.
STABLE_PROTOCOL_GRADEURLs are BOE-referenced and change only via explicit Orden publication.STABLE_WITHIN_CAMPAIGNURLs are stable for a tax campaign year and may rotate at the boundary.VOLATILE_APP_PATHURLs live on the WebLogic/wlpl/...shells and rotate at AEAT’s discretion.RETIREDmarks URLs that have been suppressed but are retained for historical lookup.- STABLE_PROTOCOL_GRADE¶
- STABLE_WITHIN_CAMPAIGN¶
- VOLATILE_APP_PATH¶
- RETIRED¶
- class PortalHost(*values)[source]¶
Bases:
StrEnumAEAT-family hosts the scraper must navigate.
Values are stable registry keys, not hostnames. The hostname authority lives in
aeat.core.external_constants, and portal validation resolves these keys through that central registry.CLAVE_GOBis the whole-of-government identity provider; it sits adjacent to AEAT but is in scope because the scraper hands off to it during Cl@ve flows.- SEDE¶
- WWW1¶
- WWW2¶
- WWW3¶
- AGENCIATRIBUTARIA_GOB¶
- AGENCIATRIBUTARIA_ES¶
- CLAVE_GOB¶