Class: GOBL::Tax::Identity
- 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
-
#code ⇒ GOBL::CBC::Code
readonly
Normalized code shown on the original identity document.
-
#country ⇒ GOBL::L10n::CountryCode
readonly
ISO country code for Where the tax identity was issued.
-
#meta ⇒ GOBL::CBC::Meta
readonly
Additional details that may be required.
-
#type ⇒ GOBL::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.
-
#uuid ⇒ GOBL::UUID::UUID
readonly
Unique universal identity code for this tax identity.
-
#zone ⇒ GOBL::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.
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)
Normalized code shown on the original identity document.
40 |
# File 'lib/generated/gobl/tax/identity.rb', line 40 property :code, GOBL::CBC::Code |
#country ⇒ GOBL::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 |
#meta ⇒ GOBL::CBC::Meta (readonly)
Additional details that may be required.
45 |
# File 'lib/generated/gobl/tax/identity.rb', line 45 property :meta, GOBL::CBC::Meta |
#type ⇒ GOBL::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.
35 |
# File 'lib/generated/gobl/tax/identity.rb', line 35 property :type, GOBL::CBC::Key |
#uuid ⇒ GOBL::UUID::UUID (readonly)
Unique universal identity code for this tax identity.
19 |
# File 'lib/generated/gobl/tax/identity.rb', line 19 property :uuid, GOBL::UUID::UUID |
#zone ⇒ GOBL::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.
30 |
# File 'lib/generated/gobl/tax/identity.rb', line 30 property :zone, GOBL::L10n::Code |