gobl 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/data/regimes/at.json +55 -50
  3. data/data/regimes/be.json +55 -50
  4. data/data/regimes/ca.json +1 -1
  5. data/data/regimes/ch.json +55 -50
  6. data/data/regimes/co.json +113 -61
  7. data/data/regimes/de.json +61 -47
  8. data/data/regimes/el.json +204 -0
  9. data/data/regimes/es.json +66 -548
  10. data/data/regimes/fr.json +55 -50
  11. data/data/regimes/gb.json +59 -50
  12. data/data/regimes/it.json +60 -1311
  13. data/data/regimes/mx.json +38 -639
  14. data/data/regimes/nl.json +55 -50
  15. data/data/regimes/pl.json +103 -100
  16. data/data/regimes/pt.json +17 -349
  17. data/data/regimes/us.json +55 -50
  18. data/lib/generated/gobl/bill/correction_options.rb +2 -2
  19. data/lib/generated/gobl/bill/invoice.rb +49 -9
  20. data/lib/generated/gobl/bill/ordering.rb +34 -34
  21. data/lib/generated/gobl/bill/tax.rb +0 -5
  22. data/lib/generated/gobl/cbc/key_definition.rb +4 -9
  23. data/lib/generated/gobl/cbc/value_definition.rb +37 -0
  24. data/lib/generated/gobl/head/header.rb +5 -5
  25. data/lib/generated/gobl/head/link.rb +43 -0
  26. data/lib/generated/gobl/l10n/{country_code.rb → iso_country_code.rb} +3 -3
  27. data/lib/generated/gobl/l10n/tax_country_code.rb +277 -0
  28. data/lib/generated/gobl/org/address.rb +2 -3
  29. data/lib/generated/gobl/org/document_ref.rb +87 -0
  30. data/lib/generated/gobl/org/identity.rb +5 -0
  31. data/lib/generated/gobl/org/item.rb +2 -2
  32. data/lib/generated/gobl/org/name.rb +0 -2
  33. data/lib/generated/gobl/org/party.rb +5 -6
  34. data/lib/generated/gobl/org/person.rb +5 -0
  35. data/lib/generated/gobl/org/registration.rb +4 -0
  36. data/lib/generated/gobl/pay/advance.rb +5 -0
  37. data/lib/generated/gobl/pay/instructions.rb +5 -0
  38. data/lib/generated/gobl/tax/addon_def.rb +61 -0
  39. data/lib/generated/gobl/tax/{category.rb → category_def.rb} +11 -11
  40. data/lib/generated/gobl/tax/combo.rb +5 -0
  41. data/lib/generated/gobl/tax/correction_definition.rb +1 -1
  42. data/lib/generated/gobl/tax/correction_set.rb +13 -0
  43. data/lib/generated/gobl/tax/identity.rb +3 -3
  44. data/lib/generated/gobl/tax/{rate.rb → rate_def.rb} +11 -16
  45. data/lib/generated/gobl/tax/rate_total.rb +5 -0
  46. data/lib/generated/gobl/tax/{rate_value.rb → rate_value_def.rb} +4 -4
  47. data/lib/generated/gobl/tax/{regime.rb → regime_def.rb} +23 -13
  48. data/lib/generated/gobl/tax/scenario.rb +20 -10
  49. data/lib/generated/gobl/tax/scenario_set.rb +1 -1
  50. data/lib/generated/gobl/tax/source.rb +1 -1
  51. data/lib/generated/gobl/tax/tag_set.rb +28 -0
  52. data/lib/gobl/extensions/bill/invoice_helper.rb +6 -36
  53. data/lib/gobl/extensions/envelope_helper.rb +4 -0
  54. data/lib/gobl/version.rb +1 -1
  55. data/lib/gobl.rb +3 -2
  56. metadata +15 -11
  57. data/lib/generated/gobl/bill/document_reference.rb +0 -36
  58. data/lib/generated/gobl/bill/preceding.rb +0 -78
  59. data/lib/generated/gobl/cbc/code_definition.rb +0 -37
  60. data/lib/gobl/extensions/bill/scenario_summary.rb +0 -25
data/data/regimes/es.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://gobl.org/draft-0/tax/regime",
2
+ "$schema": "https://gobl.org/draft-0/tax/regime-def",
3
3
  "name": {
4
4
  "en": "Spain",
5
5
  "es": "España"
@@ -9,473 +9,113 @@
9
9
  "currency": "EUR",
10
10
  "tags": [
11
11
  {
12
- "key": "simplified",
13
- "name": {
14
- "de": "Vereinfachte Rechnung",
15
- "en": "Simplified Invoice",
16
- "es": "Factura Simplificada",
17
- "it": "Fattura Semplificata"
18
- },
19
- "desc": {
20
- "de": "Wird für B2C-Transaktionen verwendet, wenn die Kundendaten nicht verfügbar sind. Bitte wenden Sie sich an die örtlichen Behörden, um die Grenzwerte zu ermitteln.",
21
- "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
22
- "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
23
- "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
24
- }
25
- },
26
- {
27
- "key": "reverse-charge",
28
- "name": {
29
- "de": "Umkehr der Steuerschuld",
30
- "en": "Reverse Charge",
31
- "es": "Inversión del Sujeto Pasivo",
32
- "it": "Inversione del soggetto passivo"
33
- }
34
- },
35
- {
36
- "key": "self-billed",
37
- "name": {
38
- "de": "Rechnung durch den Leistungsempfänger",
39
- "en": "Self-billed",
40
- "es": "Facturación por el destinatario",
41
- "it": "Autofattura"
42
- }
43
- },
44
- {
45
- "key": "customer-rates",
46
- "name": {
47
- "de": "Kundensätze",
48
- "en": "Customer rates",
49
- "es": "Tarifas aplicables al destinatario",
50
- "it": "Aliquote applicabili al destinatario"
51
- }
52
- },
53
- {
54
- "key": "partial",
55
- "name": {
56
- "de": "Teilweise",
57
- "en": "Partial",
58
- "es": "Parcial",
59
- "it": "Parziale"
60
- }
61
- },
62
- {
63
- "key": "copy",
64
- "name": {
65
- "en": "Copy",
66
- "es": "Copia"
67
- }
68
- },
69
- {
70
- "key": "summary",
71
- "name": {
72
- "en": "Summary",
73
- "es": "Recapitulativa"
74
- }
75
- },
76
- {
77
- "key": "simplified-scheme",
78
- "name": {
79
- "en": "Simplified tax scheme",
80
- "es": "Contribuyente en régimen simplificado"
81
- }
82
- },
83
- {
84
- "key": "facturae",
85
- "name": {
86
- "en": "FacturaE",
87
- "es": "FacturaE"
88
- },
89
- "desc": {
90
- "en": "Invoice must comply with the FacturaE standard.",
91
- "es": "La factura debe cumplir con el estándar FacturaE."
92
- }
93
- },
94
- {
95
- "key": "ticketbai",
96
- "name": {
97
- "en": "TicketBAI",
98
- "es": "TicketBAI"
99
- },
100
- "desc": {
101
- "en": "Invoice must comply with the TicketBAI specifications.",
102
- "es": "La factura debe cumplir con el estándar TicketBAI."
103
- }
104
- },
105
- {
106
- "key": "travel-agency",
107
- "name": {
108
- "en": "Special scheme for travel agencies",
109
- "es": "Régimen especial de las agencias de viajes"
110
- }
111
- },
112
- {
113
- "key": "second-hand-goods",
114
- "name": {
115
- "en": "Special scheme for second-hand goods",
116
- "es": "Régimen especial de los bienes usados"
117
- }
118
- },
119
- {
120
- "key": "art",
121
- "name": {
122
- "en": "Special scheme of works of art",
123
- "es": "Régimen especial de los objetos de arte"
124
- }
125
- },
126
- {
127
- "key": "antiques",
128
- "name": {
129
- "en": "Special scheme of antiques and collectables",
130
- "es": "Régimen especial de las antigüedades y objetos de colección"
131
- }
132
- },
133
- {
134
- "key": "cash-basis",
135
- "name": {
136
- "en": "Special scheme on cash basis",
137
- "es": "Régimen especial del criterio de caja"
138
- }
139
- }
140
- ],
141
- "extensions": [
142
- {
143
- "key": "es-facturae-correction",
144
- "name": {
145
- "en": "FacturaE Change",
146
- "es": "Cambio de FacturaE"
147
- },
148
- "desc": {
149
- "en": "FacturaE requires a specific and single code that explains why the previous invoice is being corrected.",
150
- "es": "FacturaE requiere un código específico y único que explique por qué se está corrigiendo la factura anterior."
151
- },
152
- "codes": [
153
- {
154
- "code": "01",
155
- "name": {
156
- "en": "Invoice code",
157
- "es": "Número de la factura"
158
- }
159
- },
160
- {
161
- "code": "02",
162
- "name": {
163
- "en": "Invoice series",
164
- "es": "Serie de la factura"
165
- }
166
- },
167
- {
168
- "code": "03",
169
- "name": {
170
- "en": "Issue date",
171
- "es": "Fecha expedición"
172
- }
173
- },
174
- {
175
- "code": "04",
176
- "name": {
177
- "en": "Name and surnames/Corporate name - Issuer (Sender)",
178
- "es": "Nombre y apellidos/Razón Social-Emisor"
179
- }
180
- },
181
- {
182
- "code": "05",
183
- "name": {
184
- "en": "Name and surnames/Corporate name - Receiver",
185
- "es": "Nombre y apellidos/Razón Social-Receptor"
186
- }
187
- },
188
- {
189
- "code": "06",
190
- "name": {
191
- "en": "Issuer's Tax Identification Number",
192
- "es": "Identificación fiscal Emisor/obligado"
193
- }
194
- },
195
- {
196
- "code": "07",
197
- "name": {
198
- "en": "Receiver's Tax Identification Number",
199
- "es": "Identificación fiscal Receptor"
200
- }
201
- },
202
- {
203
- "code": "08",
204
- "name": {
205
- "en": "Supplier's address",
206
- "es": "Domicilio Emisor/Obligado"
207
- }
208
- },
209
- {
210
- "code": "09",
211
- "name": {
212
- "en": "Customer's address",
213
- "es": "Domicilio Receptor"
214
- }
215
- },
216
- {
217
- "code": "10",
218
- "name": {
219
- "en": "Item line",
220
- "es": "Detalle Operación"
221
- }
222
- },
223
- {
224
- "code": "11",
225
- "name": {
226
- "en": "Applicable Tax Rate",
227
- "es": "Porcentaje impositivo a aplicar"
228
- }
229
- },
230
- {
231
- "code": "12",
232
- "name": {
233
- "en": "Applicable Tax Amount",
234
- "es": "Cuota tributaria a aplicar"
235
- }
236
- },
237
- {
238
- "code": "13",
239
- "name": {
240
- "en": "Applicable Date/Period",
241
- "es": "Fecha/Periodo a aplicar"
242
- }
243
- },
244
- {
245
- "code": "14",
246
- "name": {
247
- "en": "Invoice Class",
248
- "es": "Clase de factura"
249
- }
250
- },
251
- {
252
- "code": "15",
253
- "name": {
254
- "en": "Legal literals",
255
- "es": "Literales legales"
256
- }
257
- },
258
- {
259
- "code": "16",
260
- "name": {
261
- "en": "Taxable Base",
262
- "es": "Base imponible"
263
- }
264
- },
265
- {
266
- "code": "80",
267
- "name": {
268
- "en": "Calculation of tax outputs",
269
- "es": "Cálculo de cuotas repercutidas"
270
- }
271
- },
272
- {
273
- "code": "81",
274
- "name": {
275
- "en": "Calculation of tax inputs",
276
- "es": "Cálculo de cuotas retenidas"
277
- }
278
- },
279
- {
280
- "code": "82",
281
- "name": {
282
- "en": "Taxable Base modified due to return of packages and packaging materials",
283
- "es": "Base imponible modificada por devolución de envases / embalajes"
284
- }
285
- },
286
- {
287
- "code": "83",
288
- "name": {
289
- "en": "Taxable Base modified due to discounts and rebates",
290
- "es": "Base imponible modificada por descuentos y bonificaciones"
291
- }
292
- },
293
- {
294
- "code": "84",
295
- "name": {
296
- "en": "Taxable Base modified due to firm court ruling or administrative decision",
297
- "es": "Base imponible modificada por resolución firme, judicial o administrativa"
298
- }
299
- },
300
- {
301
- "code": "85",
302
- "name": {
303
- "en": "Taxable Base modified due to unpaid outputs where there is a judgement opening insolvency proceedings",
304
- "es": "Base imponible modificada cuotas repercutidas no satisfechas. Auto de declaración de concurso"
305
- }
306
- }
307
- ]
308
- },
309
- {
310
- "key": "es-tbai-product",
311
- "name": {
312
- "en": "TicketBAI Product Key",
313
- "es": "Clave de Producto TicketBAI"
314
- },
315
- "desc": {
316
- "en": "Product keys are used by TicketBAI to differentiate between -exported- goods\nand services. It may be useful to classify all products regardless of wether\nthey are exported or not.\n\nThere is an additional exception case for goods that are resold without modification\nwhen the supplier is in the simplified tax regime. For must purposes this special\ncase can be ignored."
317
- },
318
- "keys": [
319
- {
320
- "key": "goods",
321
- "name": {
322
- "en": "Delivery of goods",
323
- "es": "Entrega de bienes"
324
- }
325
- },
326
- {
327
- "key": "services",
328
- "name": {
329
- "en": "Provision of services",
330
- "es": "Prestacion de servicios"
331
- }
332
- },
333
- {
334
- "key": "resale",
335
- "name": {
336
- "en": "Resale of goods without modification by vendor in the simplified regime",
337
- "es": "Reventa de bienes sin modificación por vendedor en regimen simplificado"
338
- }
339
- }
340
- ]
341
- },
342
- {
343
- "key": "es-tbai-exemption",
344
- "name": {
345
- "en": "TicketBAI Exemption code",
346
- "es": "Código de Exención de TicketBAI"
347
- },
348
- "desc": {
349
- "en": "Codes used by TicketBAI for both \"exempt\", \"not-subject\", and reverse\ncharge transactions. In the TicketBAI format these are separated,\nbut in order to simplify GOBL and be more closely aligned with\nother countries we've combined them into one."
350
- },
351
- "codes": [
352
- {
353
- "code": "E1",
354
- "name": {
355
- "en": "Exempt: pursuant to Article 20 of the Foral VAT Law",
356
- "es": "Exenta: por el artículo 20 de la Norma Foral del IVA"
357
- }
358
- },
359
- {
360
- "code": "E2",
361
- "name": {
362
- "en": "Exempt: pursuant to Article 21 of the Foral VAT Law",
363
- "es": "Exenta: por el artículo 21 de la Norma Foral del IVA"
364
- }
365
- },
12
+ "schema": "bill/invoice",
13
+ "list": [
366
14
  {
367
- "code": "E3",
15
+ "key": "simplified",
368
16
  "name": {
369
- "en": "Exempt: pursuant to Article 22 of the Foral VAT Law",
370
- "es": "Exenta: por el artículo 22 de la Norma Foral del IVA"
17
+ "de": "Vereinfachte Rechnung",
18
+ "en": "Simplified Invoice",
19
+ "es": "Factura Simplificada",
20
+ "it": "Fattura Semplificata"
21
+ },
22
+ "desc": {
23
+ "de": "Wird für B2C-Transaktionen verwendet, wenn die Kundendaten nicht verfügbar sind. Bitte wenden Sie sich an die örtlichen Behörden, um die Grenzwerte zu ermitteln.",
24
+ "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
25
+ "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
26
+ "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
371
27
  }
372
28
  },
373
29
  {
374
- "code": "E4",
30
+ "key": "reverse-charge",
375
31
  "name": {
376
- "en": "Exempt: pursuant to Articles 23 and 24 of the Foral VAT Law",
377
- "es": "Exenta: por el artículos 23 y 24 de la Norma Foral del IVA"
32
+ "de": "Umkehr der Steuerschuld",
33
+ "en": "Reverse Charge",
34
+ "es": "Inversión del Sujeto Pasivo",
35
+ "it": "Inversione del soggetto passivo"
378
36
  }
379
37
  },
380
38
  {
381
- "code": "E5",
39
+ "key": "self-billed",
382
40
  "name": {
383
- "en": "Exempt: pursuant to Article 25 of the Foral VAT law",
384
- "es": "Exenta: por el artículo 25 de la Norma Foral del IVA"
41
+ "de": "Rechnung durch den Leistungsempfänger",
42
+ "en": "Self-billed",
43
+ "es": "Facturación por el destinatario",
44
+ "it": "Autofattura"
385
45
  }
386
46
  },
387
47
  {
388
- "code": "E6",
48
+ "key": "customer-rates",
389
49
  "name": {
390
- "en": "Exempt: pursuant to other reasons",
391
- "es": "Exenta: por otra causa"
50
+ "de": "Kundensätze",
51
+ "en": "Customer rates",
52
+ "es": "Tarifas aplicables al destinatario",
53
+ "it": "Aliquote applicabili al destinatario"
392
54
  }
393
55
  },
394
56
  {
395
- "code": "OT",
57
+ "key": "partial",
396
58
  "name": {
397
- "en": "Not subject: pursuant to Article 7 of the VAT Law - other cases of non-subject",
398
- "es": "No sujeto: por el artículo 7 de la Ley del IVA - otros supuestos de no sujeción"
59
+ "de": "Teilweise",
60
+ "en": "Partial",
61
+ "es": "Parcial",
62
+ "it": "Parziale"
399
63
  }
400
64
  },
401
65
  {
402
- "code": "RL",
66
+ "key": "copy",
403
67
  "name": {
404
- "en": "Not subject: pursuant to localization rules",
405
- "es": "No sujeto: por reglas de localización"
68
+ "en": "Copy",
69
+ "es": "Copia"
406
70
  }
407
71
  },
408
72
  {
409
- "code": "VT",
73
+ "key": "summary",
410
74
  "name": {
411
- "en": "Not subject: sales made on behalf of third parties (amount not computable for VAT or IRPF purposes)",
412
- "es": "No sujeto: ventas realizadas por cuenta de terceros (importe no computable a efectos de IVA ni de IRPF)"
75
+ "en": "Summary",
76
+ "es": "Recapitulativa"
413
77
  }
414
78
  },
415
79
  {
416
- "code": "IE",
80
+ "key": "simplified-scheme",
417
81
  "name": {
418
- "en": "Not subject in the TAI due to localization rules, but foreign tax, IPS/IGIC or VAT from another EU member state is passed on",
419
- "es": "No sujeto en el TAI por reglas de localización, pero repercute impuesto extranjero, IPS/IGIC o IVA de otro estado miembro UE"
82
+ "en": "Simplified tax scheme",
83
+ "es": "Contribuyente en régimen simplificado"
420
84
  }
421
85
  },
422
86
  {
423
- "code": "S2",
424
- "name": {
425
- "en": "Subject and not exempt: with reverse charge",
426
- "es": "Sujeto y no exenta: con inversión del sujeto pasivo"
427
- }
428
- }
429
- ]
430
- },
431
- {
432
- "key": "es-tbai-correction",
433
- "name": {
434
- "en": "TicketBAI Rectification Type Code",
435
- "es": "TicketBAI Código de Factura Rectificativa"
436
- },
437
- "desc": {
438
- "en": "Corrected or rectified invoices that need to be sent in the TicketBAI format\nrequire a specific type code to be defined alongside the preceding invoice\ndata."
439
- },
440
- "codes": [
441
- {
442
- "code": "R1",
87
+ "key": "travel-agency",
443
88
  "name": {
444
- "en": "Rectified invoice: error based on law and Article 80 One, Two and Six of the Provincial Tax Law of VAT",
445
- "es": "Factura rectificativa: error fundado en derecho y Art. 80 Uno, Dos y Seis de la Norma Foral del IVA",
446
- "eu": "Faktura zuzentzailea: zuzenbidean oinarritutako akatsa eta BEZaren Foru Arauaren 80.artikuluko Bat, Bi eta Sei"
89
+ "en": "Special scheme for travel agencies",
90
+ "es": "Régimen especial de las agencias de viajes"
447
91
  }
448
92
  },
449
93
  {
450
- "code": "R2",
94
+ "key": "second-hand-goods",
451
95
  "name": {
452
- "en": "Rectified invoice: error based on law and Article 80 Three of the Provincial Tax Law of VAT",
453
- "es": "Factura rectificativa: artículo 80 Tres de la Norma Foral del IVA",
454
- "eu": "Faktura zuzentzailea: BEZari buruzko Foru Arauko 80. artikuluko Hiru"
96
+ "en": "Special scheme for second-hand goods",
97
+ "es": "Régimen especial de los bienes usados"
455
98
  }
456
99
  },
457
100
  {
458
- "code": "R3",
101
+ "key": "art",
459
102
  "name": {
460
- "en": "Rectified invoice: error based on law and Article 80 Four of the Provincial Tax Law of VAT",
461
- "es": "Factura rectificativa: artículo 80 Cuatro de la Norma Foral del IVA",
462
- "eu": "Faktura zuzentzailea: BEZari buruzko Foru Arauko 80. artikuluko Lau"
103
+ "en": "Special scheme of works of art",
104
+ "es": "Régimen especial de los objetos de arte"
463
105
  }
464
106
  },
465
107
  {
466
- "code": "R4",
108
+ "key": "antiques",
467
109
  "name": {
468
- "en": "Rectified invoice: Other",
469
- "es": "Factura rectificativa: Resto",
470
- "eu": "Faktura zuzentzailea: Gainerakoak"
110
+ "en": "Special scheme of antiques and collectables",
111
+ "es": "Régimen especial de las antigüedades y objetos de colección"
471
112
  }
472
113
  },
473
114
  {
474
- "code": "R5",
115
+ "key": "cash-basis",
475
116
  "name": {
476
- "en": "Rectified invoice: simplified invoices",
477
- "es": "Factura rectificativa: facturas simplificadas",
478
- "eu": "Faktura zuzentzaile: faktura erraztuetan"
117
+ "en": "Special scheme on cash basis",
118
+ "es": "Régimen especial del criterio de caja"
479
119
  }
480
120
  }
481
121
  ]
@@ -483,43 +123,31 @@
483
123
  ],
484
124
  "identity_keys": [
485
125
  {
486
- "key": "es-passport",
126
+ "key": "passport",
487
127
  "name": {
488
128
  "en": "Passport",
489
129
  "es": "Pasaporte"
490
- },
491
- "map": {
492
- "ticketbai-id-type": "03"
493
130
  }
494
131
  },
495
132
  {
496
- "key": "es-foreign-id",
133
+ "key": "foreign",
497
134
  "name": {
498
135
  "en": "National ID Card or similar from a foreign country",
499
136
  "es": "Documento oficial de identificación expedido por el país o territorio de residencia"
500
- },
501
- "map": {
502
- "ticketbai-id-type": "04"
503
137
  }
504
138
  },
505
139
  {
506
- "key": "es-resident",
140
+ "key": "resident",
507
141
  "name": {
508
142
  "en": "Residential permit",
509
143
  "es": "Certificado de residencia"
510
- },
511
- "map": {
512
- "ticketbai-id-type": "05"
513
144
  }
514
145
  },
515
146
  {
516
- "key": "es-other",
147
+ "key": "other",
517
148
  "name": {
518
149
  "en": "An other type of source not listed",
519
150
  "es": "Otro documento probatorio"
520
- },
521
- "map": {
522
- "ticketbai-id-type": "06"
523
151
  }
524
152
  }
525
153
  ],
@@ -527,93 +155,6 @@
527
155
  {
528
156
  "schema": "bill/invoice",
529
157
  "list": [
530
- {
531
- "type": [
532
- "standard",
533
- "corrective",
534
- "credit-note",
535
- "debit-note"
536
- ],
537
- "codes": {
538
- "facturae-invoice-document-type": "FC"
539
- }
540
- },
541
- {
542
- "tags": [
543
- "simplified"
544
- ],
545
- "codes": {
546
- "facturae-invoice-document-type": "FA"
547
- }
548
- },
549
- {
550
- "tags": [
551
- "self-billed"
552
- ],
553
- "codes": {
554
- "facturae-invoice-document-type": "AF"
555
- }
556
- },
557
- {
558
- "type": [
559
- "standard"
560
- ],
561
- "codes": {
562
- "facturae-invoice-class": "OO"
563
- }
564
- },
565
- {
566
- "type": [
567
- "corrective",
568
- "credit-note",
569
- "debit-note"
570
- ],
571
- "codes": {
572
- "facturae-invoice-class": "OR"
573
- }
574
- },
575
- {
576
- "tags": [
577
- "summary"
578
- ],
579
- "codes": {
580
- "facturae-invoice-class": "OC"
581
- }
582
- },
583
- {
584
- "type": [
585
- "standard"
586
- ],
587
- "tags": [
588
- "copy"
589
- ],
590
- "codes": {
591
- "facturae-invoice-class": "CO"
592
- }
593
- },
594
- {
595
- "type": [
596
- "corrective"
597
- ],
598
- "tags": [
599
- "copy"
600
- ],
601
- "codes": {
602
- "facturae-invoice-class": "CR"
603
- }
604
- },
605
- {
606
- "type": [
607
- "standard"
608
- ],
609
- "tags": [
610
- "copy",
611
- "summary"
612
- ],
613
- "codes": {
614
- "facturae-invoice-class": "CC"
615
- }
616
- },
617
158
  {
618
159
  "tags": [
619
160
  "reverse-charge"
@@ -704,10 +245,6 @@
704
245
  "credit-note",
705
246
  "corrective",
706
247
  "debit-note"
707
- ],
708
- "extensions": [
709
- "es-facturae-correction",
710
- "es-tbai-correction"
711
248
  ]
712
249
  }
713
250
  ],
@@ -863,19 +400,9 @@
863
400
  "en": "Exempt",
864
401
  "es": "Exenta"
865
402
  },
866
- "exempt": true,
867
- "extensions": [
868
- "es-tbai-exemption"
869
- ]
403
+ "exempt": true
870
404
  }
871
- ],
872
- "extensions": [
873
- "es-tbai-product",
874
- "es-tbai-exemption"
875
- ],
876
- "map": {
877
- "facturae-tax-type-code": "01"
878
- }
405
+ ]
879
406
  },
880
407
  {
881
408
  "code": "IGIC",
@@ -924,10 +451,7 @@
924
451
  }
925
452
  ]
926
453
  }
927
- ],
928
- "map": {
929
- "facturae-tax-type-code": "03"
930
- }
454
+ ]
931
455
  },
932
456
  {
933
457
  "code": "IPSI",
@@ -938,9 +462,6 @@
938
462
  "title": {
939
463
  "en": "Production, Services, and Import Tax",
940
464
  "es": "Impuesto sobre la Producción, los Servicios y la Importación"
941
- },
942
- "map": {
943
- "facturae-tax-type-code": "02"
944
465
  }
945
466
  },
946
467
  {
@@ -1019,10 +540,7 @@
1019
540
  }
1020
541
  ]
1021
542
  }
1022
- ],
1023
- "map": {
1024
- "facturae-tax-type-code": "04"
1025
- }
543
+ ]
1026
544
  }
1027
545
  ]
1028
546
  }