gobl 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -13
- data/data/regimes/es.json +55 -3
- data/data/regimes/it.json +1707 -0
- data/data/regimes/pt.json +272 -7
- data/lib/{gobl → generated/gobl}/bill/charge.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/delivery.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/discount.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/document_reference.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/invoice.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/line.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/line_charge.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/line_discount.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/ordering.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/outlay.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/payment.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/preceding.rb +1 -2
- data/lib/{gobl → generated/gobl}/bill/tax.rb +1 -1
- data/lib/{gobl → generated/gobl}/bill/totals.rb +1 -1
- data/lib/{gobl → generated/gobl}/cal/date.rb +1 -1
- data/lib/{gobl → generated/gobl}/cal/period.rb +1 -1
- data/lib/{gobl → generated/gobl}/cbc/code.rb +1 -1
- data/lib/{gobl → generated/gobl}/cbc/key.rb +1 -1
- data/lib/{gobl → generated/gobl}/cbc/meta.rb +1 -1
- data/lib/generated/gobl/cbc/note.rb +68 -0
- data/lib/{gobl → generated/gobl}/cbc/stamp.rb +1 -1
- data/lib/{gobl → generated/gobl}/currency/code.rb +1 -1
- data/lib/{gobl → generated/gobl}/currency/exchange_rate.rb +1 -1
- data/lib/{gobl → generated/gobl}/document.rb +2 -2
- data/lib/{gobl → generated/gobl}/dsig/digest.rb +1 -1
- data/lib/{gobl → generated/gobl}/dsig/signature.rb +1 -1
- data/lib/{gobl → generated/gobl}/envelope.rb +1 -1
- data/lib/{gobl → generated/gobl}/header.rb +1 -1
- data/lib/{gobl → generated/gobl}/i18n/string.rb +1 -1
- data/lib/{gobl → generated/gobl}/l10n/code.rb +1 -1
- data/lib/{gobl → generated/gobl}/l10n/country_code.rb +1 -1
- data/lib/{gobl → generated/gobl}/note/message.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/address.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/coordinates.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/email.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/identity.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/image.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/inbox.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/item.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/name.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/party.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/person.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/registration.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/telephone.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/unit.rb +1 -1
- data/lib/{gobl → generated/gobl}/org/website.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/advance.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/card.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/credit_transfer.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/direct_debit.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/due_date.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/instructions.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/online.rb +1 -1
- data/lib/{gobl → generated/gobl}/pay/terms.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/category.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/category_total.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/combo.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/identity.rb +4 -14
- data/lib/generated/gobl/tax/identity_type.rb +33 -0
- data/lib/{gobl → generated/gobl}/tax/key_definition.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/preceding_definitions.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/rate.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/rate_total.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/rate_total_surcharge.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/rate_value.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/regime.rb +6 -1
- data/lib/{gobl → generated/gobl}/tax/scenario.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/scenario_set.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/set.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/tag.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/total.rb +1 -1
- data/lib/{gobl → generated/gobl}/tax/zone.rb +1 -1
- data/lib/{gobl → generated/gobl}/uuid/uuid.rb +1 -1
- data/lib/gobl/version.rb +1 -1
- data/lib/gobl.rb +1 -0
- metadata +75 -74
- data/lib/gobl/cbc/note.rb +0 -38
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.39.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -29,20 +29,10 @@ module GOBL
|
|
29
29
|
# @return [GOBL::L10n::Code]
|
30
30
|
property :zone, GOBL::L10n::Code
|
31
31
|
|
32
|
-
#
|
33
|
-
|
34
|
-
'tax-agency' => 'Sourced directly from a tax agency',
|
35
|
-
'passport' => 'A passport document',
|
36
|
-
'national' => 'National ID Card or similar',
|
37
|
-
'permit' => 'Residential or similar permit',
|
38
|
-
'other' => 'An other type of source not listed'
|
39
|
-
}.freeze
|
40
|
-
|
41
|
-
# @!attribute [r] source
|
42
|
-
# What is the source document of the tax identity.
|
32
|
+
# @!attribute [r] type
|
33
|
+
# Type is set according the requirements of each regime, some have a single tax document type code, others require a choice to be made.
|
43
34
|
# @return [GOBL::CBC::Key]
|
44
|
-
property :
|
45
|
-
validates_inclusion_of :source, in: SOURCE_ENUM.keys, allow_blank: true
|
35
|
+
property :type, GOBL::CBC::Key
|
46
36
|
|
47
37
|
# @!attribute [r] code
|
48
38
|
# Normalized code shown on the original identity document.
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
##
|
4
|
+
## DO NOT EDIT - This file was generated automatically.
|
5
|
+
##
|
6
|
+
## Generated with GOBL v0.39.0
|
7
|
+
##
|
8
|
+
|
9
|
+
module GOBL
|
10
|
+
module Tax
|
11
|
+
# IdentityType describes a single possible value for a tax identity type.
|
12
|
+
class IdentityType < GOBL::Object
|
13
|
+
# The Schema ID of the GOBL IdentityType structure
|
14
|
+
SCHEMA_ID = 'https://gobl.org/draft-0/tax/regime#/$defs/IdentityType'
|
15
|
+
|
16
|
+
# @!attribute [r] key
|
17
|
+
# Key used to identify the type
|
18
|
+
# @return [GOBL::CBC::Key]
|
19
|
+
property :key, GOBL::CBC::Key
|
20
|
+
validates_presence_of :key
|
21
|
+
|
22
|
+
# @!attribute [r] name
|
23
|
+
# Name for the identity type
|
24
|
+
# @return [GOBL::I18n::String]
|
25
|
+
property :name, GOBL::I18n::String
|
26
|
+
|
27
|
+
# @!attribute [r] meta
|
28
|
+
# Additional regime specific meta data
|
29
|
+
# @return [GOBL::CBC::Meta]
|
30
|
+
property :meta, GOBL::CBC::Meta
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.39.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -41,6 +41,11 @@ module GOBL
|
|
41
41
|
property :currency, GOBL::Currency::Code
|
42
42
|
validates_presence_of :currency
|
43
43
|
|
44
|
+
# @!attribute [r] identity_types
|
45
|
+
# Identity types specific for the regime and may be validated against.
|
46
|
+
# @return [Array<IdentityType>]
|
47
|
+
property :identity_types, [IdentityType]
|
48
|
+
|
44
49
|
# @!attribute [r] tags
|
45
50
|
# Tags that can be applied at the document level to identify additional considerations.
|
46
51
|
# @return [Array<Tag>]
|
data/lib/gobl/version.rb
CHANGED