Class: GOBL::Tax::Regime

Inherits:
Object show all
Extended by:
Extensions::Tax::RegimeHelper::ClassMethods
Defined in:
lib/generated/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'

Instance Attribute Summary collapse

Method Summary

Methods included from Extensions::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.



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

property :categories, [Category]

#charge_keysArray<GOBL::CBC::KeyDefinition> (readonly)

Charge keys specific for the regime and may be validated or used in the UI as suggestions



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

property :charge_keys, [GOBL::CBC::KeyDefinition]

#correctionsArray<CorrectionDefinition> (readonly)

Configuration details for corrections to be used with correction options.



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

property :corrections, [CorrectionDefinition]

#countryGOBL::L10n::CountryCode (readonly)

Country code for the region



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

property :country, GOBL::L10n::CountryCode

#currencyGOBL::Currency::Code (readonly)

Currency used by the country.



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

property :currency, GOBL::Currency::Code

#descriptionGOBL::I18n::String (readonly)

Introductory details about the regime.



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

property :description, GOBL::I18n::String

#extensionsArray<GOBL::CBC::KeyDefinition> (readonly)

Extensions defines the keys that can be used for extended or extra data inside the regime that is specific to the regime and cannot be easily determined from other GOBL structures. Typically these are used to define local codes for suppliers, customers, products, or tax rates.



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

property :extensions, [GOBL::CBC::KeyDefinition]

#identity_keysArray<GOBL::CBC::KeyDefinition> (readonly)

Identity keys used in addition to regular tax identities and specific for the regime that may be validated against.



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

property :identity_keys, [GOBL::CBC::KeyDefinition]

#inbox_keysArray<GOBL::CBC::KeyDefinition> (readonly)

InboxKeys specific to the regime that can be used to identify where a document should be forwarded to.



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

property :inbox_keys, [GOBL::CBC::KeyDefinition]

#nameGOBL::I18n::String (readonly)

Name of the country



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

property :name, GOBL::I18n::String

#payment_means_keysArray<GOBL::CBC::KeyDefinition> (readonly)

PaymentMeansKeys specific for the regime that extend the original base payment means keys.



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

property :payment_means_keys, [GOBL::CBC::KeyDefinition]

#scenariosArray<ScenarioSet> (readonly)



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

property :scenarios, [ScenarioSet]

#tagsArray<GOBL::CBC::KeyDefinition> (readonly)

Tags that can be applied at the document level to identify additional considerations.



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

property :tags, [GOBL::CBC::KeyDefinition]

#tax_identity_type_keysArray<GOBL::CBC::KeyDefinition> (readonly)

Tax Identity types specific for the regime and may be validated against.



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

property :tax_identity_type_keys, [GOBL::CBC::KeyDefinition]

#time_zoneString (readonly)

Location name for the country’s central time zone. Accepted values from IANA Time Zone Database (iana.org/time-zones).



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

property :time_zone, String

#zoneGOBL::L10n::Code (readonly)

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



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

property :zone, GOBL::L10n::Code