Class: GOBL::Tax::Identity

Inherits:
Object show all
Defined in:
lib/generated/gobl/tax/identity.rb

Overview

Identity stores the details required to identify an entity for tax purposes.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Identity structure

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#codeGOBL::CBC::Code (readonly)

Normalized code shown on the original identity document.

Returns:



40
# File 'lib/generated/gobl/tax/identity.rb', line 40

property :code, GOBL::CBC::Code

#countryGOBL::L10n::CountryCode (readonly)

ISO country code for Where the tax identity was issued.



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

property :country, GOBL::L10n::CountryCode

#metaGOBL::CBC::Meta (readonly)

Additional details that may be required.

Returns:



45
# File 'lib/generated/gobl/tax/identity.rb', line 45

property :meta, GOBL::CBC::Meta

#typeGOBL::CBC::Key (readonly)

Type is set according the requirements of each regime, some have a single tax document type code, others require a choice to be made.

Returns:



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

property :type, GOBL::CBC::Key

#uuidGOBL::UUID::UUID (readonly)

Unique universal identity code for this tax identity.

Returns:



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

property :uuid, GOBL::UUID::UUID

#zoneGOBL::L10n::Code (readonly)

Where inside the country the tax identity holder is based for tax purposes like a village, town, district, city, county, state or province. For some areas, this could be a regular post or zip code. See the regime packages for specific validation rules.

Returns:



30
# File 'lib/generated/gobl/tax/identity.rb', line 30

property :zone, GOBL::L10n::Code