Class: GOBL::Tax::Combo
- Defined in:
- lib/generated/gobl/tax/combo.rb
Overview
Combo represents the tax combination of a category code and rate key.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Combo structure
'https://gobl.org/draft-0/tax/set#/$defs/Combo'
Instance Attribute Summary collapse
-
#cat ⇒ GOBL::CBC::Code
readonly
Tax category code from those available inside a region.
-
#ext ⇒ GOBL::CBC::CodeMap
readonly
Local codes that apply for a given rate or percentage that need to be identified and validated.
-
#percent ⇒ GOBL::Num::Percentage
readonly
Percent defines the percentage set manually or determined from the rate key (calculated if rate present).
-
#rate ⇒ GOBL::CBC::Key
readonly
Rate within a category to apply.
-
#surcharge ⇒ GOBL::Num::Percentage
readonly
Some countries require an additional surcharge (calculated if rate present).
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#cat ⇒ GOBL::CBC::Code (readonly)
Tax category code from those available inside a region.
19 |
# File 'lib/generated/gobl/tax/combo.rb', line 19 property :cat, GOBL::CBC::Code |
#ext ⇒ GOBL::CBC::CodeMap (readonly)
Local codes that apply for a given rate or percentage that need to be identified and validated.
40 |
# File 'lib/generated/gobl/tax/combo.rb', line 40 property :ext, GOBL::CBC::CodeMap |
#percent ⇒ GOBL::Num::Percentage (readonly)
Percent defines the percentage set manually or determined from the rate key (calculated if rate present).
30 |
# File 'lib/generated/gobl/tax/combo.rb', line 30 property :percent, GOBL::Num::Percentage |
#rate ⇒ GOBL::CBC::Key (readonly)
Rate within a category to apply.
25 |
# File 'lib/generated/gobl/tax/combo.rb', line 25 property :rate, GOBL::CBC::Key |
#surcharge ⇒ GOBL::Num::Percentage (readonly)
Some countries require an additional surcharge (calculated if rate present).
35 |
# File 'lib/generated/gobl/tax/combo.rb', line 35 property :surcharge, GOBL::Num::Percentage |