cadrumo.adapters.inbound.notificacion.document_reader module

Adapter that reads a fetched notification document in memory.

class NotificationDocumentReader[source]

Bases: object

Extract and parse one fetched notification document without storage.

read(document)[source]

Return the complete reading, or an explicit refusal reason.

Return type:

tuple[SancionLiquidacion | None, str | None]

Parameters:

document (NotificationDocumentProtocol)