Class: GOBL::Tax::RateDef
- Defined in:
- lib/generated/gobl/tax/rate_def.rb
Overview
RateDef defines a single rate inside a category
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL RateDef structure
'https://gobl.org/draft-0/tax/regime-def#/$defs/RateDef'
Instance Attribute Summary collapse
-
#desc ⇒ GOBL::I18n::String
readonly
Useful description of the rate.
-
#keys ⇒ Array<GOBL::CBC::Key>
readonly
Keys identifies the set of tax keys defined in the category that this rate can be used with.
-
#meta ⇒ GOBL::CBC::Meta
readonly
Meta contains additional information about the rate that is relevant for local frequently used implementations.
-
#name ⇒ GOBL::I18n::String
readonly
Human name of the rate.
-
#rate ⇒ GOBL::CBC::Key
readonly
Rate defines the key for which this rate applies.
-
#values ⇒ Array<RateValueDef>
readonly
Values contains a list of Value objects that contain the current and historical percentage values for the rate and additional filters.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#desc ⇒ GOBL::I18n::String (readonly)
Useful description of the rate.
35 |
# File 'lib/generated/gobl/tax/rate_def.rb', line 35 property :desc, GOBL::I18n::String |
#keys ⇒ Array<GOBL::CBC::Key> (readonly)
Keys identifies the set of tax keys defined in the category that this rate can be used with.
24 |
# File 'lib/generated/gobl/tax/rate_def.rb', line 24 property :keys, [GOBL::CBC::Key] |
#meta ⇒ GOBL::CBC::Meta (readonly)
Meta contains additional information about the rate that is relevant for local frequently used implementations.
45 |
# File 'lib/generated/gobl/tax/rate_def.rb', line 45 property :meta, GOBL::CBC::Meta |
#name ⇒ GOBL::I18n::String (readonly)
Human name of the rate
29 |
# File 'lib/generated/gobl/tax/rate_def.rb', line 29 property :name, GOBL::I18n::String |
#rate ⇒ GOBL::CBC::Key (readonly)
Rate defines the key for which this rate applies.
18 |
# File 'lib/generated/gobl/tax/rate_def.rb', line 18 property :rate, GOBL::CBC::Key |
#values ⇒ Array<RateValueDef> (readonly)
Values contains a list of Value objects that contain the current and historical percentage values for the rate and additional filters. Order is important, newer values should come before older values.
40 |
# File 'lib/generated/gobl/tax/rate_def.rb', line 40 property :values, [RateValueDef] |