Skip to content

Commit

Permalink
Merge pull request #235 from mvicrob/variablerate
Browse files Browse the repository at this point in the history
feat: Add RatesPeriod
  • Loading branch information
mvicrob authored Sep 26, 2021
2 parents fe8f47b + 0455b0a commit cfca633
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions models/FreeLoan.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
"minimum": 0,
"type": "number"
},
"yearly_rates": {
"description": "Taux d'intérêt annuels en %, dans le cadre d'un prêt à taux variable. Mettre 2.1 pour 2.1% par exemple.",
"type": "array",
"items": {
"$ref": "./RatePeriod.v1.json"
}
},
"max_duration_months": {
"description": "Durée maximale du prêt, en mois.",
"minimum": 0,
Expand Down
22 changes: 22 additions & 0 deletions models/RatePeriod.v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "RatePeriod",
"type": "object",
"properties": {
"rate": {
"description": "Taux annuel.",
"minimum": 0,
"type": "number"
},
"period_start": {
"description": "Indice de départ de la période durant laquelle le taux est appliqué (l'indice du premier mois est 1).",
"minimum": 1,
"type": "integer"
},
"period_end": {
"description": "Indice de fin de la période durant laquelle le taux est appliqué.",
"minimum": 1,
"type": "integer"
}
},
"description": "Dans le cadre d'un prêt à taux variable, période durant la quelle le taux annuel est constant (le taux annuel variant d'une période à l'autre)"
}

0 comments on commit cfca633

Please sign in to comment.