cadrumo.application.modelo.export_ports module

Application-owned capabilities required by Modelo declaration export.

Modelo export coordinates several persisted authorities, but the use case must not know which encrypted-storage adapters implement them. The executable composition root supplies one bundle for the target profile bucket. Keeping the bundle explicit also makes the M303 ledger projection use the same prorrata, investment, and transaction authorities as the rest of the export.

class ModeloExportPorts(calculation, work_unit, filing, verification, bucket_event, observation, iva_compensation_decision, justificante, prorrata_register, bienes_inversion, transaction, draft_review_ports)[source]

Bases: object

Required persisted authorities for one Modelo export invocation.

Every field is required. The bundle is assembled by an outer composition root and passed unchanged through the application call chain; export never manufactures a repository or resolves an implicit global store.

Parameters:
calculation: CalculationRevisionCatalogueRepositoryProtocol
work_unit: WorkUnitCatalogueRepositoryProtocol
filing: ModeloRecordCatalogueRepositoryProtocol
verification: VerificationReportCatalogueRepositoryProtocol
bucket_event: BucketEventHistoryRepositoryProtocol
observation: CalculationObservationRepositoryProtocol
iva_compensation_decision: IvaWalletDecisionRepositoryProtocol
justificante: JustificanteRepositoryProtocol
prorrata_register: ProrrataRegisterRepositoryProtocol
bienes_inversion: BienesInversionIvaRegisterRepositoryProtocol
transaction: TransactionCatalogueRepositoryProtocol
draft_review_ports: DraftReviewPorts
class ModeloExportPortsFactory(*args, **kwargs)[source]

Bases: Protocol

Construct one export bundle for a target bucket and taxpayer identity.