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/fr.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": "France",
5
5
  "fr": "La France"
@@ -12,55 +12,60 @@
12
12
  "currency": "EUR",
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
  "scenarios": [
data/data/regimes/gb.json CHANGED
@@ -1,62 +1,71 @@
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": "United Kingdom"
5
5
  },
6
6
  "time_zone": "Europe/London",
7
7
  "country": "GB",
8
+ "alt_country_codes": [
9
+ "XI",
10
+ "XU"
11
+ ],
8
12
  "currency": "GBP",
9
13
  "tags": [
10
14
  {
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
- }
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
+ ]
60
69
  }
61
70
  ],
62
71
  "scenarios": [