Fixed Interests Static

fixed-interests-static@0.2.0 Clause ^0.20.0 a5d67d689ed7c58f64da92239bf12133489d915a0fb93e0a2f0a0edc2f1f67d3

A Fixed Interests Loan Clause, with a monthly Payment (static)

Download Archive Open in Template Studio

Fixed interests (Static Version)

A Fixed Interests Loan Clause, with a monthly Payment

Template Text

Grammar

Fixed rate loan
----

This is a *fixed interest* loan to the amount of {{loanAmount}}
at the yearly interest rate of {{rate}}%
with a loan term of {{loanDuration}},
and monthly payments of {{monthlyPayment}}

Sample

## Fixed rate loan

This is a _fixed interest_ loan to the amount of 100000
at the yearly interest rate of 2.5%
with a loan term of 15,
and monthly payments of 667

Sample Data

{
    "$class": "org.accordproject.interests.TemplateModel",
    "clauseId": "831993a4-fdb2-4fb8-9732-f91906d23cda",
    "loanAmount": 100000,
    "rate": 2.5,
    "loanDuration": 15,
    "monthlyPayment": 667
}

Template Model

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "eca7b5a0-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.interests.Request
{
    "$class": "org.accordproject.interests.Request",
    "input": "Occaecat consequat anim.",
    "transactionId": "eca78e90-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:53.497-05:00"
}

Response Types

Type Sample JSON
org.accordproject.interests.Response
{
    "$class": "org.accordproject.interests.Response",
    "output": "Non.",
    "transactionId": "eca78e91-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:53.497-05:00"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}

Technical Integration

Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.

View the Latest code for this template on GitHub.