gobl 0.24.0 → 0.24.1

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.
data/data/regimes/pt.json CHANGED
@@ -12,57 +12,6 @@
12
12
  {
13
13
  "schema": "bill/invoice",
14
14
  "list": [
15
- {
16
- "key": "simplified",
17
- "name": {
18
- "de": "Vereinfachte Rechnung",
19
- "en": "Simplified Invoice",
20
- "es": "Factura Simplificada",
21
- "it": "Fattura Semplificata"
22
- },
23
- "desc": {
24
- "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.",
25
- "en": "Used for B2C transactions when the client details are not available, check with local authorities for limits.",
26
- "es": "Usado para transacciones B2C cuando los detalles del cliente no están disponibles, consulte con las autoridades locales para los límites.",
27
- "it": "Utilizzato per le transazioni B2C quando i dettagli del cliente non sono disponibili, controllare con le autorità locali per i limiti."
28
- }
29
- },
30
- {
31
- "key": "reverse-charge",
32
- "name": {
33
- "de": "Umkehr der Steuerschuld",
34
- "en": "Reverse Charge",
35
- "es": "Inversión del Sujeto Pasivo",
36
- "it": "Inversione del soggetto passivo"
37
- }
38
- },
39
- {
40
- "key": "self-billed",
41
- "name": {
42
- "de": "Rechnung durch den Leistungsempfänger",
43
- "en": "Self-billed",
44
- "es": "Facturación por el destinatario",
45
- "it": "Autofattura"
46
- }
47
- },
48
- {
49
- "key": "customer-rates",
50
- "name": {
51
- "de": "Kundensätze",
52
- "en": "Customer rates",
53
- "es": "Tarifas aplicables al destinatario",
54
- "it": "Aliquote applicabili al destinatario"
55
- }
56
- },
57
- {
58
- "key": "partial",
59
- "name": {
60
- "de": "Teilweise",
61
- "en": "Partial",
62
- "es": "Parcial",
63
- "it": "Parziale"
64
- }
65
- },
66
15
  {
67
16
  "key": "invoice-receipt",
68
17
  "name": {
@@ -1616,11 +1565,63 @@
1616
1565
  "en": "Value Added Tax",
1617
1566
  "pt": "Imposto sobre o Valor Acrescentado"
1618
1567
  },
1619
- "rates": [
1568
+ "keys": [
1620
1569
  {
1621
1570
  "key": "standard",
1622
1571
  "name": {
1623
- "en": "Standard Rate",
1572
+ "en": "Standard"
1573
+ }
1574
+ },
1575
+ {
1576
+ "key": "zero",
1577
+ "name": {
1578
+ "en": "Zero"
1579
+ }
1580
+ },
1581
+ {
1582
+ "key": "reverse-charge",
1583
+ "name": {
1584
+ "en": "Reverse charge"
1585
+ },
1586
+ "no_percent": true
1587
+ },
1588
+ {
1589
+ "key": "exempt",
1590
+ "name": {
1591
+ "en": "Exempt"
1592
+ },
1593
+ "no_percent": true
1594
+ },
1595
+ {
1596
+ "key": "export",
1597
+ "name": {
1598
+ "en": "Export"
1599
+ },
1600
+ "no_percent": true
1601
+ },
1602
+ {
1603
+ "key": "intra-community",
1604
+ "name": {
1605
+ "en": "Intra-community"
1606
+ },
1607
+ "no_percent": true
1608
+ },
1609
+ {
1610
+ "key": "outside-scope",
1611
+ "name": {
1612
+ "en": "Outside scope"
1613
+ },
1614
+ "no_percent": true
1615
+ }
1616
+ ],
1617
+ "rates": [
1618
+ {
1619
+ "rate": "general",
1620
+ "keys": [
1621
+ "standard"
1622
+ ],
1623
+ "name": {
1624
+ "en": "General Rate",
1624
1625
  "pt": "Tipo Geral"
1625
1626
  },
1626
1627
  "values": [
@@ -1645,7 +1646,10 @@
1645
1646
  ]
1646
1647
  },
1647
1648
  {
1648
- "key": "intermediate",
1649
+ "rate": "intermediate",
1650
+ "keys": [
1651
+ "standard"
1652
+ ],
1649
1653
  "name": {
1650
1654
  "en": "Intermediate Rate",
1651
1655
  "pt": "Taxa Intermédia"
@@ -1672,7 +1676,10 @@
1672
1676
  ]
1673
1677
  },
1674
1678
  {
1675
- "key": "reduced",
1679
+ "rate": "reduced",
1680
+ "keys": [
1681
+ "standard"
1682
+ ],
1676
1683
  "name": {
1677
1684
  "en": "Reduced Rate",
1678
1685
  "pt": "Taxa Reduzida"
@@ -1706,15 +1713,10 @@
1706
1713
  ]
1707
1714
  },
1708
1715
  {
1709
- "key": "exempt",
1710
- "name": {
1711
- "en": "Exempt",
1712
- "pt": "Isento"
1713
- },
1714
- "exempt": true
1715
- },
1716
- {
1717
- "key": "other",
1716
+ "rate": "other",
1717
+ "keys": [
1718
+ "standard"
1719
+ ],
1718
1720
  "name": {
1719
1721
  "en": "Other",
1720
1722
  "pt": "Outro"
@@ -0,0 +1,215 @@
1
+ {
2
+ "$schema": "https://gobl.org/draft-0/tax/regime-def",
3
+ "name": {
4
+ "en": "Sweden",
5
+ "se": "Sverige"
6
+ },
7
+ "time_zone": "Europe/Stockholm",
8
+ "country": "SE",
9
+ "currency": "SEK",
10
+ "tax_scheme": "VAT",
11
+ "identities": [
12
+ {
13
+ "code": "ON",
14
+ "name": {
15
+ "en": "Organization Number",
16
+ "se": "Organisationsnummer"
17
+ },
18
+ "desc": {
19
+ "en": "Swedish company registration number.",
20
+ "se": "Svenskt företagsregistreringsnummer."
21
+ }
22
+ },
23
+ {
24
+ "code": "PN",
25
+ "name": {
26
+ "en": "Person Number",
27
+ "se": "Personnummer"
28
+ },
29
+ "desc": {
30
+ "en": "Swedish personal registration number.",
31
+ "se": "Svenskt personnummer."
32
+ }
33
+ },
34
+ {
35
+ "code": "CN",
36
+ "name": {
37
+ "en": "Coordination Number",
38
+ "se": "Samordningsnummer"
39
+ },
40
+ "desc": {
41
+ "en": "Swedish coordination number.",
42
+ "se": "Svenskt samordningsnummer."
43
+ }
44
+ }
45
+ ],
46
+ "scenarios": [
47
+ {
48
+ "schema": "bill/invoice",
49
+ "list": [
50
+ {
51
+ "tags": [
52
+ "reverse-charge"
53
+ ],
54
+ "note": {
55
+ "key": "legal",
56
+ "src": "reverse-charge",
57
+ "text": "Reverse charge: Customer to account for VAT to the relevant tax authority."
58
+ }
59
+ }
60
+ ]
61
+ }
62
+ ],
63
+ "categories": [
64
+ {
65
+ "code": "VAT",
66
+ "name": {
67
+ "en": "VAT",
68
+ "se": "Moms"
69
+ },
70
+ "title": {
71
+ "en": "Value Added Tax",
72
+ "se": "Moms"
73
+ },
74
+ "keys": [
75
+ {
76
+ "key": "standard",
77
+ "name": {
78
+ "en": "Standard"
79
+ }
80
+ },
81
+ {
82
+ "key": "zero",
83
+ "name": {
84
+ "en": "Zero"
85
+ }
86
+ },
87
+ {
88
+ "key": "reverse-charge",
89
+ "name": {
90
+ "en": "Reverse charge"
91
+ },
92
+ "no_percent": true
93
+ },
94
+ {
95
+ "key": "exempt",
96
+ "name": {
97
+ "en": "Exempt"
98
+ },
99
+ "no_percent": true
100
+ },
101
+ {
102
+ "key": "export",
103
+ "name": {
104
+ "en": "Export"
105
+ },
106
+ "no_percent": true
107
+ },
108
+ {
109
+ "key": "intra-community",
110
+ "name": {
111
+ "en": "Intra-community"
112
+ },
113
+ "no_percent": true
114
+ },
115
+ {
116
+ "key": "outside-scope",
117
+ "name": {
118
+ "en": "Outside scope"
119
+ },
120
+ "no_percent": true
121
+ }
122
+ ],
123
+ "rates": [
124
+ {
125
+ "rate": "general",
126
+ "keys": [
127
+ "standard"
128
+ ],
129
+ "name": {
130
+ "en": "General Rate",
131
+ "se": "Normalskattesats"
132
+ },
133
+ "values": [
134
+ {
135
+ "since": "1990-01-01",
136
+ "percent": "25.0%"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "rate": "reduced",
142
+ "keys": [
143
+ "standard"
144
+ ],
145
+ "name": {
146
+ "en": "First Reduced Rate",
147
+ "se": "Första reducerade skattesatsen"
148
+ },
149
+ "values": [
150
+ {
151
+ "since": "1996-01-01",
152
+ "percent": "12.0%"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "rate": "super-reduced",
158
+ "keys": [
159
+ "standard"
160
+ ],
161
+ "name": {
162
+ "en": "Second Reduced Rate",
163
+ "se": "Andra reducerade skattesatsen"
164
+ },
165
+ "values": [
166
+ {
167
+ "since": "1996-01-01",
168
+ "percent": "6.0%"
169
+ }
170
+ ]
171
+ }
172
+ ],
173
+ "sources": [
174
+ {
175
+ "title": {
176
+ "en": "Swedish Tax Agency - VAT rates and VAT exemption"
177
+ },
178
+ "url": "https://www.skatteverket.se/servicelankar/otherlanguages/inenglishengelska/businessesandemployers/startingandrunningaswedishbusiness/declaringtaxesbusinesses/vat/vatratesandvatexemption.4.676f4884175c97df419255d.html",
179
+ "at": "2025-04-25T00:00:00"
180
+ },
181
+ {
182
+ "title": {
183
+ "se": "Skatteverket - Momssatser och undantag från moms"
184
+ },
185
+ "url": "https://www4.skatteverket.se/rattsligvagledning/394966.html",
186
+ "at": "2025-04-25T00:00:00"
187
+ },
188
+ {
189
+ "title": {
190
+ "en": "Standard rate",
191
+ "se": "Normalskattesats"
192
+ },
193
+ "url": "https://www4.skatteverket.se/rattsligvagledning/edition/2025.4/429414.html",
194
+ "at": "2025-04-25T00:00:00"
195
+ },
196
+ {
197
+ "title": {
198
+ "en": "Tax rate 12 percent",
199
+ "se": "Skattesats 12 procent"
200
+ },
201
+ "url": "https://www4.skatteverket.se/rattsligvagledning/edition/2025.4/394978.html",
202
+ "at": "2025-04-25T00:00:00"
203
+ },
204
+ {
205
+ "title": {
206
+ "en": "Tax rate 6 percent",
207
+ "se": "Skattesats 6 procent"
208
+ },
209
+ "url": "https://www4.skatteverket.se/rattsligvagledning/edition/2025.4/394984.html",
210
+ "at": "2025-04-25T00:00:00"
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ }
@@ -0,0 +1,119 @@
1
+ {
2
+ "$schema": "https://gobl.org/draft-0/tax/regime-def",
3
+ "name": {
4
+ "en": "Singapore"
5
+ },
6
+ "description": {
7
+ "en": "Singapore offers a simple GST model with a standard rate along with a few exceptions. GST is handled by the Inland Revenue Authority of Singapore ([IRAS](https://www.iras.gov.sg/taxes/goods-services-tax-(gst)))\n\nFor GST to be chargeable on a supply of goods and services, the following four conditions must be satisfied:\n\n1. The supply must be made in Singapore\n2. The supply is a taxable supply\n3. The supply is made by a taxable person\n4. The supply is made in the course of furtherance of any business carried on by the taxable person, i.e, GST is not chargeable on personal transactions\n\nGST is chargeable on all imported goods (whether for domestic consumption, sale, or re-export), regardless of whether the importer is GST-registered or not. The importer is required to take up the appropriate import permit and pay GST upon importation of the goods into Singapore. Import GST is not chargeable under the following circumstances:\n\n1. Importation of investment precious metals.\n2. Importation of goods that are specifically given GST reliefs5 under the GST Act.\n3. Importation of goods into Zero-GST/Licensed warehouses administered by Singapore Customs.\n4. Importation of goods by GST-registered businesses that are under Major Exporter Scheme or other approved schemes."
8
+ },
9
+ "time_zone": "Asia/Singapore",
10
+ "country": "SG",
11
+ "currency": "SGD",
12
+ "tax_scheme": "GST",
13
+ "identities": [
14
+ {
15
+ "code": "UEN",
16
+ "name": {
17
+ "en": "Unique Entity Number (UEN)"
18
+ },
19
+ "desc": {
20
+ "en": "The Unique Entity Number (UEN) is a standard identification number\nissued to entities (businesses and local companies) in Singapore.\nIt is used for all interactions with government agencies. The same\nUEN is normally used as the GST registration number, but not always."
21
+ }
22
+ }
23
+ ],
24
+ "corrections": [
25
+ {
26
+ "schema": "bill/invoice",
27
+ "types": [
28
+ "credit-note"
29
+ ]
30
+ }
31
+ ],
32
+ "categories": [
33
+ {
34
+ "code": "GST",
35
+ "name": {
36
+ "en": "GST"
37
+ },
38
+ "title": {
39
+ "en": "Goods and Services Tax"
40
+ },
41
+ "keys": [
42
+ {
43
+ "key": "standard",
44
+ "name": {
45
+ "en": "Standard"
46
+ }
47
+ },
48
+ {
49
+ "key": "zero",
50
+ "name": {
51
+ "en": "Zero"
52
+ }
53
+ },
54
+ {
55
+ "key": "exempt",
56
+ "name": {
57
+ "en": "Exempt"
58
+ },
59
+ "no_percent": true
60
+ },
61
+ {
62
+ "key": "outside-scope",
63
+ "name": {
64
+ "en": "Outside scope"
65
+ },
66
+ "no_percent": true
67
+ }
68
+ ],
69
+ "rates": [
70
+ {
71
+ "rate": "general",
72
+ "keys": [
73
+ "standard"
74
+ ],
75
+ "name": {
76
+ "en": "General rate"
77
+ },
78
+ "desc": {
79
+ "en": "GST-registered businesses are required to charge and account for GST at 9% on all sales of goods and services in Singapore unless the sale can be zero-rated or exempted under the GST law."
80
+ },
81
+ "values": [
82
+ {
83
+ "since": "2024-01-01",
84
+ "percent": "9%"
85
+ },
86
+ {
87
+ "since": "2023-01-01",
88
+ "percent": "8%"
89
+ },
90
+ {
91
+ "since": "2007-07-01",
92
+ "percent": "7%"
93
+ },
94
+ {
95
+ "since": "2004-01-01",
96
+ "percent": "5%"
97
+ },
98
+ {
99
+ "since": "2003-01-01",
100
+ "percent": "4%"
101
+ },
102
+ {
103
+ "since": "1994-04-01",
104
+ "percent": "3%"
105
+ }
106
+ ]
107
+ }
108
+ ],
109
+ "sources": [
110
+ {
111
+ "title": {
112
+ "en": "Goods and Services Tax (GST)"
113
+ },
114
+ "url": "https://www.iras.gov.sg/taxes/goods-services-tax-(gst)/basics-of-gst/current-gst-rates"
115
+ }
116
+ ]
117
+ }
118
+ ]
119
+ }
data/data/regimes/us.json CHANGED
@@ -6,64 +6,6 @@
6
6
  "time_zone": "America/Chicago",
7
7
  "country": "US",
8
8
  "currency": "USD",
9
- "tags": [
10
- {
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
- ]
65
- }
66
- ],
67
9
  "corrections": [
68
10
  {
69
11
  "schema": "bill/invoice",
data/lib/gobl/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GOBL
4
- VERSION = '0.24.0'
4
+ VERSION = '0.24.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luismi Cavalle
@@ -75,12 +75,15 @@ files:
75
75
  - data/regimes/fr.json
76
76
  - data/regimes/gb.json
77
77
  - data/regimes/gr.json
78
+ - data/regimes/ie.json
78
79
  - data/regimes/in.json
79
80
  - data/regimes/it.json
80
81
  - data/regimes/mx.json
81
82
  - data/regimes/nl.json
82
83
  - data/regimes/pl.json
83
84
  - data/regimes/pt.json
85
+ - data/regimes/se.json
86
+ - data/regimes/sg.json
84
87
  - data/regimes/us.json
85
88
  - lib/generated/gobl/bill/charge.rb
86
89
  - lib/generated/gobl/bill/correction_options.rb