cadrumo.domain.calculations.registry.iva_schema_vocabulary module

Typed projections for the IVA schema vocabulary fact (0098).

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

Bases: object

One registry-declared cash-accounting treatment and its semantics.

Parameters:
token: IvaCashAccountingTreatment
description: str
legal_refs: tuple[str, ...]
class IvaCashAccountingTreatmentCatalogue(definitions, none_token, supplier_regime_token)[source]

Bases: object

Typed projection of the dated cash-accounting vocabulary.

Parameters:
definitions: tuple[IvaCashAccountingTreatmentDefinition, ...]
none_token: IvaCashAccountingTreatment
supplier_regime_token: IvaCashAccountingTreatment
property all_treatments: frozenset[IvaCashAccountingTreatment]

Return every cash-accounting treatment declared by the registry.

require(value)[source]

Validate and return one registry-declared cash-accounting treatment.

Return type:

IvaCashAccountingTreatment

Parameters:

value (object)

definition(value)[source]

Return the registry definition for one cash-accounting treatment.

Return type:

IvaCashAccountingTreatmentDefinition

Parameters:

value (object)

class IvaRegimeDefinition(token, description, deadline_applicability, legal_refs)[source]

Bases: object

One registry-declared IVA regime and its deadline semantics.

Parameters:
token: IVARegime
description: str
deadline_applicability: str
legal_refs: tuple[str, ...]
class IvaRegimeCatalogue(definitions, default_token, no_aplica_token, self_assessment_tokens)[source]

Bases: object

Typed projection of the dated IVA regime vocabulary.

Parameters:
definitions: tuple[IvaRegimeDefinition, ...]
default_token: IVARegime
no_aplica_token: IVARegime
self_assessment_tokens: frozenset[IVARegime]
property all_regimes: frozenset[IVARegime]

Return every IVA regime declared by the registry.

property selectable_regimes: tuple[IVARegime, ...]

Return IVA regimes that may be selected by an operator.

require(value)[source]

Validate and return one registry-declared IVA regime.

Return type:

IVARegime

Parameters:

value (object)

definition(value)[source]

Return the registry definition for one IVA regime.

Return type:

IvaRegimeDefinition

Parameters:

value (object)

class M303TaxTerritoryDefinition(token, description, legal_refs, is_foral, state_attribution_ratio, exclusively_foral_mark)[source]

Bases: object

One registry-declared Modelo 303 tax-territory token and semantics.

Parameters:
token: M303TaxTerritory
description: str
legal_refs: tuple[str, ...]
is_foral: bool
state_attribution_ratio: Decimal
exclusively_foral_mark: str
class M303TaxTerritoryCatalogue(definitions)[source]

Bases: object

Typed projection of the dated Modelo 303 territory vocabulary.

Parameters:

definitions (tuple[M303TaxTerritoryDefinition, ...])

definitions: tuple[M303TaxTerritoryDefinition, ...]
property all_territories: frozenset[M303TaxTerritory]

Return every Modelo 303 tax territory declared by the registry.

property choices: tuple[M303TaxTerritory, ...]

Return Modelo 303 tax-territory choices in registry order.

property foral_token: M303TaxTerritory

Return the sole foral territory declared by the registry.

require(value)[source]

Validate and return one registry-declared Modelo 303 territory.

Return type:

M303TaxTerritory

Parameters:

value (object)

definition(value)[source]

Return the registry definition for one Modelo 303 territory.

Return type:

M303TaxTerritoryDefinition

Parameters:

value (object)

class M303RegimeCompositionDefinition(token, description, export_code, simplified_scope, legal_refs)[source]

Bases: object

One registry-declared Modelo 303 regime-composition token and semantics.

Parameters:
token: M303RegimeComposition
description: str
export_code: str
simplified_scope: str
legal_refs: tuple[str, ...]
class M303RegimeCompositionCatalogue(definitions)[source]

Bases: object

Typed projection of the dated Modelo 303 composition vocabulary.

Parameters:

definitions (tuple[M303RegimeCompositionDefinition, ...])

definitions: tuple[M303RegimeCompositionDefinition, ...]
property all_compositions: frozenset[M303RegimeComposition]

Return every Modelo 303 regime composition declared by the registry.

property choices: tuple[M303RegimeComposition, ...]

Return Modelo 303 regime-composition choices in registry order.

require(value)[source]

Validate and return one registry-declared Modelo 303 composition.

Return type:

M303RegimeComposition

Parameters:

value (object)

definition(value)[source]

Return the registry definition for one Modelo 303 composition.

Return type:

M303RegimeCompositionDefinition

Parameters:

value (object)

require_simplified_scope(value)[source]

Validate and return one simplified-regime scope some composition declares.

Return type:

M303RegimenSimplificadoScope

Parameters:

value (object)

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

Bases: object

One registry-declared IVA exemption article token and semantics.

Parameters:
token: IvaExemptionArticle
description: str
legal_refs: tuple[str, ...]
class IvaExemptionArticleCatalogue(definitions)[source]

Bases: object

Typed projection of the dated exemption-article vocabulary.

Parameters:

definitions (tuple[IvaExemptionArticleDefinition, ...])

definitions: tuple[IvaExemptionArticleDefinition, ...]
property all_articles: frozenset[IvaExemptionArticle]

Return every IVA exemption article declared by the registry.

require(value)[source]

Validate and return one registry-declared IVA exemption article.

Return type:

IvaExemptionArticle

Parameters:

value (object)

definition(value)[source]

Return the registry definition for one IVA exemption article.

Return type:

IvaExemptionArticleDefinition

Parameters:

value (object)

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

Bases: object

One registry-declared Art. 69.Dos service token and semantics.

Parameters:
token: IvaArt69DosService
description: str
legal_refs: tuple[str, ...]
class IvaArt69DosServiceCatalogue(definitions)[source]

Bases: object

Typed projection of the dated Art. 69.Dos service vocabulary.

Parameters:

definitions (tuple[IvaArt69DosServiceDefinition, ...])

definitions: tuple[IvaArt69DosServiceDefinition, ...]
property all_services: frozenset[IvaArt69DosService]

Return every Art. 69.Dos service declared by the registry.

require(value)[source]

Validate and return one registry-declared Art. 69.Dos service.

Return type:

IvaArt69DosService

Parameters:

value (object)

definition(value)[source]

Return the registry definition for one Art. 69.Dos service.

Return type:

IvaArt69DosServiceDefinition

Parameters:

value (object)

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

Resolve the dated IVA cash-accounting vocabulary from governed facts.

Return type:

IvaCashAccountingTreatmentCatalogue

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

Resolve the dated IVA-regime vocabulary from governed facts.

Return type:

IvaRegimeCatalogue

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

Resolve the dated Modelo 303 territory vocabulary and semantics.

Return type:

M303TaxTerritoryCatalogue

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

Resolve the dated Modelo 303 regime-composition vocabulary.

Return type:

M303RegimeCompositionCatalogue

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

Resolve the dated IVA exemption-article vocabulary from governed facts.

Return type:

IvaExemptionArticleCatalogue

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

Resolve the dated Art. 69.Dos service vocabulary from governed facts.

Return type:

IvaArt69DosServiceCatalogue

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

Return the registry-declared default IVA regime.

Return type:

IVARegime

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

Validate one value against the dated IVA-regime vocabulary.

Return type:

IVARegime

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

Project one Modelo 303 territory token only when the registry governs it.

Return type:

M303TaxTerritory

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

Return the registry-declared territory choice order.

Return type:

tuple[M303TaxTerritory, ...]

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

Return the registry-declared foral classification for one token.

Return type:

bool

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

Return the registry-declared State-attribution ratio for one token.

Return type:

Decimal

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

Return the registry-declared Modelo 303 territory output mark.

Return type:

str

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

Project one Modelo 303 regime-composition token from the facts registry.

Return type:

M303RegimeComposition

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

Return the registry-declared Modelo 303 composition choice order.

Return type:

tuple[M303RegimeComposition, ...]

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

Return the registry-declared Modelo 303 composition export code.

Return type:

str

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

Project the registry-declared simplified-regime scope for a composition.

Return type:

M303RegimenSimplificadoScope

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

Validate one persisted simplified-regime scope against the dated composition fact.

Return type:

M303RegimenSimplificadoScope

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

Return selectable IVA regimes in registry order.

Return type:

tuple[IVARegime, ...]

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

Return the registry-declared NO_APLICA IVA regime token.

Return type:

IVARegime

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

Return IVA regimes marked for self-assessment by the registry.

Return type:

frozenset[IVARegime]

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

Return the registry-declared simplified IVA regime token.

Return type:

IVARegime

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

Return the registry-declared REAGP IVA regime token.

Return type:

IVARegime

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

Return the registry-declared exempt IVA regime token.

Return type:

IVARegime

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

Return the registry-declared default cash-accounting treatment.

Return type:

IvaCashAccountingTreatment

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

Validate one value against the dated cash-accounting vocabulary.

Return type:

IvaCashAccountingTreatment

Parameters:
require_registry_declared_iva_cash_accounting_treatment(value, *, effective_date)[source]

Return one treatment token declared by the facts a validation is validating.

A registry validator resolves its vocabulary from the candidate in scope, never from the published authority: the artifact reader validates the document it has just decoded while holding the shared-artifact lock, so a validator reaching for the bundle asks that lock for the artifact it is in the middle of producing. Absence of a scope is a refusal rather than a fallback, because the fallback is the deadlock.

Return type:

IvaCashAccountingTreatment

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

Validate one value against the dated IVA exemption-article vocabulary.

Return type:

IvaExemptionArticle

Parameters: