Class: GOBL::Tax::RateValue

Inherits:
Object show all
Defined in:
lib/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'

Constants included from Hashme

Hashme::Boolean

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:



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

property :disabled, Boolean

#percentGOBL::Num::Percentage (readonly)

Percent rate that should be applied



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

property :percent, GOBL::Num::Percentage

#sinceGOBL::Cal::Date (readonly)

Date from which this value should be applied.

Returns:



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

property :since, GOBL::Cal::Date

#surchargeGOBL::Num::Percentage (readonly)

An additional surcharge to apply.



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

property :surcharge, GOBL::Num::Percentage