Class: GOBL::Tax::ScenarioNote

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

Overview

ScenarioNote represents the structure of the note that needs to be added to the document.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL ScenarioNote structure

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

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

#codeGOBL::CBC::Code (readonly)

Code used for additional data that may be required to identify the note.

Returns:



23
# File 'lib/generated/gobl/tax/scenario_note.rb', line 23

property :code, GOBL::CBC::Code

#extGOBL::Tax::Extensions (readonly)

Extension data



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

property :ext, GOBL::Tax::Extensions

#keyGOBL::CBC::Key (readonly)

Key specifying subject of the text

Returns:



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

property :key, GOBL::CBC::Key

#srcGOBL::CBC::Key (readonly)

Source of this note, especially useful when auto-generated.

Returns:



28
# File 'lib/generated/gobl/tax/scenario_note.rb', line 28

property :src, GOBL::CBC::Key

#textString (readonly)

The contents of the note

Returns:

  • (String)


33
# File 'lib/generated/gobl/tax/scenario_note.rb', line 33

property :text, String