gobl 0.19.0 → 0.20.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 +11 -14575
- data/data/regimes/es.json +28 -499
- data/data/regimes/it.json +9 -644
- data/data/regimes/mx.json +14 -2
- data/data/regimes/pt.json +34 -194
- data/lib/generated/gobl/bill/charge.rb +1 -1
- data/lib/generated/gobl/bill/correction_options.rb +3 -3
- data/lib/generated/gobl/bill/delivery.rb +1 -1
- 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 +4 -3
- 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 +1 -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 +14 -3
- 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/date_time.rb +1 -1
- data/lib/generated/gobl/cal/period.rb +1 -1
- data/lib/generated/gobl/cbc/code.rb +1 -1
- data/lib/generated/gobl/{tax → cbc}/code_definition.rb +8 -3
- data/lib/generated/gobl/cbc/code_map.rb +1 -1
- data/lib/generated/gobl/cbc/key.rb +1 -1
- data/lib/generated/gobl/{tax → cbc}/key_definition.rb +17 -7
- data/lib/generated/gobl/cbc/meta.rb +1 -1
- data/lib/generated/gobl/cbc/note.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/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/head/header.rb +1 -1
- data/lib/generated/gobl/head/stamp.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 +3 -3
- data/lib/generated/gobl/org/name.rb +1 -1
- data/lib/generated/gobl/org/party.rb +3 -3
- 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/regimes/mx/food_vouchers.rb +1 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers_employee.rb +1 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers_line.rb +1 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_balance.rb +1 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_item.rb +1 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_line.rb +1 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_tax.rb +1 -1
- data/lib/generated/gobl/schema/object.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 +3 -3
- data/lib/generated/gobl/tax/correction_definition.rb +1 -1
- data/lib/generated/gobl/tax/{ext_map.rb → extensions.rb} +3 -3
- data/lib/generated/gobl/tax/identity.rb +1 -6
- data/lib/generated/gobl/tax/rate.rb +1 -1
- data/lib/generated/gobl/tax/rate_total.rb +3 -3
- data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
- data/lib/generated/gobl/tax/rate_value.rb +5 -5
- data/lib/generated/gobl/tax/regime.rb +13 -18
- 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/source.rb +1 -1
- data/lib/generated/gobl/tax/total.rb +1 -1
- data/lib/generated/gobl/uuid/uuid.rb +1 -1
- data/lib/gobl/operations/validation_result.rb +1 -3
- data/lib/gobl/version.rb +1 -1
- metadata +5 -6
- data/lib/generated/gobl/tax/zone.rb +0 -48
@@ -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.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -67,8 +67,8 @@ module GOBL
|
|
67
67
|
|
68
68
|
# @!attribute [r] ext
|
69
69
|
# Extension code map for any additional regime specific codes that may be required.
|
70
|
-
# @return [GOBL::Tax::
|
71
|
-
property :ext, GOBL::Tax::
|
70
|
+
# @return [GOBL::Tax::Extensions]
|
71
|
+
property :ext, GOBL::Tax::Extensions
|
72
72
|
|
73
73
|
# @!attribute [r] meta
|
74
74
|
# Additional meta information that may be useful
|
@@ -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.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -81,8 +81,8 @@ module GOBL
|
|
81
81
|
|
82
82
|
# @!attribute [r] ext
|
83
83
|
# Extension code map for any additional regime specific codes that may be required.
|
84
|
-
# @return [GOBL::Tax::
|
85
|
-
property :ext, GOBL::Tax::
|
84
|
+
# @return [GOBL::Tax::Extensions]
|
85
|
+
property :ext, GOBL::Tax::Extensions
|
86
86
|
|
87
87
|
# @!attribute [r] meta
|
88
88
|
# Any additional semi-structured information that does not fit into the rest of the party.
|
@@ -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.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -36,8 +36,8 @@ module GOBL
|
|
36
36
|
|
37
37
|
# @!attribute [r] ext
|
38
38
|
# Local codes that apply for a given rate or percentage that need to be identified and validated.
|
39
|
-
# @return [GOBL::Tax::
|
40
|
-
property :ext, GOBL::Tax::
|
39
|
+
# @return [GOBL::Tax::Extensions]
|
40
|
+
property :ext, GOBL::Tax::Extensions
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -3,13 +3,13 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.
|
6
|
+
## Generated with GOBL v0.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
10
10
|
module Tax
|
11
|
-
#
|
12
|
-
class
|
11
|
+
# Extensions is a map of extension keys to values.
|
12
|
+
class Extensions < GOBL::Map
|
13
13
|
end
|
14
14
|
end
|
15
15
|
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.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -24,11 +24,6 @@ module GOBL
|
|
24
24
|
property :country, GOBL::L10n::CountryCode
|
25
25
|
validates_presence_of :country
|
26
26
|
|
27
|
-
# @!attribute [r] zone
|
28
|
-
# 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.
|
29
|
-
# @return [GOBL::L10n::Code]
|
30
|
-
property :zone, GOBL::L10n::Code
|
31
|
-
|
32
27
|
# @!attribute [r] type
|
33
28
|
# Type is set according the requirements of each regime, some have a single tax document type code, others require a choice to be made.
|
34
29
|
# @return [GOBL::CBC::Key]
|
@@ -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.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -20,8 +20,8 @@ module GOBL
|
|
20
20
|
|
21
21
|
# @!attribute [r] ext
|
22
22
|
# If the rate is defined with extensions, they'll be used to group by also.
|
23
|
-
# @return [GOBL::Tax::
|
24
|
-
property :ext, GOBL::Tax::
|
23
|
+
# @return [GOBL::Tax::Extensions]
|
24
|
+
property :ext, GOBL::Tax::Extensions
|
25
25
|
|
26
26
|
# @!attribute [r] base
|
27
27
|
# Base amount that the percentage is applied to.
|
@@ -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.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -13,10 +13,10 @@ module GOBL
|
|
13
13
|
# The Schema ID of the GOBL RateValue structure
|
14
14
|
SCHEMA_ID = 'https://gobl.org/draft-0/tax/regime#/$defs/RateValue'
|
15
15
|
|
16
|
-
# @!attribute [r]
|
17
|
-
# Only
|
18
|
-
# @return [Array<GOBL::
|
19
|
-
property :
|
16
|
+
# @!attribute [r] tags
|
17
|
+
# Only apply this rate if one of the tags is present in the invoice.
|
18
|
+
# @return [Array<GOBL::CBC::Key>]
|
19
|
+
property :tags, [GOBL::CBC::Key]
|
20
20
|
|
21
21
|
# @!attribute [r] since
|
22
22
|
# Date from which this value should be applied.
|
@@ -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.69.0
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -49,33 +49,33 @@ module GOBL
|
|
49
49
|
|
50
50
|
# @!attribute [r] tags
|
51
51
|
# Tags that can be applied at the document level to identify additional considerations.
|
52
|
-
# @return [Array<KeyDefinition>]
|
53
|
-
property :tags, [KeyDefinition]
|
52
|
+
# @return [Array<GOBL::CBC::KeyDefinition>]
|
53
|
+
property :tags, [GOBL::CBC::KeyDefinition]
|
54
54
|
|
55
55
|
# @!attribute [r] identity_types
|
56
56
|
# Identity types specific for the regime and may be validated against.
|
57
|
-
# @return [Array<KeyDefinition>]
|
58
|
-
property :identity_types, [KeyDefinition]
|
57
|
+
# @return [Array<GOBL::CBC::KeyDefinition>]
|
58
|
+
property :identity_types, [GOBL::CBC::KeyDefinition]
|
59
59
|
|
60
60
|
# @!attribute [r] extensions
|
61
61
|
# 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.
|
62
|
-
# @return [Array<KeyDefinition>]
|
63
|
-
property :extensions, [KeyDefinition]
|
62
|
+
# @return [Array<GOBL::CBC::KeyDefinition>]
|
63
|
+
property :extensions, [GOBL::CBC::KeyDefinition]
|
64
64
|
|
65
65
|
# @!attribute [r] charge_types
|
66
66
|
# Charge types specific for the regime and may be validated or used in the UI as suggestions
|
67
|
-
# @return [Array<KeyDefinition>]
|
68
|
-
property :charge_types, [KeyDefinition]
|
67
|
+
# @return [Array<GOBL::CBC::KeyDefinition>]
|
68
|
+
property :charge_types, [GOBL::CBC::KeyDefinition]
|
69
69
|
|
70
70
|
# @!attribute [r] payment_means
|
71
71
|
# PaymentMeansKeys specific for the regime that extend the original base payment means keys.
|
72
|
-
# @return [Array<KeyDefinition>]
|
73
|
-
property :payment_means, [KeyDefinition]
|
72
|
+
# @return [Array<GOBL::CBC::KeyDefinition>]
|
73
|
+
property :payment_means, [GOBL::CBC::KeyDefinition]
|
74
74
|
|
75
75
|
# @!attribute [r] inbox_keys
|
76
76
|
# InboxKeys specific to the regime that can be used to identify where a document should be forwarded to.
|
77
|
-
# @return [Array<KeyDefinition>]
|
78
|
-
property :inbox_keys, [KeyDefinition]
|
77
|
+
# @return [Array<GOBL::CBC::KeyDefinition>]
|
78
|
+
property :inbox_keys, [GOBL::CBC::KeyDefinition]
|
79
79
|
|
80
80
|
# @!attribute [r] scenarios
|
81
81
|
# @return [Array<ScenarioSet>]
|
@@ -91,11 +91,6 @@ module GOBL
|
|
91
91
|
# @return [Array<Category>]
|
92
92
|
property :categories, [Category]
|
93
93
|
validates_presence_of :categories
|
94
|
-
|
95
|
-
# @!attribute [r] zones
|
96
|
-
# List of zones to identify specific areas, regions, or provinces inside a country tha may be required for tax purposes.
|
97
|
-
# @return [Array<Zone>]
|
98
|
-
property :zones, [Zone]
|
99
94
|
end
|
100
95
|
end
|
101
96
|
end
|