interets-moratoires.schema.json 3.65 KB
Newer Older
annecav's avatar
annecav committed
1
{
unknown's avatar
unknown committed
2
    "$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
annecav's avatar
annecav committed
3
4
5
6
    "type": "object",
    "title": "interets-moratoires",
    "description": "Données de références pour le calcul des intérêts moratoires",
    "properties": {
unknown's avatar
unknown committed
7
        "acheteurPublic": {
annecav's avatar
annecav committed
8
            "type": "array",
unknown's avatar
unknown committed
9
10
            "title": "Types d'acheteur public",
            "description": "Délai de paiement et type de taux (légal ou BCE) par acheteur public",
annecav's avatar
annecav committed
11
12
13
14
15
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
unknown's avatar
unknown committed
16
17
                        "title": "id [primarykey:1, autoincrement:8, type:integer]",
                        "description": "Identifiant interne"
annecav's avatar
annecav committed
18
                    },
unknown's avatar
unknown committed
19
                    "name": {
annecav's avatar
annecav committed
20
                        "type": "string",
unknown's avatar
unknown committed
21
22
                        "title": "Libellé du type d'acheteur public [type:text]",
                        "description": "Libellé du type d'acheteur public"
annecav's avatar
annecav committed
23
                    },
unknown's avatar
unknown committed
24
25
26
27
                    "delaiPaiement": {
                        "type": "integer",
                        "title": "Délai de paiement [type:integer]",
                        "description": "Délai de paiement"
annecav's avatar
annecav committed
28
                    },
unknown's avatar
unknown committed
29
30
31
                    "typeTaux": {
                        "type": "integer",
                        "title": "Type de taux [type:choice]",
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
                        "description": "Type de taux applicable pour l'acheteur public (1 : taux légal, 2 : taux BCE)",
                        "oneOf": [
                            {
                                "title": "Taux légal",
                                "enum": [
                                    1
                                ]
                            },
                            {
                                "title": "Taux BCE",
                                "enum": [
                                    2
                                ]
                            }
                        ]
annecav's avatar
annecav committed
47
48
49
                    }
                },
                "required": [
unknown's avatar
unknown committed
50
51
52
53
                    "id",
                    "name",
                    "delaiPaiement",
                    "typeTaux"
annecav's avatar
annecav committed
54
55
                ]
            }
56
57
58
59
60
61
62
63
64
65
        },
        "taux": {
            "type": "array",
            "title": "Taux applicable par période",
            "description": "Taux légal ou taux directeur de la BCE applicable selon la période",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer",
66
                        "title": "id [primarykey:1, autoincrement:32, type:integer]",
67
68
69
                        "description": "Identifiant interne"
                    },
                    "dateIM": {
70
                        "type": "string",
71
                        "title": "Date d'application [type:date]",
72
73
                        "description": "Date d'application du taux (mise à jour semestrielle)",
                        "format": "date"
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
                    },
                    "tauxLegal": {
                        "type": "number",
                        "title": "Taux légal [type:percent]",
                        "description": "Taux légal"
                    },
                    "tauxBCE": {
                        "type": "number",
                        "title": "Taux BCE [type:percent]",
                        "description": "Taux directeur de la BCE"
                    }
                },
                "required": [
                    "dateIM"
                ]
            }
annecav's avatar
annecav committed
90
91
92
        }
    },
    "required": [
93
94
        "acheteurPublic",
        "taux"
annecav's avatar
annecav committed
95
96
    ]
}