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)


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

property :disabled, Boolean

#extGOBL::Tax::Extensions (readonly)

Only apply this rate if one of the tags is present in the invoice. Tags []cbc.Key ‘json:“tags,omitempty” jsonschema:“title=Tags”` Ext map of keys that can be used to filter to determine if the rate applies.



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

property :ext, GOBL::Tax::Extensions

#percentGOBL::Num::Percentage (readonly)

Percent rate that should be applied



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

property :percent, GOBL::Num::Percentage

#sinceGOBL::Cal::Date (readonly)

Date from which this value should be applied.

Returns:



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

property :since, GOBL::Cal::Date

#surchargeGOBL::Num::Percentage (readonly)

An additional surcharge to apply.



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

property :surcharge, GOBL::Num::Percentage