Class: GOBL::Tax::Regime
- 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
-
#categories ⇒ Array<Category>
readonly
List of tax categories.
-
#charge_keys ⇒ Array<GOBL::CBC::KeyDefinition>
readonly
Charge keys specific for the regime and may be validated or used in the UI as suggestions.
-
#corrections ⇒ Array<CorrectionDefinition>
readonly
Configuration details for corrections to be used with correction options.
-
#country ⇒ GOBL::L10n::CountryCode
readonly
Country code for the region.
-
#currency ⇒ GOBL::Currency::Code
readonly
Currency used by the country.
-
#description ⇒ GOBL::I18n::String
readonly
Introductory details about the regime.
-
#extensions ⇒ Array<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.
-
#identity_keys ⇒ Array<GOBL::CBC::KeyDefinition>
readonly
Identity keys used in addition to regular tax identities and specific for the regime that may be validated against.
-
#inbox_keys ⇒ Array<GOBL::CBC::KeyDefinition>
readonly
InboxKeys specific to the regime that can be used to identify where a document should be forwarded to.
-
#name ⇒ GOBL::I18n::String
readonly
Name of the country.
-
#payment_means_keys ⇒ Array<GOBL::CBC::KeyDefinition>
readonly
PaymentMeansKeys specific for the regime that extend the original base payment means keys.
- #scenarios ⇒ Array<ScenarioSet> readonly
-
#tags ⇒ Array<GOBL::CBC::KeyDefinition>
readonly
Tags that can be applied at the document level to identify additional considerations.
-
#tax_identity_type_keys ⇒ Array<GOBL::CBC::KeyDefinition>
readonly
Tax Identity types specific for the regime and may be validated against.
-
#time_zone ⇒ String
readonly
Location name for the country’s central time zone.
-
#zone ⇒ GOBL::L10n::Code
readonly
Specific Locality, region, city, province, county, or similar code inside the country, if needed.
Method Summary
Methods included from Extensions::Tax::RegimeHelper::ClassMethods
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#categories ⇒ Array<Category> (readonly)
List of tax categories.
96 |
# File 'lib/generated/gobl/tax/regime.rb', line 96 property :categories, [Category] |
#charge_keys ⇒ Array<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] |
#corrections ⇒ Array<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] |
#country ⇒ GOBL::L10n::CountryCode (readonly)
Country code for the region
35 |
# File 'lib/generated/gobl/tax/regime.rb', line 35 property :country, GOBL::L10n::CountryCode |
#currency ⇒ GOBL::Currency::Code (readonly)
Currency used by the country.
46 |
# File 'lib/generated/gobl/tax/regime.rb', line 46 property :currency, GOBL::Currency::Code |
#description ⇒ GOBL::I18n::String (readonly)
Introductory details about the regime.
24 |
# File 'lib/generated/gobl/tax/regime.rb', line 24 property :description, GOBL::I18n::String |
#extensions ⇒ Array<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_keys ⇒ Array<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_keys ⇒ Array<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] |
#name ⇒ GOBL::I18n::String (readonly)
Name of the country
18 |
# File 'lib/generated/gobl/tax/regime.rb', line 18 property :name, GOBL::I18n::String |
#payment_means_keys ⇒ Array<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] |
#scenarios ⇒ Array<ScenarioSet> (readonly)
86 |
# File 'lib/generated/gobl/tax/regime.rb', line 86 property :scenarios, [ScenarioSet] |
#tags ⇒ Array<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_keys ⇒ Array<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_zone ⇒ String (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 |
#zone ⇒ GOBL::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 |