Class: GOBL::Tax::CorrectionDefinition

Inherits:
Object show all
Defined in:
lib/generated/gobl/tax/correction_definition.rb

Overview

CorrectionDefinition contains details about what can be defined in .

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL CorrectionDefinition structure

'https://gobl.org/draft-0/tax/regime-def#/$defs/CorrectionDefinition'

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#extensionsArray<GOBL::CBC::Key> (readonly)

Extension keys that can be included

Returns:



29
# File 'lib/generated/gobl/tax/correction_definition.rb', line 29

property :extensions, [GOBL::CBC::Key]

#reason_requiredBoolean (readonly)

ReasonRequired when true implies that a reason must be provided

Returns:

  • (Boolean)


34
# File 'lib/generated/gobl/tax/correction_definition.rb', line 34

property :reason_required, Boolean

#schemaString (readonly)

Partial or complete schema URL for the document type supported by correction.

Returns:

  • (String)


18
# File 'lib/generated/gobl/tax/correction_definition.rb', line 18

property :schema, String

#stampsArray<GOBL::CBC::Key> (readonly)

Stamps that must be copied from the preceding document.

Returns:



39
# File 'lib/generated/gobl/tax/correction_definition.rb', line 39

property :stamps, [GOBL::CBC::Key]

#typesArray<GOBL::CBC::Key> (readonly)

The types of sub-documents supported by the regime

Returns:



24
# File 'lib/generated/gobl/tax/correction_definition.rb', line 24

property :types, [GOBL::CBC::Key]