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:
objectOne registry-declared cash-accounting treatment and its semantics.
- Parameters:
token (IvaCashAccountingTreatment)
description (str)
-
token:
IvaCashAccountingTreatment¶
- class IvaCashAccountingTreatmentCatalogue(definitions, none_token, supplier_regime_token)[source]¶
Bases:
objectTyped projection of the dated cash-accounting vocabulary.
- Parameters:
definitions (tuple[IvaCashAccountingTreatmentDefinition, ...])
none_token (IvaCashAccountingTreatment)
supplier_regime_token (IvaCashAccountingTreatment)
-
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:
- Parameters:
value (object)
- class IvaRegimeDefinition(token, description, deadline_applicability, legal_refs)[source]¶
Bases:
objectOne registry-declared IVA regime and its deadline semantics.
- Parameters:
- class IvaRegimeCatalogue(definitions, default_token, no_aplica_token, self_assessment_tokens)[source]¶
Bases:
objectTyped projection of the dated IVA regime vocabulary.
- Parameters:
-
definitions:
tuple[IvaRegimeDefinition,...]¶
- property selectable_regimes: tuple[IVARegime, ...]¶
Return IVA regimes that may be selected by an operator.
- class M303TaxTerritoryDefinition(token, description, legal_refs, is_foral, state_attribution_ratio, exclusively_foral_mark)[source]¶
Bases:
objectOne registry-declared Modelo 303 tax-territory token and semantics.
- Parameters:
-
token:
M303TaxTerritory¶
- class M303TaxTerritoryCatalogue(definitions)[source]¶
Bases:
objectTyped 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:
- Parameters:
value (object)
- class M303RegimeCompositionDefinition(token, description, export_code, simplified_scope, legal_refs)[source]¶
Bases:
objectOne registry-declared Modelo 303 regime-composition token and semantics.
- Parameters:
-
token:
M303RegimeComposition¶
- class M303RegimeCompositionCatalogue(definitions)[source]¶
Bases:
objectTyped 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:
- Parameters:
value (object)
- definition(value)[source]¶
Return the registry definition for one Modelo 303 composition.
- Return type:
- Parameters:
value (object)
- class IvaExemptionArticleDefinition(token, description, legal_refs)[source]¶
Bases:
objectOne registry-declared IVA exemption article token and semantics.
- Parameters:
token (IvaExemptionArticle)
description (str)
-
token:
IvaExemptionArticle¶
- class IvaExemptionArticleCatalogue(definitions)[source]¶
Bases:
objectTyped 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:
- Parameters:
value (object)
- class IvaArt69DosServiceDefinition(token, description, legal_refs)[source]¶
Bases:
objectOne registry-declared Art. 69.Dos service token and semantics.
- Parameters:
token (IvaArt69DosService)
description (str)
-
token:
IvaArt69DosService¶
- class IvaArt69DosServiceCatalogue(definitions)[source]¶
Bases:
objectTyped 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:
- 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:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- resolve_iva_regime_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve the dated IVA-regime vocabulary from governed facts.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- resolve_m303_tax_territory_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve the dated Modelo 303 territory vocabulary and semantics.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- resolve_m303_regime_composition_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve the dated Modelo 303 regime-composition vocabulary.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- resolve_iva_exemption_article_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve the dated IVA exemption-article vocabulary from governed facts.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- 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:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- default_iva_regime(*, effective_date=None, authority=None)[source]¶
Return the registry-declared default IVA regime.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- require_iva_regime(value, *, effective_date=None, authority=None)[source]¶
Validate one value against the dated IVA-regime vocabulary.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- 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:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- m303_tax_territory_choices(*, effective_date=None, authority=None)[source]¶
Return the registry-declared territory choice order.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- m303_tax_territory_is_foral(value, *, effective_date=None, authority=None)[source]¶
Return the registry-declared foral classification for one token.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- 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:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- m303_tax_territory_exclusively_foral_mark(value, *, effective_date=None, authority=None)[source]¶
Return the registry-declared Modelo 303 territory output mark.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- require_m303_regime_composition(value, *, effective_date=None, authority=None)[source]¶
Project one Modelo 303 regime-composition token from the facts registry.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- m303_regime_composition_choices(*, effective_date=None, authority=None)[source]¶
Return the registry-declared Modelo 303 composition choice order.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- m303_regime_composition_export_code(value, *, effective_date=None, authority=None)[source]¶
Return the registry-declared Modelo 303 composition export code.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- m303_regime_composition_simplified_scope(value, *, effective_date=None, authority=None)[source]¶
Project the registry-declared simplified-regime scope for a composition.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- 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:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- iva_regime_choices(*, effective_date=None, authority=None)[source]¶
Return selectable IVA regimes in registry order.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- iva_regime_no_aplica_token(*, effective_date=None, authority=None)[source]¶
Return the registry-declared
NO_APLICAIVA regime token.- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- iva_regime_self_assessment_tokens(*, effective_date=None, authority=None)[source]¶
Return IVA regimes marked for self-assessment by the registry.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- iva_regime_simplificado_token(*, effective_date=None, authority=None)[source]¶
Return the registry-declared simplified IVA regime token.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- iva_regime_reagp_token(*, effective_date=None, authority=None)[source]¶
Return the registry-declared REAGP IVA regime token.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- iva_regime_exento_token(*, effective_date=None, authority=None)[source]¶
Return the registry-declared exempt IVA regime token.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- default_iva_cash_accounting_treatment(*, effective_date=None, authority=None)[source]¶
Return the registry-declared default cash-accounting treatment.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- require_iva_cash_accounting_treatment(value, *, effective_date=None, authority=None)[source]¶
Validate one value against the dated cash-accounting vocabulary.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- 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:
- Parameters:
- require_iva_exemption_article(value, *, effective_date=None, authority=None)[source]¶
Validate one value against the dated IVA exemption-article vocabulary.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)