j-law-ruby 0.0.3

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.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +109 -0
  4. data/Rakefile +87 -0
  5. data/ext/j_law_ruby/extconf.rb +34 -0
  6. data/lib/j_law_ruby/build_support.rb +129 -0
  7. data/lib/j_law_ruby/c_ffi.rb +662 -0
  8. data/lib/j_law_ruby.rb +532 -0
  9. data/rake_support/vendor_rust.rb +51 -0
  10. data/test/test_c_ffi_adapter.rb +46 -0
  11. data/test/test_consumption_tax.rb +66 -0
  12. data/test/test_gemspec.rb +82 -0
  13. data/test/test_income_tax.rb +77 -0
  14. data/test/test_income_tax_deductions.rb +82 -0
  15. data/test/test_real_estate.rb +98 -0
  16. data/test/test_stamp_tax.rb +68 -0
  17. data/test/test_withholding_tax.rb +65 -0
  18. data/vendor/rust/Cargo.lock +235 -0
  19. data/vendor/rust/Cargo.toml +12 -0
  20. data/vendor/rust/crates/j-law-c-ffi/Cargo.toml +20 -0
  21. data/vendor/rust/crates/j-law-c-ffi/j_law_c_ffi.h +493 -0
  22. data/vendor/rust/crates/j-law-c-ffi/src/lib.rs +1553 -0
  23. data/vendor/rust/crates/j-law-core/Cargo.toml +18 -0
  24. data/vendor/rust/crates/j-law-core/src/domains/consumption_tax/calculator.rs +216 -0
  25. data/vendor/rust/crates/j-law-core/src/domains/consumption_tax/context.rs +29 -0
  26. data/vendor/rust/crates/j-law-core/src/domains/consumption_tax/mod.rs +9 -0
  27. data/vendor/rust/crates/j-law-core/src/domains/consumption_tax/params.rs +24 -0
  28. data/vendor/rust/crates/j-law-core/src/domains/consumption_tax/policy.rs +34 -0
  29. data/vendor/rust/crates/j-law-core/src/domains/income_tax/assessment.rs +76 -0
  30. data/vendor/rust/crates/j-law-core/src/domains/income_tax/calculator.rs +222 -0
  31. data/vendor/rust/crates/j-law-core/src/domains/income_tax/context.rs +79 -0
  32. data/vendor/rust/crates/j-law-core/src/domains/income_tax/deduction/calculator.rs +167 -0
  33. data/vendor/rust/crates/j-law-core/src/domains/income_tax/deduction/context.rs +172 -0
  34. data/vendor/rust/crates/j-law-core/src/domains/income_tax/deduction/expense.rs +465 -0
  35. data/vendor/rust/crates/j-law-core/src/domains/income_tax/deduction/mod.rs +20 -0
  36. data/vendor/rust/crates/j-law-core/src/domains/income_tax/deduction/params.rs +205 -0
  37. data/vendor/rust/crates/j-law-core/src/domains/income_tax/deduction/personal.rs +324 -0
  38. data/vendor/rust/crates/j-law-core/src/domains/income_tax/deduction/types.rs +61 -0
  39. data/vendor/rust/crates/j-law-core/src/domains/income_tax/mod.rs +24 -0
  40. data/vendor/rust/crates/j-law-core/src/domains/income_tax/params.rs +109 -0
  41. data/vendor/rust/crates/j-law-core/src/domains/income_tax/policy.rs +103 -0
  42. data/vendor/rust/crates/j-law-core/src/domains/mod.rs +5 -0
  43. data/vendor/rust/crates/j-law-core/src/domains/real_estate/calculator.rs +197 -0
  44. data/vendor/rust/crates/j-law-core/src/domains/real_estate/context.rs +48 -0
  45. data/vendor/rust/crates/j-law-core/src/domains/real_estate/mod.rs +9 -0
  46. data/vendor/rust/crates/j-law-core/src/domains/real_estate/params.rs +43 -0
  47. data/vendor/rust/crates/j-law-core/src/domains/real_estate/policy.rs +40 -0
  48. data/vendor/rust/crates/j-law-core/src/domains/stamp_tax/calculator.rs +321 -0
  49. data/vendor/rust/crates/j-law-core/src/domains/stamp_tax/context.rs +408 -0
  50. data/vendor/rust/crates/j-law-core/src/domains/stamp_tax/mod.rs +12 -0
  51. data/vendor/rust/crates/j-law-core/src/domains/stamp_tax/params.rs +190 -0
  52. data/vendor/rust/crates/j-law-core/src/domains/stamp_tax/policy.rs +105 -0
  53. data/vendor/rust/crates/j-law-core/src/domains/withholding_tax/calculator.rs +247 -0
  54. data/vendor/rust/crates/j-law-core/src/domains/withholding_tax/context.rs +167 -0
  55. data/vendor/rust/crates/j-law-core/src/domains/withholding_tax/mod.rs +9 -0
  56. data/vendor/rust/crates/j-law-core/src/domains/withholding_tax/params.rs +80 -0
  57. data/vendor/rust/crates/j-law-core/src/domains/withholding_tax/policy.rs +49 -0
  58. data/vendor/rust/crates/j-law-core/src/error.rs +171 -0
  59. data/vendor/rust/crates/j-law-core/src/lib.rs +9 -0
  60. data/vendor/rust/crates/j-law-core/src/types/amount.rs +232 -0
  61. data/vendor/rust/crates/j-law-core/src/types/citation.rs +82 -0
  62. data/vendor/rust/crates/j-law-core/src/types/date.rs +280 -0
  63. data/vendor/rust/crates/j-law-core/src/types/mod.rs +11 -0
  64. data/vendor/rust/crates/j-law-core/src/types/rate.rs +219 -0
  65. data/vendor/rust/crates/j-law-core/src/types/rounding.rs +81 -0
  66. data/vendor/rust/crates/j-law-registry/Cargo.toml +15 -0
  67. data/vendor/rust/crates/j-law-registry/data/consumption_tax/consumption_tax.json +70 -0
  68. data/vendor/rust/crates/j-law-registry/data/income_tax/deductions.json +327 -0
  69. data/vendor/rust/crates/j-law-registry/data/income_tax/income_tax.json +352 -0
  70. data/vendor/rust/crates/j-law-registry/data/real_estate/brokerage_fee.json +125 -0
  71. data/vendor/rust/crates/j-law-registry/data/stamp_tax/stamp_tax.json +674 -0
  72. data/vendor/rust/crates/j-law-registry/data/withholding_tax/withholding_tax.json +70 -0
  73. data/vendor/rust/crates/j-law-registry/src/consumption_tax_loader.rs +325 -0
  74. data/vendor/rust/crates/j-law-registry/src/consumption_tax_schema.rs +49 -0
  75. data/vendor/rust/crates/j-law-registry/src/income_tax_deduction_loader.rs +636 -0
  76. data/vendor/rust/crates/j-law-registry/src/income_tax_deduction_schema.rs +111 -0
  77. data/vendor/rust/crates/j-law-registry/src/income_tax_loader.rs +445 -0
  78. data/vendor/rust/crates/j-law-registry/src/income_tax_schema.rs +44 -0
  79. data/vendor/rust/crates/j-law-registry/src/lib.rs +20 -0
  80. data/vendor/rust/crates/j-law-registry/src/loader.rs +221 -0
  81. data/vendor/rust/crates/j-law-registry/src/schema.rs +73 -0
  82. data/vendor/rust/crates/j-law-registry/src/stamp_tax_loader.rs +374 -0
  83. data/vendor/rust/crates/j-law-registry/src/stamp_tax_schema.rs +72 -0
  84. data/vendor/rust/crates/j-law-registry/src/validator.rs +204 -0
  85. data/vendor/rust/crates/j-law-registry/src/withholding_tax_loader.rs +310 -0
  86. data/vendor/rust/crates/j-law-registry/src/withholding_tax_schema.rs +61 -0
  87. metadata +148 -0
@@ -0,0 +1,327 @@
1
+ {
2
+ "domain": "income_tax_deduction",
3
+ "history": [
4
+ {
5
+ "effective_from": "2018-01-01",
6
+ "effective_until": "2019-12-31",
7
+ "status": "superseded",
8
+ "citation": {
9
+ "law_id": "shotoku-deduction",
10
+ "law_name": "所得税法",
11
+ "article": 86,
12
+ "paragraph": 1,
13
+ "amendment": "平成29年法律第4号",
14
+ "ministry": "財務省"
15
+ },
16
+ "params": {
17
+ "personal": {
18
+ "basic": {
19
+ "brackets": [
20
+ {
21
+ "label": "一律38万円",
22
+ "income_from": 0,
23
+ "income_to_inclusive": null,
24
+ "deduction_amount": 380000
25
+ }
26
+ ]
27
+ },
28
+ "spouse": {
29
+ "qualifying_spouse_income_max": 380000,
30
+ "taxpayer_income_brackets": [
31
+ {
32
+ "label": "900万円以下",
33
+ "taxpayer_income_from": 0,
34
+ "taxpayer_income_to_inclusive": 9000000,
35
+ "deduction_amount": 380000,
36
+ "elderly_deduction_amount": 480000
37
+ },
38
+ {
39
+ "label": "900万円超950万円以下",
40
+ "taxpayer_income_from": 9000001,
41
+ "taxpayer_income_to_inclusive": 9500000,
42
+ "deduction_amount": 260000,
43
+ "elderly_deduction_amount": 320000
44
+ },
45
+ {
46
+ "label": "950万円超1000万円以下",
47
+ "taxpayer_income_from": 9500001,
48
+ "taxpayer_income_to_inclusive": 10000000,
49
+ "deduction_amount": 130000,
50
+ "elderly_deduction_amount": 160000
51
+ },
52
+ {
53
+ "label": "1000万円超",
54
+ "taxpayer_income_from": 10000001,
55
+ "taxpayer_income_to_inclusive": null,
56
+ "deduction_amount": 0,
57
+ "elderly_deduction_amount": 0
58
+ }
59
+ ]
60
+ },
61
+ "dependent": {
62
+ "general_deduction_amount": 380000,
63
+ "specific_deduction_amount": 630000,
64
+ "elderly_cohabiting_deduction_amount": 580000,
65
+ "elderly_other_deduction_amount": 480000
66
+ }
67
+ },
68
+ "expense": {
69
+ "social_insurance": {},
70
+ "medical": {
71
+ "income_threshold_rate": { "numer": 5, "denom": 100 },
72
+ "threshold_cap_amount": 100000,
73
+ "deduction_cap_amount": 2000000
74
+ },
75
+ "life_insurance": {
76
+ "new_contract_brackets": [
77
+ {
78
+ "label": "2万円以下",
79
+ "paid_from": 0,
80
+ "paid_to_inclusive": 20000,
81
+ "rate": { "numer": 1, "denom": 1 },
82
+ "addition_amount": 0,
83
+ "deduction_cap_amount": 20000
84
+ },
85
+ {
86
+ "label": "2万円超4万円以下",
87
+ "paid_from": 20001,
88
+ "paid_to_inclusive": 40000,
89
+ "rate": { "numer": 1, "denom": 2 },
90
+ "addition_amount": 10000,
91
+ "deduction_cap_amount": 30000
92
+ },
93
+ {
94
+ "label": "4万円超8万円以下",
95
+ "paid_from": 40001,
96
+ "paid_to_inclusive": 80000,
97
+ "rate": { "numer": 1, "denom": 4 },
98
+ "addition_amount": 20000,
99
+ "deduction_cap_amount": 40000
100
+ },
101
+ {
102
+ "label": "8万円超",
103
+ "paid_from": 80001,
104
+ "paid_to_inclusive": null,
105
+ "rate": { "numer": 0, "denom": 1 },
106
+ "addition_amount": 40000,
107
+ "deduction_cap_amount": 40000
108
+ }
109
+ ],
110
+ "old_contract_brackets": [
111
+ {
112
+ "label": "2万5千円以下",
113
+ "paid_from": 0,
114
+ "paid_to_inclusive": 25000,
115
+ "rate": { "numer": 1, "denom": 1 },
116
+ "addition_amount": 0,
117
+ "deduction_cap_amount": 25000
118
+ },
119
+ {
120
+ "label": "2万5千円超5万円以下",
121
+ "paid_from": 25001,
122
+ "paid_to_inclusive": 50000,
123
+ "rate": { "numer": 1, "denom": 2 },
124
+ "addition_amount": 12500,
125
+ "deduction_cap_amount": 37500
126
+ },
127
+ {
128
+ "label": "5万円超10万円以下",
129
+ "paid_from": 50001,
130
+ "paid_to_inclusive": 100000,
131
+ "rate": { "numer": 1, "denom": 4 },
132
+ "addition_amount": 25000,
133
+ "deduction_cap_amount": 50000
134
+ },
135
+ {
136
+ "label": "10万円超",
137
+ "paid_from": 100001,
138
+ "paid_to_inclusive": null,
139
+ "rate": { "numer": 0, "denom": 1 },
140
+ "addition_amount": 50000,
141
+ "deduction_cap_amount": 50000
142
+ }
143
+ ],
144
+ "mixed_contract_cap_amount": 40000,
145
+ "new_contract_cap_amount": 40000,
146
+ "old_contract_cap_amount": 50000,
147
+ "combined_cap_amount": 120000
148
+ },
149
+ "donation": {
150
+ "income_cap_rate": { "numer": 40, "denom": 100 },
151
+ "non_deductible_amount": 2000
152
+ }
153
+ }
154
+ }
155
+ },
156
+ {
157
+ "effective_from": "2020-01-01",
158
+ "effective_until": null,
159
+ "status": "active",
160
+ "citation": {
161
+ "law_id": "shotoku-deduction",
162
+ "law_name": "所得税法",
163
+ "article": 86,
164
+ "paragraph": 1,
165
+ "amendment": "平成30年法律第7号",
166
+ "ministry": "財務省"
167
+ },
168
+ "params": {
169
+ "personal": {
170
+ "basic": {
171
+ "brackets": [
172
+ {
173
+ "label": "2400万円以下",
174
+ "income_from": 0,
175
+ "income_to_inclusive": 24000000,
176
+ "deduction_amount": 480000
177
+ },
178
+ {
179
+ "label": "2400万円超2450万円以下",
180
+ "income_from": 24000001,
181
+ "income_to_inclusive": 24500000,
182
+ "deduction_amount": 320000
183
+ },
184
+ {
185
+ "label": "2450万円超2500万円以下",
186
+ "income_from": 24500001,
187
+ "income_to_inclusive": 25000000,
188
+ "deduction_amount": 160000
189
+ },
190
+ {
191
+ "label": "2500万円超",
192
+ "income_from": 25000001,
193
+ "income_to_inclusive": null,
194
+ "deduction_amount": 0
195
+ }
196
+ ]
197
+ },
198
+ "spouse": {
199
+ "qualifying_spouse_income_max": 480000,
200
+ "taxpayer_income_brackets": [
201
+ {
202
+ "label": "900万円以下",
203
+ "taxpayer_income_from": 0,
204
+ "taxpayer_income_to_inclusive": 9000000,
205
+ "deduction_amount": 380000,
206
+ "elderly_deduction_amount": 480000
207
+ },
208
+ {
209
+ "label": "900万円超950万円以下",
210
+ "taxpayer_income_from": 9000001,
211
+ "taxpayer_income_to_inclusive": 9500000,
212
+ "deduction_amount": 260000,
213
+ "elderly_deduction_amount": 320000
214
+ },
215
+ {
216
+ "label": "950万円超1000万円以下",
217
+ "taxpayer_income_from": 9500001,
218
+ "taxpayer_income_to_inclusive": 10000000,
219
+ "deduction_amount": 130000,
220
+ "elderly_deduction_amount": 160000
221
+ },
222
+ {
223
+ "label": "1000万円超",
224
+ "taxpayer_income_from": 10000001,
225
+ "taxpayer_income_to_inclusive": null,
226
+ "deduction_amount": 0,
227
+ "elderly_deduction_amount": 0
228
+ }
229
+ ]
230
+ },
231
+ "dependent": {
232
+ "general_deduction_amount": 380000,
233
+ "specific_deduction_amount": 630000,
234
+ "elderly_cohabiting_deduction_amount": 580000,
235
+ "elderly_other_deduction_amount": 480000
236
+ }
237
+ },
238
+ "expense": {
239
+ "social_insurance": {},
240
+ "medical": {
241
+ "income_threshold_rate": { "numer": 5, "denom": 100 },
242
+ "threshold_cap_amount": 100000,
243
+ "deduction_cap_amount": 2000000
244
+ },
245
+ "life_insurance": {
246
+ "new_contract_brackets": [
247
+ {
248
+ "label": "2万円以下",
249
+ "paid_from": 0,
250
+ "paid_to_inclusive": 20000,
251
+ "rate": { "numer": 1, "denom": 1 },
252
+ "addition_amount": 0,
253
+ "deduction_cap_amount": 20000
254
+ },
255
+ {
256
+ "label": "2万円超4万円以下",
257
+ "paid_from": 20001,
258
+ "paid_to_inclusive": 40000,
259
+ "rate": { "numer": 1, "denom": 2 },
260
+ "addition_amount": 10000,
261
+ "deduction_cap_amount": 30000
262
+ },
263
+ {
264
+ "label": "4万円超8万円以下",
265
+ "paid_from": 40001,
266
+ "paid_to_inclusive": 80000,
267
+ "rate": { "numer": 1, "denom": 4 },
268
+ "addition_amount": 20000,
269
+ "deduction_cap_amount": 40000
270
+ },
271
+ {
272
+ "label": "8万円超",
273
+ "paid_from": 80001,
274
+ "paid_to_inclusive": null,
275
+ "rate": { "numer": 0, "denom": 1 },
276
+ "addition_amount": 40000,
277
+ "deduction_cap_amount": 40000
278
+ }
279
+ ],
280
+ "old_contract_brackets": [
281
+ {
282
+ "label": "2万5千円以下",
283
+ "paid_from": 0,
284
+ "paid_to_inclusive": 25000,
285
+ "rate": { "numer": 1, "denom": 1 },
286
+ "addition_amount": 0,
287
+ "deduction_cap_amount": 25000
288
+ },
289
+ {
290
+ "label": "2万5千円超5万円以下",
291
+ "paid_from": 25001,
292
+ "paid_to_inclusive": 50000,
293
+ "rate": { "numer": 1, "denom": 2 },
294
+ "addition_amount": 12500,
295
+ "deduction_cap_amount": 37500
296
+ },
297
+ {
298
+ "label": "5万円超10万円以下",
299
+ "paid_from": 50001,
300
+ "paid_to_inclusive": 100000,
301
+ "rate": { "numer": 1, "denom": 4 },
302
+ "addition_amount": 25000,
303
+ "deduction_cap_amount": 50000
304
+ },
305
+ {
306
+ "label": "10万円超",
307
+ "paid_from": 100001,
308
+ "paid_to_inclusive": null,
309
+ "rate": { "numer": 0, "denom": 1 },
310
+ "addition_amount": 50000,
311
+ "deduction_cap_amount": 50000
312
+ }
313
+ ],
314
+ "mixed_contract_cap_amount": 40000,
315
+ "new_contract_cap_amount": 40000,
316
+ "old_contract_cap_amount": 50000,
317
+ "combined_cap_amount": 120000
318
+ },
319
+ "donation": {
320
+ "income_cap_rate": { "numer": 40, "denom": 100 },
321
+ "non_deductible_amount": 2000
322
+ }
323
+ }
324
+ }
325
+ }
326
+ ]
327
+ }
@@ -0,0 +1,352 @@
1
+ {
2
+ "domain": "income_tax",
3
+ "history": [
4
+ {
5
+ "effective_from": "1989-01-01",
6
+ "effective_until": "1994-12-31",
7
+ "status": "superseded",
8
+ "citation": {
9
+ "law_id": "shotoku-89",
10
+ "law_name": "所得税法",
11
+ "article": 89,
12
+ "paragraph": 1,
13
+ "amendment": "昭和63年12月30日法律第109号",
14
+ "ministry": "財務省"
15
+ },
16
+ "params": {
17
+ "brackets": [
18
+ {
19
+ "label": "300万円以下",
20
+ "income_from": 0,
21
+ "income_to_inclusive": 3000000,
22
+ "rate": { "numer": 10, "denom": 100 },
23
+ "deduction": 0
24
+ },
25
+ {
26
+ "label": "300万円超600万円以下",
27
+ "income_from": 3000001,
28
+ "income_to_inclusive": 6000000,
29
+ "rate": { "numer": 20, "denom": 100 },
30
+ "deduction": 300000
31
+ },
32
+ {
33
+ "label": "600万円超1000万円以下",
34
+ "income_from": 6000001,
35
+ "income_to_inclusive": 10000000,
36
+ "rate": { "numer": 30, "denom": 100 },
37
+ "deduction": 900000
38
+ },
39
+ {
40
+ "label": "1000万円超2000万円以下",
41
+ "income_from": 10000001,
42
+ "income_to_inclusive": 20000000,
43
+ "rate": { "numer": 40, "denom": 100 },
44
+ "deduction": 1900000
45
+ },
46
+ {
47
+ "label": "2000万円超",
48
+ "income_from": 20000001,
49
+ "income_to_inclusive": null,
50
+ "rate": { "numer": 50, "denom": 100 },
51
+ "deduction": 3900000
52
+ }
53
+ ],
54
+ "reconstruction_tax": null
55
+ }
56
+ },
57
+ {
58
+ "effective_from": "1995-01-01",
59
+ "effective_until": "1998-12-31",
60
+ "status": "superseded",
61
+ "citation": {
62
+ "law_id": "shotoku-89",
63
+ "law_name": "所得税法",
64
+ "article": 89,
65
+ "paragraph": 1,
66
+ "amendment": "平成6年12月2日法律第111号",
67
+ "ministry": "財務省"
68
+ },
69
+ "params": {
70
+ "brackets": [
71
+ {
72
+ "label": "330万円以下",
73
+ "income_from": 0,
74
+ "income_to_inclusive": 3300000,
75
+ "rate": { "numer": 10, "denom": 100 },
76
+ "deduction": 0
77
+ },
78
+ {
79
+ "label": "330万円超900万円以下",
80
+ "income_from": 3300001,
81
+ "income_to_inclusive": 9000000,
82
+ "rate": { "numer": 20, "denom": 100 },
83
+ "deduction": 330000
84
+ },
85
+ {
86
+ "label": "900万円超1800万円以下",
87
+ "income_from": 9000001,
88
+ "income_to_inclusive": 18000000,
89
+ "rate": { "numer": 30, "denom": 100 },
90
+ "deduction": 1230000
91
+ },
92
+ {
93
+ "label": "1800万円超3000万円以下",
94
+ "income_from": 18000001,
95
+ "income_to_inclusive": 30000000,
96
+ "rate": { "numer": 40, "denom": 100 },
97
+ "deduction": 3030000
98
+ },
99
+ {
100
+ "label": "3000万円超",
101
+ "income_from": 30000001,
102
+ "income_to_inclusive": null,
103
+ "rate": { "numer": 50, "denom": 100 },
104
+ "deduction": 6030000
105
+ }
106
+ ],
107
+ "reconstruction_tax": null
108
+ }
109
+ },
110
+ {
111
+ "effective_from": "1999-01-01",
112
+ "effective_until": "2006-12-31",
113
+ "status": "superseded",
114
+ "citation": {
115
+ "law_id": "shotoku-89",
116
+ "law_name": "所得税法",
117
+ "article": 89,
118
+ "paragraph": 1,
119
+ "amendment": "平成10年12月28日法律第125号",
120
+ "ministry": "財務省"
121
+ },
122
+ "params": {
123
+ "brackets": [
124
+ {
125
+ "label": "330万円以下",
126
+ "income_from": 0,
127
+ "income_to_inclusive": 3300000,
128
+ "rate": { "numer": 10, "denom": 100 },
129
+ "deduction": 0
130
+ },
131
+ {
132
+ "label": "330万円超900万円以下",
133
+ "income_from": 3300001,
134
+ "income_to_inclusive": 9000000,
135
+ "rate": { "numer": 20, "denom": 100 },
136
+ "deduction": 330000
137
+ },
138
+ {
139
+ "label": "900万円超1800万円以下",
140
+ "income_from": 9000001,
141
+ "income_to_inclusive": 18000000,
142
+ "rate": { "numer": 30, "denom": 100 },
143
+ "deduction": 1230000
144
+ },
145
+ {
146
+ "label": "1800万円超",
147
+ "income_from": 18000001,
148
+ "income_to_inclusive": null,
149
+ "rate": { "numer": 37, "denom": 100 },
150
+ "deduction": 2490000
151
+ }
152
+ ],
153
+ "reconstruction_tax": null
154
+ }
155
+ },
156
+ {
157
+ "effective_from": "2007-01-01",
158
+ "effective_until": "2012-12-31",
159
+ "status": "superseded",
160
+ "citation": {
161
+ "law_id": "shotoku-89",
162
+ "law_name": "所得税法",
163
+ "article": 89,
164
+ "paragraph": 1,
165
+ "amendment": "平成18年3月31日法律第10号",
166
+ "ministry": "財務省"
167
+ },
168
+ "params": {
169
+ "brackets": [
170
+ {
171
+ "label": "195万円以下",
172
+ "income_from": 0,
173
+ "income_to_inclusive": 1950000,
174
+ "rate": { "numer": 5, "denom": 100 },
175
+ "deduction": 0
176
+ },
177
+ {
178
+ "label": "195万円超330万円以下",
179
+ "income_from": 1950001,
180
+ "income_to_inclusive": 3300000,
181
+ "rate": { "numer": 10, "denom": 100 },
182
+ "deduction": 97500
183
+ },
184
+ {
185
+ "label": "330万円超695万円以下",
186
+ "income_from": 3300001,
187
+ "income_to_inclusive": 6950000,
188
+ "rate": { "numer": 20, "denom": 100 },
189
+ "deduction": 427500
190
+ },
191
+ {
192
+ "label": "695万円超900万円以下",
193
+ "income_from": 6950001,
194
+ "income_to_inclusive": 9000000,
195
+ "rate": { "numer": 23, "denom": 100 },
196
+ "deduction": 636000
197
+ },
198
+ {
199
+ "label": "900万円超1800万円以下",
200
+ "income_from": 9000001,
201
+ "income_to_inclusive": 18000000,
202
+ "rate": { "numer": 33, "denom": 100 },
203
+ "deduction": 1536000
204
+ },
205
+ {
206
+ "label": "1800万円超",
207
+ "income_from": 18000001,
208
+ "income_to_inclusive": null,
209
+ "rate": { "numer": 40, "denom": 100 },
210
+ "deduction": 2796000
211
+ }
212
+ ],
213
+ "reconstruction_tax": null
214
+ }
215
+ },
216
+ {
217
+ "effective_from": "2013-01-01",
218
+ "effective_until": "2014-12-31",
219
+ "status": "superseded",
220
+ "citation": {
221
+ "law_id": "shotoku-89",
222
+ "law_name": "所得税法",
223
+ "article": 89,
224
+ "paragraph": 1,
225
+ "amendment": "平成18年3月31日法律第10号",
226
+ "ministry": "財務省"
227
+ },
228
+ "params": {
229
+ "brackets": [
230
+ {
231
+ "label": "195万円以下",
232
+ "income_from": 0,
233
+ "income_to_inclusive": 1950000,
234
+ "rate": { "numer": 5, "denom": 100 },
235
+ "deduction": 0
236
+ },
237
+ {
238
+ "label": "195万円超330万円以下",
239
+ "income_from": 1950001,
240
+ "income_to_inclusive": 3300000,
241
+ "rate": { "numer": 10, "denom": 100 },
242
+ "deduction": 97500
243
+ },
244
+ {
245
+ "label": "330万円超695万円以下",
246
+ "income_from": 3300001,
247
+ "income_to_inclusive": 6950000,
248
+ "rate": { "numer": 20, "denom": 100 },
249
+ "deduction": 427500
250
+ },
251
+ {
252
+ "label": "695万円超900万円以下",
253
+ "income_from": 6950001,
254
+ "income_to_inclusive": 9000000,
255
+ "rate": { "numer": 23, "denom": 100 },
256
+ "deduction": 636000
257
+ },
258
+ {
259
+ "label": "900万円超1800万円以下",
260
+ "income_from": 9000001,
261
+ "income_to_inclusive": 18000000,
262
+ "rate": { "numer": 33, "denom": 100 },
263
+ "deduction": 1536000
264
+ },
265
+ {
266
+ "label": "1800万円超",
267
+ "income_from": 18000001,
268
+ "income_to_inclusive": null,
269
+ "rate": { "numer": 40, "denom": 100 },
270
+ "deduction": 2796000
271
+ }
272
+ ],
273
+ "reconstruction_tax": {
274
+ "rate": { "numer": 21, "denom": 1000 },
275
+ "effective_from_year": 2013,
276
+ "effective_to_year_inclusive": 2037
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "effective_from": "2015-01-01",
282
+ "effective_until": null,
283
+ "status": "active",
284
+ "citation": {
285
+ "law_id": "shotoku-89",
286
+ "law_name": "所得税法",
287
+ "article": 89,
288
+ "paragraph": 1,
289
+ "amendment": "平成25年3月30日法律第5号",
290
+ "ministry": "財務省"
291
+ },
292
+ "params": {
293
+ "brackets": [
294
+ {
295
+ "label": "195万円以下",
296
+ "income_from": 0,
297
+ "income_to_inclusive": 1950000,
298
+ "rate": { "numer": 5, "denom": 100 },
299
+ "deduction": 0
300
+ },
301
+ {
302
+ "label": "195万円超330万円以下",
303
+ "income_from": 1950001,
304
+ "income_to_inclusive": 3300000,
305
+ "rate": { "numer": 10, "denom": 100 },
306
+ "deduction": 97500
307
+ },
308
+ {
309
+ "label": "330万円超695万円以下",
310
+ "income_from": 3300001,
311
+ "income_to_inclusive": 6950000,
312
+ "rate": { "numer": 20, "denom": 100 },
313
+ "deduction": 427500
314
+ },
315
+ {
316
+ "label": "695万円超900万円以下",
317
+ "income_from": 6950001,
318
+ "income_to_inclusive": 9000000,
319
+ "rate": { "numer": 23, "denom": 100 },
320
+ "deduction": 636000
321
+ },
322
+ {
323
+ "label": "900万円超1800万円以下",
324
+ "income_from": 9000001,
325
+ "income_to_inclusive": 18000000,
326
+ "rate": { "numer": 33, "denom": 100 },
327
+ "deduction": 1536000
328
+ },
329
+ {
330
+ "label": "1800万円超4000万円以下",
331
+ "income_from": 18000001,
332
+ "income_to_inclusive": 40000000,
333
+ "rate": { "numer": 40, "denom": 100 },
334
+ "deduction": 2796000
335
+ },
336
+ {
337
+ "label": "4000万円超",
338
+ "income_from": 40000001,
339
+ "income_to_inclusive": null,
340
+ "rate": { "numer": 45, "denom": 100 },
341
+ "deduction": 4796000
342
+ }
343
+ ],
344
+ "reconstruction_tax": {
345
+ "rate": { "numer": 21, "denom": 1000 },
346
+ "effective_from_year": 2013,
347
+ "effective_to_year_inclusive": 2037
348
+ }
349
+ }
350
+ }
351
+ ]
352
+ }