cout-certificat-immatriculation.schema.json 20 KB
Newer Older
annecav's avatar
annecav committed
1
{
2
    "$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
annecav's avatar
annecav committed
3 4
    "type": "object",
    "title": "cout-certificat-immatriculation",
5
    "description": "Données de références pour le calcul du coût du certificat d'immatriculation",
annecav's avatar
annecav committed
6 7 8 9 10 11 12 13 14 15
    "properties": {
        "baremeDemarche": {
            "type": "array",
            "title": "Barème par nature de démarche",
            "description": "Barème applicable selon la nature de la démarche",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
16 17
                        "title": "id [primarykey:1, autoincrement:22, type:integer]",
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
18 19 20
                    },
                    "demarche": {
                        "type": "string",
21 22
                        "title": "Démarche [type:text]",
                        "description": "Libellé de la démarche"
annecav's avatar
annecav committed
23 24 25
                    },
                    "baremeMotoMoins125": {
                        "type": "number",
26
                        "title": "Barème moto (2 ou 3 roues) de moins de 125cm3 [type:number]",
annecav's avatar
annecav committed
27
                        "description": "Barème applicable à une moto (2 ou 3 roues) de moins de 125cm3 pour cette démarche",
28
                        "default": 0
annecav's avatar
annecav committed
29 30 31
                    },
                    "baremeAutre": {
                        "type": "number",
32
                        "title": "Barème autre véhicule [type:number]",
annecav's avatar
annecav committed
33
                        "description": "Barème applicable aux autres types de véhicule pour cette démarche",
34
                        "default": 0
annecav's avatar
annecav committed
35 36 37 38 39 40 41 42 43 44
                    }
                },
                "required": [
                    "id",
                    "demarche",
                    "baremeMotoMoins125",
                    "baremeAutre"
                ]
            }
        },
45
        "baremeVehicule": {
annecav's avatar
annecav committed
46
            "type": "array",
47 48
            "title": "Barème par type de véhicule",
            "description": "Barème applicable selon le type de véhicule",
annecav's avatar
annecav committed
49 50 51 52 53
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
54
                        "title": "id [primarykey:1, autoincrement:23, type:integer]",
55
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
56
                    },
57 58 59 60
                    "typeVehicule": {
                        "type": "string",
                        "title": "Type de véhicule [type:text]",
                        "description": "Type de véhicule"
annecav's avatar
annecav committed
61
                    },
62 63 64 65
                    "baremeMoins10": {
                        "type": "number",
                        "title": "Barème véhicule neuf ou moins de 10 ans [type:number]",
                        "description": "Barème applicable à un véhicule neuf ou de moins de 10 ans"
annecav's avatar
annecav committed
66
                    },
67 68 69 70
                    "baremePlus10": {
                        "type": "number",
                        "title": "Barème véhicule de plus de 10 ans [type:number]",
                        "description": "Barème applicable à un véhicule de plus de 10 ans"
annecav's avatar
annecav committed
71
                    },
72
                    "taxeFPTransport": {
annecav's avatar
annecav committed
73
                        "type": "number",
74 75
                        "title": "Taxe formation professionnelle dans les transports [type:money]",
                        "description": "Y2 - Taxe en euros sur la formation professionnelle dans les transports en fonction du PTAC"
annecav's avatar
annecav committed
76 77 78 79
                    }
                },
                "required": [
                    "id",
80 81 82 83
                    "typeVehicule",
                    "baremeMoins10",
                    "baremePlus10",
                    "taxeFPTransport"
annecav's avatar
annecav committed
84 85 86
                ]
            }
        },
87
        "malusCV": {
annecav's avatar
annecav committed
88
            "type": "array",
89 90
            "title": "Montants du malus selon la puissance fiscale",
            "description": "Montants du malus selon la puissance fiscale du véhicule et l'année d'achat",
annecav's avatar
annecav committed
91 92 93 94 95
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
96
                        "title": "id [primarykey:1, autoincrement:71, type:integer]",
97
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
98
                    },
99 100 101 102
                    "annee": {
                        "type": "integer",
                        "title": "Année d'achat du véhicule [type:year]",
                        "description": "Année d'achat du véhicule"
annecav's avatar
annecav committed
103
                    },
104 105 106 107
                    "minCV": {
                        "type": "integer",
                        "title": "Borne inférieure du nombre de CV [type:integer]",
                        "description": "Borne inférieure du nombre de CV fiscaux"
annecav's avatar
annecav committed
108
                    },
109
                    "maxCV": {
annecav's avatar
annecav committed
110
                        "type": "integer",
111 112 113 114 115 116 117
                        "title": "Borne supérieure du nombre de CV [type:integer]",
                        "description": "Borne supérieure du nombre de CV fiscaux"
                    },
                    "malus": {
                        "type": "number",
                        "title": "Montant du malus [type:money]",
                        "description": "Montant du malus en euros",
118
                        "default": 0
annecav's avatar
annecav committed
119 120 121 122
                    }
                },
                "required": [
                    "id",
123 124 125 126
                    "annee",
                    "minCV",
                    "maxCV",
                    "malus"
annecav's avatar
annecav committed
127 128 129
                ]
            }
        },
130
        "malusCO2": {
annecav's avatar
annecav committed
131
            "type": "array",
132 133
            "title": "Montants du malus selon le taux d'émission de CO2 par kilomètre",
            "description": "Montants du malus en fonction du nombre de grammes de CO2 émis par kilomètre et l'année d'achat",
annecav's avatar
annecav committed
134 135 136 137 138
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
139
                        "title": "id [primarykey:1, autoincrement:438, type:integer]",
140
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
141
                    },
142
                    "annee": {
annecav's avatar
annecav committed
143
                        "type": "integer",
144 145
                        "title": "Année d'achat du véhicule [type:year]",
                        "description": "Année d'achat du véhicule"
annecav's avatar
annecav committed
146
                    },
147 148 149 150 151 152 153 154 155 156 157 158 159 160
                    "minCO2": {
                        "type": "integer",
                        "title": "Borne inférieure du taux d'émission de CO2 [type:integer]",
                        "description": "Borne inférieure du nombre de grammes de CO2 émis par kilomètre"
                    },
                    "maxCO2": {
                        "type": "integer",
                        "title": "Borne supérieure du taux d'émission de CO2 [type:integer]",
                        "description": "Borne supérieure du nombre de grammes de CO2 émis par kilomètre"
                    },
                    "malus": {
                        "type": "number",
                        "title": "Montant du malus [type:money]",
                        "description": "Montant du malus en euros",
161
                        "default": 0
162 163 164 165 166
                    },
                    "PeriodeAnnee": {
                        "type": "integer",
                        "title": "Période de l'année [type:integer]",
                        "description": ""
annecav's avatar
annecav committed
167 168 169 170
                    }
                },
                "required": [
                    "id",
171 172 173 174
                    "annee",
                    "minCO2",
                    "maxCO2",
                    "malus"
annecav's avatar
annecav committed
175 176 177
                ]
            }
        },
178
        "taxeAdditionnelleCO2": {
annecav's avatar
annecav committed
179
            "type": "array",
180 181
            "title": "Taxe additionnelle CO2",
            "description": "Taxe additionnelle CO2 en fonction du nombre de grammes de CO2 émis par kilomètre et l'année d'achat pour les véhicules ayant fait l'objet d'une réception communautaire",
annecav's avatar
annecav committed
182 183 184 185 186
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
unknown's avatar
unknown committed
187
                        "title": "id [primarykey:1, autoincrement:15, type:integer]",
188
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
189
                    },
190
                    "annee": {
annecav's avatar
annecav committed
191
                        "type": "integer",
192 193
                        "title": "Année d'achat du véhicule [type:year]",
                        "description": "Année d'achat du véhicule"
annecav's avatar
annecav committed
194
                    },
195 196 197 198
                    "tranche": {
                        "type": "integer",
                        "title": "Tranche du barême taxe additionnelle CO2 [type:integer]",
                        "description": "Tranche du barême taxe additionnelle CO2"
annecav's avatar
annecav committed
199
                    },
200 201 202 203 204 205 206 207 208 209 210
                    "minCO2": {
                        "type": "integer",
                        "title": "Borne inférieure du taux d'émission de CO2 [type:integer]",
                        "description": "Borne inférieure du nombre de grammes de CO2 émis par kilomètre"
                    },
                    "maxCO2": {
                        "type": "integer",
                        "title": "Borne supérieure du taux d'émission de CO2 [type:integer]",
                        "description": "Borne supérieure du nombre de grammes de CO2 émis par kilomètre"
                    },
                    "taxeParGramme": {
annecav's avatar
annecav committed
211
                        "type": "number",
212 213
                        "title": "Montant en euros de la taxe par gramme de CO2 [type:money]",
                        "description": "Montant en euros de la taxe par gramme de CO2 émis par kilomètre",
214
                        "default": 0
annecav's avatar
annecav committed
215 216 217 218
                    }
                },
                "required": [
                    "id",
219 220 221 222 223
                    "annee",
                    "tranche",
                    "minCO2",
                    "maxCO2",
                    "taxeParGramme"
annecav's avatar
annecav committed
224 225 226
                ]
            }
        },
227
        "taxeAdditionnelleCV": {
annecav's avatar
annecav committed
228
            "type": "array",
229 230
            "title": "Taxe additionnelle selon la puissance fiscale",
            "description": "Taxe additionnelle en fonction de la puissance fiscale et l'année d'achat pour les véhicules n'ayant pas fait l'objet d'une réception communautaire",
annecav's avatar
annecav committed
231 232 233 234 235
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
236
                        "title": "id [primarykey:1, autoincrement:27, type:integer]",
237
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
238
                    },
239 240 241 242
                    "annee": {
                        "type": "integer",
                        "title": "Année d'achat du véhicule [type:year]",
                        "description": "Année d'achat du véhicule"
annecav's avatar
annecav committed
243
                    },
244 245 246 247
                    "minCV": {
                        "type": "integer",
                        "title": "Borne inférieure du nombre de CV [type:integer]",
                        "description": "Borne inférieure du nombre de CV fiscaux"
annecav's avatar
annecav committed
248
                    },
249 250 251 252
                    "maxCV": {
                        "type": "integer",
                        "title": "Borne supérieure du nombre de CV [type:integer]",
                        "description": "Borne supérieure du nombre de CV fiscaux"
annecav's avatar
annecav committed
253
                    },
254
                    "taxe": {
annecav's avatar
annecav committed
255
                        "type": "number",
256 257
                        "title": "Montant en euros de la taxe [type:money]",
                        "description": "Montant en euros de la taxe",
258
                        "default": 0
annecav's avatar
annecav committed
259 260 261 262
                    }
                },
                "required": [
                    "id",
263 264 265 266
                    "annee",
                    "minCV",
                    "maxCV",
                    "taxe"
annecav's avatar
annecav committed
267 268 269
                ]
            }
        },
270
        "taxeRegionale": {
annecav's avatar
annecav committed
271
            "type": "array",
272 273
            "title": "Taxe régionale",
            "description": "Y1 - Taxe régionale pour 1 CV fiscal",
annecav's avatar
annecav committed
274 275 276 277 278
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
unknown's avatar
unknown committed
279
                        "title": "id [primarykey:1, autoincrement:31, type:integer]",
280
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
281
                    },
282
                    "regionId": {
annecav's avatar
annecav committed
283
                        "type": "integer",
unknown's avatar
unknown committed
284
                        "title": "Région [type:choice, datasource:cout-certificat-immatriculation, returnType:assocArray, valueColumn:codeRegion, labelColumn:name, request:select * from regions order by name]",
285
                        "description": "Identifiant de la région dans la table des régions"
annecav's avatar
annecav committed
286
                    },
287 288 289 290
                    "taxe": {
                        "type": "number",
                        "title": "Montant en euros de la taxe régionale [type:money]",
                        "description": "Montant en euros de la taxe pour 1 CV fiscal",
291
                        "default": 0
annecav's avatar
annecav committed
292
                    },
293
                    "exoVehiculePropre": {
annecav's avatar
annecav committed
294
                        "type": "number",
295 296
                        "title": "Pourcentage exonération véhicules propres [type:percent]",
                        "description": "Pourcentage d’exonération de la taxe régionale pour les véhicules propres"
annecav's avatar
annecav committed
297 298 299 300
                    }
                },
                "required": [
                    "id",
301 302 303
                    "regionId",
                    "taxe",
                    "exoVehiculePropre"
annecav's avatar
annecav committed
304 305 306
                ]
            }
        },
307
        "regions": {
annecav's avatar
annecav committed
308
            "type": "array",
309 310
            "title": "Régions",
            "description": "Régions",
annecav's avatar
annecav committed
311 312 313 314 315
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
unknown's avatar
unknown committed
316
                        "title": "id [primarykey:1, autoincrement:32, type:integer]",
317
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
318
                    },
319 320 321 322
                    "codeRegion": {
                        "type": "integer",
                        "title": "Code région [type:integer]",
                        "description": "Code de la région"
annecav's avatar
annecav committed
323
                    },
324 325 326 327
                    "name": {
                        "type": "string",
                        "title": "Nom de la région [type:text]",
                        "description": "Nom de la région"
annecav's avatar
annecav committed
328 329 330 331
                    }
                },
                "required": [
                    "id",
332 333
                    "codeRegion",
                    "name"
annecav's avatar
annecav committed
334 335 336
                ]
            }
        },
337
        "departements": {
annecav's avatar
annecav committed
338
            "type": "array",
339 340
            "title": "Départements",
            "description": "Départements",
annecav's avatar
annecav committed
341 342 343 344 345
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
346 347
                        "title": "id [primarykey:1, autoincrement:101, type:integer]",
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
348
                    },
349 350 351 352
                    "codeDep": {
                        "type": "string",
                        "title": "Code du département [type:department]",
                        "description": "Code du département"
annecav's avatar
annecav committed
353
                    },
354 355 356 357
                    "name": {
                        "type": "string",
                        "title": "Nom du département [type:text]",
                        "description": "Nom du département"
annecav's avatar
annecav committed
358
                    },
359
                    "regionId": {
annecav's avatar
annecav committed
360
                        "type": "integer",
unknown's avatar
unknown committed
361
                        "title": "Région [type:choice, datasource:cout-certificat-immatriculation, returnType:assocArray, valueColumn:codeRegion, labelColumn:name, request:select * from regions order by name]",
362
                        "description": "Identifiant de la région d'appartenance dans la table des régions"
annecav's avatar
annecav committed
363 364 365 366
                    }
                },
                "required": [
                    "id",
367 368 369
                    "codeDep",
                    "name",
                    "regionId"
annecav's avatar
annecav committed
370 371 372
                ]
            }
        },
373
        "energies": {
annecav's avatar
annecav committed
374
            "type": "array",
375 376
            "title": "Catégories énergétiques",
            "description": "Catégories énergétiques",
annecav's avatar
annecav committed
377 378 379 380 381
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
382 383
                        "title": "id [primarykey:1, autoincrement:15, type:integer]",
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
384
                    },
385 386 387 388
                    "energie": {
                        "type": "string",
                        "title": "Energie [type:text]",
                        "description": "Libellé énergie"
annecav's avatar
annecav committed
389
                    },
390 391 392 393
                    "pourcentMalusCO2": {
                        "type": "number",
                        "title": "Pourcentage sur le taux CO2 [type:percent]",
                        "description": "Pourcentage sur le taux CO2"
annecav's avatar
annecav committed
394
                    },
395
                    "pourcentTaxeAdditionnelle": {
annecav's avatar
annecav committed
396
                        "type": "number",
397 398 399 400 401 402 403
                        "title": "Pourcentage de la taxe additionnelle [type:percent]",
                        "description": "Pourcentage de la taxe additionnelle"
                    },
                    "energiePropre": {
                        "type": "boolean",
                        "title": "Energie propre ? [type:boolean]",
                        "description": "Energie propre permettant une exonération totale ou partielle de la taxe régionale"
404 405 406 407 408
                    },
                    "energieTresPropre": {
                        "type": "boolean",
                        "title": "Energie très propre ? [type:boolean]",
                        "description": ""
annecav's avatar
annecav committed
409 410 411 412
                    }
                },
                "required": [
                    "id",
413 414 415 416
                    "energie",
                    "pourcentMalusCO2",
                    "pourcentTaxeAdditionnelle",
                    "energiePropre"
annecav's avatar
annecav committed
417 418
                ]
            }
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460
        },
        "prelevementadditionnel": {
            "type": "array",
            "title": "prelevementadditionnel",
            "description": "<p>Prélèvement additionnel grosse cylindrée<\/p>",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
                        "title": "id [primarykey:1, autoincrement:51, type:integer]",
                        "description": "Identifiant interne"
                    },
                    "annee": {
                        "type": "integer",
                        "title": "Année de la démarche [type:year]",
                        "description": ""
                    },
                    "borneinf": {
                        "type": "integer",
                        "title": "borne inférieure [type:integer]",
                        "description": ""
                    },
                    "bornesup": {
                        "type": "integer",
                        "title": "borne supérieure [type:integer]",
                        "description": ""
                    },
                    "montantCV": {
                        "type": "number",
                        "title": "montant par CV [type:money]",
                        "description": ""
                    }
                },
                "required": [
                    "id",
                    "annee",
                    "borneinf",
                    "bornesup",
                    "montantCV"
                ]
            }
annecav's avatar
annecav committed
461 462 463 464 465
        }
    },
    "required": [
        "baremeDemarche",
        "baremeVehicule",
466
        "malusCV",
annecav's avatar
annecav committed
467
        "malusCO2",
468 469 470 471 472
        "taxeAdditionnelleCO2",
        "taxeAdditionnelleCV",
        "taxeRegionale",
        "regions",
        "departements",
473 474
        "energies",
        "prelevementadditionnel"
annecav's avatar
annecav committed
475 476
    ]
}