Class: GOBL::Tax::RateValueDef

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

Overview

RateValueDef contains a percentage rate or fixed amount for a given date range.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL RateValueDef structure

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

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

#disabledBoolean (readonly)

When true, this value should no longer be used.

Returns:

  • (Boolean)


44
# File 'lib/generated/gobl/tax/rate_value_def.rb', line 44

property :disabled, Boolean

#extGOBL::Tax::Extensions (readonly)

Ext map of keys that can be used to filter to determine if the rate applies.



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

property :ext, GOBL::Tax::Extensions

#percentGOBL::Num::Percentage (readonly)

Percent rate that should be applied



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

property :percent, GOBL::Num::Percentage

#sinceGOBL::Cal::Date (readonly)

Date from which this value should be applied.

Returns:



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

property :since, GOBL::Cal::Date

#surchargeGOBL::Num::Percentage (readonly)

An additional surcharge to apply.



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

property :surcharge, GOBL::Num::Percentage

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

Only apply this rate if one of the tags is present in the invoice.

Returns:



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

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