cadrumo.adapters.outbound.aeat.sede._declarations_diagnostics module

Diagnostics helpers for the declarations register walker.

async declarations_page_shape_context_from_page(page, *, stage, modelo=None, ejercicio=None)[source]
Return type:

dict[str, object]

Parameters:
  • page (Page)

  • stage (str)

  • modelo (str | None)

  • ejercicio (int | None)

declarations_page_shape_context(html, *, landing_url, stage, modelo=None, ejercicio=None)[source]

Project one register page’s observable shape into a diagnostic context.

modelo and ejercicio are optional because the availability reader navigates the same form with no pair in hand. They are reported as None rather than as a placeholder, so a diagnostic never states a pair the caller was not querying.

Return type:

dict[str, object]

Parameters:
  • html (str)

  • landing_url (str)

  • stage (str)

  • modelo (str | None)

  • ejercicio (int | None)