Class: GOBL::Tax::RateValue

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

Overview

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

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL RateValue structure

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

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)


40
# File 'lib/generated/gobl/tax/rate_value.rb', line 40

property :disabled, Boolean

#percentGOBL::Num::Percentage (readonly)

Percent rate that should be applied



29
# File 'lib/generated/gobl/tax/rate_value.rb', line 29

property :percent, GOBL::Num::Percentage

#sinceGOBL::Cal::Date (readonly)

Date from which this value should be applied.

Returns:



24
# File 'lib/generated/gobl/tax/rate_value.rb', line 24

property :since, GOBL::Cal::Date

#surchargeGOBL::Num::Percentage (readonly)

An additional surcharge to apply.



35
# File 'lib/generated/gobl/tax/rate_value.rb', line 35

property :surcharge, GOBL::Num::Percentage

#zonesArray<GOBL::L10n::Code> (readonly)

Only use this value if one of the zones matches.

Returns:



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

property :zones, [GOBL::L10n::Code]