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,ProtocolComplete bucket-bound register capability required by application services.
- upsert_entry(entry)[source]¶
Atomically add or replace one exercise/sector entry.
- Return type:
- Parameters:
entry (ProrrataRegisterEntry)
- upsert_sector_definition(definition)[source]¶
Atomically add or replace one differentiated-sector definition.
- Return type:
- Parameters:
definition (SectorDefinition)
- upsert_activity_row(row)[source]¶
Atomically add or replace one activity row.
- Return type:
- Parameters:
row (ProrrataActivityRow)