Fixed Interests

fixed-interests@0.2.0 Clause ^0.20.0 725dc420fc351805e1d744f2effe9577d4aea3d5056098cb13721bf00f32e35d

A Fixed Interests Loan Clause, with a monthly Payment

Download Archive Open in Template Studio

Fixed interests

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 {{% monthlyPaymentFormula(loanAmount,rate,loanDuration) %}}

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 {{I'm not sure which amount right now}}

Sample Data

{
    "$class": "org.accordproject.interests.TemplateModel",
    "clauseId": "192cff31-fc84-4815-a636-a91680705a12",
    "loanAmount": 100000,
    "rate": 2.5,
    "loanDuration": 15
}

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": "ebe09511-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.interests.Request
{
    "$class": "org.accordproject.interests.Request",
    "input": "Pariatur.",
    "transactionId": "ebe06e00-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:52.192-05:00"
}

Response Types

Type Sample JSON
org.accordproject.interests.Response
{
    "$class": "org.accordproject.interests.Response",
    "output": "Labore cupidatat adipisicing aute.",
    "transactionId": "ebe09510-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:08:52.193-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.