Class: GOBL::Tax::KeyDef

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

Overview

KeyDef defines a key that can be used inside a tax category.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL KeyDef structure

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

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

#descGOBL::I18n::String (readonly)

Useful description of the rate.

Returns:



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

property :desc, GOBL::I18n::String

#keyGOBL::CBC::Key (readonly)

Key identifies this rate within the system

Returns:



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

property :key, GOBL::CBC::Key

#nameGOBL::I18n::String (readonly)

Human name of the rate set

Returns:



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

property :name, GOBL::I18n::String

#no_percentBoolean (readonly)

NoPercent when true implies that the rate when used in a tax Combo should not define a percent value.

Returns:

  • (Boolean)


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

property :no_percent, Boolean