gobl 0.10.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/regimes/co.json +140 -0
- data/data/regimes/es.json +58 -3
- data/data/regimes/fr.json +6 -0
- data/data/regimes/it.json +1707 -0
- data/data/regimes/pt.json +277 -7
- data/lib/generated/gobl/bill/charge.rb +1 -1
- data/lib/generated/gobl/bill/delivery.rb +10 -10
- data/lib/generated/gobl/bill/discount.rb +1 -1
- data/lib/generated/gobl/bill/document_reference.rb +1 -1
- data/lib/generated/gobl/bill/invoice.rb +1 -1
- data/lib/generated/gobl/bill/line.rb +1 -1
- data/lib/generated/gobl/bill/line_charge.rb +1 -1
- data/lib/generated/gobl/bill/line_discount.rb +1 -1
- data/lib/generated/gobl/bill/ordering.rb +6 -1
- data/lib/generated/gobl/bill/outlay.rb +1 -1
- data/lib/generated/gobl/bill/payment.rb +1 -1
- data/lib/generated/gobl/bill/preceding.rb +1 -2
- data/lib/generated/gobl/bill/tax.rb +1 -1
- data/lib/generated/gobl/bill/totals.rb +1 -1
- data/lib/generated/gobl/cal/date.rb +1 -1
- data/lib/generated/gobl/cal/period.rb +8 -1
- data/lib/generated/gobl/cbc/code.rb +1 -1
- data/lib/generated/gobl/cbc/key.rb +1 -1
- data/lib/generated/gobl/cbc/meta.rb +1 -1
- data/lib/generated/gobl/cbc/note.rb +31 -1
- data/lib/generated/gobl/cbc/stamp.rb +1 -1
- data/lib/generated/gobl/currency/code.rb +1 -1
- data/lib/generated/gobl/currency/exchange_rate.rb +1 -1
- data/lib/generated/gobl/document.rb +1 -1
- data/lib/generated/gobl/dsig/digest.rb +1 -1
- data/lib/generated/gobl/dsig/signature.rb +1 -1
- data/lib/generated/gobl/envelope.rb +1 -1
- data/lib/generated/gobl/header.rb +1 -1
- data/lib/generated/gobl/i18n/string.rb +1 -1
- data/lib/generated/gobl/l10n/code.rb +1 -1
- data/lib/generated/gobl/l10n/country_code.rb +1 -1
- data/lib/generated/gobl/note/message.rb +1 -1
- data/lib/generated/gobl/org/address.rb +1 -1
- data/lib/generated/gobl/org/coordinates.rb +1 -1
- data/lib/generated/gobl/org/email.rb +1 -1
- data/lib/generated/gobl/org/identity.rb +1 -1
- data/lib/generated/gobl/org/image.rb +1 -1
- data/lib/generated/gobl/org/inbox.rb +1 -1
- data/lib/generated/gobl/org/item.rb +1 -1
- data/lib/generated/gobl/org/name.rb +1 -1
- data/lib/generated/gobl/org/party.rb +1 -1
- data/lib/generated/gobl/org/person.rb +1 -1
- data/lib/generated/gobl/org/registration.rb +1 -1
- data/lib/generated/gobl/org/telephone.rb +1 -1
- data/lib/generated/gobl/org/unit.rb +1 -1
- data/lib/generated/gobl/org/website.rb +1 -1
- data/lib/generated/gobl/pay/advance.rb +1 -1
- data/lib/generated/gobl/pay/card.rb +1 -1
- data/lib/generated/gobl/pay/credit_transfer.rb +1 -1
- data/lib/generated/gobl/pay/direct_debit.rb +1 -1
- data/lib/generated/gobl/pay/due_date.rb +1 -1
- data/lib/generated/gobl/pay/instructions.rb +1 -1
- data/lib/generated/gobl/pay/online.rb +1 -1
- data/lib/generated/gobl/pay/terms.rb +1 -1
- data/lib/generated/gobl/tax/category.rb +1 -1
- data/lib/generated/gobl/tax/category_total.rb +1 -1
- data/lib/generated/gobl/tax/combo.rb +1 -1
- data/lib/generated/gobl/tax/identity.rb +4 -14
- data/lib/generated/gobl/tax/identity_type.rb +33 -0
- data/lib/generated/gobl/tax/key_definition.rb +1 -1
- data/lib/generated/gobl/tax/preceding_definitions.rb +11 -1
- data/lib/generated/gobl/tax/rate.rb +1 -1
- data/lib/generated/gobl/tax/rate_total.rb +1 -1
- data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
- data/lib/generated/gobl/tax/rate_value.rb +1 -1
- data/lib/generated/gobl/tax/regime.rb +6 -1
- data/lib/generated/gobl/tax/scenario.rb +1 -1
- data/lib/generated/gobl/tax/scenario_set.rb +1 -1
- data/lib/generated/gobl/tax/set.rb +1 -1
- data/lib/generated/gobl/tax/tag.rb +1 -1
- data/lib/generated/gobl/tax/total.rb +1 -1
- data/lib/generated/gobl/tax/zone.rb +1 -1
- data/lib/generated/gobl/uuid/uuid.rb +1 -1
- data/lib/gobl/version.rb +1 -1
- metadata +3 -2
@@ -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.42.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.42.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.42.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -13,6 +13,16 @@ module GOBL
|
|
13
13
|
# The Schema ID of the GOBL PrecedingDefinitions structure
|
14
14
|
SCHEMA_ID = 'https://gobl.org/draft-0/tax/regime#/$defs/PrecedingDefinitions'
|
15
15
|
|
16
|
+
# @!attribute [r] types
|
17
|
+
# The types of sub-documents supported by the regime
|
18
|
+
# @return [Array<GOBL::CBC::Key>]
|
19
|
+
property :types, [GOBL::CBC::Key]
|
20
|
+
|
21
|
+
# @!attribute [r] stamps
|
22
|
+
# Stamps that must be copied from the preceding document.
|
23
|
+
# @return [Array<GOBL::CBC::Key>]
|
24
|
+
property :stamps, [GOBL::CBC::Key]
|
25
|
+
|
16
26
|
# @!attribute [r] corrections
|
17
27
|
# Corrections contains a list of all the keys that can be used to identify a correction.
|
18
28
|
# @return [Array<KeyDefinition>]
|
@@ -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.42.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
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Lilue
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-04-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/generated/gobl/tax/category_total.rb
|
127
127
|
- lib/generated/gobl/tax/combo.rb
|
128
128
|
- lib/generated/gobl/tax/identity.rb
|
129
|
+
- lib/generated/gobl/tax/identity_type.rb
|
129
130
|
- lib/generated/gobl/tax/key_definition.rb
|
130
131
|
- lib/generated/gobl/tax/preceding_definitions.rb
|
131
132
|
- lib/generated/gobl/tax/rate.rb
|