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.
-
#country ⇒ GOBL::L10n::TaxCountryCode
readonly
Country code override when issuing with taxes applied from different countries.
-
#ext ⇒ GOBL::Tax::Extensions
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.
18 |
# File 'lib/generated/gobl/tax/combo.rb', line 18 property :cat, GOBL::CBC::Code |
#country ⇒ GOBL::L10n::TaxCountryCode (readonly)
Country code override when issuing with taxes applied from different countries.
24 |
# File 'lib/generated/gobl/tax/combo.rb', line 24 property :country, GOBL::L10n::TaxCountryCode |
#ext ⇒ GOBL::Tax::Extensions (readonly)
Local codes that apply for a given rate or percentage that need to be identified and validated.
44 |
# File 'lib/generated/gobl/tax/combo.rb', line 44 property :ext, GOBL::Tax::Extensions |
#percent ⇒ GOBL::Num::Percentage (readonly)
Percent defines the percentage set manually or determined from the rate key (calculated if rate present). A nil percent implies that this tax combo is exempt from tax.
34 |
# File 'lib/generated/gobl/tax/combo.rb', line 34 property :percent, GOBL::Num::Percentage |
#rate ⇒ GOBL::CBC::Key (readonly)
Rate within a category to apply.
29 |
# File 'lib/generated/gobl/tax/combo.rb', line 29 property :rate, GOBL::CBC::Key |
#surcharge ⇒ GOBL::Num::Percentage (readonly)
Some countries require an additional surcharge (calculated if rate present).
39 |
# File 'lib/generated/gobl/tax/combo.rb', line 39 property :surcharge, GOBL::Num::Percentage |