gobl 0.24.1 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/data/addons/br-nfe-v4.json +481 -0
- data/data/addons/br-nfse-v1.json +235 -0
- data/data/addons/co-dian-v2.json +311 -0
- data/data/addons/de-xrechnung-v3.json +16 -0
- data/data/addons/de-zugferd-v2.json +16 -0
- data/data/addons/es-facturae-v3.json +359 -0
- data/data/addons/es-tbai-v1.json +225 -0
- data/data/addons/es-verifactu-v1.json +609 -0
- data/data/addons/eu-en16931-v2017.json +92 -0
- data/data/addons/fr-choruspro-v1.json +260 -0
- data/data/addons/fr-facturx-v1.json +16 -0
- data/data/addons/gr-mydata-v1.json +1495 -0
- data/data/addons/it-sdi-v1.json +1570 -0
- data/data/addons/it-ticket-v1.json +144 -0
- data/data/addons/mx-cfdi-v4.json +908 -0
- data/data/addons/pl-favat-v2.json +235 -0
- data/data/addons/pt-saft-v1.json +950 -0
- data/data/catalogues/cef.json +374 -0
- data/data/catalogues/iso.json +19 -0
- data/data/catalogues/untdid.json +10669 -0
- data/data/currency/iso.json +2378 -0
- data/data/currency/non-iso.json +128 -0
- data/data/schemas/bill/charge.json +125 -0
- data/data/schemas/bill/correction-options.json +54 -0
- data/data/schemas/bill/delivery-details.json +41 -0
- data/data/schemas/bill/delivery.json +412 -0
- data/data/schemas/bill/discount.json +137 -0
- data/data/schemas/bill/invoice.json +423 -0
- data/data/schemas/bill/line.json +433 -0
- data/data/schemas/bill/order.json +401 -0
- data/data/schemas/bill/ordering.json +107 -0
- data/data/schemas/bill/payment-details.json +36 -0
- data/data/schemas/bill/payment.json +424 -0
- data/data/schemas/bill/tax.json +45 -0
- data/data/schemas/bill/totals.json +84 -0
- data/data/schemas/cal/date-time.json +13 -0
- data/data/schemas/cal/date.json +13 -0
- data/data/schemas/cal/period.json +32 -0
- data/data/schemas/cal/time.json +13 -0
- data/data/schemas/cbc/code-map.json +16 -0
- data/data/schemas/cbc/code.json +15 -0
- data/data/schemas/cbc/definition.json +67 -0
- data/data/schemas/cbc/key.json +15 -0
- data/data/schemas/cbc/meta.json +16 -0
- data/data/schemas/cbc/source.json +37 -0
- data/data/schemas/currency/amount.json +32 -0
- data/data/schemas/currency/code.json +734 -0
- data/data/schemas/currency/exchange-rate.json +43 -0
- data/data/schemas/dsig/digest.json +27 -0
- data/data/schemas/dsig/signature.json +12 -0
- data/data/schemas/envelope.json +41 -0
- data/data/schemas/head/header.json +62 -0
- data/data/schemas/head/link.json +42 -0
- data/data/schemas/head/stamp.json +27 -0
- data/data/schemas/i18n/string.json +18 -0
- data/data/schemas/l10n/code.json +13 -0
- data/data/schemas/l10n/iso-country-code.json +1010 -0
- data/data/schemas/l10n/tax-country-code.json +1022 -0
- data/data/schemas/note/message.json +43 -0
- data/data/schemas/num/amount.json +13 -0
- data/data/schemas/num/percentage.json +13 -0
- data/data/schemas/org/address.json +105 -0
- data/data/schemas/org/attachment.json +58 -0
- data/data/schemas/org/coordinates.json +33 -0
- data/data/schemas/org/document-ref.json +117 -0
- data/data/schemas/org/email.json +37 -0
- data/data/schemas/org/identity.json +57 -0
- data/data/schemas/org/image.json +70 -0
- data/data/schemas/org/inbox.json +49 -0
- data/data/schemas/org/item.json +96 -0
- data/data/schemas/org/name.json +59 -0
- data/data/schemas/org/note.json +184 -0
- data/data/schemas/org/party.json +129 -0
- data/data/schemas/org/person.json +90 -0
- data/data/schemas/org/registration.json +66 -0
- data/data/schemas/org/telephone.json +32 -0
- data/data/schemas/org/unit.json +350 -0
- data/data/schemas/org/website.json +38 -0
- data/data/schemas/pay/advance.json +211 -0
- data/data/schemas/pay/instructions.json +245 -0
- data/data/schemas/pay/terms.json +128 -0
- data/data/schemas/regimes/mx/food-vouchers.json +111 -0
- data/data/schemas/regimes/mx/fuel-account-balance.json +179 -0
- data/data/schemas/schema/object.json +12 -0
- data/data/schemas/tax/addon-def.json +288 -0
- data/data/schemas/tax/catalogue-def.json +37 -0
- data/data/schemas/tax/extensions.json +16 -0
- data/data/schemas/tax/identity.json +45 -0
- data/data/schemas/tax/regime-def.json +513 -0
- data/data/schemas/tax/set.json +139 -0
- data/data/schemas/tax/total.json +135 -0
- data/lib/gobl/extensions/tax/addon_helper.rb +37 -0
- data/lib/gobl/version.rb +1 -1
- data/lib/gobl.rb +1 -0
- metadata +93 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gobl.org/draft-0/tax/addon-def",
|
|
3
|
+
"key": "eu-en16931-v2017",
|
|
4
|
+
"name": {
|
|
5
|
+
"en": "EN 16931-1:2017"
|
|
6
|
+
},
|
|
7
|
+
"description": {
|
|
8
|
+
"en": "Support for the European Norm (EN) 16931-1:2017 standard for electronic invoicing.\n\nThis addon ensures the basic rules and mappings are applied to the GOBL document\nensure that it is compliant and easily convertible to other formats.\n\nWe strongly recommend checking the output and specifically the extension codes\nused to ensure that any assumptions do not need be adjusted."
|
|
9
|
+
},
|
|
10
|
+
"extensions": null,
|
|
11
|
+
"scenarios": [
|
|
12
|
+
{
|
|
13
|
+
"schema": "bill/invoice",
|
|
14
|
+
"list": [
|
|
15
|
+
{
|
|
16
|
+
"type": [
|
|
17
|
+
"standard"
|
|
18
|
+
],
|
|
19
|
+
"ext": {
|
|
20
|
+
"untdid-document-type": "380"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": [
|
|
25
|
+
"credit-note"
|
|
26
|
+
],
|
|
27
|
+
"ext": {
|
|
28
|
+
"untdid-document-type": "381"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": [
|
|
33
|
+
"debit-note"
|
|
34
|
+
],
|
|
35
|
+
"ext": {
|
|
36
|
+
"untdid-document-type": "383"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": [
|
|
41
|
+
"corrective"
|
|
42
|
+
],
|
|
43
|
+
"ext": {
|
|
44
|
+
"untdid-document-type": "384"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": [
|
|
49
|
+
"proforma"
|
|
50
|
+
],
|
|
51
|
+
"ext": {
|
|
52
|
+
"untdid-document-type": "325"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": [
|
|
57
|
+
"standard"
|
|
58
|
+
],
|
|
59
|
+
"tags": [
|
|
60
|
+
"partial"
|
|
61
|
+
],
|
|
62
|
+
"ext": {
|
|
63
|
+
"untdid-document-type": "326"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": [
|
|
68
|
+
"standard"
|
|
69
|
+
],
|
|
70
|
+
"tags": [
|
|
71
|
+
"self-billed"
|
|
72
|
+
],
|
|
73
|
+
"ext": {
|
|
74
|
+
"untdid-document-type": "389"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": [
|
|
79
|
+
"credit-note"
|
|
80
|
+
],
|
|
81
|
+
"tags": [
|
|
82
|
+
"self-billed"
|
|
83
|
+
],
|
|
84
|
+
"ext": {
|
|
85
|
+
"untdid-document-type": "261"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"corrections": null
|
|
92
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gobl.org/draft-0/tax/addon-def",
|
|
3
|
+
"key": "fr-choruspro-v1",
|
|
4
|
+
"requires": [
|
|
5
|
+
"eu-en16931-v2017"
|
|
6
|
+
],
|
|
7
|
+
"name": {
|
|
8
|
+
"en": "Chorus Pro",
|
|
9
|
+
"fr": "Chorus Pro"
|
|
10
|
+
},
|
|
11
|
+
"description": {
|
|
12
|
+
"en": "Support for the French Chorus Pro platform for B2G (Business-to-Government) electronic invoicing.\nThis addon provides the necessary structures and validations to ensure compliance with the\nChorus Pro specifications.\n\nIt requires the EN16931 addon as it expands on the European standard with French-specific\nrequirements for public sector invoicing.",
|
|
13
|
+
"fr": "Support pour la plateforme française Chorus Pro pour la facturation électronique B2G\n(Business-to-Government). Cet addon fournit les structures et validations nécessaires\npour assurer la conformité avec les spécifications Chorus Pro.\n\nIl nécessite l'addon EN16931 car il étend le standard européen avec des exigences\nspécifiques françaises pour la facturation du secteur public."
|
|
14
|
+
},
|
|
15
|
+
"sources": [
|
|
16
|
+
{
|
|
17
|
+
"title": {
|
|
18
|
+
"en": "Chorus Pro Specifications",
|
|
19
|
+
"fr": "Spécifications Chorus Pro"
|
|
20
|
+
},
|
|
21
|
+
"url": "https://communaute.chorus-pro.gouv.fr/wp-content/uploads/2018/11/External_Specifications_EDI_Appendix_V4.10.pdf"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"extensions": [
|
|
25
|
+
{
|
|
26
|
+
"key": "fr-choruspro-framework",
|
|
27
|
+
"name": {
|
|
28
|
+
"en": "General Information Framework",
|
|
29
|
+
"fr": "Informations générales"
|
|
30
|
+
},
|
|
31
|
+
"desc": {
|
|
32
|
+
"en": "The general information framework is used to provide additional context\nabout the entity submitting the document. If no value is provided, it will\ndefault to \"A1\" (Submission by a supplier of an invoice), the most common\nuse-case.\n\nThis extension's value is not deterministic, meaning that it will not be\nreplaced by GOBL during normalization.",
|
|
33
|
+
"fr": "Le cadre d'informations générales est utilisé pour fournir un contexte\nsupplémentaire sur l'entité soumettant le document. Si aucune valeur\nn'est fournie, elle sera par défaut \"A1\" (Dépôt par un fournisseur d'une facture), le cas d'utilisation le plus courant.\n\nLa valeur de cette extension n'est pas déterministe, ce qui signifie qu'elle\nne sera pas remplacée par GOBL lors de la normalisation."
|
|
34
|
+
},
|
|
35
|
+
"values": [
|
|
36
|
+
{
|
|
37
|
+
"code": "A1",
|
|
38
|
+
"name": {
|
|
39
|
+
"en": "Submission by a supplier of an invoice",
|
|
40
|
+
"fr": "Dépôt par un fournisseur d'une facture"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "A2",
|
|
45
|
+
"name": {
|
|
46
|
+
"en": "Submission by a supplier of an invoice already paid",
|
|
47
|
+
"fr": "Dépôt par un fournisseur d'une facture déjà payée"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "A3",
|
|
52
|
+
"name": {
|
|
53
|
+
"en": "Submission by a supplier of a Memorandum on Justice Costs",
|
|
54
|
+
"fr": "Dépôt par un fournisseur d'un mémoire de frais de justice"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"code": "A4",
|
|
59
|
+
"name": {
|
|
60
|
+
"en": "Submission by a supplier of a draft monthly statement",
|
|
61
|
+
"fr": "Dépôt par un fournisseur d'un projet de décompte mensuel"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"code": "A5",
|
|
66
|
+
"name": {
|
|
67
|
+
"en": "Submission by a supplier of an account statement",
|
|
68
|
+
"fr": "Dépôt par un fournisseur d'un état d'acompte"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"code": "A6",
|
|
73
|
+
"name": {
|
|
74
|
+
"en": "Work invoice document sent to a financial service",
|
|
75
|
+
"fr": "Pièce de facturation de travaux transmise au service financier"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"code": "A7",
|
|
80
|
+
"name": {
|
|
81
|
+
"en": "Submission by a supplier of a draft final statement",
|
|
82
|
+
"fr": "Dépôt par un fournisseur d'un projet de décompte final"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"code": "A8",
|
|
87
|
+
"name": {
|
|
88
|
+
"en": "Submission by a supplier of a general and definitive statement",
|
|
89
|
+
"fr": "Dépôt par un fournisseur d'un décompte général et définitif"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"code": "A9",
|
|
94
|
+
"name": {
|
|
95
|
+
"en": "Submission by a subcontractor of an invoice",
|
|
96
|
+
"fr": "Dépôt par un sous-traitant d'une facture"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"code": "A10",
|
|
101
|
+
"name": {
|
|
102
|
+
"en": "Submission by a subcontractor of a draft monthly statement",
|
|
103
|
+
"fr": "Dépôt par un sous-traitant d'un projet de décompte mensuel"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "A12",
|
|
108
|
+
"name": {
|
|
109
|
+
"en": "Submission by a joint contractor of an invoice",
|
|
110
|
+
"fr": "Dépôt par un cotraitant d'une facture"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"code": "A13",
|
|
115
|
+
"name": {
|
|
116
|
+
"en": "Submission by a joint contractor of a draft monthly statement",
|
|
117
|
+
"fr": "Dépôt par un cotraitant d'un projet de décompte mensuel"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"code": "A14",
|
|
122
|
+
"name": {
|
|
123
|
+
"en": "Submission by a joint contractor of a draft final statement",
|
|
124
|
+
"fr": "Dépôt par un cotraitant d'un projet de décompte final"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"code": "A15",
|
|
129
|
+
"name": {
|
|
130
|
+
"en": "Submission by a project manager of an account statement",
|
|
131
|
+
"fr": "Dépôt par une MOE d'un état d'acompte"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"code": "A16",
|
|
136
|
+
"name": {
|
|
137
|
+
"en": "Submission by a project manager of a validated account statement",
|
|
138
|
+
"fr": "Dépôt par une MOE d'un état d'acompte validé"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"code": "A17",
|
|
143
|
+
"name": {
|
|
144
|
+
"en": "Submission by a project manager of a draft general statement",
|
|
145
|
+
"fr": "Dépôt par une MOE d'un projet de décompte général"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"code": "A18",
|
|
150
|
+
"name": {
|
|
151
|
+
"en": "Submission by a project manager of a general statement",
|
|
152
|
+
"fr": "Dépôt par une MOE d'un décompte général"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"code": "A19",
|
|
157
|
+
"name": {
|
|
158
|
+
"en": "Submission by a contracting authority of a validated account statement",
|
|
159
|
+
"fr": "Dépôt par une MOA d'un état d'acompte validé"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"code": "A20",
|
|
164
|
+
"name": {
|
|
165
|
+
"en": "Submission by a contracting authority of a general statement",
|
|
166
|
+
"fr": "Dépôt par une MOA d'un décompte général"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"code": "A21",
|
|
171
|
+
"name": {
|
|
172
|
+
"en": "Submission by a beneficiary of an ICT reimbursement request",
|
|
173
|
+
"fr": "Dépôt par un bénéficiaire d'une demande de remboursement de la TIC"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"code": "A22",
|
|
178
|
+
"name": {
|
|
179
|
+
"en": "Submission by a supplier or an authorised representative of a draft general statement as part of a tacit procedure",
|
|
180
|
+
"fr": "Dépôt par un fournisseur ou mandataire d'un projet de décompte général dans le cadre d'une procédure tacite"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"code": "A23",
|
|
185
|
+
"name": {
|
|
186
|
+
"en": "Submission by a supplier or an authorised representative of a tacit general and final statement",
|
|
187
|
+
"fr": "Dépôt par un fournisseur ou mandataire d'un décompte général et définitif tacite"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"code": "A24",
|
|
192
|
+
"name": {
|
|
193
|
+
"en": "Submission by an authorised representative of a tacit general and final statement",
|
|
194
|
+
"fr": "Dépôt par une MOE d'un décompte général et définitif tacite"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"code": "A25",
|
|
199
|
+
"name": {
|
|
200
|
+
"en": "Submission by an authorised representative of a general and final statement as part of a tacit procedure",
|
|
201
|
+
"fr": "Dépôt par une MOA d'un décompte général et définitif dans le cadre d'une procédure tacite"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"key": "fr-choruspro-scheme",
|
|
208
|
+
"name": {
|
|
209
|
+
"en": "Scheme",
|
|
210
|
+
"fr": "Schéma"
|
|
211
|
+
},
|
|
212
|
+
"values": [
|
|
213
|
+
{
|
|
214
|
+
"code": "1",
|
|
215
|
+
"name": {
|
|
216
|
+
"en": "Third party with SIRET",
|
|
217
|
+
"fr": "Tiers avec SIRET"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"code": "2",
|
|
222
|
+
"name": {
|
|
223
|
+
"en": "European structure outside France",
|
|
224
|
+
"fr": "Structure Européenne hors France"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"code": "3",
|
|
229
|
+
"name": {
|
|
230
|
+
"en": "Structure outside the EU",
|
|
231
|
+
"fr": "Structure hors UE"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"code": "4",
|
|
236
|
+
"name": {
|
|
237
|
+
"en": "RIDET",
|
|
238
|
+
"fr": "RIDET"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"code": "5",
|
|
243
|
+
"name": {
|
|
244
|
+
"en": "Tahiti Number",
|
|
245
|
+
"fr": "Numéro Tahiti"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"code": "6",
|
|
250
|
+
"name": {
|
|
251
|
+
"en": "Other",
|
|
252
|
+
"fr": "Autre"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"scenarios": null,
|
|
259
|
+
"corrections": null
|
|
260
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://gobl.org/draft-0/tax/addon-def",
|
|
3
|
+
"key": "fr-facturx-v1",
|
|
4
|
+
"requires": [
|
|
5
|
+
"eu-en16931-v2017"
|
|
6
|
+
],
|
|
7
|
+
"name": {
|
|
8
|
+
"en": "French Factur-X v1"
|
|
9
|
+
},
|
|
10
|
+
"description": {
|
|
11
|
+
"en": "Support for the French Factur-X 1.x standard for electronic invoicing.\nFactur-X is based on the European Norm (EN) 16931 and is mandatory for business-to-government\n(B2G) invoices in France. This addon provides the necessary structures and validations to\nensure compliance with the Factur-X specifications.\n\nCurrently this is just a placeholder addon as the EN16931 addon will provide\nall validation requirements.\n\nFor more information on Factur-X, visit [fnfe-mpe.org](https://fnfe-mpe.org/factur-x/factur-x_en/#)."
|
|
12
|
+
},
|
|
13
|
+
"extensions": null,
|
|
14
|
+
"scenarios": null,
|
|
15
|
+
"corrections": null
|
|
16
|
+
}
|