Class: GOBL::Tax::CodeDefinition

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

Overview

CodeDefinition describes a specific code and how it maps to a human name and description if appropriate.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL CodeDefinition structure

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

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 for which the definition is for.

Returns:



19
# File 'lib/generated/gobl/tax/code_definition.rb', line 19

property :code, GOBL::CBC::Code

#descGOBL::I18n::String (readonly)

Description offering more details about when the code should be used.

Returns:



30
# File 'lib/generated/gobl/tax/code_definition.rb', line 30

property :desc, GOBL::I18n::String

#nameGOBL::I18n::String (readonly)

Short name for the code, if relevant.

Returns:



25
# File 'lib/generated/gobl/tax/code_definition.rb', line 25

property :name, GOBL::I18n::String