Class: GOBL::Tax::Category
- Defined in:
- lib/gobl/tax/category.rb
Overview
Category contains the definition of a general type of tax inside a region.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Category structure
'https://gobl.org/draft-0/tax/regime#/$defs/Category'
Constants included from Hashme
Instance Attribute Summary collapse
- #code ⇒ GOBL::CBC::Code readonly
- #desc ⇒ GOBL::I18n::String readonly
- #name ⇒ GOBL::I18n::String readonly
-
#rates ⇒ Array<Rate>
readonly
Specific tax definitions inside this category.
-
#retained ⇒ Boolean
readonly
Retained when true implies that the tax amount will be retained by the buyer on behalf of the supplier, and thus subtracted from the invoice taxable base total.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#code ⇒ GOBL::CBC::Code (readonly)
18 |
# File 'lib/gobl/tax/category.rb', line 18 property :code, GOBL::CBC::Code |
#desc ⇒ GOBL::I18n::String (readonly)
28 |
# File 'lib/gobl/tax/category.rb', line 28 property :desc, GOBL::I18n::String |
#name ⇒ GOBL::I18n::String (readonly)
23 |
# File 'lib/gobl/tax/category.rb', line 23 property :name, GOBL::I18n::String |
#rates ⇒ Array<Rate> (readonly)
Specific tax definitions inside this category.
38 |
# File 'lib/gobl/tax/category.rb', line 38 property :rates, [Rate] |
#retained ⇒ Boolean (readonly)
Retained when true implies that the tax amount will be retained by the buyer on behalf of the supplier, and thus subtracted from the invoice taxable base total. Typically used for taxes related to income.
33 |
# File 'lib/gobl/tax/category.rb', line 33 property :retained, Boolean |