Class: GOBL::Tax::RateValueDef
- 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
-
#disabled ⇒ Boolean
readonly
When true, this value should no longer be used.
-
#ext ⇒ GOBL::Tax::Extensions
readonly
Only apply this rate if one of the tags is present in the invoice.
-
#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.
39 |
# File 'lib/generated/gobl/tax/rate_value_def.rb', line 39 property :disabled, Boolean |
#ext ⇒ GOBL::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 |
#percent ⇒ GOBL::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 |
#since ⇒ GOBL::Cal::Date (readonly)
Date from which this value should be applied.
23 |
# File 'lib/generated/gobl/tax/rate_value_def.rb', line 23 property :since, GOBL::Cal::Date |
#surcharge ⇒ GOBL::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 |