cadrumo.application.bienes_inversion.ports module

Application-owned capabilities for the capital-goods IVA register.

The register service and calculation/advisory paths consume this contract rather than constructing the encrypted persistence adapter. An executable composition root binds one bucket-scoped implementation and supplies it explicitly to each application path.

class BienesInversionIvaRegisterRepositoryProtocol(*args, **kwargs)[source]

Bases: Protocol

Required bucket-bound read/write capability for capital-goods register state.

load()[source]

Load the register, returning an empty register when no state exists.

Return type:

BienesInversionIvaRegister

add(record)[source]

Atomically add one record and return the updated register.

Return type:

BienesInversionIvaRegister

Parameters:

record (BienInversionIvaRecord)

class BienesInversionIvaRegisterRepositoryFactory(*args, **kwargs)[source]

Bases: Protocol

Construct the register capability bound to one profile bucket.