cadrumo.application.prorrata_register.ports module

Application-owned persistence capability for the prorrata register.

The prorrata register service needs the register’s complete mutation surface, while calculation paths only need its read and secure-write capabilities. This protocol extends the domain read/write contract with the three atomic mutation verbs used by the application service, keeping both application consumers independent from the encrypted-storage adapter.

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

Bases: ProrrataRegisterRepositoryProtocol, Protocol

Complete bucket-bound register capability required by application services.

upsert_entry(entry)[source]

Atomically add or replace one exercise/sector entry.

Return type:

ProrrataRegister

Parameters:

entry (ProrrataRegisterEntry)

upsert_sector_definition(definition)[source]

Atomically add or replace one differentiated-sector definition.

Return type:

ProrrataRegister

Parameters:

definition (SectorDefinition)

upsert_activity_row(row)[source]

Atomically add or replace one activity row.

Return type:

ProrrataRegister

Parameters:

row (ProrrataActivityRow)

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

Bases: Protocol

Construct the bucket-bound register capability for one profile.