Class: GOBL::Tax::RateValue
- 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
Instance Attribute Summary collapse
-
#disabled ⇒ Boolean
readonly
When true, this value should no longer be used.
-
#percent ⇒ GOBL::Num::Percentage
readonly
Percent rate that should be applied.
-
#since ⇒ GOBL::Cal::Date
readonly
Date from which this value should be applied.
-
#surcharge ⇒ GOBL::Num::Percentage
readonly
An additional surcharge to apply.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#disabled ⇒ Boolean (readonly)
When true, this value should no longer be used.
35 |
# File 'lib/gobl/tax/rate_value.rb', line 35 property :disabled, Boolean |
#percent ⇒ GOBL::Num::Percentage (readonly)
Percent rate that should be applied
24 |
# File 'lib/gobl/tax/rate_value.rb', line 24 property :percent, GOBL::Num::Percentage |
#since ⇒ GOBL::Cal::Date (readonly)
Date from which this value should be applied.
19 |
# File 'lib/gobl/tax/rate_value.rb', line 19 property :since, GOBL::Cal::Date |
#surcharge ⇒ GOBL::Num::Percentage (readonly)
An additional surcharge to apply.
30 |
# File 'lib/gobl/tax/rate_value.rb', line 30 property :surcharge, GOBL::Num::Percentage |