cadrumo.domain.calculations.registry.third_party_declaration_roles module

Typed projection of the third-party declaration-role fact (0134).

class ThirdPartyDeclarationRoleDefinition(token, description, legal_refs)[source]

Bases: object

One registry-declared third-party declaration role and its semantics.

Parameters:
token: ThirdPartyDeclarationRole
description: str
legal_refs: tuple[str, ...]
class ThirdPartyDeclarationRoleCatalogue(declarations, definitions, selections)[source]

Bases: object

Complete typed projection of fact 0134 for one filing date.

Parameters:
declarations: Mapping[str, str]
definitions: tuple[ThirdPartyDeclarationRoleDefinition, ...]
selections: Mapping[str, tuple[ThirdPartyDeclarationRole, ...]]
property roles: tuple[ThirdPartyDeclarationRole, ...]

Return the registry-declared role choices in canonical order.

property choices: tuple[ThirdPartyDeclarationRole, ...]

Alias used by choice-building consumers.

require(value)[source]

Project one role only when fact 0134 declares it.

Return type:

ThirdPartyDeclarationRole

Parameters:

value (object)

definition(value)[source]

Return the selected role’s registry-owned semantics.

Return type:

ThirdPartyDeclarationRoleDefinition

Parameters:

value (object)

roles_for_clave(clave)[source]

Return the registry-owned role population for one C/D/E selector.

Return type:

frozenset[ThirdPartyDeclarationRole]

Parameters:

clave (str)

resolve_third_party_declaration_role_catalogue(*, effective_date=None, authority=None)[source]

Resolve the dated third-party declaration-role vocabulary.

Return type:

ThirdPartyDeclarationRoleCatalogue

Parameters:
require_third_party_declaration_role(value, *, effective_date=None, authority=None)[source]

Project one role through the dated facts-registry catalogue.

Return type:

ThirdPartyDeclarationRole

Parameters:
third_party_declaration_role_choices(*, effective_date=None, authority=None)[source]

Return registry-declared role choices in canonical order.

Return type:

tuple[ThirdPartyDeclarationRole, ...]

Parameters: