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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 527b72503f9b68fec83d2f531032d5952cf2b32e1bf2582dec32b386bdb6d5b9
4
- data.tar.gz: 9312da9e52c38cfe0c6eba448907e5a1b99fd9041d8e1f4efe34273e99eef94c
3
+ metadata.gz: 18a9cc2bc2c5f7e642c6cee9c0ef8943c6f4abe2c295db5660a6cb517ea7f79a
4
+ data.tar.gz: 3309cfefa7f4d83bb60500a6c636df8be1548072241b1864d2fa62f2e1b3cee1
5
5
  SHA512:
6
- metadata.gz: c6ad6723bb069dd944ab565dc32a1b0bd4fd401e7a375ba73a3f5eec8a963bfafbfff48fa5e0763e8c227d0f7efecb62df5495b2fb56a09aa68d24be654cd004
7
- data.tar.gz: 7f387f22afd06dcaf6c2aa295ba315b0f3f934928e942c32604f81ec960c29a43307f1394ec41c953b14dd7417372709d0f9a2dc8e1ad7efc56192531674a2c3
6
+ metadata.gz: 8c5329f96d72df587a2b27c5dc02dd4536f884593fa3e35a520f9ef97624720edb04d7c5fbd997cc955d9e2d5a08089dbaaf7deecd050afa184f4548a8e94a70
7
+ data.tar.gz: a08c7d72beb3ba37044f4c66342c770c422d6f0556092abbbf31361a00c6c66c846de60c1d5d6a74e4d0a30015756d18dc70e7afdc87fb89bc2ce9f47372519a
data/data/regimes/at.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": "Austria"
5
5
  },
@@ -8,55 +8,60 @@
8
8
  "currency": "EUR",
9
9
  "tags": [
10
10
  {
11
- "key": "simplified",
12
- "name": {
13
- "de": "Vereinfachte Rechnung",
14
- "en": "Simplified Invoice",
15
- "es": "Factura Simplificada",
16
- "it": "Fattura Semplificata"
17
- },
18
- "desc": {
19
- "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.",
20
- "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
21
- "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
22
- "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
23
- }
24
- },
25
- {
26
- "key": "reverse-charge",
27
- "name": {
28
- "de": "Umkehr der Steuerschuld",
29
- "en": "Reverse Charge",
30
- "es": "Inversión del Sujeto Pasivo",
31
- "it": "Inversione del soggetto passivo"
32
- }
33
- },
34
- {
35
- "key": "self-billed",
36
- "name": {
37
- "de": "Rechnung durch den Leistungsempfänger",
38
- "en": "Self-billed",
39
- "es": "Facturación por el destinatario",
40
- "it": "Autofattura"
41
- }
42
- },
43
- {
44
- "key": "customer-rates",
45
- "name": {
46
- "de": "Kundensätze",
47
- "en": "Customer rates",
48
- "es": "Tarifas aplicables al destinatario",
49
- "it": "Aliquote applicabili al destinatario"
50
- }
51
- },
52
- {
53
- "key": "partial",
54
- "name": {
55
- "de": "Teilweise",
56
- "en": "Partial",
57
- "es": "Parcial",
58
- "it": "Parziale"
59
- }
11
+ "schema": "bill/invoice",
12
+ "list": [
13
+ {
14
+ "key": "simplified",
15
+ "name": {
16
+ "de": "Vereinfachte Rechnung",
17
+ "en": "Simplified Invoice",
18
+ "es": "Factura Simplificada",
19
+ "it": "Fattura Semplificata"
20
+ },
21
+ "desc": {
22
+ "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.",
23
+ "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
24
+ "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
25
+ "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
26
+ }
27
+ },
28
+ {
29
+ "key": "reverse-charge",
30
+ "name": {
31
+ "de": "Umkehr der Steuerschuld",
32
+ "en": "Reverse Charge",
33
+ "es": "Inversión del Sujeto Pasivo",
34
+ "it": "Inversione del soggetto passivo"
35
+ }
36
+ },
37
+ {
38
+ "key": "self-billed",
39
+ "name": {
40
+ "de": "Rechnung durch den Leistungsempfänger",
41
+ "en": "Self-billed",
42
+ "es": "Facturación por el destinatario",
43
+ "it": "Autofattura"
44
+ }
45
+ },
46
+ {
47
+ "key": "customer-rates",
48
+ "name": {
49
+ "de": "Kundensätze",
50
+ "en": "Customer rates",
51
+ "es": "Tarifas aplicables al destinatario",
52
+ "it": "Aliquote applicabili al destinatario"
53
+ }
54
+ },
55
+ {
56
+ "key": "partial",
57
+ "name": {
58
+ "de": "Teilweise",
59
+ "en": "Partial",
60
+ "es": "Parcial",
61
+ "it": "Parziale"
62
+ }
63
+ }
64
+ ]
60
65
  }
61
66
  ],
62
67
  "scenarios": [
data/data/regimes/be.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": "Belgium"
5
5
  },
@@ -8,55 +8,60 @@
8
8
  "currency": "EUR",
9
9
  "tags": [
10
10
  {
11
- "key": "simplified",
12
- "name": {
13
- "de": "Vereinfachte Rechnung",
14
- "en": "Simplified Invoice",
15
- "es": "Factura Simplificada",
16
- "it": "Fattura Semplificata"
17
- },
18
- "desc": {
19
- "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.",
20
- "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
21
- "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
22
- "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
23
- }
24
- },
25
- {
26
- "key": "reverse-charge",
27
- "name": {
28
- "de": "Umkehr der Steuerschuld",
29
- "en": "Reverse Charge",
30
- "es": "Inversión del Sujeto Pasivo",
31
- "it": "Inversione del soggetto passivo"
32
- }
33
- },
34
- {
35
- "key": "self-billed",
36
- "name": {
37
- "de": "Rechnung durch den Leistungsempfänger",
38
- "en": "Self-billed",
39
- "es": "Facturación por el destinatario",
40
- "it": "Autofattura"
41
- }
42
- },
43
- {
44
- "key": "customer-rates",
45
- "name": {
46
- "de": "Kundensätze",
47
- "en": "Customer rates",
48
- "es": "Tarifas aplicables al destinatario",
49
- "it": "Aliquote applicabili al destinatario"
50
- }
51
- },
52
- {
53
- "key": "partial",
54
- "name": {
55
- "de": "Teilweise",
56
- "en": "Partial",
57
- "es": "Parcial",
58
- "it": "Parziale"
59
- }
11
+ "schema": "bill/invoice",
12
+ "list": [
13
+ {
14
+ "key": "simplified",
15
+ "name": {
16
+ "de": "Vereinfachte Rechnung",
17
+ "en": "Simplified Invoice",
18
+ "es": "Factura Simplificada",
19
+ "it": "Fattura Semplificata"
20
+ },
21
+ "desc": {
22
+ "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.",
23
+ "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
24
+ "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
25
+ "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
26
+ }
27
+ },
28
+ {
29
+ "key": "reverse-charge",
30
+ "name": {
31
+ "de": "Umkehr der Steuerschuld",
32
+ "en": "Reverse Charge",
33
+ "es": "Inversión del Sujeto Pasivo",
34
+ "it": "Inversione del soggetto passivo"
35
+ }
36
+ },
37
+ {
38
+ "key": "self-billed",
39
+ "name": {
40
+ "de": "Rechnung durch den Leistungsempfänger",
41
+ "en": "Self-billed",
42
+ "es": "Facturación por el destinatario",
43
+ "it": "Autofattura"
44
+ }
45
+ },
46
+ {
47
+ "key": "customer-rates",
48
+ "name": {
49
+ "de": "Kundensätze",
50
+ "en": "Customer rates",
51
+ "es": "Tarifas aplicables al destinatario",
52
+ "it": "Aliquote applicabili al destinatario"
53
+ }
54
+ },
55
+ {
56
+ "key": "partial",
57
+ "name": {
58
+ "de": "Teilweise",
59
+ "en": "Partial",
60
+ "es": "Parcial",
61
+ "it": "Parziale"
62
+ }
63
+ }
64
+ ]
60
65
  }
61
66
  ],
62
67
  "scenarios": [
data/data/regimes/ca.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": "Canada"
5
5
  },
data/data/regimes/ch.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": "Switzerland"
5
5
  },
@@ -8,55 +8,60 @@
8
8
  "currency": "CHF",
9
9
  "tags": [
10
10
  {
11
- "key": "simplified",
12
- "name": {
13
- "de": "Vereinfachte Rechnung",
14
- "en": "Simplified Invoice",
15
- "es": "Factura Simplificada",
16
- "it": "Fattura Semplificata"
17
- },
18
- "desc": {
19
- "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.",
20
- "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
21
- "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
22
- "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
23
- }
24
- },
25
- {
26
- "key": "reverse-charge",
27
- "name": {
28
- "de": "Umkehr der Steuerschuld",
29
- "en": "Reverse Charge",
30
- "es": "Inversión del Sujeto Pasivo",
31
- "it": "Inversione del soggetto passivo"
32
- }
33
- },
34
- {
35
- "key": "self-billed",
36
- "name": {
37
- "de": "Rechnung durch den Leistungsempfänger",
38
- "en": "Self-billed",
39
- "es": "Facturación por el destinatario",
40
- "it": "Autofattura"
41
- }
42
- },
43
- {
44
- "key": "customer-rates",
45
- "name": {
46
- "de": "Kundensätze",
47
- "en": "Customer rates",
48
- "es": "Tarifas aplicables al destinatario",
49
- "it": "Aliquote applicabili al destinatario"
50
- }
51
- },
52
- {
53
- "key": "partial",
54
- "name": {
55
- "de": "Teilweise",
56
- "en": "Partial",
57
- "es": "Parcial",
58
- "it": "Parziale"
59
- }
11
+ "schema": "bill/invoice",
12
+ "list": [
13
+ {
14
+ "key": "simplified",
15
+ "name": {
16
+ "de": "Vereinfachte Rechnung",
17
+ "en": "Simplified Invoice",
18
+ "es": "Factura Simplificada",
19
+ "it": "Fattura Semplificata"
20
+ },
21
+ "desc": {
22
+ "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.",
23
+ "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
24
+ "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
25
+ "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
26
+ }
27
+ },
28
+ {
29
+ "key": "reverse-charge",
30
+ "name": {
31
+ "de": "Umkehr der Steuerschuld",
32
+ "en": "Reverse Charge",
33
+ "es": "Inversión del Sujeto Pasivo",
34
+ "it": "Inversione del soggetto passivo"
35
+ }
36
+ },
37
+ {
38
+ "key": "self-billed",
39
+ "name": {
40
+ "de": "Rechnung durch den Leistungsempfänger",
41
+ "en": "Self-billed",
42
+ "es": "Facturación por el destinatario",
43
+ "it": "Autofattura"
44
+ }
45
+ },
46
+ {
47
+ "key": "customer-rates",
48
+ "name": {
49
+ "de": "Kundensätze",
50
+ "en": "Customer rates",
51
+ "es": "Tarifas aplicables al destinatario",
52
+ "it": "Aliquote applicabili al destinatario"
53
+ }
54
+ },
55
+ {
56
+ "key": "partial",
57
+ "name": {
58
+ "de": "Teilweise",
59
+ "en": "Partial",
60
+ "es": "Parcial",
61
+ "it": "Parziale"
62
+ }
63
+ }
64
+ ]
60
65
  }
61
66
  ],
62
67
  "scenarios": [
data/data/regimes/co.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": "Colombia",
5
5
  "es": "Colombia"
@@ -12,55 +12,60 @@
12
12
  "currency": "COP",
13
13
  "tags": [
14
14
  {
15
- "key": "simplified",
16
- "name": {
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."
27
- }
28
- },
29
- {
30
- "key": "reverse-charge",
31
- "name": {
32
- "de": "Umkehr der Steuerschuld",
33
- "en": "Reverse Charge",
34
- "es": "Inversión del Sujeto Pasivo",
35
- "it": "Inversione del soggetto passivo"
36
- }
37
- },
38
- {
39
- "key": "self-billed",
40
- "name": {
41
- "de": "Rechnung durch den Leistungsempfänger",
42
- "en": "Self-billed",
43
- "es": "Facturación por el destinatario",
44
- "it": "Autofattura"
45
- }
46
- },
47
- {
48
- "key": "customer-rates",
49
- "name": {
50
- "de": "Kundensätze",
51
- "en": "Customer rates",
52
- "es": "Tarifas aplicables al destinatario",
53
- "it": "Aliquote applicabili al destinatario"
54
- }
55
- },
56
- {
57
- "key": "partial",
58
- "name": {
59
- "de": "Teilweise",
60
- "en": "Partial",
61
- "es": "Parcial",
62
- "it": "Parziale"
63
- }
15
+ "schema": "bill/invoice",
16
+ "list": [
17
+ {
18
+ "key": "simplified",
19
+ "name": {
20
+ "de": "Vereinfachte Rechnung",
21
+ "en": "Simplified Invoice",
22
+ "es": "Factura Simplificada",
23
+ "it": "Fattura Semplificata"
24
+ },
25
+ "desc": {
26
+ "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.",
27
+ "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
28
+ "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
29
+ "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
30
+ }
31
+ },
32
+ {
33
+ "key": "reverse-charge",
34
+ "name": {
35
+ "de": "Umkehr der Steuerschuld",
36
+ "en": "Reverse Charge",
37
+ "es": "Inversión del Sujeto Pasivo",
38
+ "it": "Inversione del soggetto passivo"
39
+ }
40
+ },
41
+ {
42
+ "key": "self-billed",
43
+ "name": {
44
+ "de": "Rechnung durch den Leistungsempfänger",
45
+ "en": "Self-billed",
46
+ "es": "Facturación por el destinatario",
47
+ "it": "Autofattura"
48
+ }
49
+ },
50
+ {
51
+ "key": "customer-rates",
52
+ "name": {
53
+ "de": "Kundensätze",
54
+ "en": "Customer rates",
55
+ "es": "Tarifas aplicables al destinatario",
56
+ "it": "Aliquote applicabili al destinatario"
57
+ }
58
+ },
59
+ {
60
+ "key": "partial",
61
+ "name": {
62
+ "de": "Teilweise",
63
+ "en": "Partial",
64
+ "es": "Parcial",
65
+ "it": "Parziale"
66
+ }
67
+ }
68
+ ]
64
69
  }
65
70
  ],
66
71
  "extensions": [
@@ -76,14 +81,18 @@
76
81
  "pattern": "^\\d{5}$"
77
82
  },
78
83
  {
79
- "key": "co-dian-correction",
84
+ "key": "co-dian-credit-code",
80
85
  "name": {
81
- "en": "DIAN Correction Code",
82
- "es": "Código de corrección DIAN"
86
+ "en": "Credit Code",
87
+ "es": "Código de Crédito"
88
+ },
89
+ "desc": {
90
+ "en": "DIAN correction code for credit notes",
91
+ "es": "Código de corrección DIAN para notas de crédito"
83
92
  },
84
- "codes": [
93
+ "values": [
85
94
  {
86
- "code": "1",
95
+ "value": "1",
87
96
  "name": {
88
97
  "en": "Partial refund",
89
98
  "es": "Devolución parcial"
@@ -94,7 +103,7 @@
94
103
  }
95
104
  },
96
105
  {
97
- "code": "2",
106
+ "value": "2",
98
107
  "name": {
99
108
  "en": "Revoked",
100
109
  "es": "Anulación"
@@ -105,7 +114,7 @@
105
114
  }
106
115
  },
107
116
  {
108
- "code": "3",
117
+ "value": "3",
109
118
  "name": {
110
119
  "en": "Discount",
111
120
  "es": "Descuento"
@@ -116,7 +125,7 @@
116
125
  }
117
126
  },
118
127
  {
119
- "code": "4",
128
+ "value": "4",
120
129
  "name": {
121
130
  "en": "Adjustment",
122
131
  "es": "Ajuste"
@@ -127,7 +136,48 @@
127
136
  }
128
137
  },
129
138
  {
130
- "code": "5",
139
+ "value": "5",
140
+ "name": {
141
+ "en": "Other",
142
+ "es": "Otros"
143
+ }
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "key": "co-dian-debit-code",
149
+ "name": {
150
+ "en": "Debit Code",
151
+ "es": "Código de Débito"
152
+ },
153
+ "desc": {
154
+ "en": "DIAN correction code for debit notes",
155
+ "es": "Código de corrección DIAN para notas de débito"
156
+ },
157
+ "values": [
158
+ {
159
+ "value": "1",
160
+ "name": {
161
+ "en": "Interest",
162
+ "es": "Intereses"
163
+ }
164
+ },
165
+ {
166
+ "value": "2",
167
+ "name": {
168
+ "en": "Pending charges",
169
+ "es": "Gastos por cobrar"
170
+ }
171
+ },
172
+ {
173
+ "value": "3",
174
+ "name": {
175
+ "en": "Change in value",
176
+ "es": "Cambio del valor"
177
+ }
178
+ },
179
+ {
180
+ "value": "4",
131
181
  "name": {
132
182
  "en": "Other",
133
183
  "es": "Otros"
@@ -232,10 +282,12 @@
232
282
  {
233
283
  "schema": "bill/invoice",
234
284
  "types": [
235
- "credit-note"
285
+ "credit-note",
286
+ "debit-note"
236
287
  ],
237
288
  "extensions": [
238
- "co-dian-correction"
289
+ "co-dian-credit-code",
290
+ "co-dian-debit-code"
239
291
  ],
240
292
  "reason_required": true,
241
293
  "stamps": [