Class: GOBL::Tax::Combo
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'
Constants included from Hashme
Instance Attribute Summary collapse
-
#cat ⇒ GOBL::CBC::Code
readonly
Tax category code from those available inside a region.
-
#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/gobl/tax/combo.rb', line 19 property :cat, GOBL::CBC::Code |
#percent ⇒ GOBL::Num::Percentage (readonly)
Percent defines the percentage set manually or determined from the rate key (calculated if rate present).
30 |
# File 'lib/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/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/gobl/tax/combo.rb', line 35 property :surcharge, GOBL::Num::Percentage |