gobl 0.13.0 → 0.14.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/it.json +13 -0
- data/data/regimes/us.json +20 -0
- data/lib/generated/gobl/bill/charge.rb +1 -1
- 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 +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 +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 +1 -1
- 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 +1 -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 +1 -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 +2 -2
- 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 +38 -38
- 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 +2 -2
- 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 +1 -1
- data/lib/generated/gobl/tax/identity_type.rb +1 -1
- data/lib/generated/gobl/tax/key_definition.rb +1 -1
- data/lib/generated/gobl/tax/preceding_definitions.rb +1 -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 +1 -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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfea0d56efe6b8768eeb6bb8f0b24ba06f3cb0a92d20bd1b4a82d26eb8ad9339
|
4
|
+
data.tar.gz: 134bd9649596f3abda61cfde20ce93792ff934c824daaf88fe49b10799c2d8bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7e6c54e26240d2b44af093e5e9582b82c3dc8997e100752997f0b56cb3d132c0d3b5ccfd441306ae97aae8bac91b2545d13f9cee2a5fe36a985599990a3822e
|
7
|
+
data.tar.gz: 99a36744e2b6485bad7810377eecd01a01694381f29a58e785f68fda4b0d9aa2ddd363448292fdb7b8476c0737b3af349db62098ec66a1f98aadffedfb424721
|
data/data/regimes/it.json
CHANGED
@@ -670,6 +670,19 @@
|
|
670
670
|
}
|
671
671
|
}
|
672
672
|
],
|
673
|
+
"charge_types": [
|
674
|
+
{
|
675
|
+
"key": "stamp-duty",
|
676
|
+
"name": {
|
677
|
+
"en": "Stamp Duty",
|
678
|
+
"it": "Imposta di bollo"
|
679
|
+
},
|
680
|
+
"desc": {
|
681
|
+
"en": "A fixed-price tax applied to the production, request or presentation of certain documents: civil, commercial, judicial and extrajudicial documents, on notices, on posters.",
|
682
|
+
"it": "Un'imposta applicata alla produzione, richiesta o presentazione di determinati documenti: atti civili, commerciali, giudiziali ed extragiudiziali, sugli avvisi, sui manifesti."
|
683
|
+
}
|
684
|
+
}
|
685
|
+
],
|
673
686
|
"tags": [
|
674
687
|
{
|
675
688
|
"key": "freelance",
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://gobl.org/draft-0/tax/regime",
|
3
|
+
"name": {
|
4
|
+
"en": "United States of America"
|
5
|
+
},
|
6
|
+
"country": "US",
|
7
|
+
"currency": "USD",
|
8
|
+
"categories": [
|
9
|
+
{
|
10
|
+
"code": "ST",
|
11
|
+
"name": {
|
12
|
+
"en": "Sales Tax"
|
13
|
+
},
|
14
|
+
"desc": {
|
15
|
+
"en": "Sales Tax"
|
16
|
+
},
|
17
|
+
"rates": []
|
18
|
+
}
|
19
|
+
]
|
20
|
+
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.42.
|
6
|
+
## Generated with GOBL v0.42.8
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -25,7 +25,7 @@ module GOBL
|
|
25
25
|
validates_presence_of :dig
|
26
26
|
|
27
27
|
# @!attribute [r] stamps
|
28
|
-
# Seals of approval from other organisations.
|
28
|
+
# Seals of approval from other organisations that can only be added to non-draft envelopes.
|
29
29
|
# @return [Array<GOBL::CBC::Stamp>]
|
30
30
|
property :stamps, [GOBL::CBC::Stamp]
|
31
31
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.42.
|
6
|
+
## Generated with GOBL v0.42.8
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -29,10 +29,10 @@ module GOBL
|
|
29
29
|
'AR' => 'Argentina',
|
30
30
|
'AM' => 'Armenia',
|
31
31
|
'AW' => 'Aruba',
|
32
|
-
'AU' => 'Australia
|
32
|
+
'AU' => 'Australia',
|
33
33
|
'AT' => 'Austria',
|
34
34
|
'AZ' => 'Azerbaijan',
|
35
|
-
'BS' => 'Bahamas
|
35
|
+
'BS' => 'Bahamas',
|
36
36
|
'BH' => 'Bahrain',
|
37
37
|
'BD' => 'Bangladesh',
|
38
38
|
'BB' => 'Barbados',
|
@@ -42,13 +42,13 @@ module GOBL
|
|
42
42
|
'BJ' => 'Benin',
|
43
43
|
'BM' => 'Bermuda',
|
44
44
|
'BT' => 'Bhutan',
|
45
|
-
'BO' => 'Bolivia
|
45
|
+
'BO' => 'Bolivia, Plurinational State of',
|
46
46
|
'BQ' => 'Bonaire, Sint Eustatius and Saba',
|
47
47
|
'BA' => 'Bosnia and Herzegovina',
|
48
48
|
'BW' => 'Botswana',
|
49
49
|
'BV' => 'Bouvet Island',
|
50
50
|
'BR' => 'Brazil',
|
51
|
-
'IO' => 'British Indian Ocean Territory
|
51
|
+
'IO' => 'British Indian Ocean Territory',
|
52
52
|
'BN' => 'Brunei Darussalam',
|
53
53
|
'BG' => 'Bulgaria',
|
54
54
|
'BF' => 'Burkina Faso',
|
@@ -57,18 +57,18 @@ module GOBL
|
|
57
57
|
'KH' => 'Cambodia',
|
58
58
|
'CM' => 'Cameroon',
|
59
59
|
'CA' => 'Canada',
|
60
|
-
'KY' => 'Cayman Islands
|
61
|
-
'CF' => 'Central African Republic
|
60
|
+
'KY' => 'Cayman Islands',
|
61
|
+
'CF' => 'Central African Republic',
|
62
62
|
'TD' => 'Chad',
|
63
63
|
'CL' => 'Chile',
|
64
64
|
'CN' => 'China',
|
65
65
|
'CX' => 'Christmas Island',
|
66
|
-
'CC' => 'Cocos (Keeling) Islands
|
66
|
+
'CC' => 'Cocos (Keeling) Islands',
|
67
67
|
'CO' => 'Colombia',
|
68
|
-
'KM' => 'Comoros
|
69
|
-
'CG' => 'Congo
|
70
|
-
'CD' => 'Congo
|
71
|
-
'CK' => 'Cook Islands
|
68
|
+
'KM' => 'Comoros',
|
69
|
+
'CG' => 'Congo',
|
70
|
+
'CD' => 'Congo, Democratic Republic of the',
|
71
|
+
'CK' => 'Cook Islands',
|
72
72
|
'CR' => 'Costa Rica',
|
73
73
|
'CI' => 'Côte dIvoireIvoire',
|
74
74
|
'HR' => 'Croatia',
|
@@ -79,7 +79,7 @@ module GOBL
|
|
79
79
|
'DK' => 'Denmark',
|
80
80
|
'DJ' => 'Djibouti',
|
81
81
|
'DM' => 'Dominica',
|
82
|
-
'DO' => 'Dominican Republic
|
82
|
+
'DO' => 'Dominican Republic',
|
83
83
|
'EC' => 'Ecuador',
|
84
84
|
'EG' => 'Egypt',
|
85
85
|
'SV' => 'El Salvador',
|
@@ -88,16 +88,16 @@ module GOBL
|
|
88
88
|
'EE' => 'Estonia',
|
89
89
|
'SZ' => 'Eswatini',
|
90
90
|
'ET' => 'Ethiopia',
|
91
|
-
'FK' => 'Falkland Islands
|
92
|
-
'FO' => 'Faroe Islands
|
91
|
+
'FK' => 'Falkland Islands',
|
92
|
+
'FO' => 'Faroe Islands',
|
93
93
|
'FJ' => 'Fiji',
|
94
94
|
'FI' => 'Finland',
|
95
95
|
'FR' => 'France',
|
96
96
|
'GF' => 'French Guiana',
|
97
97
|
'PF' => 'French Polynesia',
|
98
|
-
'TF' => 'French Southern Territories
|
98
|
+
'TF' => 'French Southern Territories',
|
99
99
|
'GA' => 'Gabon',
|
100
|
-
'GM' => 'Gambia
|
100
|
+
'GM' => 'Gambia',
|
101
101
|
'GE' => 'Georgia',
|
102
102
|
'DE' => 'Germany',
|
103
103
|
'GH' => 'Ghana',
|
@@ -121,7 +121,7 @@ module GOBL
|
|
121
121
|
'IS' => 'Iceland',
|
122
122
|
'IN' => 'India',
|
123
123
|
'ID' => 'Indonesia',
|
124
|
-
'IR' => 'Iran
|
124
|
+
'IR' => 'Iran, Islamic Republic of',
|
125
125
|
'IQ' => 'Iraq',
|
126
126
|
'IE' => 'Ireland',
|
127
127
|
'IM' => 'Isle of Man',
|
@@ -134,11 +134,11 @@ module GOBL
|
|
134
134
|
'KZ' => 'Kazakhstan',
|
135
135
|
'KE' => 'Kenya',
|
136
136
|
'KI' => 'Kiribati',
|
137
|
-
'KP' => 'Korea
|
138
|
-
'KR' => 'Korea
|
137
|
+
'KP' => 'Korea, Democratic Peoples Republic ofs Republic of',
|
138
|
+
'KR' => 'Korea, Republic of',
|
139
139
|
'KW' => 'Kuwait',
|
140
140
|
'KG' => 'Kyrgyzstan',
|
141
|
-
'LA' => 'Lao Peoples Democratic
|
141
|
+
'LA' => 'Lao Peoples Democratic Republics Democratic Republic',
|
142
142
|
'LV' => 'Latvia',
|
143
143
|
'LB' => 'Lebanon',
|
144
144
|
'LS' => 'Lesotho',
|
@@ -155,14 +155,14 @@ module GOBL
|
|
155
155
|
'MV' => 'Maldives',
|
156
156
|
'ML' => 'Mali',
|
157
157
|
'MT' => 'Malta',
|
158
|
-
'MH' => 'Marshall Islands
|
158
|
+
'MH' => 'Marshall Islands',
|
159
159
|
'MQ' => 'Martinique',
|
160
160
|
'MR' => 'Mauritania',
|
161
161
|
'MU' => 'Mauritius',
|
162
162
|
'YT' => 'Mayotte',
|
163
163
|
'MX' => 'Mexico',
|
164
|
-
'FM' => 'Micronesia
|
165
|
-
'MD' => 'Moldova
|
164
|
+
'FM' => 'Micronesia, Federated States of',
|
165
|
+
'MD' => 'Moldova, Republic of',
|
166
166
|
'MC' => 'Monaco',
|
167
167
|
'MN' => 'Mongolia',
|
168
168
|
'ME' => 'Montenegro',
|
@@ -173,15 +173,15 @@ module GOBL
|
|
173
173
|
'NA' => 'Namibia',
|
174
174
|
'NR' => 'Nauru',
|
175
175
|
'NP' => 'Nepal',
|
176
|
-
'NL' => 'Netherlands
|
176
|
+
'NL' => 'Netherlands',
|
177
177
|
'NC' => 'New Caledonia',
|
178
178
|
'NZ' => 'New Zealand',
|
179
179
|
'NI' => 'Nicaragua',
|
180
|
-
'NE' => 'Niger
|
180
|
+
'NE' => 'Niger',
|
181
181
|
'NG' => 'Nigeria',
|
182
182
|
'NU' => 'Niue',
|
183
183
|
'NF' => 'Norfolk Island',
|
184
|
-
'MP' => 'Northern Mariana Islands
|
184
|
+
'MP' => 'Northern Mariana Islands',
|
185
185
|
'NO' => 'Norway',
|
186
186
|
'OM' => 'Oman',
|
187
187
|
'PK' => 'Pakistan',
|
@@ -191,7 +191,7 @@ module GOBL
|
|
191
191
|
'PG' => 'Papua New Guinea',
|
192
192
|
'PY' => 'Paraguay',
|
193
193
|
'PE' => 'Peru',
|
194
|
-
'PH' => 'Philippines
|
194
|
+
'PH' => 'Philippines',
|
195
195
|
'PN' => 'Pitcairn',
|
196
196
|
'PL' => 'Poland',
|
197
197
|
'PT' => 'Portugal',
|
@@ -199,7 +199,7 @@ module GOBL
|
|
199
199
|
'QA' => 'Qatar',
|
200
200
|
'RE' => 'Réunion',
|
201
201
|
'RO' => 'Romania',
|
202
|
-
'RU' => 'Russian Federation
|
202
|
+
'RU' => 'Russian Federation',
|
203
203
|
'RW' => 'Rwanda',
|
204
204
|
'BL' => 'Saint Barthélemy',
|
205
205
|
'SH' => 'Saint Helena, Ascension and Tristan da Cunha',
|
@@ -227,17 +227,17 @@ module GOBL
|
|
227
227
|
'SS' => 'South Sudan',
|
228
228
|
'ES' => 'Spain',
|
229
229
|
'LK' => 'Sri Lanka',
|
230
|
-
'SD' => 'Sudan
|
230
|
+
'SD' => 'Sudan',
|
231
231
|
'SR' => 'Suriname',
|
232
232
|
'SJ' => 'Svalbard and Jan Mayen',
|
233
233
|
'SE' => 'Sweden',
|
234
234
|
'CH' => 'Switzerland',
|
235
|
-
'SY' => 'Syrian Arab Republic
|
235
|
+
'SY' => 'Syrian Arab Republic',
|
236
236
|
'TW' => 'Taiwan (Province of China)',
|
237
237
|
'TJ' => 'Tajikistan',
|
238
238
|
'TZ' => 'Tanzania, the United Republic of',
|
239
239
|
'TH' => 'Thailand',
|
240
|
-
'TL' => 'Timor-Leste
|
240
|
+
'TL' => 'Timor-Leste',
|
241
241
|
'TG' => 'Togo',
|
242
242
|
'TK' => 'Tokelau',
|
243
243
|
'TO' => 'Tonga',
|
@@ -245,18 +245,18 @@ module GOBL
|
|
245
245
|
'TN' => 'Tunisia',
|
246
246
|
'TR' => 'Türkiye',
|
247
247
|
'TM' => 'Turkmenistan',
|
248
|
-
'TC' => 'Turks and Caicos Islands
|
248
|
+
'TC' => 'Turks and Caicos Islands',
|
249
249
|
'TV' => 'Tuvalu',
|
250
250
|
'UG' => 'Uganda',
|
251
251
|
'UA' => 'Ukraine',
|
252
|
-
'AE' => 'United Arab Emirates
|
253
|
-
'GB' => 'United Kingdom
|
254
|
-
'US' => 'United States of America
|
255
|
-
'UM' => 'United States Minor Outlying Islands
|
252
|
+
'AE' => 'United Arab Emirates',
|
253
|
+
'GB' => 'United Kingdom',
|
254
|
+
'US' => 'United States of America',
|
255
|
+
'UM' => 'United States Minor Outlying Islands',
|
256
256
|
'UY' => 'Uruguay',
|
257
257
|
'UZ' => 'Uzbekistan',
|
258
258
|
'VU' => 'Vanuatu',
|
259
|
-
'VE' => 'Venezuela
|
259
|
+
'VE' => 'Venezuela, Bolivarian Republic of',
|
260
260
|
'VN' => 'Viet Nam',
|
261
261
|
'VG' => 'Virgin Islands (British)',
|
262
262
|
'VI' => 'Virgin Islands (U.S.)',
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##
|
4
4
|
## DO NOT EDIT - This file was generated automatically.
|
5
5
|
##
|
6
|
-
## Generated with GOBL v0.42.
|
6
|
+
## Generated with GOBL v0.42.8
|
7
7
|
##
|
8
8
|
|
9
9
|
module GOBL
|
@@ -23,7 +23,7 @@ module GOBL
|
|
23
23
|
'instant' => 'On receipt of invoice',
|
24
24
|
'elective' => 'Chosen by the buyer',
|
25
25
|
'pending' => 'Seller to advise buyer in separate transaction',
|
26
|
-
'
|
26
|
+
'advanced' => 'Payment made in advance',
|
27
27
|
'delivery' => 'Payment on Delivery'
|
28
28
|
}.freeze
|
29
29
|
|
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.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luismi Cavalle
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2023-
|
14
|
+
date: 2023-05-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- data/regimes/it.json
|
70
70
|
- data/regimes/nl.json
|
71
71
|
- data/regimes/pt.json
|
72
|
+
- data/regimes/us.json
|
72
73
|
- lib/generated/gobl/bill/charge.rb
|
73
74
|
- lib/generated/gobl/bill/delivery.rb
|
74
75
|
- lib/generated/gobl/bill/discount.rb
|