Class: GOBL::Tax::Regime

Inherits:
Object show all
Extended by:
GOBLExtensions::Tax::RegimeHelper::ClassMethods
Defined in:
lib/gobl/tax/regime.rb

Overview

Regime defines the holding structure for the definitions of taxes inside a country or territory.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Regime structure

'https://gobl.org/draft-0/tax/regime'

Constants included from Hashme

Hashme::Boolean

Instance Attribute Summary collapse

Method Summary

Methods included from GOBLExtensions::Tax::RegimeHelper::ClassMethods

fetch

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#categoriesArray<Category> (readonly)

List of tax categories.

Returns:



52
# File 'lib/gobl/tax/regime.rb', line 52

property :categories, [Category]

#countryGOBL::L10n::CountryCode (readonly)

Country code for the region



25
# File 'lib/gobl/tax/regime.rb', line 25

property :country, GOBL::L10n::CountryCode

#currencyGOBL::Currency::Code (readonly)

Currency used by the country.



41
# File 'lib/gobl/tax/regime.rb', line 41

property :currency, GOBL::Currency::Code

#nameGOBL::I18n::String (readonly)

Name of the country

Returns:



19
# File 'lib/gobl/tax/regime.rb', line 19

property :name, GOBL::I18n::String

#schemesSchemes (readonly)

Set of specific scheme definitions inside the region.

Returns:



47
# File 'lib/gobl/tax/regime.rb', line 47

property :schemes, Schemes

#zoneGOBL::L10n::Code (readonly)

Specific Locality, region, city, province, county, or similar code inside the country, if needed.

Returns:



31
# File 'lib/gobl/tax/regime.rb', line 31

property :zone, GOBL::L10n::Code

#zonesArray<Zone> (readonly)

List of sub-zones inside a country.

Returns:



36
# File 'lib/gobl/tax/regime.rb', line 36

property :zones, [Zone]