Class: GOBL::Tax::Scenario

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

Overview

Scenario is used to describe a tax scenario of a document based on the combination of document type and tag used.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Scenario structure

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

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

#codesGOBL::CBC::CodeMap (readonly)

Codes is used to define additional codes for regime specific situations.

Returns:



38
# File 'lib/generated/gobl/tax/scenario.rb', line 38

property :codes, GOBL::CBC::CodeMap

#metaGOBL::CBC::Meta (readonly)

Any additional local meta data that may be useful in integrations.

Returns:



43
# File 'lib/generated/gobl/tax/scenario.rb', line 43

property :meta, GOBL::CBC::Meta

#nameGOBL::I18n::String (readonly)

Name of the scenario for further information.

Returns:



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

property :name, GOBL::I18n::String

#noteGOBL::CBC::Note (readonly)

A note to be added to the document if the scenario is applied.

Returns:



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

property :note, GOBL::CBC::Note

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

Tag that was applied to the document

Returns:



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

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

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

Type of document, if present.

Returns:



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

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