gobl 0.20.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/data/regimes/at.json +160 -0
- data/data/regimes/be.json +169 -0
- data/data/regimes/ca.json +10 -1
- data/data/regimes/ch.json +158 -0
- data/data/regimes/co.json +179 -169
- data/data/regimes/de.json +63 -49
- data/data/regimes/el.json +204 -0
- data/data/regimes/es.json +84 -557
- data/data/regimes/fr.json +57 -52
- data/data/regimes/gb.json +67 -50
- data/data/regimes/gr.json +591 -0
- data/data/regimes/it.json +62 -1298
- data/data/regimes/mx.json +38 -627
- data/data/regimes/nl.json +63 -50
- data/data/regimes/pl.json +161 -101
- data/data/regimes/pt.json +44 -365
- data/data/regimes/us.json +63 -49
- data/lib/generated/gobl/bill/charge.rb +6 -7
- data/lib/generated/gobl/bill/correction_options.rb +5 -1
- data/lib/generated/gobl/bill/delivery.rb +0 -1
- data/lib/generated/gobl/bill/discount.rb +5 -6
- data/lib/generated/gobl/bill/invoice.rb +51 -12
- data/lib/generated/gobl/bill/line.rb +3 -4
- data/lib/generated/gobl/bill/line_charge.rb +0 -1
- data/lib/generated/gobl/bill/line_discount.rb +0 -1
- data/lib/generated/gobl/bill/ordering.rb +34 -35
- data/lib/generated/gobl/bill/outlay.rb +3 -4
- data/lib/generated/gobl/bill/payment.rb +0 -1
- data/lib/generated/gobl/bill/tax.rb +4 -5
- data/lib/generated/gobl/bill/totals.rb +0 -1
- data/lib/generated/gobl/cal/date.rb +0 -1
- data/lib/generated/gobl/cal/date_time.rb +0 -1
- data/lib/generated/gobl/cal/period.rb +0 -1
- data/lib/generated/gobl/cbc/code.rb +0 -1
- data/lib/generated/gobl/cbc/code_map.rb +0 -1
- data/lib/generated/gobl/cbc/key.rb +0 -1
- data/lib/generated/gobl/cbc/key_definition.rb +4 -10
- data/lib/generated/gobl/cbc/meta.rb +0 -1
- data/lib/generated/gobl/cbc/note.rb +0 -1
- data/lib/generated/gobl/cbc/value_definition.rb +37 -0
- data/lib/generated/gobl/currency/amount.rb +33 -0
- data/lib/generated/gobl/currency/code.rb +118 -105
- data/lib/generated/gobl/currency/exchange_rate.rb +17 -7
- data/lib/generated/gobl/dsig/digest.rb +0 -1
- data/lib/generated/gobl/dsig/signature.rb +0 -1
- data/lib/generated/gobl/envelope.rb +0 -1
- data/lib/generated/gobl/head/header.rb +7 -8
- data/lib/generated/gobl/head/link.rb +43 -0
- data/lib/generated/gobl/head/stamp.rb +0 -1
- data/lib/generated/gobl/i18n/string.rb +0 -1
- data/lib/generated/gobl/l10n/code.rb +0 -1
- data/lib/generated/gobl/l10n/{country_code.rb → iso_country_code.rb} +3 -4
- data/lib/generated/gobl/l10n/tax_country_code.rb +277 -0
- data/lib/generated/gobl/note/message.rb +5 -1
- data/lib/generated/gobl/org/address.rb +5 -7
- data/lib/generated/gobl/org/coordinates.rb +0 -1
- data/lib/generated/gobl/org/document_ref.rb +87 -0
- data/lib/generated/gobl/org/email.rb +3 -4
- data/lib/generated/gobl/org/identity.rb +8 -4
- data/lib/generated/gobl/org/image.rb +3 -4
- data/lib/generated/gobl/org/inbox.rb +3 -4
- data/lib/generated/gobl/org/item.rb +10 -6
- data/lib/generated/gobl/org/name.rb +3 -6
- data/lib/generated/gobl/org/party.rb +8 -5
- data/lib/generated/gobl/org/person.rb +8 -4
- data/lib/generated/gobl/org/registration.rb +11 -3
- data/lib/generated/gobl/org/telephone.rb +3 -4
- data/lib/generated/gobl/org/unit.rb +0 -1
- data/lib/generated/gobl/org/website.rb +4 -5
- data/lib/generated/gobl/pay/advance.rb +8 -4
- data/lib/generated/gobl/pay/card.rb +0 -1
- data/lib/generated/gobl/pay/credit_transfer.rb +0 -1
- data/lib/generated/gobl/pay/direct_debit.rb +0 -1
- data/lib/generated/gobl/pay/due_date.rb +0 -1
- data/lib/generated/gobl/pay/instructions.rb +5 -1
- data/lib/generated/gobl/pay/online.rb +12 -8
- data/lib/generated/gobl/pay/terms.rb +0 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers.rb +0 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers_employee.rb +0 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers_line.rb +0 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_balance.rb +0 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_item.rb +0 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_line.rb +0 -2
- data/lib/generated/gobl/regimes/mx/fuel_account_tax.rb +11 -9
- data/lib/generated/gobl/schema/object.rb +0 -1
- data/lib/generated/gobl/tax/addon_def.rb +61 -0
- data/lib/generated/gobl/tax/{category.rb → category_def.rb} +11 -12
- data/lib/generated/gobl/tax/category_total.rb +0 -1
- data/lib/generated/gobl/tax/combo.rb +6 -2
- data/lib/generated/gobl/tax/correction_definition.rb +1 -2
- data/lib/generated/gobl/tax/correction_set.rb +13 -0
- data/lib/generated/gobl/tax/extensions.rb +0 -1
- data/lib/generated/gobl/tax/identity.rb +13 -19
- data/lib/generated/gobl/tax/{rate.rb → rate_def.rb} +11 -17
- data/lib/generated/gobl/tax/rate_total.rb +6 -2
- data/lib/generated/gobl/tax/rate_total_surcharge.rb +0 -1
- data/lib/generated/gobl/tax/{rate_value.rb → rate_value_def.rb} +9 -5
- data/lib/generated/gobl/tax/{regime.rb → regime_def.rb} +38 -24
- data/lib/generated/gobl/tax/scenario.rb +20 -11
- data/lib/generated/gobl/tax/scenario_set.rb +1 -2
- data/lib/generated/gobl/tax/set.rb +0 -1
- data/lib/generated/gobl/tax/source.rb +1 -2
- data/lib/generated/gobl/tax/tag_set.rb +28 -0
- data/lib/generated/gobl/tax/total.rb +0 -1
- data/lib/gobl/extensions/bill/invoice_helper.rb +6 -36
- data/lib/gobl/extensions/envelope_helper.rb +4 -0
- data/lib/gobl/version.rb +1 -1
- data/lib/gobl.rb +3 -2
- metadata +20 -12
- data/lib/generated/gobl/bill/document_reference.rb +0 -37
- data/lib/generated/gobl/bill/preceding.rb +0 -79
- data/lib/generated/gobl/cbc/code_definition.rb +0 -38
- data/lib/generated/gobl/uuid/uuid.rb +0 -17
- data/lib/gobl/extensions/bill/scenario_summary.rb +0 -25
@@ -0,0 +1,204 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://gobl.org/draft-0/tax/regime-def",
|
3
|
+
"name": {
|
4
|
+
"el": "Ελλάδα",
|
5
|
+
"en": "Greece"
|
6
|
+
},
|
7
|
+
"time_zone": "Europe/Athens",
|
8
|
+
"country": "EL",
|
9
|
+
"alt_country_codes": [
|
10
|
+
"GR"
|
11
|
+
],
|
12
|
+
"currency": "EUR",
|
13
|
+
"calculator_rounding_rule": "round-then-sum",
|
14
|
+
"tags": [
|
15
|
+
{
|
16
|
+
"schema": "bill/invoice",
|
17
|
+
"list": [
|
18
|
+
{
|
19
|
+
"key": "simplified",
|
20
|
+
"name": {
|
21
|
+
"de": "Vereinfachte Rechnung",
|
22
|
+
"en": "Simplified Invoice",
|
23
|
+
"es": "Factura Simplificada",
|
24
|
+
"it": "Fattura Semplificata"
|
25
|
+
},
|
26
|
+
"desc": {
|
27
|
+
"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.",
|
28
|
+
"en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
|
29
|
+
"es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
|
30
|
+
"it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"key": "reverse-charge",
|
35
|
+
"name": {
|
36
|
+
"de": "Umkehr der Steuerschuld",
|
37
|
+
"en": "Reverse Charge",
|
38
|
+
"es": "Inversión del Sujeto Pasivo",
|
39
|
+
"it": "Inversione del soggetto passivo"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"key": "self-billed",
|
44
|
+
"name": {
|
45
|
+
"de": "Rechnung durch den Leistungsempfänger",
|
46
|
+
"en": "Self-billed",
|
47
|
+
"es": "Facturación por el destinatario",
|
48
|
+
"it": "Autofattura"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"key": "customer-rates",
|
53
|
+
"name": {
|
54
|
+
"de": "Kundensätze",
|
55
|
+
"en": "Customer rates",
|
56
|
+
"es": "Tarifas aplicables al destinatario",
|
57
|
+
"it": "Aliquote applicabili al destinatario"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"key": "partial",
|
62
|
+
"name": {
|
63
|
+
"de": "Teilweise",
|
64
|
+
"en": "Partial",
|
65
|
+
"es": "Parcial",
|
66
|
+
"it": "Parziale"
|
67
|
+
}
|
68
|
+
}
|
69
|
+
]
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"scenarios": [
|
73
|
+
{
|
74
|
+
"schema": "bill/invoice",
|
75
|
+
"list": [
|
76
|
+
{
|
77
|
+
"tags": [
|
78
|
+
"reverse-charge"
|
79
|
+
],
|
80
|
+
"note": {
|
81
|
+
"key": "legal",
|
82
|
+
"src": "reverse-charge",
|
83
|
+
"text": "Reverse Charge / Αντίστροφη φόρτιση"
|
84
|
+
}
|
85
|
+
}
|
86
|
+
]
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"corrections": [
|
90
|
+
{
|
91
|
+
"schema": "bill/invoice",
|
92
|
+
"types": [
|
93
|
+
"credit-note"
|
94
|
+
],
|
95
|
+
"stamps": [
|
96
|
+
"iapr-mark"
|
97
|
+
]
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"categories": [
|
101
|
+
{
|
102
|
+
"code": "VAT",
|
103
|
+
"name": {
|
104
|
+
"el": "ΦΠΑ",
|
105
|
+
"en": "VAT"
|
106
|
+
},
|
107
|
+
"title": {
|
108
|
+
"el": "Φόρος προστιθέμενης αξίας",
|
109
|
+
"en": "Value Added Tax"
|
110
|
+
},
|
111
|
+
"rates": [
|
112
|
+
{
|
113
|
+
"key": "standard",
|
114
|
+
"name": {
|
115
|
+
"el": "Κανονικός συντελεστής",
|
116
|
+
"en": "Standard rate"
|
117
|
+
},
|
118
|
+
"values": [
|
119
|
+
{
|
120
|
+
"percent": "24%"
|
121
|
+
}
|
122
|
+
]
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"key": "reduced",
|
126
|
+
"name": {
|
127
|
+
"el": "Μειωμένος συντελεστής",
|
128
|
+
"en": "Reduced rate"
|
129
|
+
},
|
130
|
+
"values": [
|
131
|
+
{
|
132
|
+
"percent": "13%"
|
133
|
+
}
|
134
|
+
]
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"key": "super-reduced",
|
138
|
+
"name": {
|
139
|
+
"el": "Υπερμειωμένος συντελεστής",
|
140
|
+
"en": "Super-reduced rate"
|
141
|
+
},
|
142
|
+
"values": [
|
143
|
+
{
|
144
|
+
"percent": "6%"
|
145
|
+
}
|
146
|
+
]
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"key": "standard+island",
|
150
|
+
"name": {
|
151
|
+
"el": "Κανονικός συντελεστής (Νησί)",
|
152
|
+
"en": "Standard rate (Island)"
|
153
|
+
},
|
154
|
+
"values": [
|
155
|
+
{
|
156
|
+
"percent": "17%"
|
157
|
+
}
|
158
|
+
]
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"key": "reduced+island",
|
162
|
+
"name": {
|
163
|
+
"el": "Μειωμένος συντελεστής (Νησί)",
|
164
|
+
"en": "Reduced rate (Island)"
|
165
|
+
},
|
166
|
+
"values": [
|
167
|
+
{
|
168
|
+
"percent": "9%"
|
169
|
+
}
|
170
|
+
]
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"key": "super-reduced+island",
|
174
|
+
"name": {
|
175
|
+
"el": "Υπερμειωμένος συντελεστής (Νησί)",
|
176
|
+
"en": "Super-reduced rate (Island)"
|
177
|
+
},
|
178
|
+
"values": [
|
179
|
+
{
|
180
|
+
"percent": "4%"
|
181
|
+
}
|
182
|
+
]
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"key": "exempt",
|
186
|
+
"name": {
|
187
|
+
"el": "Απαλλαγή",
|
188
|
+
"en": "Exempt"
|
189
|
+
},
|
190
|
+
"exempt": true
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"sources": [
|
194
|
+
{
|
195
|
+
"title": {
|
196
|
+
"el": "Φόρος Προστιθέμενης Αξίας/Φόρος Αγαθών και Υπηρεσιών (ΦΠΑ/GST) (1976-2023)",
|
197
|
+
"en": "Value Added Tax/Goods and Services Tax (VAT/GST) (1976-2023)"
|
198
|
+
},
|
199
|
+
"url": "https://www.oecd.org/tax/tax-policy/tax-database/"
|
200
|
+
}
|
201
|
+
]
|
202
|
+
}
|
203
|
+
]
|
204
|
+
}
|